id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
71,208,125 | kk | C++ | array_ops | advanced | C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
81,313,417 | ru | C++ | logic_ops | intermediate | Напишите на C++ функцию, определяющую, является ли число 430 простым. | public bool IsPrime() {
int n = 430;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 430 простым.
### Response:
public bool IsPrime() {
int n = 430;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,924,818 | kk | Java | var_decl | beginner | Java тілінде 567689 мәнімен index айнымалысын қалай жариялауға болады? | int index = 567689; | ### Instruction:
Java тілінде 567689 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 567689; |
28,666,471 | kk | JavaScript | array_ops | advanced | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
56,529,563 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 500 простым. | public bool IsPrime() {
int n = 500;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 500 простым.
### Response:
public bool IsPrime() {
int n = 500;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,735,457 | kk | C# | var_decl | beginner | C# тілінде 741552 мәнімен value айнымалысын қалай жариялауға болады? | int value = 741552; | ### Instruction:
C# тілінде 741552 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 741552; |
23,212,870 | en | Unity | logic_ops | advanced | Write logic to check if the year 2041 is a leap year in Unity. | public bool IsLeap() {
int y = 2041;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2041 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2041;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
53,011,841 | kk | JavaScript | array_ops | advanced | JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | const getMax = arr => Math.max(...arr); | ### Instruction:
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
const getMax = arr => Math.max(...arr); |
23,967,290 | en | C# | logic_ops | advanced | Write logic to check if the year 2072 is a leap year in C#. | public bool IsLeap() {
int y = 2072;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2072 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2072;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,070,789 | kk | Java | var_decl | beginner | Java тілінде 603427 мәнімен health айнымалысын қалай жариялауға болады? | int health = 603427; | ### Instruction:
Java тілінде 603427 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 603427; |
4,337,950 | ru | C# | var_decl | beginner | Как объявить переменную offset со значением 134942 в C#? | int offset = 134942; | ### Instruction:
Как объявить переменную offset со значением 134942 в C#?
### Response:
int offset = 134942; |
46,426,249 | ru | 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;
} |
2,465,342 | ru | Python | var_decl | beginner | Как объявить переменную weight со значением 75633 в Python? | weight = 75633 | ### Instruction:
Как объявить переменную weight со значением 75633 в Python?
### Response:
weight = 75633 |
17,325,676 | en | Python | logic_ops | advanced | Write logic to check if the year 2040 is a leap year in Python. | def is_leap():
year = 2040
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2040 is a leap year in Python.
### Response:
def is_leap():
year = 2040
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
22,419,803 | en | Unity | string_ops | intermediate | Write a function that counts vowels in a text in Unity. | 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 Unity.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
59,150,694 | kk | 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;
} |
3,291,402 | kk | Unity | var_decl | beginner | Unity тілінде 92192 мәнімен count айнымалысын қалай жариялауға болады? | int count = 92192; | ### Instruction:
Unity тілінде 92192 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 92192; |
1,392,247 | ru | C++ | var_decl | beginner | Как объявить переменную weight со значением 741398 в C++? | int weight = 741398; | ### Instruction:
Как объявить переменную weight со значением 741398 в C++?
### Response:
int weight = 741398; |
1,722,911 | ru | Unity | var_decl | beginner | Как объявить переменную buffer со значением 751118 в Unity? | int buffer = 751118; | ### Instruction:
Как объявить переменную buffer со значением 751118 в Unity?
### Response:
int buffer = 751118; |
42,702,188 | 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();
} |
33,011,973 | en | C# | string_ops | advanced | 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;
} |
4,945,617 | en | C++ | var_decl | beginner | How to declare a variable limit with value 138292 in C++? | int limit = 138292; | ### Instruction:
How to declare a variable limit with value 138292 in C++?
### Response:
int limit = 138292; |
34,373,532 | 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);
} |
24,278,461 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
73,977 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 392. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(392)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 392.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(392)); |
86,685,199 | kk | Unity | logic_ops | advanced | Unity тилінде 2027 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2027;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2027 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2027;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,754,296 | en | Unity | var_decl | beginner | How to declare a variable offset with value 435496 in Unity? | int offset = 435496; | ### Instruction:
How to declare a variable offset with value 435496 in Unity?
### Response:
int offset = 435496; |
20,648,741 | kk | Python | logic_ops | advanced | Python тилінде 1930 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1930
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1930 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1930
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
50,462,504 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 1946 високосным. | def is_leap():
year = 1946
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1946 високосным.
### Response:
def is_leap():
year = 1946
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
12,380,617 | ru | Java | logic_ops | intermediate | Напишите на Java логику проверки, является ли год 2007 високосным. | public bool IsLeap() {
int y = 2007;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 2007 високосным.
### Response:
public bool IsLeap() {
int y = 2007;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,852,477 | ru | JavaScript | var_decl | beginner | Как объявить переменную result со значением 915449 в JavaScript? | let result = 915449; | ### Instruction:
Как объявить переменную result со значением 915449 в JavaScript?
### Response:
let result = 915449; |
46,447,037 | 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);
} |
88,420,421 | 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);
} |
1,276,541 | kk | Java | var_decl | beginner | Java тілінде 64623 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 64623; | ### Instruction:
Java тілінде 64623 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 64623; |
73,300,950 | 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;
} |
45,426,242 | 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] |
97,276,139 | 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);
} |
1,021,351 | en | JavaScript | var_decl | beginner | How to declare a variable data with value 629478 in JavaScript? | let data = 629478; | ### Instruction:
How to declare a variable data with value 629478 in JavaScript?
### Response:
let data = 629478; |
202,682 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 6836. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(6836)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 6836.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(6836)); |
99,694,899 | en | Python | logic_ops | intermediate | Write logic to check if the year 2000 is a leap year in Python. | def is_leap():
year = 2000
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2000 is a leap year in Python.
### Response:
def is_leap():
year = 2000
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
47,362,198 | ru | 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;
} |
98,315,786 | ru | Java | logic_ops | intermediate | Напишите на Java логику проверки, является ли год 1912 високосным. | public bool IsLeap() {
int y = 1912;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 1912 високосным.
### Response:
public bool IsLeap() {
int y = 1912;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
93,850,573 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 1994 високосным. | function isLeap() {
let y = 1994;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1994 високосным.
### Response:
function isLeap() {
let y = 1994;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
80,844,284 | 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;
} |
51,127,284 | en | Python | logic_ops | advanced | Write a function that determines if the number 365 is prime in Python. | def is_prime():
n = 365
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 365 is prime in Python.
### Response:
def is_prime():
n = 365
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
99,936,214 | en | Java | array_ops | intermediate | Write a function that finds the maximum number in an array in Java. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in Java.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
77,229,240 | kk | C# | array_ops | advanced | C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
354,028 | en | C++ | var_decl | beginner | How to declare a variable count with value 647264 in C++? | int count = 647264; | ### Instruction:
How to declare a variable count with value 647264 in C++?
### Response:
int count = 647264; |
49,243,170 | 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;
} |
2,538,928 | en | JavaScript | var_decl | beginner | How to declare a variable weight with value 829912 in JavaScript? | let weight = 829912; | ### Instruction:
How to declare a variable weight with value 829912 in JavaScript?
### Response:
let weight = 829912; |
3,153,827 | ru | JavaScript | var_decl | beginner | Как объявить переменную x со значением 316666 в JavaScript? | let x = 316666; | ### Instruction:
Как объявить переменную x со значением 316666 в JavaScript?
### Response:
let x = 316666; |
877,172 | kk | JavaScript | sum_n | intermediate | JavaScript тілінде 1-ден 8826-ге дейінгі сандардың қосындысын есептейтін функция жаз. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(8826)); | ### Instruction:
JavaScript тілінде 1-ден 8826-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(8826)); |
2,533,415 | ru | C# | var_decl | beginner | Как объявить переменную weight со значением 420980 в C#? | int weight = 420980; | ### Instruction:
Как объявить переменную weight со значением 420980 в C#?
### Response:
int weight = 420980; |
963,054 | kk | C# | var_decl | beginner | C# тілінде 605474 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 605474; | ### Instruction:
C# тілінде 605474 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 605474; |
63,507,626 | 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;
} |
1,969,607 | ru | Python | var_decl | beginner | Как объявить переменную y со значением 15311 в Python? | y = 15311 | ### Instruction:
Как объявить переменную y со значением 15311 в Python?
### Response:
y = 15311 |
65,204,595 | kk | Python | array_ops | intermediate | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
316,350 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 2454. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(2454)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 2454.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(2454)); |
78,645,316 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
11,909,601 | ru | 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] |
21,079,783 | kk | Python | logic_ops | advanced | Python тилінде 179 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 179
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 179 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 179
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
94,564,328 | kk | 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;
} |
43,647,494 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 20 простым. | public bool IsPrime() {
int n = 20;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 20 простым.
### Response:
public bool IsPrime() {
int n = 20;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
65,249,403 | ru | C++ | logic_ops | intermediate | Напишите на C++ функцию, определяющую, является ли число 492 простым. | public bool IsPrime() {
int n = 492;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 492 простым.
### Response:
public bool IsPrime() {
int n = 492;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
13,363,979 | en | C# | logic_ops | intermediate | Write logic to check if the year 2034 is a leap year in C#. | public bool IsLeap() {
int y = 2034;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2034 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2034;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,643,254 | en | C++ | var_decl | beginner | How to declare a variable count with value 352169 in C++? | int count = 352169; | ### Instruction:
How to declare a variable count with value 352169 in C++?
### Response:
int count = 352169; |
1,530,815 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 135643 мәнімен index айнымалысын қалай жариялауға болады? | let index = 135643; | ### Instruction:
JavaScript тілінде 135643 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
let index = 135643; |
18,959,892 | 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;
} |
79,242,844 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 379 is prime in C++. | public bool IsPrime() {
int n = 379;
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 379 is prime in C++.
### Response:
public bool IsPrime() {
int n = 379;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,311,008 | ru | Python | var_decl | beginner | Как объявить переменную speed со значением 838715 в Python? | speed = 838715 | ### Instruction:
Как объявить переменную speed со значением 838715 в Python?
### Response:
speed = 838715 |
1,716,972 | ru | JavaScript | var_decl | beginner | Как объявить переменную y со значением 977475 в JavaScript? | let y = 977475; | ### Instruction:
Как объявить переменную y со значением 977475 в JavaScript?
### Response:
let y = 977475; |
15,745,492 | kk | Java | string_ops | intermediate | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
4,360,352 | kk | Python | var_decl | beginner | Python тілінде 690967 мәнімен level айнымалысын қалай жариялауға болады? | level = 690967 | ### Instruction:
Python тілінде 690967 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
level = 690967 |
40,249,720 | 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;
} |
1,470,884 | en | Python | var_decl | beginner | How to declare a variable level with value 292542 in Python? | level = 292542 | ### Instruction:
How to declare a variable level with value 292542 in Python?
### Response:
level = 292542 |
54,463,322 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая проверяет, является ли строка палиндромом. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
### Response:
def is_palindrome(s):
return s == s[::-1] |
374,290 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 6357-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6357)) | ### Instruction:
Python тілінде 1-ден 6357-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6357)) |
29,755,461 | ru | C++ | logic_ops | advanced | Напишите на C++ логику проверки, является ли год 2087 високосным. | public bool IsLeap() {
int y = 2087;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 2087 високосным.
### Response:
public bool IsLeap() {
int y = 2087;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,206,972 | kk | C++ | var_decl | beginner | C++ тілінде 320367 мәнімен health айнымалысын қалай жариялауға болады? | int health = 320367; | ### Instruction:
C++ тілінде 320367 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 320367; |
49,692,129 | 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);
} |
1,625,344 | en | Python | var_decl | beginner | How to declare a variable health with value 423667 in Python? | health = 423667 | ### Instruction:
How to declare a variable health with value 423667 in Python?
### Response:
health = 423667 |
4,504,531 | en | Python | var_decl | beginner | How to declare a variable count with value 203585 in Python? | count = 203585 | ### Instruction:
How to declare a variable count with value 203585 in Python?
### Response:
count = 203585 |
610,542 | ru | JavaScript | var_decl | beginner | Как объявить переменную rate со значением 766195 в JavaScript? | let rate = 766195; | ### Instruction:
Как объявить переменную rate со значением 766195 в JavaScript?
### Response:
let rate = 766195; |
23,226,033 | kk | Unity | array_ops | intermediate | Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
1,407,614 | ru | Unity | var_decl | beginner | Как объявить переменную total со значением 156527 в Unity? | int total = 156527; | ### Instruction:
Как объявить переменную total со значением 156527 в Unity?
### Response:
int total = 156527; |
3,500,790 | en | C# | var_decl | beginner | How to declare a variable offset with value 592926 in C#? | int offset = 592926; | ### Instruction:
How to declare a variable offset with value 592926 in C#?
### Response:
int offset = 592926; |
76,126,740 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
4,487,341 | ru | Unity | var_decl | beginner | Как объявить переменную limit со значением 964719 в Unity? | int limit = 964719; | ### Instruction:
Как объявить переменную limit со значением 964719 в Unity?
### Response:
int limit = 964719; |
45,699,059 | ru | Unity | string_ops | advanced | Напишите на Unity функцию, которая проверяет, является ли строка палиндромом. | 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:
Напишите на Unity функцию, которая проверяет, является ли строка палиндромом.
### 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,277,042 | kk | Java | var_decl | beginner | Java тілінде 382301 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 382301; | ### Instruction:
Java тілінде 382301 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 382301; |
14,017,107 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая переводит строку в верхний регистр. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
### Response:
const toUpper = s => s.toUpperCase(); |
86,306,634 | kk | Java | string_ops | advanced | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
635,156 | en | C++ | var_decl | beginner | How to declare a variable limit with value 230074 in C++? | int limit = 230074; | ### Instruction:
How to declare a variable limit with value 230074 in C++?
### Response:
int limit = 230074; |
1,171,904 | ru | C# | var_decl | beginner | Как объявить переменную x со значением 802898 в C#? | int x = 802898; | ### Instruction:
Как объявить переменную x со значением 802898 в C#?
### Response:
int x = 802898; |
28,761,241 | 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; |
3,139,962 | ru | C# | var_decl | beginner | Как объявить переменную timer со значением 561844 в C#? | int timer = 561844; | ### Instruction:
Как объявить переменную timer со значением 561844 в C#?
### Response:
int timer = 561844; |
58,375,780 | en | Unity | logic_ops | intermediate | Write logic to check if the year 1944 is a leap year in Unity. | public bool IsLeap() {
int y = 1944;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1944 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1944;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
48,989,426 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 1988 високосным. | def is_leap():
year = 1988
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1988 високосным.
### Response:
def is_leap():
year = 1988
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
47,378,809 | en | C# | logic_ops | advanced | Write logic to check if the year 1988 is a leap year in C#. | public bool IsLeap() {
int y = 1988;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1988 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 1988;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
262,125 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 8957. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(8957)) | ### Instruction:
Write a function in Python that calculates the factorial of 8957.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(8957)) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.