id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
74,901,572 | 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(''); |
56,301,444 | 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();
} |
2,724,962 | ru | JavaScript | var_decl | beginner | Как объявить переменную limit со значением 514041 в JavaScript? | let limit = 514041; | ### Instruction:
Как объявить переменную limit со значением 514041 в JavaScript?
### Response:
let limit = 514041; |
4,873,647 | en | C# | var_decl | beginner | How to declare a variable timer with value 742050 in C#? | int timer = 742050; | ### Instruction:
How to declare a variable timer with value 742050 in C#?
### Response:
int timer = 742050; |
1,607,745 | ru | Python | var_decl | beginner | Как объявить переменную buffer со значением 543200 в Python? | buffer = 543200 | ### Instruction:
Как объявить переменную buffer со значением 543200 в Python?
### Response:
buffer = 543200 |
63,937,952 | 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;
} |
73,609,673 | en | Java | logic_ops | intermediate | Write a function that determines if the number 228 is prime in Java. | public bool IsPrime() {
int n = 228;
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 228 is prime in Java.
### Response:
public bool IsPrime() {
int n = 228;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
41,429,236 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 2074 високосным. | public bool IsLeap() {
int y = 2074;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2074 високосным.
### Response:
public bool IsLeap() {
int y = 2074;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,694,630 | kk | Java | var_decl | beginner | Java тілінде 197091 мәнімен value айнымалысын қалай жариялауға болады? | int value = 197091; | ### Instruction:
Java тілінде 197091 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 197091; |
524,559 | en | C# | factorial | advanced | Write a function in C# that calculates the factorial of 862. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(862)); | ### Instruction:
Write a function in C# that calculates the factorial of 862.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(862)); |
108,158 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 1677. | 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(1677) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 1677.
### 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(1677) << std::endl; |
42,220,119 | 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;
} |
2,334,888 | ru | C# | var_decl | beginner | Как объявить переменную score со значением 960363 в C#? | int score = 960363; | ### Instruction:
Как объявить переменную score со значением 960363 в C#?
### Response:
int score = 960363; |
1,434,619 | ru | Python | var_decl | beginner | Как объявить переменную size со значением 783107 в Python? | size = 783107 | ### Instruction:
Как объявить переменную size со значением 783107 в Python?
### Response:
size = 783107 |
11,247,807 | en | Java | logic_ops | intermediate | Write logic to check if the year 1974 is a leap year in Java. | public bool IsLeap() {
int y = 1974;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1974 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1974;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
30,425,716 | en | Java | logic_ops | intermediate | Write logic to check if the year 1925 is a leap year in Java. | public bool IsLeap() {
int y = 1925;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1925 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1925;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
91,195,304 | en | Java | logic_ops | advanced | Write logic to check if the year 1945 is a leap year in Java. | public bool IsLeap() {
int y = 1945;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1945 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1945;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,708,733 | kk | Python | var_decl | beginner | Python тілінде 670827 мәнімен speed айнымалысын қалай жариялауға болады? | speed = 670827 | ### Instruction:
Python тілінде 670827 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
speed = 670827 |
83,260,789 | en | C++ | array_ops | intermediate | Write a function that reverses a list in C++. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C++.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
150,333 | kk | C++ | factorial | advanced | C++ тілінде 7365 санының факториалын есептейтін функция жаз. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(7365) << std::endl; | ### Instruction:
C++ тілінде 7365 санының факториалын есептейтін функция жаз.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(7365) << std::endl; |
82,768,652 | kk | 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); |
1,546,915 | en | C# | var_decl | beginner | How to declare a variable rate with value 468342 in C#? | int rate = 468342; | ### Instruction:
How to declare a variable rate with value 468342 in C#?
### Response:
int rate = 468342; |
41,413,868 | 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;
} |
46,668,988 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 80 is prime in C++. | public bool IsPrime() {
int n = 80;
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 80 is prime in C++.
### Response:
public bool IsPrime() {
int n = 80;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
20,407,882 | en | Unity | logic_ops | intermediate | Write logic to check if the year 2063 is a leap year in Unity. | public bool IsLeap() {
int y = 2063;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2063 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2063;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
17,952,967 | kk | JavaScript | array_ops | advanced | JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | const getMax = arr => Math.max(...arr); | ### Instruction:
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
const getMax = arr => Math.max(...arr); |
73,674,317 | en | Unity | logic_ops | intermediate | Write a function that determines if the number 184 is prime in Unity. | public bool IsPrime() {
int n = 184;
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 184 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 184;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
85,987,744 | kk | 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);
} |
486,467 | ru | C++ | var_decl | beginner | Как объявить переменную offset со значением 526240 в C++? | int offset = 526240; | ### Instruction:
Как объявить переменную offset со значением 526240 в C++?
### Response:
int offset = 526240; |
29,258,779 | 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;
} |
65,416,998 | en | JavaScript | array_ops | advanced | Write a function that filters only even numbers from a list in JavaScript. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Write a function that filters only even numbers from a list in JavaScript.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
92,304,451 | en | Unity | array_ops | advanced | Write a function that reverses a list in Unity. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Unity.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
149,407 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 7290. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(7290)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 7290.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(7290)); |
48,249,106 | en | C# | string_ops | intermediate | Write a function that converts a string to uppercase in C#. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in C#.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
1,807,303 | ru | C# | var_decl | beginner | Как объявить переменную data со значением 199770 в C#? | int data = 199770; | ### Instruction:
Как объявить переменную data со значением 199770 в C#?
### Response:
int data = 199770; |
14,597,202 | 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();
} |
11,252,115 | 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;
} |
48,604 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 2860. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(2860)); | ### Instruction:
Write a function in Java that calculates the factorial of 2860.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(2860)); |
78,980,384 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 347 простым. | public bool IsPrime() {
int n = 347;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 347 простым.
### Response:
public bool IsPrime() {
int n = 347;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
28,444,749 | 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;
} |
86,458,828 | 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;
} |
368,487 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 467958 мәнімен offset айнымалысын қалай жариялауға болады? | let offset = 467958; | ### Instruction:
JavaScript тілінде 467958 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
let offset = 467958; |
80,266,699 | en | Python | logic_ops | advanced | Write logic to check if the year 1962 is a leap year in Python. | def is_leap():
year = 1962
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1962 is a leap year in Python.
### Response:
def is_leap():
year = 1962
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
16,807,100 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 1927 високосным. | function isLeap() {
let y = 1927;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1927 високосным.
### Response:
function isLeap() {
let y = 1927;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
12,035,510 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 2086 високосным. | public bool IsLeap() {
int y = 2086;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2086 високосным.
### Response:
public bool IsLeap() {
int y = 2086;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
45,186,841 | 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;
} |
87,824,227 | 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,507,214 | 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;
} |
33,996,434 | kk | Unity | string_ops | intermediate | 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;
} |
308,419 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 3685. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(3685) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 3685.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(3685) << std::endl; |
443,065 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 206451 мәнімен health айнымалысын қалай жариялауға болады? | let health = 206451; | ### Instruction:
JavaScript тілінде 206451 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
let health = 206451; |
76,884,428 | kk | Python | logic_ops | intermediate | Python тилінде 152 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 152
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 152 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 152
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
71,270,745 | en | Python | string_ops | intermediate | 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() |
39,009,296 | kk | C# | logic_ops | intermediate | C# тилінде 272 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 272;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 272 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 272;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
268,576 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 766616 мәнімен data айнымалысын қалай жариялауға болады? | let data = 766616; | ### Instruction:
JavaScript тілінде 766616 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
let data = 766616; |
50,461,305 | ru | C++ | string_ops | intermediate | Напишите на C++ функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на C++ функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
28,503,989 | 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;
} |
39,960,693 | en | Unity | string_ops | advanced | 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;
} |
18,214,351 | kk | Python | logic_ops | advanced | Python тилінде 186 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 186
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 186 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 186
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
96,775,316 | en | Unity | string_ops | advanced | 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;
} |
46,854,035 | 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(''); |
745,133 | en | C++ | var_decl | beginner | How to declare a variable speed with value 51442 in C++? | int speed = 51442; | ### Instruction:
How to declare a variable speed with value 51442 in C++?
### Response:
int speed = 51442; |
2,570,171 | en | Unity | var_decl | beginner | How to declare a variable speed with value 854719 in Unity? | int speed = 854719; | ### Instruction:
How to declare a variable speed with value 854719 in Unity?
### Response:
int speed = 854719; |
892,096 | en | C++ | var_decl | beginner | How to declare a variable buffer with value 363757 in C++? | int buffer = 363757; | ### Instruction:
How to declare a variable buffer with value 363757 in C++?
### Response:
int buffer = 363757; |
88,101,803 | en | Unity | string_ops | intermediate | Write a function that counts vowels in a text in Unity. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in Unity.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
82,626,338 | en | JavaScript | array_ops | advanced | 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(); |
33,991,580 | 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;
} |
49,197,057 | kk | Java | string_ops | advanced | Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
46,395,804 | en | C++ | string_ops | intermediate | Write a function that converts a string to uppercase in C++. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in C++.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
780,606 | kk | Java | sum_n | intermediate | Java тілінде 1-ден 4357-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4357)); | ### Instruction:
Java тілінде 1-ден 4357-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4357)); |
38,485,736 | 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;
} |
915,017 | kk | C# | var_decl | beginner | C# тілінде 277699 мәнімен level айнымалысын қалай жариялауға болады? | int level = 277699; | ### Instruction:
C# тілінде 277699 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 277699; |
37,697,722 | kk | Java | logic_ops | advanced | Java тилінде 2043 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2043;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 2043 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2043;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
57,171,225 | 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;
} |
80,523,150 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
4,066,637 | en | JavaScript | var_decl | beginner | How to declare a variable count with value 280565 in JavaScript? | let count = 280565; | ### Instruction:
How to declare a variable count with value 280565 in JavaScript?
### Response:
let count = 280565; |
44,951,650 | 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();
} |
677,534 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 7303. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(7303));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 7303.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(7303));
} |
73,344,529 | en | C++ | array_ops | intermediate | Write a function that finds the maximum number in an array in C++. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in C++.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
74,283,857 | kk | C++ | logic_ops | advanced | C++ тилінде 1925 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1925;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1925 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1925;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
51,676,159 | ru | Java | array_ops | advanced | Напишите на Java функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Java функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
77,668,050 | ru | 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);
} |
22,049,884 | 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;
} |
10,889,454 | 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;
} |
1,650,508 | kk | C# | var_decl | beginner | C# тілінде 657032 мәнімен index айнымалысын қалай жариялауға болады? | int index = 657032; | ### Instruction:
C# тілінде 657032 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 657032; |
2,764,776 | ru | Python | var_decl | beginner | Как объявить переменную offset со значением 309152 в Python? | offset = 309152 | ### Instruction:
Как объявить переменную offset со значением 309152 в Python?
### Response:
offset = 309152 |
2,198,762 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 973313 мәнімен result айнымалысын қалай жариялауға болады? | let result = 973313; | ### Instruction:
JavaScript тілінде 973313 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
let result = 973313; |
49,329,532 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 1941 is a leap year in JavaScript. | function isLeap() {
let y = 1941;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1941 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1941;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
87,388,682 | kk | Python | array_ops | intermediate | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
94,869,177 | kk | Unity | logic_ops | intermediate | Unity тилінде 1915 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1915;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1915 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1915;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
45,974,393 | 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;
} |
73,391,174 | kk | Unity | logic_ops | advanced | Unity тилінде 137 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 137;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 137 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 137;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
697,019 | kk | Java | var_decl | beginner | Java тілінде 267845 мәнімен score айнымалысын қалай жариялауға болады? | int score = 267845; | ### Instruction:
Java тілінде 267845 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 267845; |
25,941 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 136710 мәнімен amount айнымалысын қалай жариялауға болады? | let amount = 136710; | ### Instruction:
JavaScript тілінде 136710 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
let amount = 136710; |
72,253,305 | kk | Java | logic_ops | advanced | Java тилінде 2034 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2034;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 2034 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2034;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,687,857 | ru | C# | var_decl | beginner | Как объявить переменную health со значением 990414 в C#? | int health = 990414; | ### Instruction:
Как объявить переменную health со значением 990414 в C#?
### Response:
int health = 990414; |
904,917 | kk | Java | var_decl | beginner | Java тілінде 833776 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 833776; | ### Instruction:
Java тілінде 833776 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 833776; |
54,783,457 | kk | Python | logic_ops | advanced | Python тилінде 2016 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 2016
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 2016 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 2016
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
68,692,483 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
87,395,942 | ru | Java | string_ops | advanced | Напишите на Java функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.