id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
10,130,884 | 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);
} |
94,866,347 | kk | C++ | string_ops | intermediate | C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
23,278,661 | 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;
} |
4,720,511 | en | Unity | var_decl | beginner | How to declare a variable limit with value 17238 in Unity? | int limit = 17238; | ### Instruction:
How to declare a variable limit with value 17238 in Unity?
### Response:
int limit = 17238; |
4,975,868 | ru | Java | var_decl | beginner | Как объявить переменную health со значением 172527 в Java? | int health = 172527; | ### Instruction:
Как объявить переменную health со значением 172527 в Java?
### Response:
int health = 172527; |
520,505 | ru | Python | var_decl | beginner | Как объявить переменную timer со значением 689761 в Python? | timer = 689761 | ### Instruction:
Как объявить переменную timer со значением 689761 в Python?
### Response:
timer = 689761 |
61,959,601 | 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,848,981 | 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;
} |
35,266,326 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 1968 високосным. | public bool IsLeap() {
int y = 1968;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 1968 високосным.
### Response:
public bool IsLeap() {
int y = 1968;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
81,706,313 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 2095 високосным. | public bool IsLeap() {
int y = 2095;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2095 високосным.
### Response:
public bool IsLeap() {
int y = 2095;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
36,343,829 | 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);
} |
3,120,566 | en | Java | var_decl | beginner | How to declare a variable count with value 572609 in Java? | int count = 572609; | ### Instruction:
How to declare a variable count with value 572609 in Java?
### Response:
int count = 572609; |
73,604,033 | kk | 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;
} |
94,714,909 | 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(''); |
84,695,022 | en | Unity | logic_ops | advanced | Write logic to check if the year 1953 is a leap year in Unity. | public bool IsLeap() {
int y = 1953;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1953 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1953;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,873,339 | kk | C++ | var_decl | beginner | C++ тілінде 998540 мәнімен data айнымалысын қалай жариялауға болады? | int data = 998540; | ### Instruction:
C++ тілінде 998540 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 998540; |
63,561,715 | en | Java | array_ops | intermediate | Write a function that reverses a list in Java. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Java.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
70,074,656 | 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;
} |
74,499 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 960. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(960) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 960.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(960) << std::endl; |
4,661,529 | ru | Unity | var_decl | beginner | Как объявить переменную total со значением 241389 в Unity? | int total = 241389; | ### Instruction:
Как объявить переменную total со значением 241389 в Unity?
### Response:
int total = 241389; |
51,282,264 | en | Unity | string_ops | intermediate | Write a function that checks if a string is a palindrome in 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:
Write a function that checks if a string is a palindrome in 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;
} |
98,447,123 | en | C++ | logic_ops | intermediate | Write logic to check if the year 1907 is a leap year in C++. | public bool IsLeap() {
int y = 1907;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1907 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 1907;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,877,634 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 643699 мәнімен result айнымалысын қалай жариялауға болады? | let result = 643699; | ### Instruction:
JavaScript тілінде 643699 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
let result = 643699; |
33,651,406 | ru | Python | logic_ops | advanced | Напишите на Python функцию, определяющую, является ли число 228 простым. | def is_prime():
n = 228
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 228 простым.
### Response:
def is_prime():
n = 228
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
46,213,173 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 327 простым. | def is_prime():
n = 327
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 327 простым.
### Response:
def is_prime():
n = 327
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
82,831,294 | 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;
} |
39,092,675 | en | Unity | logic_ops | advanced | Write logic to check if the year 2065 is a leap year in Unity. | public bool IsLeap() {
int y = 2065;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2065 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2065;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,415,376 | ru | C++ | var_decl | beginner | Как объявить переменную timer со значением 978351 в C++? | int timer = 978351; | ### Instruction:
Как объявить переменную timer со значением 978351 в C++?
### Response:
int timer = 978351; |
53,531,876 | ru | 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;
} |
338,382 | ru | C# | sum_n | intermediate | Напиши функцию на C#, которая считает сумму чисел от 1 до 5422. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(5422)); | ### Instruction:
Напиши функцию на C#, которая считает сумму чисел от 1 до 5422.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(5422)); |
3,472,644 | ru | JavaScript | var_decl | beginner | Как объявить переменную score со значением 297192 в JavaScript? | let score = 297192; | ### Instruction:
Как объявить переменную score со значением 297192 в JavaScript?
### Response:
let score = 297192; |
82,212,728 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 1910 високосным. | public bool IsLeap() {
int y = 1910;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 1910 високосным.
### Response:
public bool IsLeap() {
int y = 1910;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
271,567 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 2829-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(2829)) | ### Instruction:
Python тілінде 1-ден 2829-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(2829)) |
55,685,518 | 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;
} |
1,818,620 | en | C# | var_decl | beginner | How to declare a variable size with value 298161 in C#? | int size = 298161; | ### Instruction:
How to declare a variable size with value 298161 in C#?
### Response:
int size = 298161; |
2,254,991 | ru | C++ | var_decl | beginner | Как объявить переменную timer со значением 265711 в C++? | int timer = 265711; | ### Instruction:
Как объявить переменную timer со значением 265711 в C++?
### Response:
int timer = 265711; |
56,433,186 | 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);
} |
61,134,778 | kk | C++ | logic_ops | advanced | C++ тилінде 438 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 438;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 438 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 438;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
81,825,457 | 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;
} |
24,890,905 | 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;
} |
93,480,971 | en | Java | array_ops | intermediate | Write a function that reverses a list in Java. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Java.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
14,823,972 | kk | Java | logic_ops | intermediate | Java тилінде 2020 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2020;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 2020 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2020;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
58,781,321 | kk | Java | logic_ops | advanced | Java тилінде 277 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 277;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 277 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 277;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,638,081 | en | C# | var_decl | beginner | How to declare a variable speed with value 30162 in C#? | int speed = 30162; | ### Instruction:
How to declare a variable speed with value 30162 in C#?
### Response:
int speed = 30162; |
62,831,868 | kk | C# | logic_ops | advanced | C# тилінде 1940 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1940;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1940 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1940;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
252,587 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 107024 мәнімен data айнымалысын қалай жариялауға болады? | let data = 107024; | ### Instruction:
JavaScript тілінде 107024 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
let data = 107024; |
3,358,719 | en | C++ | var_decl | beginner | How to declare a variable value with value 46924 in C++? | int value = 46924; | ### Instruction:
How to declare a variable value with value 46924 in C++?
### Response:
int value = 46924; |
96,292,673 | 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] |
69,782,562 | 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;
} |
59,816,014 | 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;
} |
75,175,545 | en | Java | string_ops | advanced | Write a function that converts a string to uppercase in Java. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in Java.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
2,647,725 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 396922 мәнімен score айнымалысын қалай жариялауға болады? | let score = 396922; | ### Instruction:
JavaScript тілінде 396922 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
let score = 396922; |
97,953,867 | kk | C# | logic_ops | advanced | C# тилінде 59 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 59;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 59 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 59;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,361,443 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 451884 мәнімен value айнымалысын қалай жариялауға болады? | let value = 451884; | ### Instruction:
JavaScript тілінде 451884 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
let value = 451884; |
42,443,131 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript функцию, определяющую, является ли число 149 простым. | function isPrime() {
let n = 149;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 149 простым.
### Response:
function isPrime() {
let n = 149;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
12,171,615 | kk | Java | array_ops | intermediate | Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
2,476,593 | en | C++ | var_decl | beginner | How to declare a variable buffer with value 5064 in C++? | int buffer = 5064; | ### Instruction:
How to declare a variable buffer with value 5064 in C++?
### Response:
int buffer = 5064; |
44,785,517 | kk | JavaScript | array_ops | advanced | JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | const getMax = arr => Math.max(...arr); | ### Instruction:
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
const getMax = arr => Math.max(...arr); |
851,718 | kk | Python | factorial | advanced | Python тілінде 3584 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(3584)) | ### Instruction:
Python тілінде 3584 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(3584)) |
55,374,294 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 1983 високосным. | public bool IsLeap() {
int y = 1983;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 1983 високосным.
### Response:
public bool IsLeap() {
int y = 1983;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
12,621,853 | en | Unity | logic_ops | advanced | Write a function that determines if the number 318 is prime in Unity. | public bool IsPrime() {
int n = 318;
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 318 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 318;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,666,928 | en | Unity | var_decl | beginner | How to declare a variable level with value 117134 in Unity? | int level = 117134; | ### Instruction:
How to declare a variable level with value 117134 in Unity?
### Response:
int level = 117134; |
410,437 | kk | Java | factorial | advanced | Java тілінде 7650 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7650)); | ### Instruction:
Java тілінде 7650 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7650)); |
4,691,640 | ru | Unity | var_decl | beginner | Как объявить переменную total со значением 540380 в Unity? | int total = 540380; | ### Instruction:
Как объявить переменную total со значением 540380 в Unity?
### Response:
int total = 540380; |
74,331,936 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая разворачивает список задом наперед. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
### Response:
const reverseArr = arr => arr.reverse(); |
965,173 | kk | Python | var_decl | beginner | Python тілінде 239190 мәнімен y айнымалысын қалай жариялауға болады? | y = 239190 | ### Instruction:
Python тілінде 239190 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
y = 239190 |
2,917,024 | kk | C# | var_decl | beginner | C# тілінде 335402 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 335402; | ### Instruction:
C# тілінде 335402 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 335402; |
63,343,266 | kk | C++ | logic_ops | intermediate | C++ тилінде 2100 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2100;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2100 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2100;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,661,745 | ru | Java | var_decl | beginner | Как объявить переменную index со значением 44364 в Java? | int index = 44364; | ### Instruction:
Как объявить переменную index со значением 44364 в Java?
### Response:
int index = 44364; |
31,134,945 | en | JavaScript | string_ops | advanced | Write a function that converts a string to uppercase in JavaScript. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Write a function that converts a string to uppercase in JavaScript.
### Response:
const toUpper = s => s.toUpperCase(); |
81,123,295 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 1909 is a leap year in JavaScript. | function isLeap() {
let y = 1909;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1909 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1909;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
99,480,560 | en | C# | string_ops | intermediate | Write a function that counts vowels in a text in C#. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in C#.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
64,584,187 | ru | Unity | string_ops | advanced | Напишите на Unity функцию, которая считает количество гласных букв в тексте. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Напишите на Unity функцию, которая считает количество гласных букв в тексте.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
354,711 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 6970. | int sum_to_n(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
std::cout << sum_to_n(6970) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 6970.
### Response:
int sum_to_n(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
std::cout << sum_to_n(6970) << std::endl; |
99,010,141 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 2057 is a leap year in JavaScript. | function isLeap() {
let y = 2057;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2057 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2057;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
2,317,929 | ru | Unity | var_decl | beginner | Как объявить переменную timer со значением 856428 в Unity? | int timer = 856428; | ### Instruction:
Как объявить переменную timer со значением 856428 в Unity?
### Response:
int timer = 856428; |
58,259,675 | en | C# | string_ops | intermediate | Write a function that counts vowels in a text in C#. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in C#.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
92,056,726 | 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);
} |
199,001 | kk | JavaScript | factorial | advanced | JavaScript тілінде 2465 санының факториалын есептейтін функция жаз. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(2465)); | ### Instruction:
JavaScript тілінде 2465 санының факториалын есептейтін функция жаз.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(2465)); |
48,403,068 | ru | 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;
} |
228,127 | kk | Python | factorial | advanced | Python тілінде 123 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(123)) | ### Instruction:
Python тілінде 123 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(123)) |
31,335,838 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая фильтрует только четные числа из списка. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Напишите на Python функцию, которая фильтрует только четные числа из списка.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
2,875,427 | en | C++ | var_decl | beginner | How to declare a variable amount with value 731447 in C++? | int amount = 731447; | ### Instruction:
How to declare a variable amount with value 731447 in C++?
### Response:
int amount = 731447; |
3,243,010 | en | C# | var_decl | beginner | How to declare a variable buffer with value 135334 in C#? | int buffer = 135334; | ### Instruction:
How to declare a variable buffer with value 135334 in C#?
### Response:
int buffer = 135334; |
10,504,068 | kk | C# | string_ops | intermediate | C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
364,090 | ru | Python | sum_n | intermediate | Напиши функцию на Python, которая считает сумму чисел от 1 до 2654. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(2654)) | ### Instruction:
Напиши функцию на Python, которая считает сумму чисел от 1 до 2654.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(2654)) |
61,541,028 | 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;
} |
573,613 | ru | Python | var_decl | beginner | Как объявить переменную x со значением 221886 в Python? | x = 221886 | ### Instruction:
Как объявить переменную x со значением 221886 в Python?
### Response:
x = 221886 |
4,623,573 | en | Java | var_decl | beginner | How to declare a variable total with value 625428 in Java? | int total = 625428; | ### Instruction:
How to declare a variable total with value 625428 in Java?
### Response:
int total = 625428; |
12,627,854 | ru | 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;
} |
98,172,946 | kk | C++ | logic_ops | advanced | C++ тилінде 304 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 304;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 304 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 304;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
54,076,133 | 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,155,526 | en | Python | var_decl | beginner | How to declare a variable amount with value 241582 in Python? | amount = 241582 | ### Instruction:
How to declare a variable amount with value 241582 in Python?
### Response:
amount = 241582 |
14,017 | ru | Unity | func_def | intermediate | Напиши функцию process в Unity, которая принимает limit и удваивает его. | int process(int limit) {
return limit * 2;
} | ### Instruction:
Напиши функцию process в Unity, которая принимает limit и удваивает его.
### Response:
int process(int limit) {
return limit * 2;
} |
63,997,972 | kk | Java | array_ops | advanced | 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;
} |
60,424,209 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 2080 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 2080;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 2080 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 2080;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
414,092 | kk | Java | var_decl | beginner | Java тілінде 531553 мәнімен size айнымалысын қалай жариялауға болады? | int size = 531553; | ### Instruction:
Java тілінде 531553 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 531553; |
1,490,892 | en | Python | var_decl | beginner | How to declare a variable health with value 590905 in Python? | health = 590905 | ### Instruction:
How to declare a variable health with value 590905 in Python?
### Response:
health = 590905 |
3,897,495 | en | JavaScript | var_decl | beginner | How to declare a variable value with value 52479 in JavaScript? | let value = 52479; | ### Instruction:
How to declare a variable value with value 52479 in JavaScript?
### Response:
let value = 52479; |
2,890,389 | en | JavaScript | var_decl | beginner | How to declare a variable level with value 171237 in JavaScript? | let level = 171237; | ### Instruction:
How to declare a variable level with value 171237 in JavaScript?
### Response:
let level = 171237; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.