id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
1,098,614 | kk | Unity | var_decl | beginner | Unity тілінде 51685 мәнімен total айнымалысын қалай жариялауға болады? | int total = 51685; | ### Instruction:
Unity тілінде 51685 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 51685; |
3,302,092 | ru | Java | var_decl | beginner | Как объявить переменную total со значением 353506 в Java? | int total = 353506; | ### Instruction:
Как объявить переменную total со значением 353506 в Java?
### Response:
int total = 353506; |
302,256 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 8515. | 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(8515) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 8515.
### 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(8515) << std::endl; |
52,576,253 | en | Java | logic_ops | intermediate | Write a function that determines if the number 499 is prime in Java. | public bool IsPrime() {
int n = 499;
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 499 is prime in Java.
### Response:
public bool IsPrime() {
int n = 499;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,290,411 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 363735 мәнімен level айнымалысын қалай жариялауға болады? | let level = 363735; | ### Instruction:
JavaScript тілінде 363735 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
let level = 363735; |
250,348 | ru | C++ | factorial | advanced | Напиши функцию на C++, которая вычисляет факториал числа 2044. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(2044) << std::endl; | ### Instruction:
Напиши функцию на C++, которая вычисляет факториал числа 2044.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(2044) << std::endl; |
51,799,094 | 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);
} |
2,759,294 | ru | C++ | var_decl | beginner | Как объявить переменную index со значением 28773 в C++? | int index = 28773; | ### Instruction:
Как объявить переменную index со значением 28773 в C++?
### Response:
int index = 28773; |
437,462 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 9896. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(9896)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 9896.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(9896)); |
71,581,368 | kk | Unity | logic_ops | intermediate | Unity тилінде 417 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 417;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 417 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 417;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
73,577,149 | 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;
} |
90,659,321 | en | C# | string_ops | intermediate | Write a function that checks if a string is a palindrome in C#. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in C#.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
2,312,406 | kk | C# | var_decl | beginner | C# тілінде 604913 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 604913; | ### Instruction:
C# тілінде 604913 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 604913; |
20,917,852 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 136 is prime in JavaScript. | function isPrime() {
let n = 136;
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 136 is prime in JavaScript.
### Response:
function isPrime() {
let n = 136;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
25,554,587 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 2096 високосным. | public bool IsLeap() {
int y = 2096;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2096 високосным.
### Response:
public bool IsLeap() {
int y = 2096;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,493,267 | en | C++ | var_decl | beginner | How to declare a variable size with value 165419 in C++? | int size = 165419; | ### Instruction:
How to declare a variable size with value 165419 in C++?
### Response:
int size = 165419; |
65,184,347 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая считает количество гласных букв в тексте. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Напишите на Python функцию, которая считает количество гласных букв в тексте.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
39,356,071 | 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;
} |
30,556,513 | kk | Java | logic_ops | intermediate | Java тилінде 474 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 474;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 474 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 474;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,832,612 | kk | Java | var_decl | beginner | Java тілінде 334971 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 334971; | ### Instruction:
Java тілінде 334971 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 334971; |
2,876,658 | en | C++ | var_decl | beginner | How to declare a variable score with value 371826 in C++? | int score = 371826; | ### Instruction:
How to declare a variable score with value 371826 in C++?
### Response:
int score = 371826; |
78,368,343 | 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аеёиоуыэюя') |
4,834,208 | en | C++ | var_decl | beginner | How to declare a variable x with value 554547 in C++? | int x = 554547; | ### Instruction:
How to declare a variable x with value 554547 in C++?
### Response:
int x = 554547; |
26,276,318 | en | C++ | logic_ops | advanced | Write a function that determines if the number 442 is prime in C++. | public bool IsPrime() {
int n = 442;
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 442 is prime in C++.
### Response:
public bool IsPrime() {
int n = 442;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
76,680,209 | 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;
} |
59,931,077 | ru | Unity | logic_ops | advanced | Напишите на 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);
} |
14,460,017 | 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;
} |
79,848,423 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая разворачивает список задом наперед. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
### Response:
const reverseArr = arr => arr.reverse(); |
4,515,432 | en | Python | var_decl | beginner | How to declare a variable rate with value 527366 in Python? | rate = 527366 | ### Instruction:
How to declare a variable rate with value 527366 in Python?
### Response:
rate = 527366 |
3,570,422 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 21 мәнімен timer айнымалысын қалай жариялауға болады? | let timer = 21; | ### Instruction:
JavaScript тілінде 21 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
let timer = 21; |
64,266,178 | ru | C# | logic_ops | intermediate | Напишите на C# функцию, определяющую, является ли число 118 простым. | public bool IsPrime() {
int n = 118;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 118 простым.
### Response:
public bool IsPrime() {
int n = 118;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
13,295,548 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 291 is prime in JavaScript. | function isPrime() {
let n = 291;
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 291 is prime in JavaScript.
### Response:
function isPrime() {
let n = 291;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
36,404,258 | kk | C# | string_ops | intermediate | C# тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
C# тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
672,919 | kk | Java | factorial | advanced | Java тілінде 1947 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1947)); | ### Instruction:
Java тілінде 1947 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1947)); |
11,833,665 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 458 простым. | public bool IsPrime() {
int n = 458;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 458 простым.
### Response:
public bool IsPrime() {
int n = 458;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
33,558,465 | 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();
} |
37,031,248 | kk | Python | logic_ops | advanced | Python тилінде 1978 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1978
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1978 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1978
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
52,356,183 | 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;
} |
94,052,964 | 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;
} |
101,984 | ru | Python | sum_n | intermediate | Напиши функцию на Python, которая считает сумму чисел от 1 до 623. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(623)) | ### Instruction:
Напиши функцию на Python, которая считает сумму чисел от 1 до 623.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(623)) |
2,138,746 | kk | Python | var_decl | beginner | Python тілінде 138659 мәнімен y айнымалысын қалай жариялауға болады? | y = 138659 | ### Instruction:
Python тілінде 138659 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
y = 138659 |
3,745,745 | kk | Java | var_decl | beginner | Java тілінде 573283 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 573283; | ### Instruction:
Java тілінде 573283 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 573283; |
3,102,443 | kk | C++ | var_decl | beginner | C++ тілінде 28152 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 28152; | ### Instruction:
C++ тілінде 28152 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 28152; |
3,948,031 | en | C++ | var_decl | beginner | How to declare a variable offset with value 394513 in C++? | int offset = 394513; | ### Instruction:
How to declare a variable offset with value 394513 in C++?
### Response:
int offset = 394513; |
378,195 | en | JavaScript | var_decl | beginner | How to declare a variable timer with value 320430 in JavaScript? | let timer = 320430; | ### Instruction:
How to declare a variable timer with value 320430 in JavaScript?
### Response:
let timer = 320430; |
14,314,523 | en | JavaScript | string_ops | intermediate | 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(); |
2,458,612 | kk | C# | var_decl | beginner | C# тілінде 240523 мәнімен index айнымалысын қалай жариялауға болады? | int index = 240523; | ### Instruction:
C# тілінде 240523 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 240523; |
62,644,589 | en | Unity | array_ops | intermediate | Write a function that finds the maximum number in an array in Unity. | 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 Unity.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
627,227 | kk | Java | sum_n | intermediate | Java тілінде 1-ден 8066-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8066)); | ### Instruction:
Java тілінде 1-ден 8066-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8066)); |
15,246,472 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
36,982,010 | en | Python | string_ops | advanced | 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аеёиоуыэюя') |
4,187,650 | en | Python | var_decl | beginner | How to declare a variable health with value 422296 in Python? | health = 422296 | ### Instruction:
How to declare a variable health with value 422296 in Python?
### Response:
health = 422296 |
65,164,472 | 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);
} |
99,804,220 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 1991 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 1991;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 1991 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 1991;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
28,182,525 | 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); |
4,274,125 | en | JavaScript | var_decl | beginner | How to declare a variable health with value 889078 in JavaScript? | let health = 889078; | ### Instruction:
How to declare a variable health with value 889078 in JavaScript?
### Response:
let health = 889078; |
1,859,838 | kk | C# | var_decl | beginner | C# тілінде 435589 мәнімен health айнымалысын қалай жариялауға болады? | int health = 435589; | ### Instruction:
C# тілінде 435589 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 435589; |
37,788,907 | en | Unity | array_ops | intermediate | Write a function that filters only even numbers from a list in Unity. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Unity.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
96,225,602 | en | Java | array_ops | intermediate | Write a function that finds the maximum number in an array in Java. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in Java.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
83,495,012 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
27,981,452 | en | Java | array_ops | advanced | Write a function that finds the maximum number in an array in Java. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in Java.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
78,060 | kk | C++ | factorial | advanced | C++ тілінде 152 санының факториалын есептейтін функция жаз. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(152) << std::endl; | ### Instruction:
C++ тілінде 152 санының факториалын есептейтін функция жаз.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(152) << std::endl; |
28,994,936 | en | Java | logic_ops | advanced | Write a function that determines if the number 333 is prime in Java. | public bool IsPrime() {
int n = 333;
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 333 is prime in Java.
### Response:
public bool IsPrime() {
int n = 333;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
12,527,394 | ru | Unity | string_ops | advanced | Напишите на Unity функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Unity функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
65,604,173 | ru | C++ | string_ops | intermediate | Напишите на C++ функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на C++ функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
11,792,783 | kk | Python | array_ops | intermediate | Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
1,325,330 | ru | C++ | var_decl | beginner | Как объявить переменную buffer со значением 984736 в C++? | int buffer = 984736; | ### Instruction:
Как объявить переменную buffer со значением 984736 в C++?
### Response:
int buffer = 984736; |
99,398,340 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
3,247,651 | kk | C++ | var_decl | beginner | C++ тілінде 858822 мәнімен index айнымалысын қалай жариялауға болады? | int index = 858822; | ### Instruction:
C++ тілінде 858822 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 858822; |
2,711,222 | kk | Unity | var_decl | beginner | Unity тілінде 323396 мәнімен value айнымалысын қалай жариялауға болады? | int value = 323396; | ### Instruction:
Unity тілінде 323396 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 323396; |
3,696,341 | en | C++ | var_decl | beginner | How to declare a variable rate with value 359520 in C++? | int rate = 359520; | ### Instruction:
How to declare a variable rate with value 359520 in C++?
### Response:
int rate = 359520; |
1,137,738 | kk | Unity | var_decl | beginner | Unity тілінде 757466 мәнімен data айнымалысын қалай жариялауға болады? | int data = 757466; | ### Instruction:
Unity тілінде 757466 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 757466; |
37,782,698 | 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();
} |
63,845,316 | en | C# | string_ops | advanced | Write a function that checks if a string is a palindrome in C#. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in C#.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
2,568,793 | en | C++ | var_decl | beginner | How to declare a variable index with value 923575 in C++? | int index = 923575; | ### Instruction:
How to declare a variable index with value 923575 in C++?
### Response:
int index = 923575; |
92,347 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 1098. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(1098)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 1098.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(1098)); |
34,067,578 | ru | C++ | array_ops | intermediate | Напишите на C++ функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на C++ функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
23,723,313 | kk | C# | string_ops | advanced | C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
266,336 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 5541. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(5541));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 5541.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(5541));
} |
604,418 | ru | C# | var_decl | beginner | Как объявить переменную offset со значением 839989 в C#? | int offset = 839989; | ### Instruction:
Как объявить переменную offset со значением 839989 в C#?
### Response:
int offset = 839989; |
41,355,794 | 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;
} |
13,689,886 | 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;
} |
2,158,150 | en | C++ | var_decl | beginner | How to declare a variable level with value 360667 in C++? | int level = 360667; | ### Instruction:
How to declare a variable level with value 360667 in C++?
### Response:
int level = 360667; |
50,885,704 | kk | Java | logic_ops | advanced | Java тилінде 208 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 208;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 208 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 208;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
73,438,511 | en | Java | string_ops | advanced | Write a function that counts vowels in a text in Java. | 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 Java.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
12,780,076 | en | Python | string_ops | intermediate | Write a function that checks if a string is a palindrome in Python. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Write a function that checks if a string is a palindrome in Python.
### Response:
def is_palindrome(s):
return s == s[::-1] |
3,043,008 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 124686 мәнімен rate айнымалысын қалай жариялауға болады? | let rate = 124686; | ### Instruction:
JavaScript тілінде 124686 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
let rate = 124686; |
2,615,758 | ru | C++ | var_decl | beginner | Как объявить переменную limit со значением 472412 в C++? | int limit = 472412; | ### Instruction:
Как объявить переменную limit со значением 472412 в C++?
### Response:
int limit = 472412; |
580,510 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 485. | 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(485) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 485.
### 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(485) << std::endl; |
992,659 | en | Java | var_decl | beginner | How to declare a variable amount with value 820217 in Java? | int amount = 820217; | ### Instruction:
How to declare a variable amount with value 820217 in Java?
### Response:
int amount = 820217; |
4,225,490 | en | Java | var_decl | beginner | How to declare a variable count with value 727143 in Java? | int count = 727143; | ### Instruction:
How to declare a variable count with value 727143 in Java?
### Response:
int count = 727143; |
96,597,631 | en | Java | logic_ops | advanced | Write a function that determines if the number 299 is prime in Java. | public bool IsPrime() {
int n = 299;
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 299 is prime in Java.
### Response:
public bool IsPrime() {
int n = 299;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
71,833,119 | kk | Unity | string_ops | intermediate | Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
3,597,191 | kk | Java | var_decl | beginner | Java тілінде 451166 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 451166; | ### Instruction:
Java тілінде 451166 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 451166; |
875,618 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 886288 мәнімен y айнымалысын қалай жариялауға болады? | let y = 886288; | ### Instruction:
JavaScript тілінде 886288 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
let y = 886288; |
105,697 | ru | Unity | var_decl | beginner | Как объявить переменную index со значением 980408 в Unity? | int index = 980408; | ### Instruction:
Как объявить переменную index со значением 980408 в Unity?
### Response:
int index = 980408; |
78,744,471 | en | JavaScript | array_ops | intermediate | 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); |
43,715,562 | en | Java | logic_ops | intermediate | Write logic to check if the year 1965 is a leap year in Java. | public bool IsLeap() {
int y = 1965;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1965 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1965;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
37,411,341 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
97,476 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 8996. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8996)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 8996.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8996)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.