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 |
|---|---|---|---|---|---|---|---|
89,612,820 | kk | Python | array_ops | advanced | Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
4,111,650 | en | Java | var_decl | beginner | How to declare a variable y with value 884237 in Java? | int y = 884237; | ### Instruction:
How to declare a variable y with value 884237 in Java?
### Response:
int y = 884237; |
88,771,561 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
346,495 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 776. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(776)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 776.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(776)); |
4,782,844 | en | Python | var_decl | beginner | How to declare a variable timer with value 345066 in Python? | timer = 345066 | ### Instruction:
How to declare a variable timer with value 345066 in Python?
### Response:
timer = 345066 |
3,626,085 | en | Unity | var_decl | beginner | How to declare a variable limit with value 530450 in Unity? | int limit = 530450; | ### Instruction:
How to declare a variable limit with value 530450 in Unity?
### Response:
int limit = 530450; |
12,021,193 | ru | C++ | logic_ops | advanced | Напишите на C++ логику проверки, является ли год 2049 високосным. | public bool IsLeap() {
int y = 2049;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 2049 високосным.
### Response:
public bool IsLeap() {
int y = 2049;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
184,565 | en | C# | sum_n | intermediate | Write a function in C# that sums numbers from 1 to 6254. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(6254)); | ### Instruction:
Write a function in C# that sums numbers from 1 to 6254.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(6254)); |
50,932,971 | en | C# | logic_ops | advanced | Write logic to check if the year 1956 is a leap year in C#. | public bool IsLeap() {
int y = 1956;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1956 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 1956;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
44,333,425 | en | Java | string_ops | advanced | Write a function that checks if a string is a palindrome in 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:
Write a function that checks if a string is a palindrome in 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;
} |
738,752 | en | C# | var_decl | beginner | How to declare a variable score with value 293738 in C#? | int score = 293738; | ### Instruction:
How to declare a variable score with value 293738 in C#?
### Response:
int score = 293738; |
974,287 | kk | Unity | factorial | advanced | Unity тілінде 7397 санының факториалын есептейтін функция жаз. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(7397));
} | ### Instruction:
Unity тілінде 7397 санының факториалын есептейтін функция жаз.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(7397));
} |
60,834,071 | kk | C# | array_ops | advanced | C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
59,703,145 | 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;
} |
133,766 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 7757. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7757)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 7757.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7757)); |
45,041,081 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
23,485,039 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 1946 is a leap year in JavaScript. | function isLeap() {
let y = 1946;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1946 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1946;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
39,459,281 | kk | Python | logic_ops | intermediate | Python тилінде 1943 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1943
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1943 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1943
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
71,325,036 | en | Python | logic_ops | intermediate | Write logic to check if the year 1983 is a leap year in Python. | def is_leap():
year = 1983
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1983 is a leap year in Python.
### Response:
def is_leap():
year = 1983
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
98,906,097 | en | Unity | array_ops | advanced | Write a function that reverses a list in Unity. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Unity.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
89,839,386 | kk | C++ | logic_ops | intermediate | C++ тилінде 1908 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1908;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1908 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1908;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
97,146,073 | en | Unity | string_ops | advanced | Write a function that counts vowels in a text in Unity. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in Unity.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
17,864,096 | en | C# | logic_ops | advanced | Write logic to check if the year 2054 is a leap year in C#. | public bool IsLeap() {
int y = 2054;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2054 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2054;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
27,409,305 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 336 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 336;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 336 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 336;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
68,712,438 | 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;
} |
178,530 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 5393. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(5393)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 5393.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(5393)); |
233,582 | kk | C# | factorial | advanced | C# тілінде 5591 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(5591)); | ### Instruction:
C# тілінде 5591 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(5591)); |
2,216,555 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 188130 мәнімен data айнымалысын қалай жариялауға болады? | let data = 188130; | ### Instruction:
JavaScript тілінде 188130 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
let data = 188130; |
86,877,926 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 1972 високосным. | public bool IsLeap() {
int y = 1972;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 1972 високосным.
### Response:
public bool IsLeap() {
int y = 1972;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,592,885 | kk | C++ | var_decl | beginner | C++ тілінде 325546 мәнімен score айнымалысын қалай жариялауға болады? | int score = 325546; | ### Instruction:
C++ тілінде 325546 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 325546; |
20,587,277 | ru | Java | logic_ops | intermediate | Напишите на Java логику проверки, является ли год 1935 високосным. | public bool IsLeap() {
int y = 1935;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 1935 високосным.
### Response:
public bool IsLeap() {
int y = 1935;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
69,037,734 | en | JavaScript | array_ops | intermediate | 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(); |
525,431 | kk | C# | factorial | advanced | C# тілінде 6488 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(6488)); | ### Instruction:
C# тілінде 6488 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(6488)); |
77,403,069 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 2097 високосным. | public bool IsLeap() {
int y = 2097;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2097 високосным.
### Response:
public bool IsLeap() {
int y = 2097;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
54,891,198 | kk | Unity | array_ops | intermediate | Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
51,343,552 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 317 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 317;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 317 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 317;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
21,042,170 | 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;
} |
73,066,925 | en | JavaScript | array_ops | advanced | Write a function that filters only even numbers from a list in JavaScript. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Write a function that filters only even numbers from a list in JavaScript.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
331,250 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 3155. | 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(3155) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 3155.
### 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(3155) << std::endl; |
1,232,587 | ru | Python | var_decl | beginner | Как объявить переменную result со значением 971052 в Python? | result = 971052 | ### Instruction:
Как объявить переменную result со значением 971052 в Python?
### Response:
result = 971052 |
55,566,686 | 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();
} |
3,097,116 | en | C# | var_decl | beginner | How to declare a variable count with value 431918 in C#? | int count = 431918; | ### Instruction:
How to declare a variable count with value 431918 in C#?
### Response:
int count = 431918; |
75,198,573 | kk | C# | logic_ops | advanced | C# тилінде 84 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 84;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 84 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 84;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
98,410,168 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
1,698,635 | kk | Unity | var_decl | beginner | Unity тілінде 579240 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 579240; | ### Instruction:
Unity тілінде 579240 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 579240; |
3,567,866 | en | Python | var_decl | beginner | How to declare a variable rate with value 617803 in Python? | rate = 617803 | ### Instruction:
How to declare a variable rate with value 617803 in Python?
### Response:
rate = 617803 |
73,288,802 | kk | Java | array_ops | intermediate | Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
58,270,747 | kk | Python | array_ops | intermediate | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
42,988,070 | 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();
} |
64,322,221 | ru | Java | logic_ops | intermediate | Напишите на Java логику проверки, является ли год 2072 високосным. | public bool IsLeap() {
int y = 2072;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 2072 високосным.
### Response:
public bool IsLeap() {
int y = 2072;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,143,921 | ru | C++ | var_decl | beginner | Как объявить переменную level со значением 912603 в C++? | int level = 912603; | ### Instruction:
Как объявить переменную level со значением 912603 в C++?
### Response:
int level = 912603; |
97,220,537 | 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;
} |
3,326,183 | ru | JavaScript | var_decl | beginner | Как объявить переменную x со значением 599318 в JavaScript? | let x = 599318; | ### Instruction:
Как объявить переменную x со значением 599318 в JavaScript?
### Response:
let x = 599318; |
1,957,660 | en | Python | var_decl | beginner | How to declare a variable weight with value 168348 in Python? | weight = 168348 | ### Instruction:
How to declare a variable weight with value 168348 in Python?
### Response:
weight = 168348 |
3,180,336 | ru | JavaScript | var_decl | beginner | Как объявить переменную health со значением 939364 в JavaScript? | let health = 939364; | ### Instruction:
Как объявить переменную health со значением 939364 в JavaScript?
### Response:
let health = 939364; |
3,775,844 | ru | Python | var_decl | beginner | Как объявить переменную result со значением 356686 в Python? | result = 356686 | ### Instruction:
Как объявить переменную result со значением 356686 в Python?
### Response:
result = 356686 |
2,395,017 | kk | C# | var_decl | beginner | C# тілінде 841118 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 841118; | ### Instruction:
C# тілінде 841118 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 841118; |
51,116,922 | 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;
} |
19,985,524 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 262 is prime in JavaScript. | function isPrime() {
let n = 262;
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 262 is prime in JavaScript.
### Response:
function isPrime() {
let n = 262;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
2,028,043 | en | JavaScript | var_decl | beginner | How to declare a variable data with value 935110 in JavaScript? | let data = 935110; | ### Instruction:
How to declare a variable data with value 935110 in JavaScript?
### Response:
let data = 935110; |
3,000,943 | ru | Python | var_decl | beginner | Как объявить переменную y со значением 956746 в Python? | y = 956746 | ### Instruction:
Как объявить переменную y со значением 956746 в Python?
### Response:
y = 956746 |
3,702,747 | en | C++ | var_decl | beginner | How to declare a variable amount with value 273998 in C++? | int amount = 273998; | ### Instruction:
How to declare a variable amount with value 273998 in C++?
### Response:
int amount = 273998; |
97,876,642 | 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;
} |
415,810 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 6707. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(6707));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 6707.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(6707));
} |
27,914,719 | en | C++ | array_ops | intermediate | Write a function that filters only even numbers from a list in C++. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in C++.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
54,058,102 | en | Java | string_ops | advanced | Write a function that converts a string to uppercase in Java. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in Java.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
187,663 | kk | JavaScript | factorial | advanced | JavaScript тілінде 1240 санының факториалын есептейтін функция жаз. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1240)); | ### Instruction:
JavaScript тілінде 1240 санының факториалын есептейтін функция жаз.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1240)); |
2,590,973 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 529720 мәнімен buffer айнымалысын қалай жариялауға болады? | let buffer = 529720; | ### Instruction:
JavaScript тілінде 529720 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
let buffer = 529720; |
4,706,088 | kk | C++ | var_decl | beginner | C++ тілінде 869820 мәнімен level айнымалысын қалай жариялауға болады? | int level = 869820; | ### Instruction:
C++ тілінде 869820 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 869820; |
1,379,986 | ru | C# | var_decl | beginner | Как объявить переменную speed со значением 484012 в C#? | int speed = 484012; | ### Instruction:
Как объявить переменную speed со значением 484012 в C#?
### Response:
int speed = 484012; |
2,275,129 | ru | C++ | var_decl | beginner | Как объявить переменную level со значением 186768 в C++? | int level = 186768; | ### Instruction:
Как объявить переменную level со значением 186768 в C++?
### Response:
int level = 186768; |
2,005,670 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 574008 мәнімен total айнымалысын қалай жариялауға болады? | let total = 574008; | ### Instruction:
JavaScript тілінде 574008 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
let total = 574008; |
690,771 | kk | JavaScript | factorial | advanced | JavaScript тілінде 9178 санының факториалын есептейтін функция жаз. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(9178)); | ### Instruction:
JavaScript тілінде 9178 санының факториалын есептейтін функция жаз.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(9178)); |
53,591,709 | 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;
} |
3,986,748 | en | Python | var_decl | beginner | How to declare a variable result with value 991039 in Python? | result = 991039 | ### Instruction:
How to declare a variable result with value 991039 in Python?
### Response:
result = 991039 |
4,791,506 | kk | C# | var_decl | beginner | C# тілінде 370843 мәнімен index айнымалысын қалай жариялауға болады? | int index = 370843; | ### Instruction:
C# тілінде 370843 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 370843; |
25,191,407 | kk | C# | logic_ops | advanced | C# тилінде 292 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 292;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 292 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 292;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
70,957,259 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 1929 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 1929;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 1929 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 1929;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
53,410,783 | en | C++ | logic_ops | intermediate | Write logic to check if the year 1910 is a leap year in C++. | public bool IsLeap() {
int y = 1910;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1910 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 1910;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
56,227,494 | 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;
} |
42,903,698 | ru | 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;
} |
16,305,569 | kk | Unity | logic_ops | intermediate | Unity тилінде 1921 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1921;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1921 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1921;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
66,972,297 | en | Python | array_ops | advanced | 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) |
76,213,842 | kk | Java | string_ops | advanced | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
60,716,623 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 2024 високосным. | def is_leap():
year = 2024
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2024 високосным.
### Response:
def is_leap():
year = 2024
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
13,570,448 | 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;
} |
3,600,174 | kk | C++ | var_decl | beginner | C++ тілінде 841401 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 841401; | ### Instruction:
C++ тілінде 841401 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 841401; |
775,224 | ru | JavaScript | var_decl | beginner | Как объявить переменную offset со значением 568443 в JavaScript? | let offset = 568443; | ### Instruction:
Как объявить переменную offset со значением 568443 в JavaScript?
### Response:
let offset = 568443; |
39,308,243 | kk | C++ | array_ops | intermediate | C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
1,192,007 | en | Python | var_decl | beginner | How to declare a variable total with value 67425 in Python? | total = 67425 | ### Instruction:
How to declare a variable total with value 67425 in Python?
### Response:
total = 67425 |
67,135 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 6879. | 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(6879) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 6879.
### 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(6879) << std::endl; |
28,709,548 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 376 is prime in C++. | public bool IsPrime() {
int n = 376;
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 376 is prime in C++.
### Response:
public bool IsPrime() {
int n = 376;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
77,887,666 | en | Java | string_ops | advanced | Write a function that converts a string to uppercase in Java. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in Java.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
4,410,490 | en | C# | var_decl | beginner | How to declare a variable timer with value 384388 in C#? | int timer = 384388; | ### Instruction:
How to declare a variable timer with value 384388 in C#?
### Response:
int timer = 384388; |
87,807,175 | ru | Java | string_ops | advanced | Напишите на Java функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
88,800,195 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 19 is prime in JavaScript. | function isPrime() {
let n = 19;
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 19 is prime in JavaScript.
### Response:
function isPrime() {
let n = 19;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
61,778,372 | 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;
} |
3,026,923 | kk | Unity | var_decl | beginner | Unity тілінде 415983 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 415983; | ### Instruction:
Unity тілінде 415983 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 415983; |
3,665,264 | en | C++ | var_decl | beginner | How to declare a variable index with value 755470 in C++? | int index = 755470; | ### Instruction:
How to declare a variable index with value 755470 in C++?
### Response:
int index = 755470; |
1,573,742 | ru | C++ | var_decl | beginner | Как объявить переменную limit со значением 123215 в C++? | int limit = 123215; | ### Instruction:
Как объявить переменную limit со значением 123215 в C++?
### Response:
int limit = 123215; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.