id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
1,201,775 | kk | Java | var_decl | beginner | Java тілінде 164451 мәнімен size айнымалысын қалай жариялауға болады? | int size = 164451; | ### Instruction:
Java тілінде 164451 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 164451; |
89,229,328 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 494 is prime in JavaScript. | function isPrime() {
let n = 494;
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 494 is prime in JavaScript.
### Response:
function isPrime() {
let n = 494;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
2,091,647 | kk | C# | var_decl | beginner | C# тілінде 601341 мәнімен data айнымалысын қалай жариялауға болады? | int data = 601341; | ### Instruction:
C# тілінде 601341 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 601341; |
4,375,992 | ru | C++ | var_decl | beginner | Как объявить переменную count со значением 51109 в C++? | int count = 51109; | ### Instruction:
Как объявить переменную count со значением 51109 в C++?
### Response:
int count = 51109; |
67,854,563 | 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();
} |
28,342,184 | kk | Unity | logic_ops | advanced | Unity тилінде 2017 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2017;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2017 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2017;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
965,268 | en | C# | var_decl | beginner | How to declare a variable amount with value 813583 in C#? | int amount = 813583; | ### Instruction:
How to declare a variable amount with value 813583 in C#?
### Response:
int amount = 813583; |
71,942,140 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 365 простым. | def is_prime():
n = 365
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 365 простым.
### Response:
def is_prime():
n = 365
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
3,516,211 | en | Python | var_decl | beginner | How to declare a variable value with value 38435 in Python? | value = 38435 | ### Instruction:
How to declare a variable value with value 38435 in Python?
### Response:
value = 38435 |
16,860,505 | kk | C++ | logic_ops | intermediate | C++ тилінде 494 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 494;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 494 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 494;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,839,303 | kk | Python | var_decl | beginner | Python тілінде 497026 мәнімен amount айнымалысын қалай жариялауға болады? | amount = 497026 | ### Instruction:
Python тілінде 497026 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
amount = 497026 |
221,808 | en | Python | var_decl | beginner | How to declare a variable y with value 746912 in Python? | y = 746912 | ### Instruction:
How to declare a variable y with value 746912 in Python?
### Response:
y = 746912 |
73,184,026 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая разворачивает список задом наперед. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
### Response:
const reverseArr = arr => arr.reverse(); |
30,730,745 | ru | C++ | string_ops | advanced | Напишите на C++ функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на C++ функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
50,946,238 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
47,812,843 | 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;
} |
190,427 | ru | C# | sum_n | intermediate | Напиши функцию на C#, которая считает сумму чисел от 1 до 2677. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(2677)); | ### Instruction:
Напиши функцию на C#, которая считает сумму чисел от 1 до 2677.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(2677)); |
53,393,165 | 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;
} |
4,666,213 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 278323 мәнімен score айнымалысын қалай жариялауға болады? | let score = 278323; | ### Instruction:
JavaScript тілінде 278323 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
let score = 278323; |
79,519,925 | kk | C++ | string_ops | advanced | 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;
} |
20,819,952 | en | C# | string_ops | intermediate | Write a function that checks if a string is a palindrome in 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:
Write a function that checks if a string is a palindrome in 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;
} |
3,671,819 | kk | Python | var_decl | beginner | Python тілінде 348488 мәнімен index айнымалысын қалай жариялауға болады? | index = 348488 | ### Instruction:
Python тілінде 348488 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
index = 348488 |
86,244,588 | kk | C++ | logic_ops | intermediate | C++ тилінде 104 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 104;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 104 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 104;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
14,723,720 | kk | Java | array_ops | intermediate | Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
659,456 | en | Unity | var_decl | beginner | How to declare a variable count with value 256035 in Unity? | int count = 256035; | ### Instruction:
How to declare a variable count with value 256035 in Unity?
### Response:
int count = 256035; |
3,311,575 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 432541 мәнімен timer айнымалысын қалай жариялауға болады? | let timer = 432541; | ### Instruction:
JavaScript тілінде 432541 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
let timer = 432541; |
3,508,160 | kk | Java | var_decl | beginner | Java тілінде 740772 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 740772; | ### Instruction:
Java тілінде 740772 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 740772; |
1,184,822 | ru | Unity | var_decl | beginner | Как объявить переменную timer со значением 111067 в Unity? | int timer = 111067; | ### Instruction:
Как объявить переменную timer со значением 111067 в Unity?
### Response:
int timer = 111067; |
15,018,671 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 2037 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 2037;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 2037 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 2037;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
2,024,570 | en | JavaScript | var_decl | beginner | How to declare a variable count with value 112750 in JavaScript? | let count = 112750; | ### Instruction:
How to declare a variable count with value 112750 in JavaScript?
### Response:
let count = 112750; |
70,798,038 | 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);
} |
71,626,225 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
69,554,639 | ru | C++ | logic_ops | intermediate | Напишите на C++ функцию, определяющую, является ли число 385 простым. | public bool IsPrime() {
int n = 385;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 385 простым.
### Response:
public bool IsPrime() {
int n = 385;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
97,469,337 | 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;
} |
58,945,177 | ru | 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;
} |
107,687 | kk | C++ | factorial | advanced | C++ тілінде 7781 санының факториалын есептейтін функция жаз. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(7781) << std::endl; | ### Instruction:
C++ тілінде 7781 санының факториалын есептейтін функция жаз.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(7781) << std::endl; |
1,346,894 | en | Java | var_decl | beginner | How to declare a variable weight with value 487015 in Java? | int weight = 487015; | ### Instruction:
How to declare a variable weight with value 487015 in Java?
### Response:
int weight = 487015; |
1,865,396 | en | Python | var_decl | beginner | How to declare a variable x with value 990742 in Python? | x = 990742 | ### Instruction:
How to declare a variable x with value 990742 in Python?
### Response:
x = 990742 |
808,206 | en | JavaScript | var_decl | beginner | How to declare a variable buffer with value 871847 in JavaScript? | let buffer = 871847; | ### Instruction:
How to declare a variable buffer with value 871847 in JavaScript?
### Response:
let buffer = 871847; |
78,386,632 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
3,288,016 | en | JavaScript | var_decl | beginner | How to declare a variable index with value 524902 in JavaScript? | let index = 524902; | ### Instruction:
How to declare a variable index with value 524902 in JavaScript?
### Response:
let index = 524902; |
53,317,831 | en | Java | logic_ops | intermediate | Write logic to check if the year 1917 is a leap year in Java. | public bool IsLeap() {
int y = 1917;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1917 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1917;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
30,192,266 | en | Python | logic_ops | advanced | Write a function that determines if the number 167 is prime in Python. | def is_prime():
n = 167
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 167 is prime in Python.
### Response:
def is_prime():
n = 167
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
59,412,192 | 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();
} |
20,484,649 | ru | C# | string_ops | intermediate | Напишите на C# функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на C# функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
1,148,776 | en | Java | var_decl | beginner | How to declare a variable health with value 739608 in Java? | int health = 739608; | ### Instruction:
How to declare a variable health with value 739608 in Java?
### Response:
int health = 739608; |
22,863,675 | kk | C# | logic_ops | intermediate | C# тилінде 315 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 315;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 315 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 315;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
43,556,044 | 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);
} |
1,594,885 | en | Java | var_decl | beginner | How to declare a variable x with value 938123 in Java? | int x = 938123; | ### Instruction:
How to declare a variable x with value 938123 in Java?
### Response:
int x = 938123; |
4,775,746 | en | JavaScript | var_decl | beginner | How to declare a variable score with value 162785 in JavaScript? | let score = 162785; | ### Instruction:
How to declare a variable score with value 162785 in JavaScript?
### Response:
let score = 162785; |
54,347,497 | kk | Unity | logic_ops | intermediate | Unity тилінде 287 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 287;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 287 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 287;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,512,046 | kk | Java | var_decl | beginner | Java тілінде 158868 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 158868; | ### Instruction:
Java тілінде 158868 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 158868; |
29,647,724 | ru | 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;
} |
30,588,701 | en | C# | logic_ops | advanced | Write a function that determines if the number 189 is prime in C#. | public bool IsPrime() {
int n = 189;
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 189 is prime in C#.
### Response:
public bool IsPrime() {
int n = 189;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
356,905 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 3985. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(3985) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 3985.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(3985) << std::endl; |
52,337,759 | 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] |
14,369,456 | en | JavaScript | string_ops | intermediate | 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(); |
2,389,629 | en | Java | var_decl | beginner | How to declare a variable count with value 554797 in Java? | int count = 554797; | ### Instruction:
How to declare a variable count with value 554797 in Java?
### Response:
int count = 554797; |
85,774,101 | ru | 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);
} |
2,772,395 | kk | Java | var_decl | beginner | Java тілінде 3307 мәнімен value айнымалысын қалай жариялауға болады? | int value = 3307; | ### Instruction:
Java тілінде 3307 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 3307; |
71,403,166 | kk | Java | string_ops | advanced | Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
58,437,129 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
66,735,767 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 227 is prime in C++. | public bool IsPrime() {
int n = 227;
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 227 is prime in C++.
### Response:
public bool IsPrime() {
int n = 227;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
76,729,217 | 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;
} |
24,081,498 | ru | 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);
} |
2,459,997 | kk | C++ | var_decl | beginner | C++ тілінде 660843 мәнімен data айнымалысын қалай жариялауға болады? | int data = 660843; | ### Instruction:
C++ тілінде 660843 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 660843; |
28,098,730 | 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);
} |
82,180,297 | kk | C++ | logic_ops | intermediate | C++ тилінде 2002 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2002;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2002 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2002;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,448,125 | en | Python | var_decl | beginner | How to declare a variable size with value 118254 in Python? | size = 118254 | ### Instruction:
How to declare a variable size with value 118254 in Python?
### Response:
size = 118254 |
4,381,267 | kk | C# | var_decl | beginner | C# тілінде 647187 мәнімен index айнымалысын қалай жариялауға болады? | int index = 647187; | ### Instruction:
C# тілінде 647187 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 647187; |
283,359 | ru | Python | factorial | advanced | Напиши функцию на Python, которая вычисляет факториал числа 7324. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(7324)) | ### Instruction:
Напиши функцию на Python, которая вычисляет факториал числа 7324.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(7324)) |
52,506,752 | kk | 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;
} |
1,471,989 | en | C++ | var_decl | beginner | How to declare a variable value with value 329361 in C++? | int value = 329361; | ### Instruction:
How to declare a variable value with value 329361 in C++?
### Response:
int value = 329361; |
63,552,210 | ru | 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;
} |
58,068,185 | ru | 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] |
53,760,871 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
75,288,595 | kk | C++ | logic_ops | intermediate | C++ тилінде 333 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 333;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 333 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 333;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,070,113 | ru | Java | var_decl | beginner | Как объявить переменную count со значением 737519 в Java? | int count = 737519; | ### Instruction:
Как объявить переменную count со значением 737519 в Java?
### Response:
int count = 737519; |
47,768,638 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
401,602 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 2121. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(2121) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 2121.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(2121) << std::endl; |
70,310,449 | 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;
} |
44,449,088 | ru | 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);
} |
489,021 | kk | JavaScript | factorial | advanced | JavaScript тілінде 1690 санының факториалын есептейтін функция жаз. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1690)); | ### Instruction:
JavaScript тілінде 1690 санының факториалын есептейтін функция жаз.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1690)); |
21,582,072 | ru | C++ | logic_ops | intermediate | Напишите на C++ функцию, определяющую, является ли число 385 простым. | public bool IsPrime() {
int n = 385;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 385 простым.
### Response:
public bool IsPrime() {
int n = 385;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
93,133,723 | ru | C# | string_ops | advanced | Напишите на 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;
} |
96,169 | kk | Java | var_decl | beginner | Java тілінде 201954 мәнімен x айнымалысын қалай жариялауға болады? | int x = 201954; | ### Instruction:
Java тілінде 201954 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 201954; |
70,998,234 | ru | Python | logic_ops | advanced | Напишите на Python функцию, определяющую, является ли число 35 простым. | def is_prime():
n = 35
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 35 простым.
### Response:
def is_prime():
n = 35
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
49,242,914 | 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;
} |
18,931,450 | ru | 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);
} |
4,522,122 | kk | C++ | var_decl | beginner | C++ тілінде 246820 мәнімен x айнымалысын қалай жариялауға болады? | int x = 246820; | ### Instruction:
C++ тілінде 246820 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 246820; |
22,941,303 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 454 простым. | public bool IsPrime() {
int n = 454;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 454 простым.
### Response:
public bool IsPrime() {
int n = 454;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,065,335 | ru | JavaScript | var_decl | beginner | Как объявить переменную x со значением 442988 в JavaScript? | let x = 442988; | ### Instruction:
Как объявить переменную x со значением 442988 в JavaScript?
### Response:
let x = 442988; |
70,862,789 | ru | C# | string_ops | advanced | Напишите на C# функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на C# функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
98,648,028 | en | Java | logic_ops | intermediate | Write logic to check if the year 1981 is a leap year in Java. | public bool IsLeap() {
int y = 1981;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1981 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1981;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
93,765,708 | 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;
} |
3,862,235 | kk | Java | var_decl | beginner | Java тілінде 693200 мәнімен level айнымалысын қалай жариялауға болады? | int level = 693200; | ### Instruction:
Java тілінде 693200 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 693200; |
56,310,320 | en | C# | logic_ops | intermediate | Write a function that determines if the number 498 is prime in C#. | public bool IsPrime() {
int n = 498;
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 498 is prime in C#.
### Response:
public bool IsPrime() {
int n = 498;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,577,929 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 599228 мәнімен limit айнымалысын қалай жариялауға болады? | let limit = 599228; | ### Instruction:
JavaScript тілінде 599228 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
let limit = 599228; |
1,190,147 | ru | C# | var_decl | beginner | Как объявить переменную value со значением 147811 в C#? | int value = 147811; | ### Instruction:
Как объявить переменную value со значением 147811 в C#?
### Response:
int value = 147811; |
19,363,308 | 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;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.