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
2,056,808
kk
C++
var_decl
beginner
C++ тілінде 608610 мәнімен level айнымалысын қалай жариялауға болады?
int level = 608610;
### Instruction: C++ тілінде 608610 мәнімен level айнымалысын қалай жариялауға болады? ### Response: int level = 608610;
57,221,115
en
JavaScript
string_ops
advanced
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;
49,973,500
ru
C++
array_ops
intermediate
Напишите на 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; }
51,653,731
ru
C++
array_ops
intermediate
Напишите на 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; }
63,104,147
en
Unity
string_ops
advanced
Write a function that checks if a string is a palindrome in 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: Write a function that checks if a string is a palindrome in 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; }
48,249,264
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 2067 високосным.
public bool IsLeap() { int y = 2067; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2067 високосным. ### Response: public bool IsLeap() { int y = 2067; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,413,794
en
Python
var_decl
beginner
How to declare a variable x with value 541724 in Python?
x = 541724
### Instruction: How to declare a variable x with value 541724 in Python? ### Response: x = 541724
35,867,646
en
Python
logic_ops
advanced
Write logic to check if the year 1906 is a leap year in Python.
def is_leap(): year = 1906 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 1906 is a leap year in Python. ### Response: def is_leap(): year = 1906 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
2,647,744
kk
C#
var_decl
beginner
C# тілінде 833379 мәнімен health айнымалысын қалай жариялауға болады?
int health = 833379;
### Instruction: C# тілінде 833379 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 833379;
378,324
ru
Unity
var_decl
beginner
Как объявить переменную offset со значением 525414 в Unity?
int offset = 525414;
### Instruction: Как объявить переменную offset со значением 525414 в Unity? ### Response: int offset = 525414;
11,369,349
kk
JavaScript
array_ops
advanced
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
33,341,344
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; }
54,658,723
en
C++
string_ops
advanced
Write a function that counts vowels in a text in C++.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in C++. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
52,283,663
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); }
915,636
ru
JavaScript
var_decl
beginner
Как объявить переменную value со значением 495731 в JavaScript?
let value = 495731;
### Instruction: Как объявить переменную value со значением 495731 в JavaScript? ### Response: let value = 495731;
2,086,334
kk
Unity
var_decl
beginner
Unity тілінде 260718 мәнімен total айнымалысын қалай жариялауға болады?
int total = 260718;
### Instruction: Unity тілінде 260718 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 260718;
56,279,270
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая фильтрует только четные числа из списка.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Напишите на Python функцию, которая фильтрует только четные числа из списка. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
879,226
en
Python
var_decl
beginner
How to declare a variable y with value 977148 in Python?
y = 977148
### Instruction: How to declare a variable y with value 977148 in Python? ### Response: y = 977148
3,849,950
ru
Java
var_decl
beginner
Как объявить переменную buffer со значением 301982 в Java?
int buffer = 301982;
### Instruction: Как объявить переменную buffer со значением 301982 в Java? ### Response: int buffer = 301982;
39,865,085
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аеёиоуыэюя')
4,453,023
kk
Unity
var_decl
beginner
Unity тілінде 212894 мәнімен value айнымалысын қалай жариялауға болады?
int value = 212894;
### Instruction: Unity тілінде 212894 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 212894;
184,877
ru
C#
sum_n
intermediate
Напиши функцию на C#, которая считает сумму чисел от 1 до 7630.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(7630));
### Instruction: Напиши функцию на C#, которая считает сумму чисел от 1 до 7630. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(7630));
131,272
kk
Python
sum_n
intermediate
Python тілінде 1-ден 1093-ге дейінгі сандардың қосындысын есептейтін функция жаз.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1093))
### Instruction: Python тілінде 1-ден 1093-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1093))
3,894,648
en
JavaScript
var_decl
beginner
How to declare a variable buffer with value 955714 in JavaScript?
let buffer = 955714;
### Instruction: How to declare a variable buffer with value 955714 in JavaScript? ### Response: let buffer = 955714;
95,775,739
en
Unity
logic_ops
intermediate
Write logic to check if the year 1953 is a leap year in Unity.
public bool IsLeap() { int y = 1953; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1953 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 1953; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,483,901
kk
C++
var_decl
beginner
C++ тілінде 689425 мәнімен buffer айнымалысын қалай жариялауға болады?
int buffer = 689425;
### Instruction: C++ тілінде 689425 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: int buffer = 689425;
80,716,852
ru
Java
logic_ops
advanced
Напишите на Java функцию, определяющую, является ли число 378 простым.
public bool IsPrime() { int n = 378; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 378 простым. ### Response: public bool IsPrime() { int n = 378; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
539,863
en
Python
var_decl
beginner
How to declare a variable count with value 359742 in Python?
count = 359742
### Instruction: How to declare a variable count with value 359742 in Python? ### Response: count = 359742
4,478,910
ru
C++
var_decl
beginner
Как объявить переменную timer со значением 253830 в C++?
int timer = 253830;
### Instruction: Как объявить переменную timer со значением 253830 в C++? ### Response: int timer = 253830;
94,246,977
ru
Python
logic_ops
intermediate
Напишите на Python логику проверки, является ли год 1932 високосным.
def is_leap(): year = 1932 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 1932 високосным. ### Response: def is_leap(): year = 1932 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
30,493,892
ru
Unity
array_ops
advanced
Напишите на Unity функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на Unity функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
11,356,555
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; }
648,073
en
Unity
var_decl
beginner
How to declare a variable value with value 518273 in Unity?
int value = 518273;
### Instruction: How to declare a variable value with value 518273 in Unity? ### Response: int value = 518273;
343,437
kk
Java
sum_n
intermediate
Java тілінде 1-ден 1075-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(1075));
### Instruction: Java тілінде 1-ден 1075-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(1075));
16,012,772
kk
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); }
35,896,830
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; }
68,258,373
kk
C++
array_ops
intermediate
C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
76,041,098
kk
C++
logic_ops
advanced
C++ тилінде 1902 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1902; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 1902 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1902; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
150,090
ru
Java
factorial
advanced
Напиши функцию на Java, которая вычисляет факториал числа 3398.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(3398));
### Instruction: Напиши функцию на Java, которая вычисляет факториал числа 3398. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(3398));
2,845,796
ru
Python
var_decl
beginner
Как объявить переменную speed со значением 494810 в Python?
speed = 494810
### Instruction: Как объявить переменную speed со значением 494810 в Python? ### Response: speed = 494810
2,017,717
kk
Unity
var_decl
beginner
Unity тілінде 242524 мәнімен y айнымалысын қалай жариялауға болады?
int y = 242524;
### Instruction: Unity тілінде 242524 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 242524;
18,142,349
kk
Java
logic_ops
intermediate
Java тилінде 1929 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1929; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1929 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1929; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
13,329,841
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); }
45,424,815
en
JavaScript
string_ops
advanced
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();
84,999,784
en
C++
logic_ops
intermediate
Write a function that determines if the number 27 is prime in C++.
public bool IsPrime() { int n = 27; 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 27 is prime in C++. ### Response: public bool IsPrime() { int n = 27; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
49,635,633
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('');
21,840,735
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 290 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 290; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 290 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 290; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
27,127,496
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(); }
56,286,665
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); }
47,861,108
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(); }
2,987,810
ru
C#
var_decl
beginner
Как объявить переменную amount со значением 1206 в C#?
int amount = 1206;
### Instruction: Как объявить переменную amount со значением 1206 в C#? ### Response: int amount = 1206;
34,744,438
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая находит максимальное число в массиве.
def get_max(arr): return max(arr)
### Instruction: Напишите на Python функцию, которая находит максимальное число в массиве. ### Response: def get_max(arr): return max(arr)
2,576,210
en
C#
var_decl
beginner
How to declare a variable limit with value 544267 in C#?
int limit = 544267;
### Instruction: How to declare a variable limit with value 544267 in C#? ### Response: int limit = 544267;
13,756,298
kk
Python
string_ops
intermediate
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
32,501,796
en
C#
logic_ops
advanced
Write a function that determines if the number 100 is prime in C#.
public bool IsPrime() { int n = 100; 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 100 is prime in C#. ### Response: public bool IsPrime() { int n = 100; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
18,299,049
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 2057 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 2057; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 2057 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 2057; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
90,235,526
kk
C++
logic_ops
advanced
C++ тилінде 329 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 329; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C++ тилінде 329 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 329; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
775,600
ru
C++
var_decl
beginner
Как объявить переменную buffer со значением 50312 в C++?
int buffer = 50312;
### Instruction: Как объявить переменную buffer со значением 50312 в C++? ### Response: int buffer = 50312;
869,416
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 3805.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(3805)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 3805. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(3805)); }
83,624,441
en
Unity
array_ops
advanced
Write a function that reverses a list in Unity.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in Unity. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
98,915,663
en
Java
logic_ops
intermediate
Write a function that determines if the number 336 is prime in Java.
public bool IsPrime() { int n = 336; 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 336 is prime in Java. ### Response: public bool IsPrime() { int n = 336; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,629,232
en
C++
var_decl
beginner
How to declare a variable speed with value 837003 in C++?
int speed = 837003;
### Instruction: How to declare a variable speed with value 837003 in C++? ### Response: int speed = 837003;
97,638,427
en
Unity
string_ops
intermediate
Write a function that checks if a string is a palindrome in 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: Write a function that checks if a string is a palindrome in 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; }
4,252,100
en
Java
var_decl
beginner
How to declare a variable value with value 262797 in Java?
int value = 262797;
### Instruction: How to declare a variable value with value 262797 in Java? ### Response: int value = 262797;
72,691,641
ru
JavaScript
logic_ops
advanced
Напишите на JavaScript логику проверки, является ли год 1932 високосным.
function isLeap() { let y = 1932; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 1932 високосным. ### Response: function isLeap() { let y = 1932; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
57,055,803
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 2071 високосным.
public bool IsLeap() { int y = 2071; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 2071 високосным. ### Response: public bool IsLeap() { int y = 2071; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,094,865
en
Java
var_decl
beginner
How to declare a variable speed with value 319495 in Java?
int speed = 319495;
### Instruction: How to declare a variable speed with value 319495 in Java? ### Response: int speed = 319495;
4,956,691
kk
C++
var_decl
beginner
C++ тілінде 382845 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 382845;
### Instruction: C++ тілінде 382845 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 382845;
15,094,564
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 2004 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 2004; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 2004 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 2004; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
27,109,851
en
Python
array_ops
intermediate
Write a function that finds the maximum number in an array in Python.
def get_max(arr): return max(arr)
### Instruction: Write a function that finds the maximum number in an array in Python. ### Response: def get_max(arr): return max(arr)
18,119,065
kk
Python
array_ops
intermediate
Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
79,486,569
ru
C++
string_ops
intermediate
Напишите на C++ функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на C++ функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
42,052,932
ru
Java
array_ops
intermediate
Напишите на Java функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Java функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
60,693,599
kk
C++
logic_ops
intermediate
C++ тилінде 2017 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2017; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 2017 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2017; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,506,756
kk
C++
var_decl
beginner
C++ тілінде 774316 мәнімен count айнымалысын қалай жариялауға болады?
int count = 774316;
### Instruction: C++ тілінде 774316 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 774316;
4,459,181
kk
Python
var_decl
beginner
Python тілінде 294586 мәнімен weight айнымалысын қалай жариялауға болады?
weight = 294586
### Instruction: Python тілінде 294586 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: weight = 294586
2,413,854
ru
JavaScript
var_decl
beginner
Как объявить переменную x со значением 57989 в JavaScript?
let x = 57989;
### Instruction: Как объявить переменную x со значением 57989 в JavaScript? ### Response: let x = 57989;
3,229,256
en
JavaScript
var_decl
beginner
How to declare a variable x with value 405421 in JavaScript?
let x = 405421;
### Instruction: How to declare a variable x with value 405421 in JavaScript? ### Response: let x = 405421;
16,774,124
kk
Python
string_ops
advanced
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
def is_palindrome(s): return s == s[::-1]
### Instruction: Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: def is_palindrome(s): return s == s[::-1]
57,940,424
kk
C#
logic_ops
advanced
C# тилінде 2080 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2080; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C# тилінде 2080 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2080; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,844,804
kk
Python
var_decl
beginner
Python тілінде 36947 мәнімен index айнымалысын қалай жариялауға болады?
index = 36947
### Instruction: Python тілінде 36947 мәнімен index айнымалысын қалай жариялауға болады? ### Response: index = 36947
4,808,418
kk
C++
var_decl
beginner
C++ тілінде 185610 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 185610;
### Instruction: C++ тілінде 185610 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 185610;
40,715,509
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; }
91,094,111
kk
JavaScript
string_ops
advanced
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
3,618,887
ru
Java
var_decl
beginner
Как объявить переменную score со значением 234508 в Java?
int score = 234508;
### Instruction: Как объявить переменную score со значением 234508 в Java? ### Response: int score = 234508;
1,723,041
en
Unity
var_decl
beginner
How to declare a variable timer with value 325107 in Unity?
int timer = 325107;
### Instruction: How to declare a variable timer with value 325107 in Unity? ### Response: int timer = 325107;
51,335,530
ru
Unity
logic_ops
advanced
Напишите на Unity логику проверки, является ли год 1978 високосным.
public bool IsLeap() { int y = 1978; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1978 високосным. ### Response: public bool IsLeap() { int y = 1978; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,879,312
ru
JavaScript
var_decl
beginner
Как объявить переменную result со значением 156484 в JavaScript?
let result = 156484;
### Instruction: Как объявить переменную result со значением 156484 в JavaScript? ### Response: let result = 156484;
15,900,132
en
Python
string_ops
advanced
Write a function that checks if a string is a palindrome in Python.
def is_palindrome(s): return s == s[::-1]
### Instruction: Write a function that checks if a string is a palindrome in Python. ### Response: def is_palindrome(s): return s == s[::-1]
31,277,558
en
JavaScript
string_ops
advanced
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();
1,919,312
ru
Unity
var_decl
beginner
Как объявить переменную size со значением 549264 в Unity?
int size = 549264;
### Instruction: Как объявить переменную size со значением 549264 в Unity? ### Response: int size = 549264;
94,964,596
en
C#
string_ops
advanced
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(); }
73,998,514
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; }
4,083,529
ru
Java
var_decl
beginner
Как объявить переменную amount со значением 597213 в Java?
int amount = 597213;
### Instruction: Как объявить переменную amount со значением 597213 в Java? ### Response: int amount = 597213;
28,761,048
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; }
2,355,937
ru
Java
var_decl
beginner
Как объявить переменную amount со значением 644556 в Java?
int amount = 644556;
### Instruction: Как объявить переменную amount со значением 644556 в Java? ### Response: int amount = 644556;
4,297,665
ru
C#
var_decl
beginner
Как объявить переменную count со значением 712204 в C#?
int count = 712204;
### Instruction: Как объявить переменную count со значением 712204 в C#? ### Response: int count = 712204;
34,017,362
en
C#
array_ops
advanced
Write a function that filters only even numbers from a list in C#.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Write a function that filters only even numbers from a list in C#. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
1,710,660
en
JavaScript
var_decl
beginner
How to declare a variable amount with value 453411 in JavaScript?
let amount = 453411;
### Instruction: How to declare a variable amount with value 453411 in JavaScript? ### Response: let amount = 453411;
38,636,444
en
C++
logic_ops
intermediate
Write logic to check if the year 2093 is a leap year in C++.
public bool IsLeap() { int y = 2093; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2093 is a leap year in C++. ### Response: public bool IsLeap() { int y = 2093; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }