id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
4,326,939
kk
JavaScript
var_decl
beginner
JavaScript тілінде 617688 мәнімен amount айнымалысын қалай жариялауға болады?
let amount = 617688;
### Instruction: JavaScript тілінде 617688 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: let amount = 617688;
77,251,219
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; }
1,944,470
en
Python
var_decl
beginner
How to declare a variable score with value 448051 in Python?
score = 448051
### Instruction: How to declare a variable score with value 448051 in Python? ### Response: score = 448051
1,024,393
en
C#
var_decl
beginner
How to declare a variable total with value 216989 in C#?
int total = 216989;
### Instruction: How to declare a variable total with value 216989 in C#? ### Response: int total = 216989;
29,710,631
ru
C++
array_ops
advanced
Напишите на C++ функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на C++ функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
24,238,435
ru
Unity
string_ops
advanced
Напишите на Unity функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на Unity функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
73,108,814
en
Python
array_ops
intermediate
Write a function that reverses a list in Python.
def reverse_list(arr): return arr[::-1]
### Instruction: Write a function that reverses a list in Python. ### Response: def reverse_list(arr): return arr[::-1]
23,448,653
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; }
84,831,353
kk
Unity
logic_ops
advanced
Unity тилінде 331 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 331; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 331 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 331; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
10,093,397
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; }
20,270,844
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript логику проверки, является ли год 1940 високосным.
function isLeap() { let y = 1940; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 1940 високосным. ### Response: function isLeap() { let y = 1940; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
73,034,192
en
C++
array_ops
advanced
Write a function that reverses a list in C++.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in C++. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
20,208,347
en
Unity
string_ops
advanced
Write a function that converts a string to uppercase in Unity.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Unity. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
4,506,144
ru
C++
var_decl
beginner
Как объявить переменную amount со значением 502649 в C++?
int amount = 502649;
### Instruction: Как объявить переменную amount со значением 502649 в C++? ### Response: int amount = 502649;
429,095
en
C++
factorial
advanced
Write a function in C++ that calculates the factorial of 1189.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(1189) << std::endl;
### Instruction: Write a function in C++ that calculates the factorial of 1189. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(1189) << std::endl;
93,642,345
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; }
2,963,241
kk
Unity
var_decl
beginner
Unity тілінде 152254 мәнімен y айнымалысын қалай жариялауға болады?
int y = 152254;
### Instruction: Unity тілінде 152254 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 152254;
54,967,467
ru
Java
array_ops
intermediate
Напишите на Java функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на Java функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
1,225,138
en
JavaScript
var_decl
beginner
How to declare a variable limit with value 57376 in JavaScript?
let limit = 57376;
### Instruction: How to declare a variable limit with value 57376 in JavaScript? ### Response: let limit = 57376;
540,586
ru
JavaScript
sum_n
intermediate
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 7338.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(7338));
### Instruction: Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 7338. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(7338));
2,114,159
kk
C#
var_decl
beginner
C# тілінде 566964 мәнімен total айнымалысын қалай жариялауға болады?
int total = 566964;
### Instruction: C# тілінде 566964 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 566964;
71,575,438
ru
JavaScript
logic_ops
advanced
Напишите на JavaScript логику проверки, является ли год 2034 високосным.
function isLeap() { let y = 2034; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 2034 високосным. ### Response: function isLeap() { let y = 2034; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
85,310,651
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]
90,250,151
en
C#
array_ops
advanced
Write a function that reverses a list in C#.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in C#. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
4,136,421
en
Python
var_decl
beginner
How to declare a variable count with value 699748 in Python?
count = 699748
### Instruction: How to declare a variable count with value 699748 in Python? ### Response: count = 699748
4,746,028
kk
Java
var_decl
beginner
Java тілінде 583725 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 583725;
### Instruction: Java тілінде 583725 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 583725;
4,200,661
kk
Unity
var_decl
beginner
Unity тілінде 642033 мәнімен count айнымалысын қалай жариялауға болады?
int count = 642033;
### Instruction: Unity тілінде 642033 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 642033;
507,209
en
Java
var_decl
beginner
How to declare a variable speed with value 999943 in Java?
int speed = 999943;
### Instruction: How to declare a variable speed with value 999943 in Java? ### Response: int speed = 999943;
52,456,601
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аеёиоуыэюя')
39,536,159
kk
Unity
string_ops
intermediate
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
4,427
kk
JavaScript
var_decl
beginner
JavaScript тілінде 449812 мәнімен rate айнымалысын қалай жариялауға болады?
let rate = 449812;
### Instruction: JavaScript тілінде 449812 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: let rate = 449812;
76,447,596
kk
Java
logic_ops
advanced
Java тилінде 2029 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2029; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 2029 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2029; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
61,263,777
ru
Java
array_ops
advanced
Напишите на Java функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Java функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
22,802,782
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; }
32,100,824
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; }
1,436,033
en
Unity
var_decl
beginner
How to declare a variable offset with value 651542 in Unity?
int offset = 651542;
### Instruction: How to declare a variable offset with value 651542 in Unity? ### Response: int offset = 651542;
81,477,782
ru
C#
array_ops
intermediate
Напишите на C# функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на C# функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
3,980,444
ru
C++
var_decl
beginner
Как объявить переменную index со значением 35249 в C++?
int index = 35249;
### Instruction: Как объявить переменную index со значением 35249 в C++? ### Response: int index = 35249;
15,972,621
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
62,517,079
kk
Java
string_ops
intermediate
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; }
2,892,924
en
C++
var_decl
beginner
How to declare a variable timer with value 692134 in C++?
int timer = 692134;
### Instruction: How to declare a variable timer with value 692134 in C++? ### Response: int timer = 692134;
93,976,495
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; }
85,734,394
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; }
87,822,058
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(); }
70,745,240
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
75,483,157
ru
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);
13,721,560
en
Java
logic_ops
advanced
Write a function that determines if the number 244 is prime in Java.
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: Write a function that determines if the number 244 is prime in Java. ### 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; }
87,653,871
en
Python
logic_ops
intermediate
Write a function that determines if the number 372 is prime in Python.
def is_prime(): n = 372 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 372 is prime in Python. ### Response: def is_prime(): n = 372 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
85,389,261
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); }
4,301,298
ru
JavaScript
var_decl
beginner
Как объявить переменную score со значением 971220 в JavaScript?
let score = 971220;
### Instruction: Как объявить переменную score со значением 971220 в JavaScript? ### Response: let score = 971220;
1,754,276
ru
C#
var_decl
beginner
Как объявить переменную speed со значением 710823 в C#?
int speed = 710823;
### Instruction: Как объявить переменную speed со значением 710823 в C#? ### Response: int speed = 710823;
2,129,857
ru
Java
var_decl
beginner
Как объявить переменную rate со значением 300813 в Java?
int rate = 300813;
### Instruction: Как объявить переменную rate со значением 300813 в Java? ### Response: int rate = 300813;
2,326,286
en
Python
var_decl
beginner
How to declare a variable limit with value 528599 in Python?
limit = 528599
### Instruction: How to declare a variable limit with value 528599 in Python? ### Response: limit = 528599
4,256,231
en
C#
var_decl
beginner
How to declare a variable count with value 282094 in C#?
int count = 282094;
### Instruction: How to declare a variable count with value 282094 in C#? ### Response: int count = 282094;
1,645,402
en
Python
var_decl
beginner
How to declare a variable y with value 443092 in Python?
y = 443092
### Instruction: How to declare a variable y with value 443092 in Python? ### Response: y = 443092
19,658,447
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]
1,422,242
en
Unity
var_decl
beginner
How to declare a variable value with value 746013 in Unity?
int value = 746013;
### Instruction: How to declare a variable value with value 746013 in Unity? ### Response: int value = 746013;
75,246,511
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); }
508,966
ru
JavaScript
factorial
advanced
Напиши функцию на JavaScript, которая вычисляет факториал числа 8762.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(8762));
### Instruction: Напиши функцию на JavaScript, которая вычисляет факториал числа 8762. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(8762));
93,779
en
C++
factorial
advanced
Write a function in C++ that calculates the factorial of 7079.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(7079) << std::endl;
### Instruction: Write a function in C++ that calculates the factorial of 7079. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(7079) << std::endl;
32,918,831
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; }
86,806,721
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; }
3,922,593
en
JavaScript
var_decl
beginner
How to declare a variable index with value 384728 in JavaScript?
let index = 384728;
### Instruction: How to declare a variable index with value 384728 in JavaScript? ### Response: let index = 384728;
30,635,438
ru
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,383,502
kk
JavaScript
var_decl
beginner
JavaScript тілінде 598886 мәнімен x айнымалысын қалай жариялауға болады?
let x = 598886;
### Instruction: JavaScript тілінде 598886 мәнімен x айнымалысын қалай жариялауға болады? ### Response: let x = 598886;
84,556,093
ru
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; }
376,665
ru
C++
var_decl
beginner
Как объявить переменную score со значением 924551 в C++?
int score = 924551;
### Instruction: Как объявить переменную score со значением 924551 в C++? ### Response: int score = 924551;
91,807,209
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 496 is prime in JavaScript.
function isPrime() { let n = 496; 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 496 is prime in JavaScript. ### Response: function isPrime() { let n = 496; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
22,796,107
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; }
77,730,955
kk
Java
logic_ops
advanced
Java тилінде 248 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 248; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 248 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 248; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
90,083,215
en
Python
string_ops
advanced
Write a function that converts a string to uppercase in Python.
def to_upper(s): return s.upper()
### Instruction: Write a function that converts a string to uppercase in Python. ### Response: def to_upper(s): return s.upper()
2,241,697
kk
Java
var_decl
beginner
Java тілінде 935014 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 935014;
### Instruction: Java тілінде 935014 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 935014;
74,348,715
kk
C++
logic_ops
intermediate
C++ тилінде 1997 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1997; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 1997 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1997; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,086,113
ru
JavaScript
var_decl
beginner
Как объявить переменную level со значением 510472 в JavaScript?
let level = 510472;
### Instruction: Как объявить переменную level со значением 510472 в JavaScript? ### Response: let level = 510472;
4,038,235
kk
Python
var_decl
beginner
Python тілінде 270394 мәнімен offset айнымалысын қалай жариялауға болады?
offset = 270394
### Instruction: Python тілінде 270394 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: offset = 270394
31,009,212
kk
Unity
logic_ops
intermediate
Unity тилінде 346 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 346; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 346 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 346; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
33,525,853
kk
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; }
88,218,619
en
Python
array_ops
advanced
Write a function that reverses a list in Python.
def reverse_list(arr): return arr[::-1]
### Instruction: Write a function that reverses a list in Python. ### Response: def reverse_list(arr): return arr[::-1]
2,841,711
ru
C++
var_decl
beginner
Как объявить переменную timer со значением 512420 в C++?
int timer = 512420;
### Instruction: Как объявить переменную timer со значением 512420 в C++? ### Response: int timer = 512420;
67,211,183
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; }
39,148,178
ru
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);
2,656,815
en
Unity
var_decl
beginner
How to declare a variable amount with value 590976 in Unity?
int amount = 590976;
### Instruction: How to declare a variable amount with value 590976 in Unity? ### Response: int amount = 590976;
4,233,827
kk
JavaScript
var_decl
beginner
JavaScript тілінде 700376 мәнімен total айнымалысын қалай жариялауға болады?
let total = 700376;
### Instruction: JavaScript тілінде 700376 мәнімен total айнымалысын қалай жариялауға болады? ### Response: let total = 700376;
4,830,422
en
JavaScript
var_decl
beginner
How to declare a variable health with value 45301 in JavaScript?
let health = 45301;
### Instruction: How to declare a variable health with value 45301 in JavaScript? ### Response: let health = 45301;
3,119,210
en
JavaScript
var_decl
beginner
How to declare a variable count with value 626001 in JavaScript?
let count = 626001;
### Instruction: How to declare a variable count with value 626001 in JavaScript? ### Response: let count = 626001;
82,896,233
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('');
70,105,095
en
C++
string_ops
advanced
Write a function that counts vowels in a text in C++.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in C++. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
33,414,003
ru
Python
string_ops
advanced
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
10,488,926
ru
Java
logic_ops
advanced
Напишите на Java функцию, определяющую, является ли число 233 простым.
public bool IsPrime() { int n = 233; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 233 простым. ### Response: public bool IsPrime() { int n = 233; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
93,708,523
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая находит максимальное число в массиве.
def get_max(arr): return max(arr)
### Instruction: Напишите на Python функцию, которая находит максимальное число в массиве. ### Response: def get_max(arr): return max(arr)
50,257,556
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; }
12,742,472
en
Java
logic_ops
intermediate
Write logic to check if the year 2074 is a leap year in Java.
public bool IsLeap() { int y = 2074; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2074 is a leap year in Java. ### Response: public bool IsLeap() { int y = 2074; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,324,875
kk
C#
var_decl
beginner
C# тілінде 910642 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 910642;
### Instruction: C# тілінде 910642 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 910642;
2,850,850
kk
Python
var_decl
beginner
Python тілінде 540535 мәнімен weight айнымалысын қалай жариялауға болады?
weight = 540535
### Instruction: Python тілінде 540535 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: weight = 540535
997,661
ru
Python
sum_n
intermediate
Напиши функцию на Python, которая считает сумму чисел от 1 до 6675.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(6675))
### Instruction: Напиши функцию на Python, которая считает сумму чисел от 1 до 6675. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(6675))
1,749,830
en
Java
var_decl
beginner
How to declare a variable amount with value 105662 in Java?
int amount = 105662;
### Instruction: How to declare a variable amount with value 105662 in Java? ### Response: int amount = 105662;
73,781,903
kk
JavaScript
string_ops
advanced
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
29,835,787
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);
90,048,339
en
C#
logic_ops
advanced
Write logic to check if the year 1959 is a leap year in C#.
public bool IsLeap() { int y = 1959; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1959 is a leap year in C#. ### Response: public bool IsLeap() { int y = 1959; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,211,406
kk
C#
var_decl
beginner
C# тілінде 439668 мәнімен health айнымалысын қалай жариялауға болады?
int health = 439668;
### Instruction: C# тілінде 439668 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 439668;