id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
49,492,157 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
24,778,562 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
43,025,820 | ru | C++ | logic_ops | advanced | Напишите на C++ логику проверки, является ли год 2068 високосным. | public bool IsLeap() {
int y = 2068;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 2068 високосным.
### Response:
public bool IsLeap() {
int y = 2068;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
87,298,632 | ru | 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;
} |
1,742,820 | en | Python | var_decl | beginner | How to declare a variable x with value 336129 in Python? | x = 336129 | ### Instruction:
How to declare a variable x with value 336129 in Python?
### Response:
x = 336129 |
1,309,643 | en | Java | var_decl | beginner | How to declare a variable result with value 885353 in Java? | int result = 885353; | ### Instruction:
How to declare a variable result with value 885353 in Java?
### Response:
int result = 885353; |
70,215,107 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
3,908,764 | kk | C# | var_decl | beginner | C# тілінде 752928 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 752928; | ### Instruction:
C# тілінде 752928 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 752928; |
57,302,821 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 499 is prime in JavaScript. | function isPrime() {
let n = 499;
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 499 is prime in JavaScript.
### Response:
function isPrime() {
let n = 499;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
1,238,456 | ru | Unity | var_decl | beginner | Как объявить переменную speed со значением 405551 в Unity? | int speed = 405551; | ### Instruction:
Как объявить переменную speed со значением 405551 в Unity?
### Response:
int speed = 405551; |
89,801,676 | 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;
} |
66,464,341 | en | Unity | logic_ops | advanced | Write logic to check if the year 2053 is a leap year in Unity. | public bool IsLeap() {
int y = 2053;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2053 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2053;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
86,912,069 | 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;
} |
1,992,988 | kk | Java | var_decl | beginner | Java тілінде 755471 мәнімен index айнымалысын қалай жариялауға болады? | int index = 755471; | ### Instruction:
Java тілінде 755471 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 755471; |
36,100,620 | 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);
} |
40,352,176 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
20,623 | en | C# | func_def | intermediate | Write a function apply in C# that takes rate and doubles it. | static int apply(int rate) {
return rate * 2;
} | ### Instruction:
Write a function apply in C# that takes rate and doubles it.
### Response:
static int apply(int rate) {
return rate * 2;
} |
1,110,522 | ru | C++ | var_decl | beginner | Как объявить переменную total со значением 852932 в C++? | int total = 852932; | ### Instruction:
Как объявить переменную total со значением 852932 в C++?
### Response:
int total = 852932; |
2,344,298 | ru | Python | var_decl | beginner | Как объявить переменную data со значением 473837 в Python? | data = 473837 | ### Instruction:
Как объявить переменную data со значением 473837 в Python?
### Response:
data = 473837 |
48,437,992 | 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(''); |
2,570,522 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 818566 мәнімен level айнымалысын қалай жариялауға болады? | let level = 818566; | ### Instruction:
JavaScript тілінде 818566 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
let level = 818566; |
57,585,708 | 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;
} |
770,631 | kk | Java | factorial | advanced | Java тілінде 7605 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7605)); | ### Instruction:
Java тілінде 7605 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7605)); |
15,406,430 | ru | C# | array_ops | advanced | Напишите на C# функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на C# функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
18,948,638 | 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;
} |
82,535,780 | 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;
} |
35,146,677 | 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;
} |
32,320,900 | kk | Java | logic_ops | advanced | Java тилінде 446 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 446;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 446 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 446;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,656,395 | en | C++ | var_decl | beginner | How to declare a variable data with value 664449 in C++? | int data = 664449; | ### Instruction:
How to declare a variable data with value 664449 in C++?
### Response:
int data = 664449; |
72,416,632 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 2028 високосным. | function isLeap() {
let y = 2028;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 2028 високосным.
### Response:
function isLeap() {
let y = 2028;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
48,498,653 | ru | 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] |
3,172,162 | en | Unity | var_decl | beginner | How to declare a variable limit with value 838090 in Unity? | int limit = 838090; | ### Instruction:
How to declare a variable limit with value 838090 in Unity?
### Response:
int limit = 838090; |
326,399 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 6615. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(6615) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 6615.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(6615) << std::endl; |
2,769,688 | kk | Java | var_decl | beginner | Java тілінде 833751 мәнімен level айнымалысын қалай жариялауға болады? | int level = 833751; | ### Instruction:
Java тілінде 833751 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 833751; |
3,476,815 | ru | Unity | var_decl | beginner | Как объявить переменную x со значением 595369 в Unity? | int x = 595369; | ### Instruction:
Как объявить переменную x со значением 595369 в Unity?
### Response:
int x = 595369; |
47,201,812 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
691,612 | en | JavaScript | var_decl | beginner | How to declare a variable limit with value 562035 in JavaScript? | let limit = 562035; | ### Instruction:
How to declare a variable limit with value 562035 in JavaScript?
### Response:
let limit = 562035; |
4,804,537 | kk | Unity | var_decl | beginner | Unity тілінде 240717 мәнімен level айнымалысын қалай жариялауға болады? | int level = 240717; | ### Instruction:
Unity тілінде 240717 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 240717; |
85,746,189 | en | C# | array_ops | advanced | Write a function that finds the maximum number in an array in C#. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in C#.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
84,676,115 | 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);
} |
3,536,153 | kk | C++ | var_decl | beginner | C++ тілінде 918628 мәнімен data айнымалысын қалай жариялауға болады? | int data = 918628; | ### Instruction:
C++ тілінде 918628 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 918628; |
86,783,132 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 2072 високосным. | def is_leap():
year = 2072
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2072 високосным.
### Response:
def is_leap():
year = 2072
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
45,936,705 | 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(''); |
4,604,321 | en | C# | var_decl | beginner | How to declare a variable level with value 989606 in C#? | int level = 989606; | ### Instruction:
How to declare a variable level with value 989606 in C#?
### Response:
int level = 989606; |
73,379,167 | en | Unity | logic_ops | intermediate | Write logic to check if the year 2085 is a leap year in Unity. | public bool IsLeap() {
int y = 2085;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2085 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2085;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
508,695 | en | C# | sum_n | intermediate | Write a function in C# that sums numbers from 1 to 8122. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(8122)); | ### Instruction:
Write a function in C# that sums numbers from 1 to 8122.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(8122)); |
264,799 | en | Python | sum_n | intermediate | Write a function in Python that sums numbers from 1 to 25. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(25)) | ### Instruction:
Write a function in Python that sums numbers from 1 to 25.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(25)) |
4,847,449 | ru | Python | var_decl | beginner | Как объявить переменную index со значением 13810 в Python? | index = 13810 | ### Instruction:
Как объявить переменную index со значением 13810 в Python?
### Response:
index = 13810 |
64,798,345 | ru | 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;
} |
18,692 | kk | Python | factorial | advanced | Python тілінде 9833 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(9833)) | ### Instruction:
Python тілінде 9833 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(9833)) |
378,725 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 5677. | 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(5677) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 5677.
### 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(5677) << std::endl; |
877,402 | kk | C++ | factorial | advanced | C++ тілінде 1953 санының факториалын есептейтін функция жаз. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(1953) << std::endl; | ### Instruction:
C++ тілінде 1953 санының факториалын есептейтін функция жаз.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(1953) << std::endl; |
68,264,999 | ru | C# | logic_ops | intermediate | Напишите на C# функцию, определяющую, является ли число 468 простым. | public bool IsPrime() {
int n = 468;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 468 простым.
### Response:
public bool IsPrime() {
int n = 468;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
68,490,298 | kk | Python | logic_ops | intermediate | Python тилінде 1949 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1949
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1949 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1949
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
1,387,695 | en | JavaScript | var_decl | beginner | How to declare a variable rate with value 249089 in JavaScript? | let rate = 249089; | ### Instruction:
How to declare a variable rate with value 249089 in JavaScript?
### Response:
let rate = 249089; |
74,807,521 | en | Unity | array_ops | advanced | Write a function that filters only even numbers from a list in Unity. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Unity.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
60,410,005 | 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); |
3,202,458 | en | C# | var_decl | beginner | How to declare a variable x with value 299695 in C#? | int x = 299695; | ### Instruction:
How to declare a variable x with value 299695 in C#?
### Response:
int x = 299695; |
50,913,928 | 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;
} |
3,290,511 | kk | Unity | var_decl | beginner | Unity тілінде 947990 мәнімен data айнымалысын қалай жариялауға болады? | int data = 947990; | ### Instruction:
Unity тілінде 947990 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 947990; |
2,037,616 | kk | Java | var_decl | beginner | Java тілінде 307561 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 307561; | ### Instruction:
Java тілінде 307561 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 307561; |
99,653,563 | 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) |
94,659,900 | 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;
} |
1,795,439 | kk | Java | var_decl | beginner | Java тілінде 409615 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 409615; | ### Instruction:
Java тілінде 409615 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 409615; |
80,593,865 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
78,666,259 | kk | Python | string_ops | intermediate | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
2,708,326 | kk | Unity | var_decl | beginner | Unity тілінде 189606 мәнімен x айнымалысын қалай жариялауға болады? | int x = 189606; | ### Instruction:
Unity тілінде 189606 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 189606; |
1,045,462 | ru | C# | var_decl | beginner | Как объявить переменную timer со значением 839661 в C#? | int timer = 839661; | ### Instruction:
Как объявить переменную timer со значением 839661 в C#?
### Response:
int timer = 839661; |
99,477,805 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 2072 is a leap year in JavaScript. | function isLeap() {
let y = 2072;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2072 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2072;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
81,849 | ru | C# | var_decl | beginner | Как объявить переменную data со значением 43326 в C#? | int data = 43326; | ### Instruction:
Как объявить переменную data со значением 43326 в C#?
### Response:
int data = 43326; |
63,987,582 | 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;
} |
4,501,639 | kk | Java | var_decl | beginner | Java тілінде 819349 мәнімен data айнымалысын қалай жариялауға болады? | int data = 819349; | ### Instruction:
Java тілінде 819349 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 819349; |
97,182,948 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
58,467,161 | 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); |
22,397,608 | kk | 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);
} |
1,321,275 | ru | Python | var_decl | beginner | Как объявить переменную weight со значением 750590 в Python? | weight = 750590 | ### Instruction:
Как объявить переменную weight со значением 750590 в Python?
### Response:
weight = 750590 |
31,137,824 | en | C# | array_ops | advanced | 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;
} |
44,914,122 | 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;
} |
31,631,821 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 2054 високосным. | public bool IsLeap() {
int y = 2054;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 2054 високосным.
### Response:
public bool IsLeap() {
int y = 2054;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
93,975,523 | 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);
} |
94,089 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 9036. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(9036)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 9036.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(9036)); |
37,316,654 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
1,206,051 | ru | Java | var_decl | beginner | Как объявить переменную result со значением 210186 в Java? | int result = 210186; | ### Instruction:
Как объявить переменную result со значением 210186 в Java?
### Response:
int result = 210186; |
61,124,421 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 80 is prime in JavaScript. | function isPrime() {
let n = 80;
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 80 is prime in JavaScript.
### Response:
function isPrime() {
let n = 80;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
54,004,384 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 435 простым. | public bool IsPrime() {
int n = 435;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 435 простым.
### Response:
public bool IsPrime() {
int n = 435;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
17,817,941 | en | Unity | logic_ops | intermediate | Write a function that determines if the number 358 is prime in Unity. | public bool IsPrime() {
int n = 358;
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 358 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 358;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,769,665 | kk | Unity | var_decl | beginner | Unity тілінде 195558 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 195558; | ### Instruction:
Unity тілінде 195558 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 195558; |
2,958,436 | en | Unity | var_decl | beginner | How to declare a variable offset with value 471294 in Unity? | int offset = 471294; | ### Instruction:
How to declare a variable offset with value 471294 in Unity?
### Response:
int offset = 471294; |
11,184,619 | kk | JavaScript | array_ops | advanced | JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
4,390,763 | ru | Python | var_decl | beginner | Как объявить переменную value со значением 893108 в Python? | value = 893108 | ### Instruction:
Как объявить переменную value со значением 893108 в Python?
### Response:
value = 893108 |
49,312,543 | en | JavaScript | string_ops | intermediate | Write a function that counts vowels in a text in JavaScript. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Write a function that counts vowels in a text in JavaScript.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
535,741 | ru | C# | var_decl | beginner | Как объявить переменную total со значением 747736 в C#? | int total = 747736; | ### Instruction:
Как объявить переменную total со значением 747736 в C#?
### Response:
int total = 747736; |
24,717,947 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 342 is prime in JavaScript. | function isPrime() {
let n = 342;
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 342 is prime in JavaScript.
### Response:
function isPrime() {
let n = 342;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
37,423,697 | kk | C# | logic_ops | advanced | C# тилінде 388 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 388;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 388 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 388;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,620,349 | kk | Python | var_decl | beginner | Python тілінде 26252 мәнімен weight айнымалысын қалай жариялауға болады? | weight = 26252 | ### Instruction:
Python тілінде 26252 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
weight = 26252 |
86,716,563 | ru | C# | logic_ops | advanced | Напишите на C# функцию, определяющую, является ли число 479 простым. | public bool IsPrime() {
int n = 479;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 479 простым.
### Response:
public bool IsPrime() {
int n = 479;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
534,450 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 2648-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(2648)) | ### Instruction:
Python тілінде 1-ден 2648-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(2648)) |
1,388,643 | kk | Java | var_decl | beginner | Java тілінде 85294 мәнімен result айнымалысын қалай жариялауға болады? | int result = 85294; | ### Instruction:
Java тілінде 85294 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 85294; |
3,670,276 | kk | Python | var_decl | beginner | Python тілінде 81209 мәнімен health айнымалысын қалай жариялауға болады? | health = 81209 | ### Instruction:
Python тілінде 81209 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
health = 81209 |
4,729,737 | ru | C# | var_decl | beginner | Как объявить переменную total со значением 884268 в C#? | int total = 884268; | ### Instruction:
Как объявить переменную total со значением 884268 в C#?
### Response:
int total = 884268; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.