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 |
|---|---|---|---|---|---|---|---|
53,217,800 | ru | 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;
} |
34,177,141 | en | Python | array_ops | intermediate | Write a function that finds the maximum number in an array in Python. | def get_max(arr):
return max(arr) | ### Instruction:
Write a function that finds the maximum number in an array in Python.
### Response:
def get_max(arr):
return max(arr) |
19,472,872 | kk | C++ | logic_ops | advanced | C++ тилінде 498 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 498;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 498 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 498;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
72,178,009 | 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(''); |
39,422,949 | en | Unity | string_ops | intermediate | Write a function that converts a string to uppercase in Unity. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in Unity.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
27,833,591 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 341 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 341;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 341 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 341;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
4,373,118 | en | Python | var_decl | beginner | How to declare a variable data with value 488225 in Python? | data = 488225 | ### Instruction:
How to declare a variable data with value 488225 in Python?
### Response:
data = 488225 |
295,584 | ru | C++ | factorial | advanced | Напиши функцию на C++, которая вычисляет факториал числа 9564. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(9564) << std::endl; | ### Instruction:
Напиши функцию на C++, которая вычисляет факториал числа 9564.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(9564) << std::endl; |
64,013 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 1425. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(1425)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 1425.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(1425)); |
12,099,765 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая проверяет, является ли строка палиндромом. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
### Response:
def is_palindrome(s):
return s == s[::-1] |
26,535,797 | 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;
} |
92,605,044 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
95,564,364 | kk | Java | array_ops | advanced | Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
45,367,902 | kk | C++ | logic_ops | intermediate | C++ тилінде 1988 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1988;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1988 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1988;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
48,148,707 | 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,588,501 | ru | Java | var_decl | beginner | Как объявить переменную health со значением 787391 в Java? | int health = 787391; | ### Instruction:
Как объявить переменную health со значением 787391 в Java?
### Response:
int health = 787391; |
43,911,695 | en | Python | logic_ops | advanced | Write logic to check if the year 1966 is a leap year in Python. | def is_leap():
year = 1966
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1966 is a leap year in Python.
### Response:
def is_leap():
year = 1966
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
764,479 | kk | Java | var_decl | beginner | Java тілінде 298853 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 298853; | ### Instruction:
Java тілінде 298853 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 298853; |
4,856,431 | en | Unity | var_decl | beginner | How to declare a variable amount with value 812342 in Unity? | int amount = 812342; | ### Instruction:
How to declare a variable amount with value 812342 in Unity?
### Response:
int amount = 812342; |
31,776,695 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 1938 високосным. | def is_leap():
year = 1938
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1938 високосным.
### Response:
def is_leap():
year = 1938
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
39,813,928 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 2076 високосным. | def is_leap():
year = 2076
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2076 високосным.
### Response:
def is_leap():
year = 2076
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
33,147,984 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 1911 високосным. | public bool IsLeap() {
int y = 1911;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1911 високосным.
### Response:
public bool IsLeap() {
int y = 1911;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
65,714,102 | kk | C++ | logic_ops | advanced | C++ тилінде 1931 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1931;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1931 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1931;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
80,429,846 | 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] |
26,983,768 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 2069 високосным. | public bool IsLeap() {
int y = 2069;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2069 високосным.
### Response:
public bool IsLeap() {
int y = 2069;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
58,345,613 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 187 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 187;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 187 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 187;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
336,406 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 8345. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(8345)) | ### Instruction:
Write a function in Python that calculates the factorial of 8345.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(8345)) |
80,651,948 | 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;
} |
60,226,594 | 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();
} |
3,147,610 | kk | C# | var_decl | beginner | C# тілінде 442289 мәнімен total айнымалысын қалай жариялауға болады? | int total = 442289; | ### Instruction:
C# тілінде 442289 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 442289; |
4,965,402 | kk | Unity | var_decl | beginner | Unity тілінде 962245 мәнімен result айнымалысын қалай жариялауға болады? | int result = 962245; | ### Instruction:
Unity тілінде 962245 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 962245; |
1,353,518 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 84389 мәнімен x айнымалысын қалай жариялауға болады? | let x = 84389; | ### Instruction:
JavaScript тілінде 84389 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
let x = 84389; |
73,279,738 | kk | C# | logic_ops | intermediate | C# тилінде 1938 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1938;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1938 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1938;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,251,751 | kk | C++ | var_decl | beginner | C++ тілінде 360759 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 360759; | ### Instruction:
C++ тілінде 360759 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 360759; |
21,092,789 | kk | Unity | logic_ops | intermediate | Unity тилінде 2044 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2044;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2044 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2044;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,233,137 | kk | Java | var_decl | beginner | Java тілінде 205429 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 205429; | ### Instruction:
Java тілінде 205429 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 205429; |
2,751,817 | en | Unity | var_decl | beginner | How to declare a variable amount with value 760465 in Unity? | int amount = 760465; | ### Instruction:
How to declare a variable amount with value 760465 in Unity?
### Response:
int amount = 760465; |
64,619,102 | kk | Java | logic_ops | advanced | Java тилінде 2058 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2058;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 2058 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2058;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
46,310,084 | kk | 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;
} |
41,590,564 | 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;
} |
4,070,336 | en | C++ | var_decl | beginner | How to declare a variable rate with value 373379 in C++? | int rate = 373379; | ### Instruction:
How to declare a variable rate with value 373379 in C++?
### Response:
int rate = 373379; |
90,927,040 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
99,380,024 | 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;
} |
41,153,619 | 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;
} |
184,141 | kk | C++ | sum_n | intermediate | C++ тілінде 1-ден 1037-ге дейінгі сандардың қосындысын есептейтін функция жаз. | 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(1037) << std::endl; | ### Instruction:
C++ тілінде 1-ден 1037-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### 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(1037) << std::endl; |
10,255,987 | 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;
} |
65,186,309 | kk | Java | array_ops | advanced | Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
79,920,911 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript логику проверки, является ли год 1973 високосным. | function isLeap() {
let y = 1973;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1973 високосным.
### Response:
function isLeap() {
let y = 1973;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
44,271,351 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
568,082 | kk | C# | var_decl | beginner | C# тілінде 78955 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 78955; | ### Instruction:
C# тілінде 78955 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 78955; |
3,957,423 | ru | JavaScript | var_decl | beginner | Как объявить переменную weight со значением 634386 в JavaScript? | let weight = 634386; | ### Instruction:
Как объявить переменную weight со значением 634386 в JavaScript?
### Response:
let weight = 634386; |
30,687,641 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 1929 високосным. | public bool IsLeap() {
int y = 1929;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 1929 високосным.
### Response:
public bool IsLeap() {
int y = 1929;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
22,735,129 | 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;
} |
256,720 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 3688. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(3688)) | ### Instruction:
Write a function in Python that calculates the factorial of 3688.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(3688)) |
14,058,259 | ru | C# | logic_ops | advanced | Напишите на C# логику проверки, является ли год 1951 високосным. | public bool IsLeap() {
int y = 1951;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1951 високосным.
### Response:
public bool IsLeap() {
int y = 1951;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
37,060,477 | en | Java | string_ops | intermediate | 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;
} |
3,611,402 | en | Unity | var_decl | beginner | How to declare a variable total with value 737106 in Unity? | int total = 737106; | ### Instruction:
How to declare a variable total with value 737106 in Unity?
### Response:
int total = 737106; |
96,333,023 | kk | C# | array_ops | advanced | C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
317,396 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 9856. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(9856)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 9856.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(9856)); |
12,909,132 | en | Java | array_ops | advanced | Write a function that filters only even numbers from a list in Java. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Java.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
3,038,782 | en | C++ | var_decl | beginner | How to declare a variable x with value 793977 in C++? | int x = 793977; | ### Instruction:
How to declare a variable x with value 793977 in C++?
### Response:
int x = 793977; |
144,893 | en | Unity | var_decl | beginner | How to declare a variable amount with value 744452 in Unity? | int amount = 744452; | ### Instruction:
How to declare a variable amount with value 744452 in Unity?
### Response:
int amount = 744452; |
4,210,905 | ru | Unity | var_decl | beginner | Как объявить переменную x со значением 43821 в Unity? | int x = 43821; | ### Instruction:
Как объявить переменную x со значением 43821 в Unity?
### Response:
int x = 43821; |
3,119,701 | ru | Python | var_decl | beginner | Как объявить переменную health со значением 286102 в Python? | health = 286102 | ### Instruction:
Как объявить переменную health со значением 286102 в Python?
### Response:
health = 286102 |
19,851,809 | 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();
} |
76,559,617 | 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();
} |
4,771,604 | ru | JavaScript | var_decl | beginner | Как объявить переменную timer со значением 332958 в JavaScript? | let timer = 332958; | ### Instruction:
Как объявить переменную timer со значением 332958 в JavaScript?
### Response:
let timer = 332958; |
79,127,057 | 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(); |
67,700 | kk | C# | sum_n | intermediate | C# тілінде 1-ден 4392-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(4392)); | ### Instruction:
C# тілінде 1-ден 4392-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(4392)); |
55,819,642 | 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();
} |
58,118,377 | kk | Java | array_ops | intermediate | Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
82,145 | kk | Python | var_decl | beginner | Python тілінде 884233 мәнімен y айнымалысын қалай жариялауға болады? | y = 884233 | ### Instruction:
Python тілінде 884233 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
y = 884233 |
4,366,011 | kk | Python | var_decl | beginner | Python тілінде 946541 мәнімен size айнымалысын қалай жариялауға болады? | size = 946541 | ### Instruction:
Python тілінде 946541 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
size = 946541 |
1,396,273 | ru | C++ | var_decl | beginner | Как объявить переменную score со значением 815618 в C++? | int score = 815618; | ### Instruction:
Как объявить переменную score со значением 815618 в C++?
### Response:
int score = 815618; |
107,472 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 3296. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(3296)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 3296.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(3296)); |
40,948,564 | en | C# | logic_ops | intermediate | Write logic to check if the year 1969 is a leap year in C#. | public bool IsLeap() {
int y = 1969;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1969 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 1969;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
56,871,489 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 1903 високосным. | public bool IsLeap() {
int y = 1903;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1903 високосным.
### Response:
public bool IsLeap() {
int y = 1903;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
61,950,089 | ru | 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;
} |
88,385 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 6876. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(6876)); | ### Instruction:
Write a function in Java that calculates the factorial of 6876.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(6876)); |
79,708,190 | en | C++ | logic_ops | advanced | Write logic to check if the year 2056 is a leap year in C++. | public bool IsLeap() {
int y = 2056;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2056 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2056;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
20,812,808 | en | C++ | logic_ops | advanced | Write logic to check if the year 2008 is a leap year in C++. | public bool IsLeap() {
int y = 2008;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2008 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2008;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,317,493 | en | C++ | var_decl | beginner | How to declare a variable speed with value 638596 in C++? | int speed = 638596; | ### Instruction:
How to declare a variable speed with value 638596 in C++?
### Response:
int speed = 638596; |
94,752,384 | kk | Java | array_ops | advanced | Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
79,411,153 | 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;
} |
2,357,198 | en | Java | var_decl | beginner | How to declare a variable buffer with value 115323 in Java? | int buffer = 115323; | ### Instruction:
How to declare a variable buffer with value 115323 in Java?
### Response:
int buffer = 115323; |
89,484,134 | 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;
} |
684,054 | kk | Python | factorial | advanced | Python тілінде 7300 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(7300)) | ### Instruction:
Python тілінде 7300 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(7300)) |
751,632 | en | C++ | var_decl | beginner | How to declare a variable offset with value 743841 in C++? | int offset = 743841; | ### Instruction:
How to declare a variable offset with value 743841 in C++?
### Response:
int offset = 743841; |
76,451,821 | 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;
} |
19,938,133 | kk | C# | string_ops | advanced | C# тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
C# тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
61,197,503 | 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; |
4,790,535 | kk | C# | var_decl | beginner | C# тілінде 476834 мәнімен index айнымалысын қалай жариялауға болады? | int index = 476834; | ### Instruction:
C# тілінде 476834 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 476834; |
1,695,919 | kk | Python | var_decl | beginner | Python тілінде 660471 мәнімен total айнымалысын қалай жариялауға болады? | total = 660471 | ### Instruction:
Python тілінде 660471 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
total = 660471 |
424,362 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 1741. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(1741));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 1741.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(1741));
} |
63,493,406 | kk | C# | array_ops | intermediate | C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
94,656,379 | kk | 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;
} |
4,148,108 | en | Unity | var_decl | beginner | How to declare a variable level with value 167092 in Unity? | int level = 167092; | ### Instruction:
How to declare a variable level with value 167092 in Unity?
### Response:
int level = 167092; |
64,837,487 | kk | C++ | logic_ops | intermediate | C++ тилінде 90 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 90;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 90 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 90;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
53,991,931 | 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); |
44,168,705 | kk | 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;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.