id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
45,173,577
ru
C#
string_ops
intermediate
Напишите на C# функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на C# функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
42,832,763
ru
JavaScript
logic_ops
advanced
Напишите на JavaScript функцию, определяющую, является ли число 319 простым.
function isPrime() { let n = 319; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 319 простым. ### Response: function isPrime() { let n = 319; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
2,402,826
ru
C#
var_decl
beginner
Как объявить переменную timer со значением 747316 в C#?
int timer = 747316;
### Instruction: Как объявить переменную timer со значением 747316 в C#? ### Response: int timer = 747316;
59,778,049
kk
C#
array_ops
intermediate
C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
47,982
ru
Java
factorial
advanced
Напиши функцию на Java, которая вычисляет факториал числа 1243.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1243));
### Instruction: Напиши функцию на Java, которая вычисляет факториал числа 1243. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1243));
2,884,672
ru
C#
var_decl
beginner
Как объявить переменную y со значением 66677 в C#?
int y = 66677;
### Instruction: Как объявить переменную y со значением 66677 в C#? ### Response: int y = 66677;
57,716,472
kk
C++
string_ops
intermediate
C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
25,030,084
kk
Java
logic_ops
advanced
Java тилінде 1976 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1976; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1976 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1976; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
41,197,585
kk
Python
string_ops
intermediate
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
### Instruction: Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
52,065,611
en
C#
string_ops
advanced
Write a function that converts a string to uppercase in C#.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in C#. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
247,368
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 7151.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7151)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 7151. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7151)); }
470,184
en
Java
factorial
advanced
Write a function in Java that calculates the factorial of 5056.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(5056));
### Instruction: Write a function in Java that calculates the factorial of 5056. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(5056));
90,329,940
en
Unity
string_ops
intermediate
Write a function that converts a string to uppercase in Unity.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Unity. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
92,810,416
ru
C++
array_ops
advanced
Напишите на C++ функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на C++ функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
498,367
kk
C++
var_decl
beginner
C++ тілінде 680678 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 680678;
### Instruction: C++ тілінде 680678 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 680678;
2,063,502
ru
C++
var_decl
beginner
Как объявить переменную offset со значением 268410 в C++?
int offset = 268410;
### Instruction: Как объявить переменную offset со значением 268410 в C++? ### Response: int offset = 268410;
27,066,453
en
C++
logic_ops
intermediate
Write logic to check if the year 1993 is a leap year in C++.
public bool IsLeap() { int y = 1993; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1993 is a leap year in C++. ### Response: public bool IsLeap() { int y = 1993; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
60,261,256
ru
Java
array_ops
advanced
Напишите на Java функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Java функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
1,994,652
en
Java
var_decl
beginner
How to declare a variable limit with value 59938 in Java?
int limit = 59938;
### Instruction: How to declare a variable limit with value 59938 in Java? ### Response: int limit = 59938;
1,051,082
kk
C++
var_decl
beginner
C++ тілінде 153978 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 153978;
### Instruction: C++ тілінде 153978 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 153978;
3,390,160
kk
C++
var_decl
beginner
C++ тілінде 260610 мәнімен count айнымалысын қалай жариялауға болады?
int count = 260610;
### Instruction: C++ тілінде 260610 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 260610;
565,150
ru
C#
var_decl
beginner
Как объявить переменную score со значением 81350 в C#?
int score = 81350;
### Instruction: Как объявить переменную score со значением 81350 в C#? ### Response: int score = 81350;
32,992,565
kk
Python
logic_ops
advanced
Python тилінде 479 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 479 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 479 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 479 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
60,347,859
en
JavaScript
logic_ops
intermediate
Write logic to check if the year 2051 is a leap year in JavaScript.
function isLeap() { let y = 2051; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Write logic to check if the year 2051 is a leap year in JavaScript. ### Response: function isLeap() { let y = 2051; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
806,767
en
C++
var_decl
beginner
How to declare a variable y with value 898955 in C++?
int y = 898955;
### Instruction: How to declare a variable y with value 898955 in C++? ### Response: int y = 898955;
81,979,726
en
C++
logic_ops
intermediate
Write logic to check if the year 1984 is a leap year in C++.
public bool IsLeap() { int y = 1984; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1984 is a leap year in C++. ### Response: public bool IsLeap() { int y = 1984; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,932,275
en
Python
var_decl
beginner
How to declare a variable level with value 362639 in Python?
level = 362639
### Instruction: How to declare a variable level with value 362639 in Python? ### Response: level = 362639
75,028,799
en
Python
logic_ops
intermediate
Write logic to check if the year 2060 is a leap year in Python.
def is_leap(): year = 2060 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2060 is a leap year in Python. ### Response: def is_leap(): year = 2060 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
3,418,669
kk
Java
var_decl
beginner
Java тілінде 372550 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 372550;
### Instruction: Java тілінде 372550 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 372550;
907,289
ru
Java
var_decl
beginner
Как объявить переменную weight со значением 52382 в Java?
int weight = 52382;
### Instruction: Как объявить переменную weight со значением 52382 в Java? ### Response: int weight = 52382;
23,613,904
kk
Java
string_ops
intermediate
Java тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Java тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
35,737,825
en
C++
array_ops
advanced
Write a function that reverses a list in C++.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in C++. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
73,408,485
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript логику проверки, является ли год 1996 високосным.
function isLeap() { let y = 1996; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 1996 високосным. ### Response: function isLeap() { let y = 1996; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
35,015,805
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 2081 високосным.
public bool IsLeap() { int y = 2081; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 2081 високосным. ### Response: public bool IsLeap() { int y = 2081; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,738,360
ru
Python
var_decl
beginner
Как объявить переменную data со значением 218465 в Python?
data = 218465
### Instruction: Как объявить переменную data со значением 218465 в Python? ### Response: data = 218465
4,629,741
kk
JavaScript
var_decl
beginner
JavaScript тілінде 964988 мәнімен index айнымалысын қалай жариялауға болады?
let index = 964988;
### Instruction: JavaScript тілінде 964988 мәнімен index айнымалысын қалай жариялауға болады? ### Response: let index = 964988;
80,600,794
ru
Python
logic_ops
intermediate
Напишите на Python логику проверки, является ли год 2094 високосным.
def is_leap(): year = 2094 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 2094 високосным. ### Response: def is_leap(): year = 2094 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
95,035,782
kk
Python
logic_ops
intermediate
Python тилінде 352 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 352 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 352 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 352 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
1,183,135
ru
Unity
var_decl
beginner
Как объявить переменную offset со значением 775763 в Unity?
int offset = 775763;
### Instruction: Как объявить переменную offset со значением 775763 в Unity? ### Response: int offset = 775763;
2,012,760
en
C++
var_decl
beginner
How to declare a variable offset with value 690874 in C++?
int offset = 690874;
### Instruction: How to declare a variable offset with value 690874 in C++? ### Response: int offset = 690874;
25,051,293
kk
Unity
logic_ops
advanced
Unity тилінде 87 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 87; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 87 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 87; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
815,660
en
C++
var_decl
beginner
How to declare a variable result with value 644450 in C++?
int result = 644450;
### Instruction: How to declare a variable result with value 644450 in C++? ### Response: int result = 644450;
3,715,702
ru
Python
var_decl
beginner
Как объявить переменную level со значением 141922 в Python?
level = 141922
### Instruction: Как объявить переменную level со значением 141922 в Python? ### Response: level = 141922
341,030
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 2070.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(2070))
### Instruction: Write a function in Python that sums numbers from 1 to 2070. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(2070))
99,079,652
kk
Unity
logic_ops
advanced
Unity тилінде 2099 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2099; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2099 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2099; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
14,138,624
en
JavaScript
array_ops
intermediate
Write a function that finds the maximum number in an array in JavaScript.
const getMax = arr => Math.max(...arr);
### Instruction: Write a function that finds the maximum number in an array in JavaScript. ### Response: const getMax = arr => Math.max(...arr);
4,350,219
kk
JavaScript
var_decl
beginner
JavaScript тілінде 143124 мәнімен amount айнымалысын қалай жариялауға болады?
let amount = 143124;
### Instruction: JavaScript тілінде 143124 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: let amount = 143124;
1,500,992
en
Python
var_decl
beginner
How to declare a variable limit with value 846209 in Python?
limit = 846209
### Instruction: How to declare a variable limit with value 846209 in Python? ### Response: limit = 846209
57,651,176
kk
JavaScript
string_ops
advanced
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
4,926,992
en
C++
var_decl
beginner
How to declare a variable size with value 719708 in C++?
int size = 719708;
### Instruction: How to declare a variable size with value 719708 in C++? ### Response: int size = 719708;
24,990,808
kk
JavaScript
string_ops
advanced
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
53,514,020
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 2080 високосным.
public bool IsLeap() { int y = 2080; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 2080 високосным. ### Response: public bool IsLeap() { int y = 2080; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
38,139,468
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
53,173,605
en
C#
array_ops
intermediate
Write a function that finds the maximum number in an array in C#.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in C#. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
28,862,724
ru
Java
string_ops
intermediate
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Напишите на Java функцию, которая проверяет, является ли строка палиндромом. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
210,029
kk
Python
var_decl
beginner
Python тілінде 355432 мәнімен value айнымалысын қалай жариялауға болады?
value = 355432
### Instruction: Python тілінде 355432 мәнімен value айнымалысын қалай жариялауға болады? ### Response: value = 355432
92,587,212
en
Python
array_ops
intermediate
Write a function that filters only even numbers from a list in Python.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Write a function that filters only even numbers from a list in Python. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
73,849,981
en
Java
array_ops
advanced
Write a function that filters only even numbers from a list in Java.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Write a function that filters only even numbers from a list in Java. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
27,566,629
kk
C#
array_ops
intermediate
C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
4,889,114
kk
Java
var_decl
beginner
Java тілінде 624257 мәнімен count айнымалысын қалай жариялауға болады?
int count = 624257;
### Instruction: Java тілінде 624257 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 624257;
30,129,728
en
Java
string_ops
intermediate
Write a function that counts vowels in a text in Java.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in Java. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
600,926
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 3638.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(3638))
### Instruction: Write a function in Python that sums numbers from 1 to 3638. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(3638))
82,520,201
kk
Java
array_ops
intermediate
Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
3,169,732
en
Unity
var_decl
beginner
How to declare a variable speed with value 478762 in Unity?
int speed = 478762;
### Instruction: How to declare a variable speed with value 478762 in Unity? ### Response: int speed = 478762;
2,279,718
en
Python
var_decl
beginner
How to declare a variable total with value 601145 in Python?
total = 601145
### Instruction: How to declare a variable total with value 601145 in Python? ### Response: total = 601145
160,411
kk
Python
factorial
advanced
Python тілінде 336 санының факториалын есептейтін функция жаз.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(336))
### Instruction: Python тілінде 336 санының факториалын есептейтін функция жаз. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(336))
3,727,842
en
Unity
var_decl
beginner
How to declare a variable offset with value 435630 in Unity?
int offset = 435630;
### Instruction: How to declare a variable offset with value 435630 in Unity? ### Response: int offset = 435630;
40,198,785
kk
JavaScript
array_ops
intermediate
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
const reverseArr = arr => arr.reverse();
### Instruction: JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: const reverseArr = arr => arr.reverse();
43,168,074
kk
JavaScript
string_ops
advanced
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
const toUpper = s => s.toUpperCase();
### Instruction: JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: const toUpper = s => s.toUpperCase();
91,560,797
kk
C++
array_ops
advanced
C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
802,743
en
C#
var_decl
beginner
How to declare a variable weight with value 113073 in C#?
int weight = 113073;
### Instruction: How to declare a variable weight with value 113073 in C#? ### Response: int weight = 113073;
90,570,246
ru
C#
logic_ops
advanced
Напишите на C# функцию, определяющую, является ли число 187 простым.
public bool IsPrime() { int n = 187; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 187 простым. ### Response: public bool IsPrime() { int n = 187; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
783,107
en
Unity
var_decl
beginner
How to declare a variable level with value 270801 in Unity?
int level = 270801;
### Instruction: How to declare a variable level with value 270801 in Unity? ### Response: int level = 270801;
39,739,902
kk
Java
string_ops
advanced
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
29,827,264
ru
Python
string_ops
advanced
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
def is_palindrome(s): return s == s[::-1]
### Instruction: Напишите на Python функцию, которая проверяет, является ли строка палиндромом. ### Response: def is_palindrome(s): return s == s[::-1]
2,833,866
en
Java
var_decl
beginner
How to declare a variable result with value 500760 in Java?
int result = 500760;
### Instruction: How to declare a variable result with value 500760 in Java? ### Response: int result = 500760;
250,674
ru
JavaScript
factorial
advanced
Напиши функцию на JavaScript, которая вычисляет факториал числа 2670.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(2670));
### Instruction: Напиши функцию на JavaScript, которая вычисляет факториал числа 2670. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(2670));
31,277,323
en
Unity
logic_ops
advanced
Write logic to check if the year 2045 is a leap year in Unity.
public bool IsLeap() { int y = 2045; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2045 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2045; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,555,374
kk
JavaScript
var_decl
beginner
JavaScript тілінде 211854 мәнімен offset айнымалысын қалай жариялауға болады?
let offset = 211854;
### Instruction: JavaScript тілінде 211854 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: let offset = 211854;
11,567,209
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
const getMax = arr => Math.max(...arr);
### Instruction: Напишите на JavaScript функцию, которая находит максимальное число в массиве. ### Response: const getMax = arr => Math.max(...arr);
2,480,241
en
JavaScript
var_decl
beginner
How to declare a variable value with value 629467 in JavaScript?
let value = 629467;
### Instruction: How to declare a variable value with value 629467 in JavaScript? ### Response: let value = 629467;
3,166,889
kk
C++
var_decl
beginner
C++ тілінде 561373 мәнімен index айнымалысын қалай жариялауға болады?
int index = 561373;
### Instruction: C++ тілінде 561373 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 561373;
46,411,903
en
Unity
array_ops
intermediate
Write a function that reverses a list in Unity.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in Unity. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
76,312,047
en
Java
logic_ops
advanced
Write logic to check if the year 2029 is a leap year in Java.
public bool IsLeap() { int y = 2029; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2029 is a leap year in Java. ### Response: public bool IsLeap() { int y = 2029; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,122,561
ru
C++
var_decl
beginner
Как объявить переменную health со значением 652986 в C++?
int health = 652986;
### Instruction: Как объявить переменную health со значением 652986 в C++? ### Response: int health = 652986;
76,562,515
en
JavaScript
logic_ops
intermediate
Write logic to check if the year 1904 is a leap year in JavaScript.
function isLeap() { let y = 1904; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Write logic to check if the year 1904 is a leap year in JavaScript. ### Response: function isLeap() { let y = 1904; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
635,885
ru
JavaScript
var_decl
beginner
Как объявить переменную x со значением 579201 в JavaScript?
let x = 579201;
### Instruction: Как объявить переменную x со значением 579201 в JavaScript? ### Response: let x = 579201;
2,765,462
kk
C#
var_decl
beginner
C# тілінде 493463 мәнімен score айнымалысын қалай жариялауға болады?
int score = 493463;
### Instruction: C# тілінде 493463 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 493463;
20,484,446
kk
C++
array_ops
intermediate
C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
78,410,305
en
Java
logic_ops
advanced
Write logic to check if the year 1976 is a leap year in Java.
public bool IsLeap() { int y = 1976; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1976 is a leap year in Java. ### Response: public bool IsLeap() { int y = 1976; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
294,030
kk
Java
sum_n
intermediate
Java тілінде 1-ден 4804-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(4804));
### Instruction: Java тілінде 1-ден 4804-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(4804));
24,113,415
kk
C++
logic_ops
advanced
C++ тилінде 2075 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2075; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 2075 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2075; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,179,255
en
C++
var_decl
beginner
How to declare a variable count with value 461711 in C++?
int count = 461711;
### Instruction: How to declare a variable count with value 461711 in C++? ### Response: int count = 461711;
4,381,176
en
C#
var_decl
beginner
How to declare a variable weight with value 806750 in C#?
int weight = 806750;
### Instruction: How to declare a variable weight with value 806750 in C#? ### Response: int weight = 806750;
12,769,669
en
C#
array_ops
advanced
Write a function that finds the maximum number in an array in C#.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in C#. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
30,175,370
ru
Unity
array_ops
advanced
Напишите на Unity функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на Unity функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
31,198,983
en
Python
logic_ops
intermediate
Write a function that determines if the number 453 is prime in Python.
def is_prime(): n = 453 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Write a function that determines if the number 453 is prime in Python. ### Response: def is_prime(): n = 453 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
4,752,568
ru
C++
var_decl
beginner
Как объявить переменную limit со значением 90169 в C++?
int limit = 90169;
### Instruction: Как объявить переменную limit со значением 90169 в C++? ### Response: int limit = 90169;
2,594,834
kk
Unity
var_decl
beginner
Unity тілінде 67442 мәнімен x айнымалысын қалай жариялауға болады?
int x = 67442;
### Instruction: Unity тілінде 67442 мәнімен x айнымалысын қалай жариялауға болады? ### Response: int x = 67442;
54,149,985
en
Java
string_ops
advanced
Write a function that counts vowels in a text in Java.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in Java. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }