id
int64
0
100M
language
stringclasses
3 values
prog_lang
stringclasses
6 values
category
stringclasses
10 values
difficulty
stringclasses
3 values
instruction
stringlengths
30
86
output
stringlengths
7
192
text
stringlengths
92
300
4,083,821
en
C#
var_decl
beginner
How to declare a variable buffer with value 423705 in C#?
int buffer = 423705;
### Instruction: How to declare a variable buffer with value 423705 in C#? ### Response: int buffer = 423705;
1,290,782
en
Unity
var_decl
beginner
How to declare a variable total with value 784125 in Unity?
int total = 784125;
### Instruction: How to declare a variable total with value 784125 in Unity? ### Response: int total = 784125;
27,441,434
kk
Python
array_ops
advanced
Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
22,117,135
en
Unity
logic_ops
intermediate
Write a function that determines if the number 461 is prime in Unity.
public bool IsPrime() { int n = 461; 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 461 is prime in Unity. ### Response: public bool IsPrime() { int n = 461; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
70,299,787
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
83,534,906
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 1992 високосным.
public bool IsLeap() { int y = 1992; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 1992 високосным. ### Response: public bool IsLeap() { int y = 1992; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
76,999,113
en
JavaScript
array_ops
intermediate
Write a function that filters only even numbers from a list in JavaScript.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Write a function that filters only even numbers from a list in JavaScript. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
4,142,119
en
Unity
var_decl
beginner
How to declare a variable score with value 210401 in Unity?
int score = 210401;
### Instruction: How to declare a variable score with value 210401 in Unity? ### Response: int score = 210401;
12,121,418
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 25 простым.
public bool IsPrime() { int n = 25; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 25 простым. ### Response: public bool IsPrime() { int n = 25; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
33,719,878
kk
Python
array_ops
intermediate
Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
4,928,356
en
Unity
var_decl
beginner
How to declare a variable value with value 358847 in Unity?
int value = 358847;
### Instruction: How to declare a variable value with value 358847 in Unity? ### Response: int value = 358847;
93,256,110
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; }
22,188,624
kk
C++
logic_ops
advanced
C++ тилінде 1981 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1981; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 1981 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1981; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
44,869,263
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
96,756,207
ru
Unity
array_ops
intermediate
Напишите на Unity функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на Unity функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
3,273,299
ru
Java
var_decl
beginner
Как объявить переменную index со значением 291470 в Java?
int index = 291470;
### Instruction: Как объявить переменную index со значением 291470 в Java? ### Response: int index = 291470;
94,827,475
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 453 простым.
public bool IsPrime() { int n = 453; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 453 простым. ### Response: public bool IsPrime() { int n = 453; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
51,720,335
ru
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; }
3,358,601
en
Python
var_decl
beginner
How to declare a variable total with value 133421 in Python?
total = 133421
### Instruction: How to declare a variable total with value 133421 in Python? ### Response: total = 133421
42,780,570
kk
Unity
string_ops
intermediate
Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
50,357,025
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); }
12,970,519
kk
JavaScript
array_ops
advanced
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
const reverseArr = arr => arr.reverse();
### Instruction: JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: const reverseArr = arr => arr.reverse();
593,294
kk
Python
var_decl
beginner
Python тілінде 325533 мәнімен limit айнымалысын қалай жариялауға болады?
limit = 325533
### Instruction: Python тілінде 325533 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: limit = 325533
76,894,395
ru
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; }
78,817,397
en
Java
logic_ops
intermediate
Write a function that determines if the number 239 is prime in Java.
public bool IsPrime() { int n = 239; 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 239 is prime in Java. ### Response: public bool IsPrime() { int n = 239; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
743,999
ru
C#
var_decl
beginner
Как объявить переменную score со значением 71083 в C#?
int score = 71083;
### Instruction: Как объявить переменную score со значением 71083 в C#? ### Response: int score = 71083;
1,150,367
ru
C#
var_decl
beginner
Как объявить переменную index со значением 876219 в C#?
int index = 876219;
### Instruction: Как объявить переменную index со значением 876219 в C#? ### Response: int index = 876219;
59,244,415
ru
C++
logic_ops
advanced
Напишите на C++ функцию, определяющую, является ли число 44 простым.
public bool IsPrime() { int n = 44; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 44 простым. ### Response: public bool IsPrime() { int n = 44; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
278,989
kk
Java
var_decl
beginner
Java тілінде 647300 мәнімен total айнымалысын қалай жариялауға болады?
int total = 647300;
### Instruction: Java тілінде 647300 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 647300;
3,159,729
kk
Java
var_decl
beginner
Java тілінде 803149 мәнімен score айнымалысын қалай жариялауға болады?
int score = 803149;
### Instruction: Java тілінде 803149 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 803149;
15,392,004
ru
Python
logic_ops
intermediate
Напишите на Python функцию, определяющую, является ли число 473 простым.
def is_prime(): n = 473 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 473 простым. ### Response: def is_prime(): n = 473 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
51,374,966
ru
C++
array_ops
intermediate
Напишите на 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,413,404
kk
Unity
var_decl
beginner
Unity тілінде 800778 мәнімен buffer айнымалысын қалай жариялауға болады?
int buffer = 800778;
### Instruction: Unity тілінде 800778 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: int buffer = 800778;
4,319,020
kk
JavaScript
var_decl
beginner
JavaScript тілінде 690925 мәнімен weight айнымалысын қалай жариялауға болады?
let weight = 690925;
### Instruction: JavaScript тілінде 690925 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: let weight = 690925;
667
en
C#
func_def
intermediate
Write a function process in C# that takes offset and doubles it.
static int process(int offset) { return offset * 2; }
### Instruction: Write a function process in C# that takes offset and doubles it. ### Response: static int process(int offset) { return offset * 2; }
2,377,691
en
Unity
var_decl
beginner
How to declare a variable weight with value 400892 in Unity?
int weight = 400892;
### Instruction: How to declare a variable weight with value 400892 in Unity? ### Response: int weight = 400892;
43,188,792
ru
Python
array_ops
advanced
Напишите на Python функцию, которая находит максимальное число в массиве.
def get_max(arr): return max(arr)
### Instruction: Напишите на Python функцию, которая находит максимальное число в массиве. ### Response: def get_max(arr): return max(arr)
40,531,852
ru
Unity
logic_ops
intermediate
Напишите на Unity логику проверки, является ли год 1954 високосным.
public bool IsLeap() { int y = 1954; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1954 високосным. ### Response: public bool IsLeap() { int y = 1954; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,466,674
kk
Python
var_decl
beginner
Python тілінде 643135 мәнімен result айнымалысын қалай жариялауға болады?
result = 643135
### Instruction: Python тілінде 643135 мәнімен result айнымалысын қалай жариялауға болады? ### Response: result = 643135
1,001,292
kk
C#
factorial
advanced
C# тілінде 6245 санының факториалын есептейтін функция жаз.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(6245));
### Instruction: C# тілінде 6245 санының факториалын есептейтін функция жаз. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(6245));
1,212,615
kk
JavaScript
var_decl
beginner
JavaScript тілінде 143965 мәнімен health айнымалысын қалай жариялауға болады?
let health = 143965;
### Instruction: JavaScript тілінде 143965 мәнімен health айнымалысын қалай жариялауға болады? ### Response: let health = 143965;
623,040
ru
Unity
var_decl
beginner
Как объявить переменную buffer со значением 292874 в Unity?
int buffer = 292874;
### Instruction: Как объявить переменную buffer со значением 292874 в Unity? ### Response: int buffer = 292874;
94,114,082
kk
Java
logic_ops
intermediate
Java тилінде 96 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 96; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 96 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 96; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,164,799
en
Python
var_decl
beginner
How to declare a variable result with value 587684 in Python?
result = 587684
### Instruction: How to declare a variable result with value 587684 in Python? ### Response: result = 587684
57,315,693
kk
C#
logic_ops
intermediate
C# тилінде 1999 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1999; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C# тилінде 1999 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1999; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,826,368
kk
Unity
var_decl
beginner
Unity тілінде 361599 мәнімен buffer айнымалысын қалай жариялауға болады?
int buffer = 361599;
### Instruction: Unity тілінде 361599 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: int buffer = 361599;
2,297,443
en
JavaScript
var_decl
beginner
How to declare a variable weight with value 528367 in JavaScript?
let weight = 528367;
### Instruction: How to declare a variable weight with value 528367 in JavaScript? ### Response: let weight = 528367;
28,792,194
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; }
25,672,946
ru
Unity
logic_ops
advanced
Напишите на Unity логику проверки, является ли год 2037 високосным.
public bool IsLeap() { int y = 2037; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 2037 високосным. ### Response: public bool IsLeap() { int y = 2037; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
94,747,132
kk
JavaScript
array_ops
advanced
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
const reverseArr = arr => arr.reverse();
### Instruction: JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: const reverseArr = arr => arr.reverse();
3,684,782
ru
Python
var_decl
beginner
Как объявить переменную buffer со значением 42585 в Python?
buffer = 42585
### Instruction: Как объявить переменную buffer со значением 42585 в Python? ### Response: buffer = 42585
95,555,290
kk
Python
string_ops
advanced
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
def is_palindrome(s): return s == s[::-1]
### Instruction: Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: def is_palindrome(s): return s == s[::-1]
43,596,029
kk
Java
logic_ops
intermediate
Java тилінде 1907 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1907; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1907 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1907; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,682,736
en
Python
var_decl
beginner
How to declare a variable score with value 703952 in Python?
score = 703952
### Instruction: How to declare a variable score with value 703952 in Python? ### Response: score = 703952
3,495,980
ru
Python
var_decl
beginner
Как объявить переменную amount со значением 728475 в Python?
amount = 728475
### Instruction: Как объявить переменную amount со значением 728475 в Python? ### Response: amount = 728475
33,667,539
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; }
82,761,340
ru
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; }
67,101,635
en
Java
string_ops
intermediate
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(); }
4,167,218
en
JavaScript
var_decl
beginner
How to declare a variable data with value 957006 in JavaScript?
let data = 957006;
### Instruction: How to declare a variable data with value 957006 in JavaScript? ### Response: let data = 957006;
59,200,006
en
Python
array_ops
advanced
Write a function that reverses a list in Python.
def reverse_list(arr): return arr[::-1]
### Instruction: Write a function that reverses a list in Python. ### Response: def reverse_list(arr): return arr[::-1]
3,807,865
en
C++
var_decl
beginner
How to declare a variable offset with value 18361 in C++?
int offset = 18361;
### Instruction: How to declare a variable offset with value 18361 in C++? ### Response: int offset = 18361;
3,355,844
kk
Java
var_decl
beginner
Java тілінде 255611 мәнімен index айнымалысын қалай жариялауға болады?
int index = 255611;
### Instruction: Java тілінде 255611 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 255611;
294,374
kk
Unity
sum_n
intermediate
Unity тілінде 1-ден 4628-ге дейінгі сандардың қосындысын есептейтін функция жаз.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(4628)); }
### Instruction: Unity тілінде 1-ден 4628-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(4628)); }
45,758,596
en
Python
string_ops
intermediate
Write a function that checks if a string is a palindrome in Python.
def is_palindrome(s): return s == s[::-1]
### Instruction: Write a function that checks if a string is a palindrome in Python. ### Response: def is_palindrome(s): return s == s[::-1]
2,944,783
kk
C#
var_decl
beginner
C# тілінде 93877 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 93877;
### Instruction: C# тілінде 93877 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 93877;
570,018
kk
Java
factorial
advanced
Java тілінде 9558 санының факториалын есептейтін функция жаз.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(9558));
### Instruction: Java тілінде 9558 санының факториалын есептейтін функция жаз. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(9558));
86,941,348
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; }
4,211,386
kk
JavaScript
var_decl
beginner
JavaScript тілінде 966571 мәнімен limit айнымалысын қалай жариялауға болады?
let limit = 966571;
### Instruction: JavaScript тілінде 966571 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: let limit = 966571;
43,464,233
en
Python
logic_ops
intermediate
Write logic to check if the year 2058 is a leap year in Python.
def is_leap(): year = 2058 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2058 is a leap year in Python. ### Response: def is_leap(): year = 2058 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
55,157,497
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); }
90,906,362
ru
Python
logic_ops
advanced
Напишите на Python функцию, определяющую, является ли число 90 простым.
def is_prime(): n = 90 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 90 простым. ### Response: def is_prime(): n = 90 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
826,624
kk
Java
var_decl
beginner
Java тілінде 703654 мәнімен data айнымалысын қалай жариялауға болады?
int data = 703654;
### Instruction: Java тілінде 703654 мәнімен data айнымалысын қалай жариялауға болады? ### Response: int data = 703654;
4,471,140
ru
C++
var_decl
beginner
Как объявить переменную index со значением 303262 в C++?
int index = 303262;
### Instruction: Как объявить переменную index со значением 303262 в C++? ### Response: int index = 303262;
62,593
en
JavaScript
sum_n
intermediate
Write a function in JavaScript that sums numbers from 1 to 5351.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(5351));
### Instruction: Write a function in JavaScript that sums numbers from 1 to 5351. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(5351));
58,417,292
en
JavaScript
string_ops
advanced
Write a function that checks if a string is a palindrome in JavaScript.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: Write a function that checks if a string is a palindrome in JavaScript. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
501,763
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 958.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(958)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 958. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(958)); }
2,305,756
kk
Python
var_decl
beginner
Python тілінде 921070 мәнімен y айнымалысын қалай жариялауға болады?
y = 921070
### Instruction: Python тілінде 921070 мәнімен y айнымалысын қалай жариялауға болады? ### Response: y = 921070
16,305,135
en
C#
string_ops
intermediate
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(); }
3,337,540
en
Java
var_decl
beginner
How to declare a variable result with value 81022 in Java?
int result = 81022;
### Instruction: How to declare a variable result with value 81022 in Java? ### Response: int result = 81022;
2,981,853
en
Java
var_decl
beginner
How to declare a variable amount with value 222365 in Java?
int amount = 222365;
### Instruction: How to declare a variable amount with value 222365 in Java? ### Response: int amount = 222365;
24,938,598
en
C++
logic_ops
intermediate
Write a function that determines if the number 76 is prime in C++.
public bool IsPrime() { int n = 76; 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 76 is prime in C++. ### Response: public bool IsPrime() { int n = 76; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,992,628
ru
Unity
var_decl
beginner
Как объявить переменную level со значением 574525 в Unity?
int level = 574525;
### Instruction: Как объявить переменную level со значением 574525 в Unity? ### Response: int level = 574525;
264,089
ru
C++
var_decl
beginner
Как объявить переменную total со значением 99725 в C++?
int total = 99725;
### Instruction: Как объявить переменную total со значением 99725 в C++? ### Response: int total = 99725;
3,624,388
en
C++
var_decl
beginner
How to declare a variable buffer with value 237195 in C++?
int buffer = 237195;
### Instruction: How to declare a variable buffer with value 237195 in C++? ### Response: int buffer = 237195;
37,116,323
en
Python
string_ops
intermediate
Write a function that checks if a string is a palindrome in Python.
def is_palindrome(s): return s == s[::-1]
### Instruction: Write a function that checks if a string is a palindrome in Python. ### Response: def is_palindrome(s): return s == s[::-1]
38,945,263
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
const getMax = arr => Math.max(...arr);
### Instruction: Напишите на JavaScript функцию, которая находит максимальное число в массиве. ### Response: const getMax = arr => Math.max(...arr);
25,056,888
kk
Python
array_ops
advanced
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
37,755,922
kk
Java
logic_ops
advanced
Java тилінде 154 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 154; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 154 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 154; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,774,297
ru
JavaScript
var_decl
beginner
Как объявить переменную speed со значением 994926 в JavaScript?
let speed = 994926;
### Instruction: Как объявить переменную speed со значением 994926 в JavaScript? ### Response: let speed = 994926;
13,652,627
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); }
88,594,371
kk
Java
array_ops
intermediate
Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
1,481,617
ru
Unity
var_decl
beginner
Как объявить переменную data со значением 493170 в Unity?
int data = 493170;
### Instruction: Как объявить переменную data со значением 493170 в Unity? ### Response: int data = 493170;
1,906,186
en
C++
var_decl
beginner
How to declare a variable level with value 937630 in C++?
int level = 937630;
### Instruction: How to declare a variable level with value 937630 in C++? ### Response: int level = 937630;
81,582,861
ru
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; }
2,345,611
ru
Unity
var_decl
beginner
Как объявить переменную value со значением 478335 в Unity?
int value = 478335;
### Instruction: Как объявить переменную value со значением 478335 в Unity? ### Response: int value = 478335;
3,074,613
ru
Python
var_decl
beginner
Как объявить переменную offset со значением 953918 в Python?
offset = 953918
### Instruction: Как объявить переменную offset со значением 953918 в Python? ### Response: offset = 953918
4,103,939
kk
Unity
var_decl
beginner
Unity тілінде 50771 мәнімен y айнымалысын қалай жариялауға болады?
int y = 50771;
### Instruction: Unity тілінде 50771 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 50771;
3,742,166
kk
Java
var_decl
beginner
Java тілінде 397376 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 397376;
### Instruction: Java тілінде 397376 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 397376;
90,253,743
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; }
29,133,626
kk
Unity
logic_ops
intermediate
Unity тилінде 303 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 303; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 303 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 303; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }