id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
3,417,793
kk
Java
var_decl
beginner
Java тілінде 477827 мәнімен result айнымалысын қалай жариялауға болады?
int result = 477827;
### Instruction: Java тілінде 477827 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 477827;
61,321,657
en
C++
array_ops
advanced
Write a function that filters only even numbers from a list in 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: Write a function that filters only even numbers from a list in 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; }
26,756,872
kk
Python
logic_ops
intermediate
Python тилінде 103 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 103 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 103 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 103 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
56,474,904
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; }
17,833,583
en
Java
array_ops
intermediate
Write a function that finds the maximum number in an array in Java.
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 Java. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
22,928,941
kk
C++
logic_ops
advanced
C++ тилінде 2020 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2020; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 2020 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2020; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
384,770
en
C++
sum_n
intermediate
Write a function in C++ that sums numbers from 1 to 6536.
int sum_to_n(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } std::cout << sum_to_n(6536) << std::endl;
### Instruction: Write a function in C++ that sums numbers from 1 to 6536. ### Response: int sum_to_n(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } std::cout << sum_to_n(6536) << std::endl;
272,972
ru
C#
var_decl
beginner
Как объявить переменную timer со значением 687383 в C#?
int timer = 687383;
### Instruction: Как объявить переменную timer со значением 687383 в C#? ### Response: int timer = 687383;
2,081,662
ru
JavaScript
var_decl
beginner
Как объявить переменную timer со значением 828257 в JavaScript?
let timer = 828257;
### Instruction: Как объявить переменную timer со значением 828257 в JavaScript? ### Response: let timer = 828257;
4,945,378
kk
Python
var_decl
beginner
Python тілінде 617889 мәнімен weight айнымалысын қалай жариялауға болады?
weight = 617889
### Instruction: Python тілінде 617889 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: weight = 617889
20,255,985
ru
C#
string_ops
intermediate
Напишите на C# функцию, которая проверяет, является ли строка палиндромом.
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: Напишите на C# функцию, которая проверяет, является ли строка палиндромом. ### 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; }
56,579,058
kk
Unity
array_ops
intermediate
Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
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: Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### 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; }
81,805,120
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript функцию, определяющую, является ли число 497 простым.
function isPrime() { let n = 497; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 497 простым. ### Response: function isPrime() { let n = 497; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
2,613,517
kk
Python
var_decl
beginner
Python тілінде 283426 мәнімен x айнымалысын қалай жариялауға болады?
x = 283426
### Instruction: Python тілінде 283426 мәнімен x айнымалысын қалай жариялауға болады? ### Response: x = 283426
52,116,979
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; }
28,878,399
ru
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; }
79,438,093
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 30 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 30; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 30 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 30; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
417,881
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 7167.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7167)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 7167. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7167)); }
56,111,781
kk
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; }
2,604,285
ru
Python
var_decl
beginner
Как объявить переменную amount со значением 955374 в Python?
amount = 955374
### Instruction: Как объявить переменную amount со значением 955374 в Python? ### Response: amount = 955374
104,430
ru
C#
sum_n
intermediate
Напиши функцию на C#, которая считает сумму чисел от 1 до 3324.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(3324));
### Instruction: Напиши функцию на C#, которая считает сумму чисел от 1 до 3324. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(3324));
4,807,243
en
Python
var_decl
beginner
How to declare a variable count with value 958526 in Python?
count = 958526
### Instruction: How to declare a variable count with value 958526 in Python? ### Response: count = 958526
65,181,542
ru
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; }
42,409,358
kk
Unity
logic_ops
intermediate
Unity тилінде 2072 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2072; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2072 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2072; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
51,557,237
en
C#
string_ops
intermediate
Write a function that counts vowels in a text in C#.
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 C#. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
22,823,785
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
44,949,219
en
JavaScript
string_ops
advanced
Write a function that converts a string to uppercase in JavaScript.
const toUpper = s => s.toUpperCase();
### Instruction: Write a function that converts a string to uppercase in JavaScript. ### Response: const toUpper = s => s.toUpperCase();
21,833,273
kk
JavaScript
array_ops
intermediate
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
97,948,933
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; }
29,542,713
ru
Unity
logic_ops
advanced
Напишите на Unity логику проверки, является ли год 1985 високосным.
public bool IsLeap() { int y = 1985; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1985 високосным. ### Response: public bool IsLeap() { int y = 1985; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
42,419,822
kk
Java
logic_ops
advanced
Java тилінде 1953 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1953; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1953 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1953; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
64,225,474
kk
Python
string_ops
intermediate
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
33,890,113
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 475 простым.
public bool IsPrime() { int n = 475; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 475 простым. ### Response: public bool IsPrime() { int n = 475; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
13,151,874
ru
Java
logic_ops
advanced
Напишите на Java функцию, определяющую, является ли число 398 простым.
public bool IsPrime() { int n = 398; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 398 простым. ### Response: public bool IsPrime() { int n = 398; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
23,594,508
kk
JavaScript
string_ops
advanced
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
98,341,655
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 1907 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 1907; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 1907 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 1907; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
125,230
ru
Python
sum_n
intermediate
Напиши функцию на Python, которая считает сумму чисел от 1 до 7410.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(7410))
### Instruction: Напиши функцию на Python, которая считает сумму чисел от 1 до 7410. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(7410))
38,455,790
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
42,491,640
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 235 простым.
public bool IsPrime() { int n = 235; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 235 простым. ### Response: public bool IsPrime() { int n = 235; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
49,876,609
ru
Python
array_ops
advanced
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
90,699,948
en
C++
logic_ops
advanced
Write logic to check if the year 2069 is a leap year in C++.
public bool IsLeap() { int y = 2069; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2069 is a leap year in C++. ### Response: public bool IsLeap() { int y = 2069; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
84,929,676
kk
Unity
logic_ops
intermediate
Unity тилінде 2049 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2049; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2049 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2049; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,217,275
kk
Java
var_decl
beginner
Java тілінде 666120 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 666120;
### Instruction: Java тілінде 666120 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 666120;
1,159,312
ru
C++
var_decl
beginner
Как объявить переменную offset со значением 690089 в C++?
int offset = 690089;
### Instruction: Как объявить переменную offset со значением 690089 в C++? ### Response: int offset = 690089;
709,291
ru
Java
factorial
advanced
Напиши функцию на Java, которая вычисляет факториал числа 2830.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(2830));
### Instruction: Напиши функцию на Java, которая вычисляет факториал числа 2830. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(2830));
63,502,448
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); }
2,773,996
kk
Python
var_decl
beginner
Python тілінде 573438 мәнімен speed айнымалысын қалай жариялауға болады?
speed = 573438
### Instruction: Python тілінде 573438 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: speed = 573438
1,805,043
ru
C#
var_decl
beginner
Как объявить переменную level со значением 448217 в C#?
int level = 448217;
### Instruction: Как объявить переменную level со значением 448217 в C#? ### Response: int level = 448217;
2,729,224
kk
Unity
var_decl
beginner
Unity тілінде 828481 мәнімен size айнымалысын қалай жариялауға болады?
int size = 828481;
### Instruction: Unity тілінде 828481 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 828481;
10,057,984
en
C++
logic_ops
intermediate
Write logic to check if the year 2087 is a leap year in C++.
public bool IsLeap() { int y = 2087; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2087 is a leap year in C++. ### Response: public bool IsLeap() { int y = 2087; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,252,247
kk
Python
var_decl
beginner
Python тілінде 437539 мәнімен limit айнымалысын қалай жариялауға болады?
limit = 437539
### Instruction: Python тілінде 437539 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: limit = 437539
59,842,222
kk
Java
array_ops
intermediate
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; }
19,794,107
en
Python
string_ops
intermediate
Write a function that converts a string to uppercase in Python.
def to_upper(s): return s.upper()
### Instruction: Write a function that converts a string to uppercase in Python. ### Response: def to_upper(s): return s.upper()
829,408
kk
Unity
var_decl
beginner
Unity тілінде 632290 мәнімен result айнымалысын қалай жариялауға болады?
int result = 632290;
### Instruction: Unity тілінде 632290 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 632290;
91,840,349
ru
Java
logic_ops
intermediate
Напишите на Java функцию, определяющую, является ли число 262 простым.
public bool IsPrime() { int n = 262; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 262 простым. ### Response: public bool IsPrime() { int n = 262; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
22,099,736
kk
JavaScript
array_ops
advanced
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
62,407,604
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; }
29,623,731
en
Unity
array_ops
advanced
Write a function that finds the maximum number in an array in Unity.
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 Unity. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
77,240,471
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; }
12,627,987
en
Unity
logic_ops
intermediate
Write a function that determines if the number 331 is prime in Unity.
public bool IsPrime() { int n = 331; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Write a function that determines if the number 331 is prime in Unity. ### Response: public bool IsPrime() { int n = 331; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,476,226
kk
JavaScript
var_decl
beginner
JavaScript тілінде 197844 мәнімен x айнымалысын қалай жариялауға болады?
let x = 197844;
### Instruction: JavaScript тілінде 197844 мәнімен x айнымалысын қалай жариялауға болады? ### Response: let x = 197844;
60,065,324
en
Java
array_ops
intermediate
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; }
242,324
ru
Unity
factorial
advanced
Напиши функцию на Unity, которая вычисляет факториал числа 3899.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(3899)); }
### Instruction: Напиши функцию на Unity, которая вычисляет факториал числа 3899. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(3899)); }
4,701,835
kk
C#
var_decl
beginner
C# тілінде 420129 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 420129;
### Instruction: C# тілінде 420129 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 420129;
97,731,906
en
JavaScript
string_ops
advanced
Write a function that counts vowels in a text in JavaScript.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Write a function that counts vowels in a text in JavaScript. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
2,484,239
ru
C++
var_decl
beginner
Как объявить переменную rate со значением 986901 в C++?
int rate = 986901;
### Instruction: Как объявить переменную rate со значением 986901 в C++? ### Response: int rate = 986901;
1,255,931
ru
Python
factorial
advanced
Напиши функцию на Python, которая вычисляет факториал числа 7921.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(7921))
### Instruction: Напиши функцию на Python, которая вычисляет факториал числа 7921. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(7921))
330,366
kk
Java
factorial
advanced
Java тілінде 8555 санының факториалын есептейтін функция жаз.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(8555));
### Instruction: Java тілінде 8555 санының факториалын есептейтін функция жаз. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(8555));
45,632,623
ru
C#
logic_ops
intermediate
Напишите на C# функцию, определяющую, является ли число 435 простым.
public bool IsPrime() { int n = 435; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 435 простым. ### Response: public bool IsPrime() { int n = 435; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
43,772,199
kk
Java
string_ops
advanced
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; }
45,776,894
en
Unity
logic_ops
advanced
Write logic to check if the year 2046 is a leap year in Unity.
public bool IsLeap() { int y = 2046; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2046 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2046; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
37,205,695
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);
31,323,220
en
C++
logic_ops
advanced
Write a function that determines if the number 432 is prime in C++.
public bool IsPrime() { int n = 432; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Write a function that determines if the number 432 is prime in C++. ### Response: public bool IsPrime() { int n = 432; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
13,228,057
kk
C#
logic_ops
advanced
C# тилінде 116 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 116; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 116 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 116; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
49,374,064
en
Unity
array_ops
intermediate
Write a function that finds the maximum number in an array in Unity.
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 Unity. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
14,941,994
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 30 is prime in JavaScript.
function isPrime() { let n = 30; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Write a function that determines if the number 30 is prime in JavaScript. ### Response: function isPrime() { let n = 30; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
29,700,455
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
3,373,782
kk
Java
var_decl
beginner
Java тілінде 225140 мәнімен health айнымалысын қалай жариялауға болады?
int health = 225140;
### Instruction: Java тілінде 225140 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 225140;
4,757,499
en
Unity
var_decl
beginner
How to declare a variable speed with value 572651 in Unity?
int speed = 572651;
### Instruction: How to declare a variable speed with value 572651 in Unity? ### Response: int speed = 572651;
1,751,264
ru
JavaScript
var_decl
beginner
Как объявить переменную timer со значением 97730 в JavaScript?
let timer = 97730;
### Instruction: Как объявить переменную timer со значением 97730 в JavaScript? ### Response: let timer = 97730;
86,792,438
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 1952 високосным.
public bool IsLeap() { int y = 1952; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 1952 високосным. ### Response: public bool IsLeap() { int y = 1952; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,563,491
en
C++
var_decl
beginner
How to declare a variable count with value 297946 in C++?
int count = 297946;
### Instruction: How to declare a variable count with value 297946 in C++? ### Response: int count = 297946;
43,674,661
kk
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; }
1,252,062
en
Java
var_decl
beginner
How to declare a variable amount with value 973605 in Java?
int amount = 973605;
### Instruction: How to declare a variable amount with value 973605 in Java? ### Response: int amount = 973605;
88,046,382
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 1961 високосным.
public bool IsLeap() { int y = 1961; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 1961 високосным. ### Response: public bool IsLeap() { int y = 1961; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
96,557,671
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 1908 високосным.
public bool IsLeap() { int y = 1908; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 1908 високосным. ### Response: public bool IsLeap() { int y = 1908; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
80,464,431
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; }
71,299,193
kk
C++
string_ops
intermediate
C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
95,270,672
ru
C++
logic_ops
advanced
Напишите на C++ функцию, определяющую, является ли число 167 простым.
public bool IsPrime() { int n = 167; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 167 простым. ### Response: public bool IsPrime() { int n = 167; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,256,404
kk
C#
var_decl
beginner
C# тілінде 24773 мәнімен health айнымалысын қалай жариялауға болады?
int health = 24773;
### Instruction: C# тілінде 24773 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 24773;
3,754,234
ru
Unity
var_decl
beginner
Как объявить переменную buffer со значением 279467 в Unity?
int buffer = 279467;
### Instruction: Как объявить переменную buffer со значением 279467 в Unity? ### Response: int buffer = 279467;
62,822,480
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
1,687,688
en
Java
var_decl
beginner
How to declare a variable result with value 795373 in Java?
int result = 795373;
### Instruction: How to declare a variable result with value 795373 in Java? ### Response: int result = 795373;
82,599,182
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
76,694,598
en
Java
string_ops
advanced
Write a function that converts a string to uppercase in Java.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Java. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
3,402,259
ru
C++
var_decl
beginner
Как объявить переменную count со значением 532442 в C++?
int count = 532442;
### Instruction: Как объявить переменную count со значением 532442 в C++? ### Response: int count = 532442;
83,395,281
kk
C#
array_ops
advanced
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; }
227,375
kk
JavaScript
var_decl
beginner
JavaScript тілінде 578646 мәнімен weight айнымалысын қалай жариялауға болады?
let weight = 578646;
### Instruction: JavaScript тілінде 578646 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: let weight = 578646;
26,420,968
ru
Unity
string_ops
advanced
Напишите на Unity функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на Unity функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
2,202,104
kk
JavaScript
var_decl
beginner
JavaScript тілінде 168252 мәнімен weight айнымалысын қалай жариялауға болады?
let weight = 168252;
### Instruction: JavaScript тілінде 168252 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: let weight = 168252;