id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
33,921,618
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; }
2,254,524
kk
C#
var_decl
beginner
C# тілінде 461700 мәнімен y айнымалысын қалай жариялауға болады?
int y = 461700;
### Instruction: C# тілінде 461700 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 461700;
247,277
kk
Unity
factorial
advanced
Unity тілінде 7340 санының факториалын есептейтін функция жаз.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7340)); }
### Instruction: Unity тілінде 7340 санының факториалын есептейтін функция жаз. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7340)); }
30,867,753
ru
Unity
array_ops
advanced
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Unity функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
52,296,131
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; }
443,846
kk
C++
factorial
advanced
C++ тілінде 5863 санының факториалын есептейтін функция жаз.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(5863) << std::endl;
### Instruction: C++ тілінде 5863 санының факториалын есептейтін функция жаз. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(5863) << std::endl;
2,932,429
kk
C#
var_decl
beginner
C# тілінде 702729 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 702729;
### Instruction: C# тілінде 702729 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 702729;
3,854,163
ru
C++
var_decl
beginner
Как объявить переменную level со значением 93339 в C++?
int level = 93339;
### Instruction: Как объявить переменную level со значением 93339 в C++? ### Response: int level = 93339;
96,674,361
kk
Unity
logic_ops
advanced
Unity тилінде 2055 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2055; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2055 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2055; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
31,948,648
en
Java
string_ops
intermediate
Write a function that checks if a string is a palindrome in Java.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in Java. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
59,519,905
en
JavaScript
logic_ops
advanced
Write logic to check if the year 1904 is a leap year in JavaScript.
function isLeap() { let y = 1904; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Write logic to check if the year 1904 is a leap year in JavaScript. ### Response: function isLeap() { let y = 1904; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
1,839,938
ru
Python
var_decl
beginner
Как объявить переменную score со значением 193189 в Python?
score = 193189
### Instruction: Как объявить переменную score со значением 193189 в Python? ### Response: score = 193189
18,024,492
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; }
1,026,977
en
JavaScript
var_decl
beginner
How to declare a variable x with value 956553 in JavaScript?
let x = 956553;
### Instruction: How to declare a variable x with value 956553 in JavaScript? ### Response: let x = 956553;
998,628
kk
Python
var_decl
beginner
Python тілінде 807269 мәнімен health айнымалысын қалай жариялауға болады?
health = 807269
### Instruction: Python тілінде 807269 мәнімен health айнымалысын қалай жариялауға болады? ### Response: health = 807269
56,476,482
en
Java
string_ops
advanced
Write a function that converts a string to uppercase in Java.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Java. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
4,916,385
kk
Java
var_decl
beginner
Java тілінде 114582 мәнімен data айнымалысын қалай жариялауға болады?
int data = 114582;
### Instruction: Java тілінде 114582 мәнімен data айнымалысын қалай жариялауға болады? ### Response: int data = 114582;
2,047,124
ru
Java
var_decl
beginner
Как объявить переменную index со значением 194594 в Java?
int index = 194594;
### Instruction: Как объявить переменную index со значением 194594 в Java? ### Response: int index = 194594;
11,225,807
ru
C++
string_ops
intermediate
Напишите на C++ функцию, которая проверяет, является ли строка палиндромом.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Напишите на C++ функцию, которая проверяет, является ли строка палиндромом. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
4,171,986
kk
C++
var_decl
beginner
C++ тілінде 807016 мәнімен health айнымалысын қалай жариялауға болады?
int health = 807016;
### Instruction: C++ тілінде 807016 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 807016;
4,262,533
kk
C++
var_decl
beginner
C++ тілінде 374827 мәнімен buffer айнымалысын қалай жариялауға болады?
int buffer = 374827;
### Instruction: C++ тілінде 374827 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: int buffer = 374827;
3,846,514
ru
Java
var_decl
beginner
Как объявить переменную offset со значением 82194 в Java?
int offset = 82194;
### Instruction: Как объявить переменную offset со значением 82194 в Java? ### Response: int offset = 82194;
25,748,180
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; }
63,625,995
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; }
1,167,365
en
Java
var_decl
beginner
How to declare a variable index with value 268795 in Java?
int index = 268795;
### Instruction: How to declare a variable index with value 268795 in Java? ### Response: int index = 268795;
45,572,783
kk
Unity
logic_ops
intermediate
Unity тилінде 230 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 230; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 230 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 230; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,852,803
ru
Java
var_decl
beginner
Как объявить переменную total со значением 280431 в Java?
int total = 280431;
### Instruction: Как объявить переменную total со значением 280431 в Java? ### Response: int total = 280431;
94,754,551
kk
Unity
logic_ops
intermediate
Unity тилінде 476 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 476; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 476 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 476; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
235,075
en
C++
var_decl
beginner
How to declare a variable total with value 460957 in C++?
int total = 460957;
### Instruction: How to declare a variable total with value 460957 in C++? ### Response: int total = 460957;
3,053,372
kk
Java
var_decl
beginner
Java тілінде 20741 мәнімен x айнымалысын қалай жариялауға болады?
int x = 20741;
### Instruction: Java тілінде 20741 мәнімен x айнымалысын қалай жариялауға болады? ### Response: int x = 20741;
71,253,755
en
JavaScript
string_ops
intermediate
Write a function that converts a string to uppercase in JavaScript.
const toUpper = s => s.toUpperCase();
### Instruction: Write a function that converts a string to uppercase in JavaScript. ### Response: const toUpper = s => s.toUpperCase();
20,557,104
en
Python
string_ops
intermediate
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аеёиоуыэюя')
29,438,035
kk
Python
string_ops
intermediate
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аеёиоуыэюя')
3,271,146
kk
C++
var_decl
beginner
C++ тілінде 577901 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 577901;
### Instruction: C++ тілінде 577901 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 577901;
424,713
kk
Unity
factorial
advanced
Unity тілінде 418 санының факториалын есептейтін функция жаз.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(418)); }
### Instruction: Unity тілінде 418 санының факториалын есептейтін функция жаз. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(418)); }
60,270,542
ru
Python
string_ops
advanced
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
22,941,472
en
C#
string_ops
intermediate
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; }
2,990,508
en
Java
var_decl
beginner
How to declare a variable limit with value 290178 in Java?
int limit = 290178;
### Instruction: How to declare a variable limit with value 290178 in Java? ### Response: int limit = 290178;
550,542
kk
C++
var_decl
beginner
C++ тілінде 601237 мәнімен health айнымалысын қалай жариялауға болады?
int health = 601237;
### Instruction: C++ тілінде 601237 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 601237;
2,016,522
en
Unity
var_decl
beginner
How to declare a variable health with value 306991 in Unity?
int health = 306991;
### Instruction: How to declare a variable health with value 306991 in Unity? ### Response: int health = 306991;
4,399,068
en
Python
var_decl
beginner
How to declare a variable offset with value 709609 in Python?
offset = 709609
### Instruction: How to declare a variable offset with value 709609 in Python? ### Response: offset = 709609
49,317,293
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 72 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 72; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 72 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 72; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
19,760,228
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; }
48,327,887
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
93,645,191
kk
Python
array_ops
advanced
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
def get_max(arr): return max(arr)
### Instruction: Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: def get_max(arr): return max(arr)
3,303,268
en
Unity
var_decl
beginner
How to declare a variable weight with value 345199 in Unity?
int weight = 345199;
### Instruction: How to declare a variable weight with value 345199 in Unity? ### Response: int weight = 345199;
51,205,659
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; }
64,632,225
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; }
44,340,366
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 1937 високосным.
public bool IsLeap() { int y = 1937; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 1937 високосным. ### Response: public bool IsLeap() { int y = 1937; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,707,774
en
JavaScript
var_decl
beginner
How to declare a variable buffer with value 918752 in JavaScript?
let buffer = 918752;
### Instruction: How to declare a variable buffer with value 918752 in JavaScript? ### Response: let buffer = 918752;
63,608,140
en
Python
array_ops
intermediate
Write a function that filters only even numbers from a list in Python.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Write a function that filters only even numbers from a list in Python. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
58,117,624
en
Unity
logic_ops
intermediate
Write a function that determines if the number 7 is prime in Unity.
public bool IsPrime() { int n = 7; 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 7 is prime in Unity. ### Response: public bool IsPrime() { int n = 7; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,190,348
kk
Python
var_decl
beginner
Python тілінде 530916 мәнімен weight айнымалысын қалай жариялауға болады?
weight = 530916
### Instruction: Python тілінде 530916 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: weight = 530916
49,725,740
ru
Java
string_ops
intermediate
Напишите на Java функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на Java функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
33,380,697
kk
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; }
52,128,721
en
C#
logic_ops
advanced
Write a function that determines if the number 290 is prime in C#.
public bool IsPrime() { int n = 290; 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 290 is prime in C#. ### Response: public bool IsPrime() { int n = 290; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
152,560
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 4267.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(4267)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 4267. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(4267)); }
50,636,677
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 290 простым.
public bool IsPrime() { int n = 290; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 290 простым. ### Response: public bool IsPrime() { int n = 290; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
99,722,326
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 2051 високосным.
public bool IsLeap() { int y = 2051; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 2051 високосным. ### Response: public bool IsLeap() { int y = 2051; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
38,556,967
en
Java
string_ops
advanced
Write a function that checks if a string is a palindrome in Java.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in Java. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
10,333,694
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 2018 високосным.
public bool IsLeap() { int y = 2018; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 2018 високосным. ### Response: public bool IsLeap() { int y = 2018; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
38,428,680
ru
Java
string_ops
intermediate
Напишите на Java функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на Java функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
2,816,760
kk
JavaScript
var_decl
beginner
JavaScript тілінде 266577 мәнімен index айнымалысын қалай жариялауға болады?
let index = 266577;
### Instruction: JavaScript тілінде 266577 мәнімен index айнымалысын қалай жариялауға болады? ### Response: let index = 266577;
67,694,415
kk
Java
logic_ops
advanced
Java тилінде 334 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 334; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 334 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 334; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
34,057,103
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript логику проверки, является ли год 2049 високосным.
function isLeap() { let y = 2049; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 2049 високосным. ### Response: function isLeap() { let y = 2049; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
3,031,645
en
Python
var_decl
beginner
How to declare a variable data with value 685969 in Python?
data = 685969
### Instruction: How to declare a variable data with value 685969 in Python? ### Response: data = 685969
54,893,638
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;
790,596
en
Java
var_decl
beginner
How to declare a variable speed with value 731635 in Java?
int speed = 731635;
### Instruction: How to declare a variable speed with value 731635 in Java? ### Response: int speed = 731635;
746,689
kk
JavaScript
factorial
advanced
JavaScript тілінде 4716 санының факториалын есептейтін функция жаз.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(4716));
### Instruction: JavaScript тілінде 4716 санының факториалын есептейтін функция жаз. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(4716));
3,343,096
en
C++
var_decl
beginner
How to declare a variable y with value 569281 in C++?
int y = 569281;
### Instruction: How to declare a variable y with value 569281 in C++? ### Response: int y = 569281;
15,607,299
en
JavaScript
logic_ops
intermediate
Write logic to check if the year 2028 is a leap year in JavaScript.
function isLeap() { let y = 2028; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Write logic to check if the year 2028 is a leap year in JavaScript. ### Response: function isLeap() { let y = 2028; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
27,763,756
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 127 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 127; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 127 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 127; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
2,100,956
kk
Python
var_decl
beginner
Python тілінде 154976 мәнімен score айнымалысын қалай жариялауға болады?
score = 154976
### Instruction: Python тілінде 154976 мәнімен score айнымалысын қалай жариялауға болады? ### Response: score = 154976
61,520,335
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; }
55,055,312
ru
Unity
string_ops
advanced
Напишите на 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; }
14,451,134
ru
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; }
3,662,390
en
JavaScript
var_decl
beginner
How to declare a variable amount with value 516528 in JavaScript?
let amount = 516528;
### Instruction: How to declare a variable amount with value 516528 in JavaScript? ### Response: let amount = 516528;
768,401
kk
C++
var_decl
beginner
C++ тілінде 364217 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 364217;
### Instruction: C++ тілінде 364217 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 364217;
3,417,390
kk
JavaScript
var_decl
beginner
JavaScript тілінде 417335 мәнімен x айнымалысын қалай жариялауға болады?
let x = 417335;
### Instruction: JavaScript тілінде 417335 мәнімен x айнымалысын қалай жариялауға болады? ### Response: let x = 417335;
14,350,690
kk
Unity
array_ops
intermediate
Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
97,617,380
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; }
3,231,534
ru
Unity
var_decl
beginner
Как объявить переменную size со значением 465736 в Unity?
int size = 465736;
### Instruction: Как объявить переменную size со значением 465736 в Unity? ### Response: int size = 465736;
362,395
en
Java
sum_n
intermediate
Write a function in Java that sums numbers from 1 to 7473.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(7473));
### Instruction: Write a function in Java that sums numbers from 1 to 7473. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(7473));
4,196,711
en
Java
var_decl
beginner
How to declare a variable speed with value 170174 in Java?
int speed = 170174;
### Instruction: How to declare a variable speed with value 170174 in Java? ### Response: int speed = 170174;
3,319,563
en
JavaScript
var_decl
beginner
How to declare a variable speed with value 786167 in JavaScript?
let speed = 786167;
### Instruction: How to declare a variable speed with value 786167 in JavaScript? ### Response: let speed = 786167;
4,809,735
ru
Python
var_decl
beginner
Как объявить переменную data со значением 559856 в Python?
data = 559856
### Instruction: Как объявить переменную data со значением 559856 в Python? ### Response: data = 559856
4,865,476
ru
JavaScript
var_decl
beginner
Как объявить переменную buffer со значением 108866 в JavaScript?
let buffer = 108866;
### Instruction: Как объявить переменную buffer со значением 108866 в JavaScript? ### Response: let buffer = 108866;
1,411,033
ru
C++
var_decl
beginner
Как объявить переменную level со значением 423173 в C++?
int level = 423173;
### Instruction: Как объявить переменную level со значением 423173 в C++? ### Response: int level = 423173;
18,417,207
en
C++
logic_ops
intermediate
Write a function that determines if the number 257 is prime in C++.
public bool IsPrime() { int n = 257; 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 257 is prime in C++. ### Response: public bool IsPrime() { int n = 257; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
36,345,786
kk
Python
array_ops
advanced
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
def get_max(arr): return max(arr)
### Instruction: Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: def get_max(arr): return max(arr)
46,188,970
en
C++
logic_ops
intermediate
Write logic to check if the year 2026 is a leap year in C++.
public bool IsLeap() { int y = 2026; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2026 is a leap year in C++. ### Response: public bool IsLeap() { int y = 2026; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
716,711
ru
C#
factorial
advanced
Напиши функцию на C#, которая вычисляет факториал числа 3159.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(3159));
### Instruction: Напиши функцию на C#, которая вычисляет факториал числа 3159. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(3159));
4,490,838
ru
Unity
var_decl
beginner
Как объявить переменную offset со значением 247969 в Unity?
int offset = 247969;
### Instruction: Как объявить переменную offset со значением 247969 в Unity? ### Response: int offset = 247969;
93,664,019
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 211 простым.
public bool IsPrime() { int n = 211; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 211 простым. ### Response: public bool IsPrime() { int n = 211; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,046,787
ru
JavaScript
factorial
advanced
Напиши функцию на JavaScript, которая вычисляет факториал числа 1897.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(1897));
### Instruction: Напиши функцию на JavaScript, которая вычисляет факториал числа 1897. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(1897));
63,514,050
ru
Unity
array_ops
intermediate
Напишите на Unity функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на Unity функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
290,819
en
Java
var_decl
beginner
How to declare a variable speed with value 521705 in Java?
int speed = 521705;
### Instruction: How to declare a variable speed with value 521705 in Java? ### Response: int speed = 521705;
1,408,692
en
Java
var_decl
beginner
How to declare a variable index with value 808619 in Java?
int index = 808619;
### Instruction: How to declare a variable index with value 808619 in Java? ### Response: int index = 808619;
683,981
kk
JavaScript
var_decl
beginner
JavaScript тілінде 346538 мәнімен limit айнымалысын қалай жариялауға болады?
let limit = 346538;
### Instruction: JavaScript тілінде 346538 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: let limit = 346538;
3,720,519
en
Python
var_decl
beginner
How to declare a variable level with value 61140 in Python?
level = 61140
### Instruction: How to declare a variable level with value 61140 in Python? ### Response: level = 61140