id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
26,533,296
ru
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; }
15,931,725
en
C#
logic_ops
intermediate
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); }
207,438
kk
JavaScript
var_decl
beginner
JavaScript тілінде 703011 мәнімен index айнымалысын қалай жариялауға болады?
let index = 703011;
### Instruction: JavaScript тілінде 703011 мәнімен index айнымалысын қалай жариялауға болады? ### Response: let index = 703011;
46,037
kk
C++
sum_n
intermediate
C++ тілінде 1-ден 6792-ге дейінгі сандардың қосындысын есептейтін функция жаз.
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(6792) << std::endl;
### Instruction: C++ тілінде 1-ден 6792-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### 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(6792) << std::endl;
57,662,693
kk
C++
array_ops
intermediate
C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
96,112,020
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
3,673,194
ru
Unity
var_decl
beginner
Как объявить переменную data со значением 520973 в Unity?
int data = 520973;
### Instruction: Как объявить переменную data со значением 520973 в Unity? ### Response: int data = 520973;
18,843,653
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);
3,701,295
en
Python
var_decl
beginner
How to declare a variable x with value 90222 in Python?
x = 90222
### Instruction: How to declare a variable x with value 90222 in Python? ### Response: x = 90222
20,892,406
en
C++
logic_ops
intermediate
Write a function that determines if the number 39 is prime in C++.
public bool IsPrime() { int n = 39; 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 39 is prime in C++. ### Response: public bool IsPrime() { int n = 39; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,020,542
en
C#
var_decl
beginner
How to declare a variable weight with value 906888 in C#?
int weight = 906888;
### Instruction: How to declare a variable weight with value 906888 in C#? ### Response: int weight = 906888;
366,972
kk
Java
sum_n
intermediate
Java тілінде 1-ден 9467-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(9467));
### Instruction: Java тілінде 1-ден 9467-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(9467));
89,303,253
en
C++
logic_ops
intermediate
Write a function that determines if the number 192 is prime in C++.
public bool IsPrime() { int n = 192; 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 192 is prime in C++. ### Response: public bool IsPrime() { int n = 192; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
55,912,506
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); }
91,648
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 5235.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(5235)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 5235. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(5235)); }
36,147
ru
JavaScript
factorial
advanced
Напиши функцию на JavaScript, которая вычисляет факториал числа 6880.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(6880));
### Instruction: Напиши функцию на JavaScript, которая вычисляет факториал числа 6880. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(6880));
82,282,972
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); }
94,299,182
ru
Java
array_ops
intermediate
Напишите на Java функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на Java функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
26,926,100
ru
Python
logic_ops
intermediate
Напишите на Python функцию, определяющую, является ли число 121 простым.
def is_prime(): n = 121 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 121 простым. ### Response: def is_prime(): n = 121 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
45,896,851
kk
Java
logic_ops
intermediate
Java тилінде 1997 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1997; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1997 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1997; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
442,059
en
Python
var_decl
beginner
How to declare a variable rate with value 852162 in Python?
rate = 852162
### Instruction: How to declare a variable rate with value 852162 in Python? ### Response: rate = 852162
69,712,108
en
JavaScript
array_ops
intermediate
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);
931,034
ru
C#
var_decl
beginner
Как объявить переменную level со значением 560046 в C#?
int level = 560046;
### Instruction: Как объявить переменную level со значением 560046 в C#? ### Response: int level = 560046;
64,149
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 7192.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(7192))
### Instruction: Write a function in Python that sums numbers from 1 to 7192. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(7192))
3,504,606
en
Python
var_decl
beginner
How to declare a variable timer with value 765660 in Python?
timer = 765660
### Instruction: How to declare a variable timer with value 765660 in Python? ### Response: timer = 765660
71,842,916
kk
Java
logic_ops
intermediate
Java тилінде 2077 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2077; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 2077 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2077; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
809,071
kk
Unity
var_decl
beginner
Unity тілінде 26972 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 26972;
### Instruction: Unity тілінде 26972 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 26972;
15,708,017
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; }
64,784,113
en
C++
string_ops
intermediate
Write a function that converts a string to uppercase in C++.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in C++. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
19,210,259
en
C++
logic_ops
advanced
Write a function that determines if the number 196 is prime in C++.
public bool IsPrime() { int n = 196; 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 196 is prime in C++. ### Response: public bool IsPrime() { int n = 196; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
97,053,378
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; }
2,568,713
ru
C++
var_decl
beginner
Как объявить переменную y со значением 522320 в C++?
int y = 522320;
### Instruction: Как объявить переменную y со значением 522320 в C++? ### Response: int y = 522320;
15,115,210
en
Unity
logic_ops
intermediate
Write a function that determines if the number 394 is prime in Unity.
public bool IsPrime() { int n = 394; 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 394 is prime in Unity. ### Response: public bool IsPrime() { int n = 394; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,172,466
ru
C#
var_decl
beginner
Как объявить переменную data со значением 816593 в C#?
int data = 816593;
### Instruction: Как объявить переменную data со значением 816593 в C#? ### Response: int data = 816593;
644,321
en
Java
sum_n
intermediate
Write a function in Java that sums numbers from 1 to 9437.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(9437));
### Instruction: Write a function in Java that sums numbers from 1 to 9437. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(9437));
68,158,781
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(); }
371,138
kk
Python
sum_n
intermediate
Python тілінде 1-ден 2937-ге дейінгі сандардың қосындысын есептейтін функция жаз.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(2937))
### Instruction: Python тілінде 1-ден 2937-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(2937))
70,164,720
kk
Unity
array_ops
advanced
Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
2,613,694
en
Java
var_decl
beginner
How to declare a variable y with value 314962 in Java?
int y = 314962;
### Instruction: How to declare a variable y with value 314962 in Java? ### Response: int y = 314962;
4,034,080
en
JavaScript
var_decl
beginner
How to declare a variable y with value 77090 in JavaScript?
let y = 77090;
### Instruction: How to declare a variable y with value 77090 in JavaScript? ### Response: let y = 77090;
525,092
en
JavaScript
factorial
advanced
Write a function in JavaScript that calculates the factorial of 7009.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(7009));
### Instruction: Write a function in JavaScript that calculates the factorial of 7009. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(7009));
44,251,807
ru
Java
array_ops
intermediate
Напишите на Java функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на Java функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
2,902,694
en
Unity
var_decl
beginner
How to declare a variable level with value 936462 in Unity?
int level = 936462;
### Instruction: How to declare a variable level with value 936462 in Unity? ### Response: int level = 936462;
59,529,257
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; }
15,755,182
ru
Unity
logic_ops
intermediate
Напишите на Unity логику проверки, является ли год 2013 високосным.
public bool IsLeap() { int y = 2013; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 2013 високосным. ### Response: public bool IsLeap() { int y = 2013; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
377,341
kk
Python
factorial
advanced
Python тілінде 160 санының факториалын есептейтін функция жаз.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(160))
### Instruction: Python тілінде 160 санының факториалын есептейтін функция жаз. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(160))
13,196,177
kk
Python
string_ops
advanced
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
### Instruction: Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
2,339,742
kk
JavaScript
var_decl
beginner
JavaScript тілінде 491839 мәнімен timer айнымалысын қалай жариялауға болады?
let timer = 491839;
### Instruction: JavaScript тілінде 491839 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: let timer = 491839;
93,733,313
kk
C++
logic_ops
intermediate
C++ тилінде 159 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 159; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C++ тилінде 159 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 159; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
83,073,330
en
C++
logic_ops
intermediate
Write a function that determines if the number 179 is prime in C++.
public bool IsPrime() { int n = 179; 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 179 is prime in C++. ### Response: public bool IsPrime() { int n = 179; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
15,582,052
kk
Python
array_ops
advanced
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
73,049,237
kk
Unity
logic_ops
advanced
Unity тилінде 2092 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2092; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2092 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2092; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
72,488,709
kk
JavaScript
array_ops
intermediate
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
const reverseArr = arr => arr.reverse();
### Instruction: JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: const reverseArr = arr => arr.reverse();
45,182,815
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 2086 високосным.
public bool IsLeap() { int y = 2086; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 2086 високосным. ### Response: public bool IsLeap() { int y = 2086; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
18,423,718
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 2013 високосным.
public bool IsLeap() { int y = 2013; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2013 високосным. ### Response: public bool IsLeap() { int y = 2013; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
54,557
en
Unity
var_decl
beginner
How to declare a variable size with value 747090 in Unity?
int size = 747090;
### Instruction: How to declare a variable size with value 747090 in Unity? ### Response: int size = 747090;
49,880,447
kk
C#
string_ops
advanced
C# тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: C# тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
43,672,168
kk
Unity
string_ops
intermediate
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
63,299,581
ru
JavaScript
logic_ops
advanced
Напишите на JavaScript функцию, определяющую, является ли число 311 простым.
function isPrime() { let n = 311; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 311 простым. ### Response: function isPrime() { let n = 311; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
4,283,650
kk
C#
var_decl
beginner
C# тілінде 519564 мәнімен health айнымалысын қалай жариялауға болады?
int health = 519564;
### Instruction: C# тілінде 519564 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 519564;
4,580,916
kk
C++
var_decl
beginner
C++ тілінде 478696 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 478696;
### Instruction: C++ тілінде 478696 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 478696;
4,973,165
kk
Java
var_decl
beginner
Java тілінде 724730 мәнімен data айнымалысын қалай жариялауға болады?
int data = 724730;
### Instruction: Java тілінде 724730 мәнімен data айнымалысын қалай жариялауға болады? ### Response: int data = 724730;
63,570,100
ru
Unity
string_ops
intermediate
Напишите на Unity функцию, которая проверяет, является ли строка палиндромом.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Напишите на Unity функцию, которая проверяет, является ли строка палиндромом. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
3,548,511
ru
Java
var_decl
beginner
Как объявить переменную timer со значением 245863 в Java?
int timer = 245863;
### Instruction: Как объявить переменную timer со значением 245863 в Java? ### Response: int timer = 245863;
58,968
en
JavaScript
factorial
advanced
Write a function in JavaScript that calculates the factorial of 7074.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(7074));
### Instruction: Write a function in JavaScript that calculates the factorial of 7074. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(7074));
82,510,948
en
Java
array_ops
intermediate
Write a function that finds the maximum number in an array in Java.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in Java. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
13,494,382
ru
Unity
array_ops
intermediate
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Unity функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
4,305,501
ru
Java
var_decl
beginner
Как объявить переменную limit со значением 287357 в Java?
int limit = 287357;
### Instruction: Как объявить переменную limit со значением 287357 в Java? ### Response: int limit = 287357;
645,689
en
C++
var_decl
beginner
How to declare a variable count with value 800497 in C++?
int count = 800497;
### Instruction: How to declare a variable count with value 800497 in C++? ### Response: int count = 800497;
1,280,356
en
Python
var_decl
beginner
How to declare a variable timer with value 87845 in Python?
timer = 87845
### Instruction: How to declare a variable timer with value 87845 in Python? ### Response: timer = 87845
95,278,458
kk
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; }
60,899,811
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
2,815,957
kk
C#
var_decl
beginner
C# тілінде 985068 мәнімен result айнымалысын қалай жариялауға болады?
int result = 985068;
### Instruction: C# тілінде 985068 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 985068;
70,348,134
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 1980 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 1980; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 1980 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 1980; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
1,037,504
kk
C++
var_decl
beginner
C++ тілінде 627070 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 627070;
### Instruction: C++ тілінде 627070 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 627070;
524,189
en
Java
factorial
advanced
Write a function in Java that calculates the factorial of 2561.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(2561));
### Instruction: Write a function in Java that calculates the factorial of 2561. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(2561));
764,702
ru
Java
var_decl
beginner
Как объявить переменную limit со значением 410850 в Java?
int limit = 410850;
### Instruction: Как объявить переменную limit со значением 410850 в Java? ### Response: int limit = 410850;
98,495,050
en
C#
logic_ops
intermediate
Write a function that determines if the number 46 is prime in C#.
public bool IsPrime() { int n = 46; 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 46 is prime in C#. ### Response: public bool IsPrime() { int n = 46; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
87,521,017
en
C#
array_ops
advanced
Write a function that reverses a list in C#.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in C#. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
1,478,597
ru
Unity
var_decl
beginner
Как объявить переменную amount со значением 318665 в Unity?
int amount = 318665;
### Instruction: Как объявить переменную amount со значением 318665 в Unity? ### Response: int amount = 318665;
13,120,505
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
4,010,165
en
C++
var_decl
beginner
How to declare a variable result with value 352302 in C++?
int result = 352302;
### Instruction: How to declare a variable result with value 352302 in C++? ### Response: int result = 352302;
697,319
en
C++
var_decl
beginner
How to declare a variable amount with value 344378 in C++?
int amount = 344378;
### Instruction: How to declare a variable amount with value 344378 in C++? ### Response: int amount = 344378;
50,127,715
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; }
3,376,092
en
C++
var_decl
beginner
How to declare a variable y with value 734590 in C++?
int y = 734590;
### Instruction: How to declare a variable y with value 734590 in C++? ### Response: int y = 734590;
1,879,919
en
JavaScript
var_decl
beginner
How to declare a variable level with value 925430 in JavaScript?
let level = 925430;
### Instruction: How to declare a variable level with value 925430 in JavaScript? ### Response: let level = 925430;
1,746,522
en
C#
var_decl
beginner
How to declare a variable score with value 653050 in C#?
int score = 653050;
### Instruction: How to declare a variable score with value 653050 in C#? ### Response: int score = 653050;
4,482,544
en
Python
var_decl
beginner
How to declare a variable offset with value 423767 in Python?
offset = 423767
### Instruction: How to declare a variable offset with value 423767 in Python? ### Response: offset = 423767
1,998,553
en
Python
var_decl
beginner
How to declare a variable x with value 578386 in Python?
x = 578386
### Instruction: How to declare a variable x with value 578386 in Python? ### Response: x = 578386
3,387,852
kk
Java
var_decl
beginner
Java тілінде 303026 мәнімен total айнымалысын қалай жариялауға болады?
int total = 303026;
### Instruction: Java тілінде 303026 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 303026;
3,564,574
ru
JavaScript
var_decl
beginner
Как объявить переменную total со значением 770277 в JavaScript?
let total = 770277;
### Instruction: Как объявить переменную total со значением 770277 в JavaScript? ### Response: let total = 770277;
66,627,663
ru
C#
string_ops
advanced
Напишите на C# функцию, которая проверяет, является ли строка палиндромом.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Напишите на C# функцию, которая проверяет, является ли строка палиндромом. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
122,867
ru
JavaScript
sum_n
intermediate
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 9244.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(9244));
### Instruction: Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 9244. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(9244));
17,675,924
kk
Python
array_ops
intermediate
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
def get_max(arr): return max(arr)
### Instruction: Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: def get_max(arr): return max(arr)
2,878,209
kk
Python
var_decl
beginner
Python тілінде 37795 мәнімен value айнымалысын қалай жариялауға болады?
value = 37795
### Instruction: Python тілінде 37795 мәнімен value айнымалысын қалай жариялауға болады? ### Response: value = 37795
1,499,892
kk
Unity
var_decl
beginner
Unity тілінде 967476 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 967476;
### Instruction: Unity тілінде 967476 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 967476;
95,692,698
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 448 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 448; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 448 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 448; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
3,586,768
en
C#
var_decl
beginner
How to declare a variable y with value 772522 in C#?
int y = 772522;
### Instruction: How to declare a variable y with value 772522 in C#? ### Response: int y = 772522;
48,056,367
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 343 простым.
public bool IsPrime() { int n = 343; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 343 простым. ### Response: public bool IsPrime() { int n = 343; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,089,187
kk
Java
var_decl
beginner
Java тілінде 425191 мәнімен count айнымалысын қалай жариялауға болады?
int count = 425191;
### Instruction: Java тілінде 425191 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 425191;