id int64 0 100M | language stringclasses 3
values | prog_lang stringclasses 6
values | category stringclasses 10
values | difficulty stringclasses 3
values | instruction stringlengths 30 86 | output stringlengths 7 192 | text stringlengths 92 300 |
|---|---|---|---|---|---|---|---|
55,428,470 | 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аеёиоуыэюя') |
26,199,169 | 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;
} |
401,860 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 4071-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(4071));
} | ### Instruction:
Unity тілінде 1-ден 4071-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(4071));
} |
1,319,634 | kk | Python | var_decl | beginner | Python тілінде 591768 мәнімен health айнымалысын қалай жариялауға болады? | health = 591768 | ### Instruction:
Python тілінде 591768 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
health = 591768 |
4,607,920 | ru | C# | var_decl | beginner | Как объявить переменную index со значением 388614 в C#? | int index = 388614; | ### Instruction:
Как объявить переменную index со значением 388614 в C#?
### Response:
int index = 388614; |
69,658,814 | 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;
} |
47,590,989 | 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);
} |
2,281,648 | en | C# | var_decl | beginner | How to declare a variable value with value 244066 in C#? | int value = 244066; | ### Instruction:
How to declare a variable value with value 244066 in C#?
### Response:
int value = 244066; |
19,155,002 | ru | Java | array_ops | intermediate | Напишите на Java функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на Java функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
39,433,605 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
997,932 | kk | C++ | sum_n | intermediate | C++ тілінде 1-ден 7889-ге дейінгі сандардың қосындысын есептейтін функция жаз. | 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(7889) << std::endl; | ### Instruction:
C++ тілінде 1-ден 7889-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### 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(7889) << std::endl; |
53,010,725 | kk | Unity | string_ops | intermediate | Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
3,843,721 | kk | C# | var_decl | beginner | C# тілінде 199995 мәнімен value айнымалысын қалай жариялауға болады? | int value = 199995; | ### Instruction:
C# тілінде 199995 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 199995; |
3,638,074 | kk | Java | var_decl | beginner | Java тілінде 637225 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 637225; | ### Instruction:
Java тілінде 637225 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 637225; |
4,043,192 | en | Java | var_decl | beginner | How to declare a variable score with value 586850 in Java? | int score = 586850; | ### Instruction:
How to declare a variable score with value 586850 in Java?
### Response:
int score = 586850; |
83,833,144 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
866,562 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 6231. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(6231));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 6231.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(6231));
} |
28,255,978 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
1,463,579 | ru | Unity | var_decl | beginner | Как объявить переменную score со значением 917959 в Unity? | int score = 917959; | ### Instruction:
Как объявить переменную score со значением 917959 в Unity?
### Response:
int score = 917959; |
51,051,267 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
64,057,362 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | const getMax = arr => Math.max(...arr); | ### Instruction:
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
const getMax = arr => Math.max(...arr); |
10,382,481 | 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(); |
3,181,715 | ru | C# | var_decl | beginner | Как объявить переменную level со значением 33694 в C#? | int level = 33694; | ### Instruction:
Как объявить переменную level со значением 33694 в C#?
### Response:
int level = 33694; |
49,626,399 | ru | 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;
} |
2,621,694 | en | C++ | var_decl | beginner | How to declare a variable weight with value 272717 in C++? | int weight = 272717; | ### Instruction:
How to declare a variable weight with value 272717 in C++?
### Response:
int weight = 272717; |
4,821,325 | en | Unity | var_decl | beginner | How to declare a variable health with value 860712 in Unity? | int health = 860712; | ### Instruction:
How to declare a variable health with value 860712 in Unity?
### Response:
int health = 860712; |
17,704,809 | 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,430,974 | ru | JavaScript | var_decl | beginner | Как объявить переменную count со значением 343245 в JavaScript? | let count = 343245; | ### Instruction:
Как объявить переменную count со значением 343245 в JavaScript?
### Response:
let count = 343245; |
930,690 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 2589. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2589)) | ### Instruction:
Write a function in Python that calculates the factorial of 2589.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2589)) |
611,293 | en | C# | var_decl | beginner | How to declare a variable amount with value 677811 in C#? | int amount = 677811; | ### Instruction:
How to declare a variable amount with value 677811 in C#?
### Response:
int amount = 677811; |
19,131,805 | 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;
} |
2,352,222 | en | C# | var_decl | beginner | How to declare a variable buffer with value 938440 in C#? | int buffer = 938440; | ### Instruction:
How to declare a variable buffer with value 938440 in C#?
### Response:
int buffer = 938440; |
78,721,582 | en | Python | logic_ops | intermediate | Write logic to check if the year 1990 is a leap year in Python. | def is_leap():
year = 1990
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1990 is a leap year in Python.
### Response:
def is_leap():
year = 1990
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
4,651,237 | ru | Python | var_decl | beginner | Как объявить переменную speed со значением 470230 в Python? | speed = 470230 | ### Instruction:
Как объявить переменную speed со значением 470230 в Python?
### Response:
speed = 470230 |
42,640,312 | 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);
} |
74,693,310 | 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);
} |
16,524,935 | kk | 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аеёиоуыэюя') |
81,290,549 | kk | 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аеёиоуыэюя') |
18,294,101 | en | Unity | logic_ops | advanced | Write a function that determines if the number 233 is prime in Unity. | public bool IsPrime() {
int n = 233;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Write a function that determines if the number 233 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 233;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
729,833 | kk | Unity | var_decl | beginner | Unity тілінде 61878 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 61878; | ### Instruction:
Unity тілінде 61878 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 61878; |
553,848 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 3145. | 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(3145) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 3145.
### 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(3145) << std::endl; |
24,398,921 | kk | Python | logic_ops | intermediate | Python тилінде 499 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 499
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 499 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 499
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
1,763,877 | en | Java | var_decl | beginner | How to declare a variable weight with value 815496 in Java? | int weight = 815496; | ### Instruction:
How to declare a variable weight with value 815496 in Java?
### Response:
int weight = 815496; |
88,004,148 | 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;
} |
38,282,241 | en | C++ | logic_ops | intermediate | Write logic to check if the year 2039 is a leap year in C++. | public bool IsLeap() {
int y = 2039;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2039 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2039;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
29,882,019 | 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;
} |
68,675,598 | kk | Unity | logic_ops | advanced | Unity тилінде 174 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 174;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 174 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 174;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
72,293,900 | 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);
} |
4,252,110 | kk | Unity | var_decl | beginner | Unity тілінде 630575 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 630575; | ### Instruction:
Unity тілінде 630575 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 630575; |
62,274,383 | 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;
} |
89,530,177 | en | C# | logic_ops | intermediate | Write logic to check if the year 2049 is a leap year in C#. | public bool IsLeap() {
int y = 2049;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2049 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2049;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
76,107,615 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
48,724,770 | kk | C++ | logic_ops | intermediate | C++ тилінде 318 санының жай сан екенін анықтайтын функцияны жазыңыз. | 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:
C++ тилінде 318 санының жай сан екенін анықтайтын функцияны жазыңыз.
### 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;
} |
37,352 | ru | Unity | sum_n | intermediate | Напиши функцию на Unity, которая считает сумму чисел от 1 до 6297. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(6297));
} | ### Instruction:
Напиши функцию на Unity, которая считает сумму чисел от 1 до 6297.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(6297));
} |
96,225,047 | 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);
} |
15,619,384 | 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(''); |
90,606,150 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
660,612 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 2619. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2619)) | ### Instruction:
Write a function in Python that calculates the factorial of 2619.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2619)) |
1,714,312 | ru | C++ | var_decl | beginner | Как объявить переменную level со значением 85164 в C++? | int level = 85164; | ### Instruction:
Как объявить переменную level со значением 85164 в C++?
### Response:
int level = 85164; |
77,676,329 | 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;
} |
455,600 | ru | Python | var_decl | beginner | Как объявить переменную timer со значением 396091 в Python? | timer = 396091 | ### Instruction:
Как объявить переменную timer со значением 396091 в Python?
### Response:
timer = 396091 |
20,027,026 | 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();
} |
3,713,778 | en | JavaScript | var_decl | beginner | How to declare a variable index with value 29911 in JavaScript? | let index = 29911; | ### Instruction:
How to declare a variable index with value 29911 in JavaScript?
### Response:
let index = 29911; |
756,213 | kk | Java | factorial | advanced | Java тілінде 8521 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(8521)); | ### Instruction:
Java тілінде 8521 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(8521)); |
83,962,057 | kk | 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;
} |
277,396 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 5739. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(5739)) | ### Instruction:
Write a function in Python that calculates the factorial of 5739.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(5739)) |
87,177,065 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 31 простым. | public bool IsPrime() {
int n = 31;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 31 простым.
### Response:
public bool IsPrime() {
int n = 31;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
28,031,704 | en | Unity | logic_ops | advanced | Write logic to check if the year 1999 is a leap year in Unity. | public bool IsLeap() {
int y = 1999;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1999 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1999;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
95,228,827 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
11,294,853 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 1972 is a leap year in JavaScript. | function isLeap() {
let y = 1972;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1972 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1972;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
29,801,250 | en | JavaScript | array_ops | advanced | Write a function that finds the maximum number in an array in JavaScript. | const getMax = arr => Math.max(...arr); | ### Instruction:
Write a function that finds the maximum number in an array in JavaScript.
### Response:
const getMax = arr => Math.max(...arr); |
58,979,226 | en | C# | string_ops | advanced | Write a function that converts a string to uppercase in C#. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in C#.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
815,971 | kk | C# | var_decl | beginner | C# тілінде 1246 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 1246; | ### Instruction:
C# тілінде 1246 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 1246; |
10,722,395 | 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(''); |
73,250,726 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 251 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 251;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 251 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 251;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
44,549,078 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript функцию, определяющую, является ли число 176 простым. | function isPrime() {
let n = 176;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 176 простым.
### Response:
function isPrime() {
let n = 176;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
18,075,862 | en | C++ | string_ops | advanced | Write a function that converts a string to uppercase in C++. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in C++.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
1,733,236 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 717551 мәнімен buffer айнымалысын қалай жариялауға болады? | let buffer = 717551; | ### Instruction:
JavaScript тілінде 717551 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
let buffer = 717551; |
66,587,546 | 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);
} |
32,703,714 | kk | Python | array_ops | intermediate | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
3,228,712 | kk | C# | var_decl | beginner | C# тілінде 82173 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 82173; | ### Instruction:
C# тілінде 82173 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 82173; |
2,060,089 | kk | C# | var_decl | beginner | C# тілінде 407213 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 407213; | ### Instruction:
C# тілінде 407213 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 407213; |
30,035,430 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 2095 високосным. | public bool IsLeap() {
int y = 2095;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 2095 високосным.
### Response:
public bool IsLeap() {
int y = 2095;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
18,222,478 | kk | JavaScript | array_ops | advanced | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
4,765,797 | en | C# | var_decl | beginner | How to declare a variable level with value 6091 in C#? | int level = 6091; | ### Instruction:
How to declare a variable level with value 6091 in C#?
### Response:
int level = 6091; |
402,804 | ru | C# | var_decl | beginner | Как объявить переменную x со значением 149030 в C#? | int x = 149030; | ### Instruction:
Как объявить переменную x со значением 149030 в C#?
### Response:
int x = 149030; |
90,870,955 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
1,652,094 | en | C# | var_decl | beginner | How to declare a variable score with value 820900 in C#? | int score = 820900; | ### Instruction:
How to declare a variable score with value 820900 in C#?
### Response:
int score = 820900; |
4,330,407 | kk | Java | var_decl | beginner | Java тілінде 355208 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 355208; | ### Instruction:
Java тілінде 355208 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 355208; |
1,994,914 | kk | C++ | var_decl | beginner | C++ тілінде 587207 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 587207; | ### Instruction:
C++ тілінде 587207 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 587207; |
264,175 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 2855. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(2855));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 2855.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(2855));
} |
82,997,917 | en | C++ | string_ops | advanced | Write a function that converts a string to uppercase in C++. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in C++.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
54,039,533 | 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();
} |
6,750 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 3087. | 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(3087) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 3087.
### 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(3087) << std::endl; |
532,294 | kk | C++ | var_decl | beginner | C++ тілінде 350049 мәнімен data айнымалысын қалай жариялауға болады? | int data = 350049; | ### Instruction:
C++ тілінде 350049 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 350049; |
48,251,443 | ru | Unity | array_ops | intermediate | Напишите на Unity функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
62,758,787 | 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);
} |
204,580 | kk | Java | sum_n | intermediate | Java тілінде 1-ден 8646-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8646)); | ### Instruction:
Java тілінде 1-ден 8646-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8646)); |
71,225,678 | kk | Java | logic_ops | intermediate | Java тилінде 2000 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2000;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 2000 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2000;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
86,279,387 | kk | Unity | string_ops | advanced | Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.