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 |
|---|---|---|---|---|---|---|---|
83,454,211 | kk | Python | string_ops | advanced | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
2,662,285 | en | Java | var_decl | beginner | How to declare a variable rate with value 540553 in Java? | int rate = 540553; | ### Instruction:
How to declare a variable rate with value 540553 in Java?
### Response:
int rate = 540553; |
61,514,079 | en | Unity | logic_ops | intermediate | Write logic to check if the year 1946 is a leap year in Unity. | public bool IsLeap() {
int 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 Unity.
### Response:
public bool IsLeap() {
int y = 1946;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
214,902 | kk | Unity | var_decl | beginner | Unity тілінде 986077 мәнімен result айнымалысын қалай жариялауға болады? | int result = 986077; | ### Instruction:
Unity тілінде 986077 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 986077; |
99,985,303 | kk | Python | logic_ops | advanced | Python тилінде 1984 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1984
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1984 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1984
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
92,025,391 | 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);
} |
19,710,867 | 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,912,024 | en | Unity | var_decl | beginner | How to declare a variable health with value 802552 in Unity? | int health = 802552; | ### Instruction:
How to declare a variable health with value 802552 in Unity?
### Response:
int health = 802552; |
18,320,607 | 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;
} |
18,368,690 | 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;
} |
1,476,345 | en | C# | var_decl | beginner | How to declare a variable buffer with value 273985 in C#? | int buffer = 273985; | ### Instruction:
How to declare a variable buffer with value 273985 in C#?
### Response:
int buffer = 273985; |
70,112,590 | en | Unity | array_ops | advanced | Write a function that finds the maximum number in an array in Unity. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in Unity.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
77,145,876 | 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;
} |
2,678,917 | en | JavaScript | var_decl | beginner | How to declare a variable total with value 911663 in JavaScript? | let total = 911663; | ### Instruction:
How to declare a variable total with value 911663 in JavaScript?
### Response:
let total = 911663; |
38,427,849 | en | Java | array_ops | advanced | Write a function that finds the maximum number in an array in Java. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in Java.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
78,659,175 | 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); |
87,829,718 | 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;
} |
3,521,694 | ru | JavaScript | var_decl | beginner | Как объявить переменную offset со значением 367379 в JavaScript? | let offset = 367379; | ### Instruction:
Как объявить переменную offset со значением 367379 в JavaScript?
### Response:
let offset = 367379; |
23,063,458 | en | C++ | logic_ops | advanced | Write logic to check if the year 2025 is a leap year in C++. | public bool IsLeap() {
int y = 2025;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2025 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2025;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
99,215,807 | kk | JavaScript | string_ops | advanced | JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
76,496,393 | ru | C# | string_ops | advanced | Напишите на 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;
} |
4,606,151 | ru | C# | var_decl | beginner | Как объявить переменную health со значением 786176 в C#? | int health = 786176; | ### Instruction:
Как объявить переменную health со значением 786176 в C#?
### Response:
int health = 786176; |
15,028,629 | ru | C# | logic_ops | advanced | Напишите на C# функцию, определяющую, является ли число 187 простым. | public bool IsPrime() {
int n = 187;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 187 простым.
### Response:
public bool IsPrime() {
int n = 187;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
77,713,655 | 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();
} |
4,248,147 | en | Python | var_decl | beginner | How to declare a variable timer with value 682639 in Python? | timer = 682639 | ### Instruction:
How to declare a variable timer with value 682639 in Python?
### Response:
timer = 682639 |
1,533,311 | en | Unity | var_decl | beginner | How to declare a variable speed with value 603860 in Unity? | int speed = 603860; | ### Instruction:
How to declare a variable speed with value 603860 in Unity?
### Response:
int speed = 603860; |
684,923 | ru | C# | var_decl | beginner | Как объявить переменную value со значением 911579 в C#? | int value = 911579; | ### Instruction:
Как объявить переменную value со значением 911579 в C#?
### Response:
int value = 911579; |
4,092,816 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 573471 мәнімен amount айнымалысын қалай жариялауға болады? | let amount = 573471; | ### Instruction:
JavaScript тілінде 573471 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
let amount = 573471; |
42,773,257 | en | Python | string_ops | advanced | Write a function that counts vowels in a text in Python. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Write a function that counts vowels in a text in Python.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
23,457,697 | ru | 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);
} |
64,013,397 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 420 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 420;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 420 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 420;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
14,613,895 | 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;
} |
4,388,948 | ru | C# | var_decl | beginner | Как объявить переменную offset со значением 795087 в C#? | int offset = 795087; | ### Instruction:
Как объявить переменную offset со значением 795087 в C#?
### Response:
int offset = 795087; |
62,559,361 | 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; |
1,149,852 | ru | Python | var_decl | beginner | Как объявить переменную value со значением 53020 в Python? | value = 53020 | ### Instruction:
Как объявить переменную value со значением 53020 в Python?
### Response:
value = 53020 |
12,460,260 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 436 простым. | def is_prime():
n = 436
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 436 простым.
### Response:
def is_prime():
n = 436
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
3,805,942 | kk | Python | var_decl | beginner | Python тілінде 582616 мәнімен data айнымалысын қалай жариялауға болады? | data = 582616 | ### Instruction:
Python тілінде 582616 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
data = 582616 |
23,851,495 | kk | Python | array_ops | intermediate | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
41,434,386 | ru | C++ | array_ops | advanced | Напишите на C++ функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на C++ функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
57,656,954 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
90,108,498 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
1,464,977 | ru | Python | var_decl | beginner | Как объявить переменную score со значением 818223 в Python? | score = 818223 | ### Instruction:
Как объявить переменную score со значением 818223 в Python?
### Response:
score = 818223 |
779,331 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 6688. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(6688)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 6688.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(6688)); |
2,835,973 | en | JavaScript | var_decl | beginner | How to declare a variable health with value 76571 in JavaScript? | let health = 76571; | ### Instruction:
How to declare a variable health with value 76571 in JavaScript?
### Response:
let health = 76571; |
1,486,594 | en | JavaScript | var_decl | beginner | How to declare a variable score with value 246662 in JavaScript? | let score = 246662; | ### Instruction:
How to declare a variable score with value 246662 in JavaScript?
### Response:
let score = 246662; |
659,053 | en | Unity | var_decl | beginner | How to declare a variable value with value 587257 in Unity? | int value = 587257; | ### Instruction:
How to declare a variable value with value 587257 in Unity?
### Response:
int value = 587257; |
71,116,839 | 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();
} |
4,157,385 | en | Unity | var_decl | beginner | How to declare a variable weight with value 411944 in Unity? | int weight = 411944; | ### Instruction:
How to declare a variable weight with value 411944 in Unity?
### Response:
int weight = 411944; |
4,117,758 | kk | C# | var_decl | beginner | C# тілінде 788501 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 788501; | ### Instruction:
C# тілінде 788501 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 788501; |
54,690,603 | en | C++ | string_ops | intermediate | Write a function that counts vowels in a text in C++. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in C++.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
34,864,624 | ru | Unity | string_ops | advanced | Напишите на 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;
} |
415,028 | en | C# | factorial | advanced | Write a function in C# that calculates the factorial of 9649. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9649)); | ### Instruction:
Write a function in C# that calculates the factorial of 9649.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9649)); |
246,849 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 2258. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(2258));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 2258.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(2258));
} |
27,643,350 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
643,269 | ru | C++ | var_decl | beginner | Как объявить переменную speed со значением 138246 в C++? | int speed = 138246; | ### Instruction:
Как объявить переменную speed со значением 138246 в C++?
### Response:
int speed = 138246; |
24,533,310 | en | C++ | array_ops | intermediate | 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;
} |
1,688,774 | ru | C++ | var_decl | beginner | Как объявить переменную score со значением 908577 в C++? | int score = 908577; | ### Instruction:
Как объявить переменную score со значением 908577 в C++?
### Response:
int score = 908577; |
502,053 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 8556-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(8556)) | ### Instruction:
Python тілінде 1-ден 8556-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(8556)) |
14,058,605 | en | Python | array_ops | intermediate | Write a function that reverses a list in Python. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Write a function that reverses a list in Python.
### Response:
def reverse_list(arr):
return arr[::-1] |
84,707,390 | 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;
} |
13,560,140 | en | Java | array_ops | advanced | Write a function that reverses a list in Java. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Java.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
3,790,800 | ru | Unity | var_decl | beginner | Как объявить переменную level со значением 862662 в Unity? | int level = 862662; | ### Instruction:
Как объявить переменную level со значением 862662 в Unity?
### Response:
int level = 862662; |
2,552,735 | kk | Unity | var_decl | beginner | Unity тілінде 298694 мәнімен size айнымалысын қалай жариялауға болады? | int size = 298694; | ### Instruction:
Unity тілінде 298694 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 298694; |
37,559,184 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 1983 високосным. | function isLeap() {
let y = 1983;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1983 високосным.
### Response:
function isLeap() {
let y = 1983;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
4,152,092 | en | Java | var_decl | beginner | How to declare a variable amount with value 649841 in Java? | int amount = 649841; | ### Instruction:
How to declare a variable amount with value 649841 in Java?
### Response:
int amount = 649841; |
94,883,463 | ru | C++ | array_ops | advanced | Напишите на C++ функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на C++ функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
79,441,183 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 1909 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 1909;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 1909 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 1909;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
1,403,056 | en | C# | var_decl | beginner | How to declare a variable level with value 255590 in C#? | int level = 255590; | ### Instruction:
How to declare a variable level with value 255590 in C#?
### Response:
int level = 255590; |
90,713,613 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 352 простым. | public bool IsPrime() {
int n = 352;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 352 простым.
### Response:
public bool IsPrime() {
int n = 352;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
467,829 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 7638. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(7638)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 7638.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(7638)); |
36,390,038 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 420 простым. | public bool IsPrime() {
int n = 420;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 420 простым.
### Response:
public bool IsPrime() {
int n = 420;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
18,289,464 | en | Java | logic_ops | intermediate | Write a function that determines if the number 448 is prime in Java. | public bool IsPrime() {
int n = 448;
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 448 is prime in Java.
### Response:
public bool IsPrime() {
int n = 448;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
95,566,100 | ru | Java | array_ops | advanced | Напишите на Java функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Java функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
1,802,081 | en | Unity | var_decl | beginner | How to declare a variable data with value 357817 in Unity? | int data = 357817; | ### Instruction:
How to declare a variable data with value 357817 in Unity?
### Response:
int data = 357817; |
2,867,885 | ru | Java | var_decl | beginner | Как объявить переменную speed со значением 371329 в Java? | int speed = 371329; | ### Instruction:
Как объявить переменную speed со значением 371329 в Java?
### Response:
int speed = 371329; |
2,725,844 | ru | Python | var_decl | beginner | Как объявить переменную speed со значением 197369 в Python? | speed = 197369 | ### Instruction:
Как объявить переменную speed со значением 197369 в Python?
### Response:
speed = 197369 |
90,669,466 | ru | C++ | logic_ops | intermediate | Напишите на C++ функцию, определяющую, является ли число 340 простым. | public bool IsPrime() {
int n = 340;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 340 простым.
### Response:
public bool IsPrime() {
int n = 340;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
95,469,799 | 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;
} |
898,333 | en | Python | var_decl | beginner | How to declare a variable y with value 176742 in Python? | y = 176742 | ### Instruction:
How to declare a variable y with value 176742 in Python?
### Response:
y = 176742 |
80,911,966 | en | JavaScript | string_ops | advanced | Write a function that checks if a string is a palindrome in JavaScript. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Write a function that checks if a string is a palindrome in JavaScript.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
57,625,009 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
65,151,925 | 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;
} |
628,653 | kk | C++ | factorial | advanced | C++ тілінде 3582 санының факториалын есептейтін функция жаз. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(3582) << std::endl; | ### Instruction:
C++ тілінде 3582 санының факториалын есептейтін функция жаз.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(3582) << std::endl; |
98,320 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 2340. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(2340));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 2340.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(2340));
} |
12,922,023 | 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(); |
95,073,702 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 2079 високосным. | def is_leap():
year = 2079
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2079 високосным.
### Response:
def is_leap():
year = 2079
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
90,709,113 | ru | C# | array_ops | advanced | Напишите на C# функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на C# функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
55,111 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 6311-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6311)) | ### Instruction:
Python тілінде 1-ден 6311-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6311)) |
76,215,696 | 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;
} |
36,371,113 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 405 is prime in JavaScript. | function isPrime() {
let n = 405;
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 405 is prime in JavaScript.
### Response:
function isPrime() {
let n = 405;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
413,576 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 3249. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(3249)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 3249.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(3249)); |
3,615,341 | en | JavaScript | var_decl | beginner | How to declare a variable index with value 156889 in JavaScript? | let index = 156889; | ### Instruction:
How to declare a variable index with value 156889 in JavaScript?
### Response:
let index = 156889; |
1,724,091 | kk | Python | var_decl | beginner | Python тілінде 187061 мәнімен value айнымалысын қалай жариялауға болады? | value = 187061 | ### Instruction:
Python тілінде 187061 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
value = 187061 |
68,162,860 | ru | Java | string_ops | advanced | Напишите на Java функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Java функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
3,574,428 | en | Java | var_decl | beginner | How to declare a variable score with value 69528 in Java? | int score = 69528; | ### Instruction:
How to declare a variable score with value 69528 in Java?
### Response:
int score = 69528; |
486,585 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 1164. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1164)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 1164.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1164)); |
79,004,130 | en | Java | array_ops | advanced | Write a function that reverses a list in Java. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Java.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
30,009,905 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript логику проверки, является ли год 1990 високосным. | function isLeap() {
let y = 1990;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1990 високосным.
### Response:
function isLeap() {
let y = 1990;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
3,657,735 | kk | Python | var_decl | beginner | Python тілінде 459403 мәнімен buffer айнымалысын қалай жариялауға болады? | buffer = 459403 | ### Instruction:
Python тілінде 459403 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
buffer = 459403 |
3,784,373 | en | JavaScript | var_decl | beginner | How to declare a variable result with value 858118 in JavaScript? | let result = 858118; | ### Instruction:
How to declare a variable result with value 858118 in JavaScript?
### Response:
let result = 858118; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.