id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
44,002,731 | kk | C++ | logic_ops | advanced | C++ тилінде 2031 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2031;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2031 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2031;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,277,820 | ru | JavaScript | var_decl | beginner | Как объявить переменную weight со значением 218514 в JavaScript? | let weight = 218514; | ### Instruction:
Как объявить переменную weight со значением 218514 в JavaScript?
### Response:
let weight = 218514; |
844,136 | en | Python | var_decl | beginner | How to declare a variable result with value 238607 in Python? | result = 238607 | ### Instruction:
How to declare a variable result with value 238607 in Python?
### Response:
result = 238607 |
81,127,880 | kk | Java | logic_ops | intermediate | Java тилінде 1975 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1975;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1975 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1975;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
28,621,860 | kk | 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;
} |
76,699,057 | ru | 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;
} |
2,818,210 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 780543 мәнімен result айнымалысын қалай жариялауға болады? | let result = 780543; | ### Instruction:
JavaScript тілінде 780543 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
let result = 780543; |
3,231,650 | kk | Unity | var_decl | beginner | Unity тілінде 138620 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 138620; | ### Instruction:
Unity тілінде 138620 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 138620; |
2,150,346 | ru | C# | var_decl | beginner | Как объявить переменную offset со значением 277306 в C#? | int offset = 277306; | ### Instruction:
Как объявить переменную offset со значением 277306 в C#?
### Response:
int offset = 277306; |
3,908,074 | kk | Python | var_decl | beginner | Python тілінде 632521 мәнімен total айнымалысын қалай жариялауға болады? | total = 632521 | ### Instruction:
Python тілінде 632521 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
total = 632521 |
2,768,159 | ru | C# | var_decl | beginner | Как объявить переменную amount со значением 299118 в C#? | int amount = 299118; | ### Instruction:
Как объявить переменную amount со значением 299118 в C#?
### Response:
int amount = 299118; |
2,964,251 | kk | Java | var_decl | beginner | Java тілінде 962569 мәнімен level айнымалысын қалай жариялауға болады? | int level = 962569; | ### Instruction:
Java тілінде 962569 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 962569; |
4,964,631 | en | C++ | var_decl | beginner | How to declare a variable y with value 275185 in C++? | int y = 275185; | ### Instruction:
How to declare a variable y with value 275185 in C++?
### Response:
int y = 275185; |
93,745,106 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
4,698,831 | ru | Java | var_decl | beginner | Как объявить переменную rate со значением 594809 в Java? | int rate = 594809; | ### Instruction:
Как объявить переменную rate со значением 594809 в Java?
### Response:
int rate = 594809; |
340,109 | ru | C# | var_decl | beginner | Как объявить переменную timer со значением 838514 в C#? | int timer = 838514; | ### Instruction:
Как объявить переменную timer со значением 838514 в C#?
### Response:
int timer = 838514; |
88,893,296 | kk | Java | logic_ops | advanced | Java тилінде 2061 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2061;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 2061 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2061;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
83,902,402 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 1905 is a leap year in JavaScript. | function isLeap() {
let y = 1905;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1905 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1905;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
501,263 | kk | Java | sum_n | intermediate | Java тілінде 1-ден 5420-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(5420)); | ### Instruction:
Java тілінде 1-ден 5420-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(5420)); |
1,205,873 | en | C++ | var_decl | beginner | How to declare a variable y with value 735389 in C++? | int y = 735389; | ### Instruction:
How to declare a variable y with value 735389 in C++?
### Response:
int y = 735389; |
2,510,069 | kk | Java | var_decl | beginner | Java тілінде 186628 мәнімен data айнымалысын қалай жариялауға болады? | int data = 186628; | ### Instruction:
Java тілінде 186628 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 186628; |
50,054,142 | kk | Unity | array_ops | intermediate | Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
14,630,447 | 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;
} |
90,665,717 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая проверяет, является ли строка палиндромом. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
### Response:
def is_palindrome(s):
return s == s[::-1] |
10,499,468 | en | JavaScript | array_ops | intermediate | Write a function that reverses a list in JavaScript. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Write a function that reverses a list in JavaScript.
### Response:
const reverseArr = arr => arr.reverse(); |
70,170,191 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 1918 is a leap year in JavaScript. | function isLeap() {
let y = 1918;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1918 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1918;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
44,387,472 | en | Python | array_ops | intermediate | Write a function that filters only even numbers from a list in Python. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Write a function that filters only even numbers from a list in Python.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
87,753,552 | en | JavaScript | string_ops | advanced | Write a function that checks if a string is a palindrome in JavaScript. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Write a function that checks if a string is a palindrome in JavaScript.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
43,450,701 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 457 простым. | public bool IsPrime() {
int n = 457;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 457 простым.
### Response:
public bool IsPrime() {
int n = 457;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
64,284,113 | kk | Python | string_ops | intermediate | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
31,833,036 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 1902 високосным. | def is_leap():
year = 1902
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1902 високосным.
### Response:
def is_leap():
year = 1902
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
14,023,755 | 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();
} |
805,129 | en | Unity | var_decl | beginner | How to declare a variable result with value 465214 in Unity? | int result = 465214; | ### Instruction:
How to declare a variable result with value 465214 in Unity?
### Response:
int result = 465214; |
51,640,636 | ru | Java | logic_ops | intermediate | Напишите на Java функцию, определяющую, является ли число 126 простым. | public bool IsPrime() {
int n = 126;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 126 простым.
### Response:
public bool IsPrime() {
int n = 126;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,239,872 | en | JavaScript | var_decl | beginner | How to declare a variable timer with value 712552 in JavaScript? | let timer = 712552; | ### Instruction:
How to declare a variable timer with value 712552 in JavaScript?
### Response:
let timer = 712552; |
70,596,585 | kk | C++ | logic_ops | intermediate | C++ тилінде 283 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 283;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 283 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 283;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
38,103,033 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 168 is prime in JavaScript. | function isPrime() {
let n = 168;
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 168 is prime in JavaScript.
### Response:
function isPrime() {
let n = 168;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
93,314,433 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 2023 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 2023;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 2023 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 2023;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
71,106,747 | ru | Java | logic_ops | intermediate | Напишите на Java логику проверки, является ли год 1925 високосным. | public bool IsLeap() {
int y = 1925;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 1925 високосным.
### Response:
public bool IsLeap() {
int y = 1925;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,998,462 | kk | Unity | var_decl | beginner | Unity тілінде 120462 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 120462; | ### Instruction:
Unity тілінде 120462 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 120462; |
87,601,694 | 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;
} |
57,449,632 | 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;
} |
213,765 | kk | Unity | factorial | advanced | Unity тілінде 1225 санының факториалын есептейтін функция жаз. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(1225));
} | ### Instruction:
Unity тілінде 1225 санының факториалын есептейтін функция жаз.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(1225));
} |
297,195 | ru | Unity | var_decl | beginner | Как объявить переменную y со значением 193118 в Unity? | int y = 193118; | ### Instruction:
Как объявить переменную y со значением 193118 в Unity?
### Response:
int y = 193118; |
67,949,361 | 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);
} |
1,898,438 | en | Unity | var_decl | beginner | How to declare a variable health with value 153156 in Unity? | int health = 153156; | ### Instruction:
How to declare a variable health with value 153156 in Unity?
### Response:
int health = 153156; |
30,324,909 | kk | Python | logic_ops | intermediate | Python тилінде 353 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 353
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 353 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 353
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
98,273,925 | ru | Java | logic_ops | intermediate | Напишите на Java логику проверки, является ли год 1963 високосным. | public bool IsLeap() {
int y = 1963;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 1963 високосным.
### Response:
public bool IsLeap() {
int y = 1963;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
76,900,392 | 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();
} |
17,009,537 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 337 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 337;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 337 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 337;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
83,704,372 | kk | Unity | logic_ops | advanced | Unity тилінде 2002 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2002;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2002 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2002;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
82,751,225 | kk | 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;
} |
21,304,985 | 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();
} |
1,063,620 | en | C++ | var_decl | beginner | How to declare a variable rate with value 291862 in C++? | int rate = 291862; | ### Instruction:
How to declare a variable rate with value 291862 in C++?
### Response:
int rate = 291862; |
3,509,759 | en | C++ | var_decl | beginner | How to declare a variable level with value 496437 in C++? | int level = 496437; | ### Instruction:
How to declare a variable level with value 496437 in C++?
### Response:
int level = 496437; |
90,352,439 | en | C# | logic_ops | intermediate | Write a function that determines if the number 205 is prime in C#. | public bool IsPrime() {
int n = 205;
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 205 is prime in C#.
### Response:
public bool IsPrime() {
int n = 205;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
23,153,681 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
218,790 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 7983. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7983)); | ### Instruction:
Write a function in Java that calculates the factorial of 7983.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7983)); |
25,246,758 | ru | C# | string_ops | intermediate | Напишите на C# функцию, которая считает количество гласных букв в тексте. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Напишите на C# функцию, которая считает количество гласных букв в тексте.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
257,033 | ru | Python | var_decl | beginner | Как объявить переменную buffer со значением 988261 в Python? | buffer = 988261 | ### Instruction:
Как объявить переменную buffer со значением 988261 в Python?
### Response:
buffer = 988261 |
83,393,847 | ru | Java | logic_ops | intermediate | Напишите на Java функцию, определяющую, является ли число 244 простым. | public bool IsPrime() {
int n = 244;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 244 простым.
### Response:
public bool IsPrime() {
int n = 244;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
91,293,249 | en | C# | array_ops | advanced | Write a function that filters only even numbers from a list in C#. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in C#.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
2,891 | kk | Python | var_decl | beginner | Python тілінде 795011 мәнімен count айнымалысын қалай жариялауға болады? | count = 795011 | ### Instruction:
Python тілінде 795011 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
count = 795011 |
4,272,366 | en | Unity | var_decl | beginner | How to declare a variable y with value 500786 in Unity? | int y = 500786; | ### Instruction:
How to declare a variable y with value 500786 in Unity?
### Response:
int y = 500786; |
52,502,272 | kk | 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;
} |
18,999,674 | kk | Python | logic_ops | intermediate | Python тилінде 2066 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 2066
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 2066 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 2066
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
31,615,490 | 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;
} |
564,389 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 814197 мәнімен level айнымалысын қалай жариялауға болады? | let level = 814197; | ### Instruction:
JavaScript тілінде 814197 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
let level = 814197; |
77,442,548 | 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); |
59,707,191 | en | C# | logic_ops | advanced | Write a function that determines if the number 350 is prime in C#. | public bool IsPrime() {
int n = 350;
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 350 is prime in C#.
### Response:
public bool IsPrime() {
int n = 350;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,157,623 | ru | Python | var_decl | beginner | Как объявить переменную timer со значением 621762 в Python? | timer = 621762 | ### Instruction:
Как объявить переменную timer со значением 621762 в Python?
### Response:
timer = 621762 |
80,688,437 | 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;
} |
80,882,947 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 300 is prime in C++. | public bool IsPrime() {
int n = 300;
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 300 is prime in C++.
### Response:
public bool IsPrime() {
int n = 300;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
74,308,373 | 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();
} |
93,140,661 | 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();
} |
16,208,004 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
1,028,696 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 780029 мәнімен score айнымалысын қалай жариялауға болады? | let score = 780029; | ### Instruction:
JavaScript тілінде 780029 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
let score = 780029; |
3,378,939 | kk | Java | var_decl | beginner | Java тілінде 611475 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 611475; | ### Instruction:
Java тілінде 611475 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 611475; |
73,461,414 | 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;
} |
563,759 | kk | C# | sum_n | intermediate | C# тілінде 1-ден 2311-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(2311)); | ### Instruction:
C# тілінде 1-ден 2311-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(2311)); |
79,597,374 | 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;
} |
771,452 | en | C# | var_decl | beginner | How to declare a variable value with value 115252 in C#? | int value = 115252; | ### Instruction:
How to declare a variable value with value 115252 in C#?
### Response:
int value = 115252; |
43,433,855 | kk | C# | logic_ops | intermediate | C# тилінде 86 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 86;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 86 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 86;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
82,450,178 | 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(''); |
2,670,784 | en | Python | var_decl | beginner | How to declare a variable size with value 233916 in Python? | size = 233916 | ### Instruction:
How to declare a variable size with value 233916 in Python?
### Response:
size = 233916 |
4,505,452 | ru | Java | var_decl | beginner | Как объявить переменную offset со значением 183718 в Java? | int offset = 183718; | ### Instruction:
Как объявить переменную offset со значением 183718 в Java?
### Response:
int offset = 183718; |
2,201,217 | kk | Unity | var_decl | beginner | Unity тілінде 418527 мәнімен y айнымалысын қалай жариялауға болады? | int y = 418527; | ### Instruction:
Unity тілінде 418527 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
int y = 418527; |
4,644,883 | kk | C# | var_decl | beginner | C# тілінде 564528 мәнімен total айнымалысын қалай жариялауға болады? | int total = 564528; | ### Instruction:
C# тілінде 564528 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 564528; |
43,042,249 | en | Python | string_ops | intermediate | Write a function that counts vowels in a text in Python. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Write a function that counts vowels in a text in Python.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
3,912,005 | en | C++ | var_decl | beginner | How to declare a variable index with value 711575 in C++? | int index = 711575; | ### Instruction:
How to declare a variable index with value 711575 in C++?
### Response:
int index = 711575; |
89,354,289 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая разворачивает список задом наперед. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
### Response:
const reverseArr = arr => arr.reverse(); |
733,257 | en | C# | var_decl | beginner | How to declare a variable weight with value 419124 in C#? | int weight = 419124; | ### Instruction:
How to declare a variable weight with value 419124 in C#?
### Response:
int weight = 419124; |
37,710,626 | en | Python | string_ops | intermediate | Write a function that counts vowels in a text in Python. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Write a function that counts vowels in a text in Python.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
684,987 | en | Unity | var_decl | beginner | How to declare a variable speed with value 556410 in Unity? | int speed = 556410; | ### Instruction:
How to declare a variable speed with value 556410 in Unity?
### Response:
int speed = 556410; |
57,498,454 | 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] |
1,629,151 | ru | JavaScript | var_decl | beginner | Как объявить переменную buffer со значением 683612 в JavaScript? | let buffer = 683612; | ### Instruction:
Как объявить переменную buffer со значением 683612 в JavaScript?
### Response:
let buffer = 683612; |
73,603,364 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 2018 високосным. | public bool IsLeap() {
int y = 2018;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 2018 високосным.
### Response:
public bool IsLeap() {
int y = 2018;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
126,306 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 3474. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(3474)) | ### Instruction:
Write a function in Python that calculates the factorial of 3474.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(3474)) |
3,922,036 | kk | Unity | var_decl | beginner | Unity тілінде 68086 мәнімен total айнымалысын қалай жариялауға болады? | int total = 68086; | ### Instruction:
Unity тілінде 68086 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 68086; |
271,859 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 9135. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(9135)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 9135.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(9135)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.