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
69,620,589
ru
C#
logic_ops
advanced
Напишите на C# функцию, определяющую, является ли число 335 простым.
public bool IsPrime() { int n = 335; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 335 простым. ### Response: public bool IsPrime() { int n = 335; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
86,045,277
kk
Python
logic_ops
intermediate
Python тилінде 283 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 283 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 283 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 283 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
51,550,921
kk
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); }
2,937,099
kk
Python
var_decl
beginner
Python тілінде 999987 мәнімен rate айнымалысын қалай жариялауға болады?
rate = 999987
### Instruction: Python тілінде 999987 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: rate = 999987
50,726,771
en
JavaScript
logic_ops
advanced
Write a function that determines if the number 374 is prime in JavaScript.
function isPrime() { let n = 374; 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 374 is prime in JavaScript. ### Response: function isPrime() { let n = 374; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
1,661,622
kk
C#
var_decl
beginner
C# тілінде 43171 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 43171;
### Instruction: C# тілінде 43171 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 43171;
3,314,288
kk
C++
var_decl
beginner
C++ тілінде 985416 мәнімен timer айнымалысын қалай жариялауға болады?
int timer = 985416;
### Instruction: C++ тілінде 985416 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: int timer = 985416;
10,469,675
kk
Unity
array_ops
advanced
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; }
88,658,380
kk
JavaScript
array_ops
advanced
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
683,719
kk
Java
sum_n
intermediate
Java тілінде 1-ден 7098-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(7098));
### Instruction: Java тілінде 1-ден 7098-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(7098));
2,917,247
en
Unity
var_decl
beginner
How to declare a variable score with value 665865 in Unity?
int score = 665865;
### Instruction: How to declare a variable score with value 665865 in Unity? ### Response: int score = 665865;
36,485,559
en
Java
string_ops
intermediate
Write a function that checks if a string is a palindrome in 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: Write a function that checks if a string is a palindrome in 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; }
3,106,264
kk
Python
var_decl
beginner
Python тілінде 171606 мәнімен buffer айнымалысын қалай жариялауға болады?
buffer = 171606
### Instruction: Python тілінде 171606 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: buffer = 171606
581,446
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 9902.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(9902))
### Instruction: Write a function in Python that sums numbers from 1 to 9902. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(9902))
1,335,204
kk
Java
var_decl
beginner
Java тілінде 70994 мәнімен score айнымалысын қалай жариялауға болады?
int score = 70994;
### Instruction: Java тілінде 70994 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 70994;
1,062,462
en
Unity
var_decl
beginner
How to declare a variable timer with value 843012 in Unity?
int timer = 843012;
### Instruction: How to declare a variable timer with value 843012 in Unity? ### Response: int timer = 843012;
87,603,890
ru
C#
logic_ops
intermediate
Напишите на C# функцию, определяющую, является ли число 6 простым.
public bool IsPrime() { int n = 6; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 6 простым. ### Response: public bool IsPrime() { int n = 6; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
65,356,320
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); }
143,443
ru
JavaScript
var_decl
beginner
Как объявить переменную score со значением 775872 в JavaScript?
let score = 775872;
### Instruction: Как объявить переменную score со значением 775872 в JavaScript? ### Response: let score = 775872;
54,086
ru
C#
sum_n
intermediate
Напиши функцию на C#, которая считает сумму чисел от 1 до 5248.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(5248));
### Instruction: Напиши функцию на C#, которая считает сумму чисел от 1 до 5248. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(5248));
70,170,959
kk
Unity
logic_ops
intermediate
Unity тилінде 181 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 181; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 181 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 181; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
27,639,934
kk
C++
logic_ops
intermediate
C++ тилінде 407 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 407; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C++ тилінде 407 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 407; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
441,982
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 1551.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1551)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 1551. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1551)); }
365,443
kk
Python
var_decl
beginner
Python тілінде 624868 мәнімен value айнымалысын қалай жариялауға болады?
value = 624868
### Instruction: Python тілінде 624868 мәнімен value айнымалысын қалай жариялауға болады? ### Response: value = 624868
1,261,386
ru
Python
var_decl
beginner
Как объявить переменную size со значением 654968 в Python?
size = 654968
### Instruction: Как объявить переменную size со значением 654968 в Python? ### Response: size = 654968
3,306,503
kk
Unity
var_decl
beginner
Unity тілінде 691983 мәнімен total айнымалысын қалай жариялауға болады?
int total = 691983;
### Instruction: Unity тілінде 691983 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 691983;
4,278,939
en
C++
var_decl
beginner
How to declare a variable health with value 360641 in C++?
int health = 360641;
### Instruction: How to declare a variable health with value 360641 in C++? ### Response: int health = 360641;
4,277,455
ru
Unity
var_decl
beginner
Как объявить переменную index со значением 894223 в Unity?
int index = 894223;
### Instruction: Как объявить переменную index со значением 894223 в Unity? ### Response: int index = 894223;
60,351
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 3971.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(3971)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 3971. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(3971)); }
642,581
kk
Python
var_decl
beginner
Python тілінде 720495 мәнімен level айнымалысын қалай жариялауға болады?
level = 720495
### Instruction: Python тілінде 720495 мәнімен level айнымалысын қалай жариялауға болады? ### Response: level = 720495
3,491,553
en
C++
var_decl
beginner
How to declare a variable health with value 891597 in C++?
int health = 891597;
### Instruction: How to declare a variable health with value 891597 in C++? ### Response: int health = 891597;
3,688,344
en
JavaScript
var_decl
beginner
How to declare a variable score with value 537259 in JavaScript?
let score = 537259;
### Instruction: How to declare a variable score with value 537259 in JavaScript? ### Response: let score = 537259;
2,370,327
en
Unity
var_decl
beginner
How to declare a variable level with value 733403 in Unity?
int level = 733403;
### Instruction: How to declare a variable level with value 733403 in Unity? ### Response: int level = 733403;
95,076,248
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]
802,872
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 1079.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1079)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 1079. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1079)); }
75,609,987
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; }
1,204,008
en
JavaScript
var_decl
beginner
How to declare a variable count with value 781605 in JavaScript?
let count = 781605;
### Instruction: How to declare a variable count with value 781605 in JavaScript? ### Response: let count = 781605;
3,837,768
kk
C++
var_decl
beginner
C++ тілінде 273118 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 273118;
### Instruction: C++ тілінде 273118 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 273118;
11,782,306
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;
247,584
kk
Python
sum_n
intermediate
Python тілінде 1-ден 9455-ге дейінгі сандардың қосындысын есептейтін функция жаз.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(9455))
### Instruction: Python тілінде 1-ден 9455-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(9455))
91,547,414
ru
Unity
string_ops
advanced
Напишите на 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; }
72,000,659
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; }
38,564,872
kk
JavaScript
string_ops
intermediate
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
22,373,466
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
1,280,140
kk
Unity
var_decl
beginner
Unity тілінде 201832 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 201832;
### Instruction: Unity тілінде 201832 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 201832;
67,363,309
kk
Java
string_ops
intermediate
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; }
75,124,402
en
Java
logic_ops
intermediate
Write logic to check if the year 2038 is a leap year in Java.
public bool IsLeap() { int y = 2038; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2038 is a leap year in Java. ### Response: public bool IsLeap() { int y = 2038; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,246,580
kk
Python
var_decl
beginner
Python тілінде 467174 мәнімен rate айнымалысын қалай жариялауға болады?
rate = 467174
### Instruction: Python тілінде 467174 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: rate = 467174
33,619,253
ru
C++
logic_ops
intermediate
Напишите на C++ логику проверки, является ли год 1976 високосным.
public bool IsLeap() { int y = 1976; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 1976 високосным. ### Response: public bool IsLeap() { int y = 1976; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
27,557,780
en
C#
array_ops
intermediate
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; }
85,922,597
en
Python
logic_ops
intermediate
Write a function that determines if the number 239 is prime in Python.
def is_prime(): n = 239 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 239 is prime in Python. ### Response: def is_prime(): n = 239 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
1,738,734
kk
C++
var_decl
beginner
C++ тілінде 404347 мәнімен result айнымалысын қалай жариялауға болады?
int result = 404347;
### Instruction: C++ тілінде 404347 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 404347;
58,002,907
en
Python
array_ops
intermediate
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]
50,847,137
kk
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); }
79,214,089
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(); }
4,389,604
kk
C++
var_decl
beginner
C++ тілінде 953413 мәнімен value айнымалысын қалай жариялауға болады?
int value = 953413;
### Instruction: C++ тілінде 953413 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 953413;
806,864
en
C++
var_decl
beginner
How to declare a variable result with value 773400 in C++?
int result = 773400;
### Instruction: How to declare a variable result with value 773400 in C++? ### Response: int result = 773400;
18,963,620
ru
Unity
array_ops
advanced
Напишите на 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; }
1,602,830
en
Java
var_decl
beginner
How to declare a variable level with value 756709 in Java?
int level = 756709;
### Instruction: How to declare a variable level with value 756709 in Java? ### Response: int level = 756709;
34,705,854
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; }
4,131,798
ru
C#
var_decl
beginner
Как объявить переменную x со значением 776365 в C#?
int x = 776365;
### Instruction: Как объявить переменную x со значением 776365 в C#? ### Response: int x = 776365;
47,944,831
ru
C++
logic_ops
advanced
Напишите на C++ функцию, определяющую, является ли число 281 простым.
public bool IsPrime() { int n = 281; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 281 простым. ### Response: public bool IsPrime() { int n = 281; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,351,256
ru
Python
var_decl
beginner
Как объявить переменную buffer со значением 292077 в Python?
buffer = 292077
### Instruction: Как объявить переменную buffer со значением 292077 в Python? ### Response: buffer = 292077
85,073,477
kk
Python
string_ops
intermediate
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
612
en
C#
class_def
intermediate
Write an empty class Player in C#.
class Player { void Run() {} }
### Instruction: Write an empty class Player in C#. ### Response: class Player { void Run() {} }
1,071,039
en
Java
var_decl
beginner
How to declare a variable result with value 23924 in Java?
int result = 23924;
### Instruction: How to declare a variable result with value 23924 in Java? ### Response: int result = 23924;
63,347,924
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
64,700,139
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;
61,521,383
kk
Java
array_ops
advanced
Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
3,586,427
kk
C++
var_decl
beginner
C++ тілінде 218912 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 218912;
### Instruction: C++ тілінде 218912 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 218912;
14,572,573
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,590,235
kk
C#
var_decl
beginner
C# тілінде 610587 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 610587;
### Instruction: C# тілінде 610587 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 610587;
26,450,437
kk
Python
string_ops
intermediate
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
def is_palindrome(s): return s == s[::-1]
### Instruction: Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: def is_palindrome(s): return s == s[::-1]
61,293
kk
JavaScript
factorial
advanced
JavaScript тілінде 2945 санының факториалын есептейтін функция жаз.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(2945));
### Instruction: JavaScript тілінде 2945 санының факториалын есептейтін функция жаз. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(2945));
1,758,293
en
Python
var_decl
beginner
How to declare a variable timer with value 406361 in Python?
timer = 406361
### Instruction: How to declare a variable timer with value 406361 in Python? ### Response: timer = 406361
4,102,241
kk
Unity
var_decl
beginner
Unity тілінде 726546 мәнімен health айнымалысын қалай жариялауға болады?
int health = 726546;
### Instruction: Unity тілінде 726546 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 726546;
2,077,895
en
Python
var_decl
beginner
How to declare a variable score with value 738873 in Python?
score = 738873
### Instruction: How to declare a variable score with value 738873 in Python? ### Response: score = 738873
4,173,986
kk
Unity
var_decl
beginner
Unity тілінде 149276 мәнімен y айнымалысын қалай жариялауға болады?
int y = 149276;
### Instruction: Unity тілінде 149276 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 149276;
87,906,675
en
C#
array_ops
intermediate
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); }
21,192,913
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,091,125
ru
Python
var_decl
beginner
Как объявить переменную total со значением 648353 в Python?
total = 648353
### Instruction: Как объявить переменную total со значением 648353 в Python? ### Response: total = 648353
287,054
ru
C#
factorial
advanced
Напиши функцию на C#, которая вычисляет факториал числа 5018.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(5018));
### Instruction: Напиши функцию на C#, которая вычисляет факториал числа 5018. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(5018));
87,266,253
en
Unity
array_ops
advanced
Write a function that filters only even numbers from a list in 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: Write a function that filters only even numbers from a list in 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; }
26,863,270
en
C#
array_ops
intermediate
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); }
4,390,496
kk
JavaScript
var_decl
beginner
JavaScript тілінде 218723 мәнімен index айнымалысын қалай жариялауға болады?
let index = 218723;
### Instruction: JavaScript тілінде 218723 мәнімен index айнымалысын қалай жариялауға болады? ### Response: let index = 218723;
1,276,326
en
C#
var_decl
beginner
How to declare a variable limit with value 534582 in C#?
int limit = 534582;
### Instruction: How to declare a variable limit with value 534582 in C#? ### Response: int limit = 534582;
44,895,873
en
Python
logic_ops
intermediate
Write logic to check if the year 2013 is a leap year in Python.
def is_leap(): year = 2013 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2013 is a leap year in Python. ### Response: def is_leap(): year = 2013 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
27,388,212
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 222 is prime in JavaScript.
function isPrime() { let n = 222; 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 222 is prime in JavaScript. ### Response: function isPrime() { let n = 222; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
97,275,145
kk
C#
string_ops
advanced
C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
48,615,739
en
JavaScript
logic_ops
advanced
Write a function that determines if the number 474 is prime in JavaScript.
function isPrime() { let n = 474; 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 474 is prime in JavaScript. ### Response: function isPrime() { let n = 474; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
95,684,592
kk
Java
logic_ops
advanced
Java тилінде 1977 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1977; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1977 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1977; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
62,053,495
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 389 простым.
public bool IsPrime() { int n = 389; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 389 простым. ### Response: public bool IsPrime() { int n = 389; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,116,489
ru
Unity
var_decl
beginner
Как объявить переменную value со значением 816372 в Unity?
int value = 816372;
### Instruction: Как объявить переменную value со значением 816372 в Unity? ### Response: int value = 816372;
41,946
ru
Python
factorial
advanced
Напиши функцию на Python, которая вычисляет факториал числа 3346.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(3346))
### Instruction: Напиши функцию на Python, которая вычисляет факториал числа 3346. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(3346))
2,084,479
ru
C++
var_decl
beginner
Как объявить переменную buffer со значением 328322 в C++?
int buffer = 328322;
### Instruction: Как объявить переменную buffer со значением 328322 в C++? ### Response: int buffer = 328322;
2,480,444
en
JavaScript
var_decl
beginner
How to declare a variable amount with value 740762 in JavaScript?
let amount = 740762;
### Instruction: How to declare a variable amount with value 740762 in JavaScript? ### Response: let amount = 740762;
3,199,486
en
Python
var_decl
beginner
How to declare a variable score with value 306166 in Python?
score = 306166
### Instruction: How to declare a variable score with value 306166 in Python? ### Response: score = 306166
1,307,403
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 7721.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7721)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 7721. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7721)); }
4,012,613
kk
C++
var_decl
beginner
C++ тілінде 746065 мәнімен buffer айнымалысын қалай жариялауға болады?
int buffer = 746065;
### Instruction: C++ тілінде 746065 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: int buffer = 746065;
3,465,617
ru
Python
var_decl
beginner
Как объявить переменную count со значением 424067 в Python?
count = 424067
### Instruction: Как объявить переменную count со значением 424067 в Python? ### Response: count = 424067