id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
83,374,765
en
Python
string_ops
advanced
Write a function that counts vowels in a text in Python.
def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
### Instruction: Write a function that counts vowels in a text in Python. ### Response: def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
59,380,157
en
Unity
array_ops
intermediate
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; }
97,900,905
kk
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; }
937,897
kk
C#
var_decl
beginner
C# тілінде 213426 мәнімен result айнымалысын қалай жариялауға болады?
int result = 213426;
### Instruction: C# тілінде 213426 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 213426;
43,331,165
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
87,636,647
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; }
1,195,723
en
Java
var_decl
beginner
How to declare a variable weight with value 213209 in Java?
int weight = 213209;
### Instruction: How to declare a variable weight with value 213209 in Java? ### Response: int weight = 213209;
93,097,314
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); }
40,972,542
kk
C++
logic_ops
intermediate
C++ тилінде 1969 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1969; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 1969 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1969; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
84,660,029
kk
C#
string_ops
advanced
C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
4,214,332
kk
Python
var_decl
beginner
Python тілінде 752422 мәнімен level айнымалысын қалай жариялауға болады?
level = 752422
### Instruction: Python тілінде 752422 мәнімен level айнымалысын қалай жариялауға болады? ### Response: level = 752422
56,292,452
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
2,230,935
kk
C#
var_decl
beginner
C# тілінде 88001 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 88001;
### Instruction: C# тілінде 88001 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 88001;
2,628,599
en
JavaScript
var_decl
beginner
How to declare a variable total with value 872731 in JavaScript?
let total = 872731;
### Instruction: How to declare a variable total with value 872731 in JavaScript? ### Response: let total = 872731;
1,253,289
en
JavaScript
var_decl
beginner
How to declare a variable buffer with value 945880 in JavaScript?
let buffer = 945880;
### Instruction: How to declare a variable buffer with value 945880 in JavaScript? ### Response: let buffer = 945880;
2,355,016
ru
Unity
var_decl
beginner
Как объявить переменную index со значением 791237 в Unity?
int index = 791237;
### Instruction: Как объявить переменную index со значением 791237 в Unity? ### Response: int index = 791237;
47,928,946
kk
Python
string_ops
intermediate
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
3,272,991
en
Java
var_decl
beginner
How to declare a variable limit with value 175962 in Java?
int limit = 175962;
### Instruction: How to declare a variable limit with value 175962 in Java? ### Response: int limit = 175962;
98,813,516
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); }
4,345,926
kk
C++
var_decl
beginner
C++ тілінде 574872 мәнімен score айнымалысын қалай жариялауға болады?
int score = 574872;
### Instruction: C++ тілінде 574872 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 574872;
77,378,443
en
Unity
string_ops
intermediate
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; }
65,591,942
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
1,063,898
ru
Unity
var_decl
beginner
Как объявить переменную count со значением 105371 в Unity?
int count = 105371;
### Instruction: Как объявить переменную count со значением 105371 в Unity? ### Response: int count = 105371;
4,088,065
kk
Unity
var_decl
beginner
Unity тілінде 947597 мәнімен x айнымалысын қалай жариялауға болады?
int x = 947597;
### Instruction: Unity тілінде 947597 мәнімен x айнымалысын қалай жариялауға болады? ### Response: int x = 947597;
66,079,453
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 1965 високосным.
public bool IsLeap() { int y = 1965; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 1965 високосным. ### Response: public bool IsLeap() { int y = 1965; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
35,120,035
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(); }
72,378,992
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);
39,086,026
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; }
998,677
en
Unity
var_decl
beginner
How to declare a variable amount with value 684790 in Unity?
int amount = 684790;
### Instruction: How to declare a variable amount with value 684790 in Unity? ### Response: int amount = 684790;
72,326,975
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; }
2,356,449
en
Java
var_decl
beginner
How to declare a variable count with value 748718 in Java?
int count = 748718;
### Instruction: How to declare a variable count with value 748718 in Java? ### Response: int count = 748718;
39,958,526
en
C++
logic_ops
intermediate
Write a function that determines if the number 490 is prime in C++.
public bool IsPrime() { int n = 490; 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 490 is prime in C++. ### Response: public bool IsPrime() { int n = 490; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
60,173,813
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; }
41,575,092
ru
Unity
logic_ops
intermediate
Напишите на Unity логику проверки, является ли год 1957 високосным.
public bool IsLeap() { int y = 1957; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1957 високосным. ### Response: public bool IsLeap() { int y = 1957; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,486,165
en
C#
var_decl
beginner
How to declare a variable size with value 160599 in C#?
int size = 160599;
### Instruction: How to declare a variable size with value 160599 in C#? ### Response: int size = 160599;
155,136
kk
C++
sum_n
intermediate
C++ тілінде 1-ден 3165-ге дейінгі сандардың қосындысын есептейтін функция жаз.
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(3165) << std::endl;
### Instruction: C++ тілінде 1-ден 3165-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### 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(3165) << std::endl;
28,263,509
kk
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; }
2,480,753
kk
JavaScript
var_decl
beginner
JavaScript тілінде 969057 мәнімен total айнымалысын қалай жариялауға болады?
let total = 969057;
### Instruction: JavaScript тілінде 969057 мәнімен total айнымалысын қалай жариялауға болады? ### Response: let total = 969057;
305,894
en
C#
factorial
advanced
Write a function in C# that calculates the factorial of 5495.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(5495));
### Instruction: Write a function in C# that calculates the factorial of 5495. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(5495));
2,424,593
kk
Unity
var_decl
beginner
Unity тілінде 946712 мәнімен health айнымалысын қалай жариялауға болады?
int health = 946712;
### Instruction: Unity тілінде 946712 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 946712;
89,431,190
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; }
3,579,158
ru
Unity
var_decl
beginner
Как объявить переменную value со значением 417710 в Unity?
int value = 417710;
### Instruction: Как объявить переменную value со значением 417710 в Unity? ### Response: int value = 417710;
1,797,984
kk
Unity
var_decl
beginner
Unity тілінде 654001 мәнімен score айнымалысын қалай жариялауға болады?
int score = 654001;
### Instruction: Unity тілінде 654001 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 654001;
403,232
kk
Python
var_decl
beginner
Python тілінде 714555 мәнімен health айнымалысын қалай жариялауға болады?
health = 714555
### Instruction: Python тілінде 714555 мәнімен health айнымалысын қалай жариялауға болады? ### Response: health = 714555
320,323
kk
JavaScript
factorial
advanced
JavaScript тілінде 5703 санының факториалын есептейтін функция жаз.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(5703));
### Instruction: JavaScript тілінде 5703 санының факториалын есептейтін функция жаз. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(5703));
381,024
ru
Python
factorial
advanced
Напиши функцию на Python, которая вычисляет факториал числа 6771.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(6771))
### Instruction: Напиши функцию на Python, которая вычисляет факториал числа 6771. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(6771))
92,225,835
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,364,550
ru
C++
var_decl
beginner
Как объявить переменную result со значением 564285 в C++?
int result = 564285;
### Instruction: Как объявить переменную result со значением 564285 в C++? ### Response: int result = 564285;
56,840,016
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; }
62,191,307
en
C++
logic_ops
intermediate
Write a function that determines if the number 345 is prime in C++.
public bool IsPrime() { int n = 345; 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 345 is prime in C++. ### Response: public bool IsPrime() { int n = 345; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
93,147,311
kk
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; }
2,966,722
kk
Java
var_decl
beginner
Java тілінде 468049 мәнімен size айнымалысын қалай жариялауға болады?
int size = 468049;
### Instruction: Java тілінде 468049 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 468049;
44,376,004
kk
Java
logic_ops
advanced
Java тилінде 83 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 83; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 83 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 83; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,272,626
kk
Python
var_decl
beginner
Python тілінде 796347 мәнімен weight айнымалысын қалай жариялауға болады?
weight = 796347
### Instruction: Python тілінде 796347 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: weight = 796347
2,146,736
kk
Unity
var_decl
beginner
Unity тілінде 275546 мәнімен count айнымалысын қалай жариялауға болады?
int count = 275546;
### Instruction: Unity тілінде 275546 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 275546;
37,311,735
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; }
357,990
ru
JavaScript
factorial
advanced
Напиши функцию на JavaScript, которая вычисляет факториал числа 3682.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(3682));
### Instruction: Напиши функцию на JavaScript, которая вычисляет факториал числа 3682. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(3682));
50,483,578
kk
C++
logic_ops
advanced
C++ тилінде 464 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 464; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C++ тилінде 464 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 464; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
50,250,263
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript логику проверки, является ли год 1908 високосным.
function isLeap() { let y = 1908; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 1908 високосным. ### Response: function isLeap() { let y = 1908; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
28,752,936
kk
C++
logic_ops
advanced
C++ тилінде 1939 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1939; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 1939 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1939; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,002,702
en
C++
var_decl
beginner
How to declare a variable weight with value 684259 in C++?
int weight = 684259;
### Instruction: How to declare a variable weight with value 684259 in C++? ### Response: int weight = 684259;
83,741,286
en
Python
array_ops
advanced
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]
51,649,594
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
96,662,460
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,927,920
ru
C++
var_decl
beginner
Как объявить переменную level со значением 248861 в C++?
int level = 248861;
### Instruction: Как объявить переменную level со значением 248861 в C++? ### Response: int level = 248861;
1,925,202
en
C++
var_decl
beginner
How to declare a variable index with value 965890 in C++?
int index = 965890;
### Instruction: How to declare a variable index with value 965890 in C++? ### Response: int index = 965890;
31,598,309
kk
Unity
logic_ops
advanced
Unity тилінде 1939 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1939; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1939 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1939; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
86,694,078
kk
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); }
4,883,598
ru
C#
var_decl
beginner
Как объявить переменную y со значением 383046 в C#?
int y = 383046;
### Instruction: Как объявить переменную y со значением 383046 в C#? ### Response: int y = 383046;
4,925,131
ru
Java
var_decl
beginner
Как объявить переменную data со значением 58976 в Java?
int data = 58976;
### Instruction: Как объявить переменную data со значением 58976 в Java? ### Response: int data = 58976;
2,453,427
kk
Python
var_decl
beginner
Python тілінде 366832 мәнімен speed айнымалысын қалай жариялауға болады?
speed = 366832
### Instruction: Python тілінде 366832 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: speed = 366832
46,282,819
kk
JavaScript
array_ops
advanced
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
const reverseArr = arr => arr.reverse();
### Instruction: JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: const reverseArr = arr => arr.reverse();
15,304,132
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); }
11,743,725
ru
Python
logic_ops
intermediate
Напишите на Python логику проверки, является ли год 2052 високосным.
def is_leap(): year = 2052 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 2052 високосным. ### Response: def is_leap(): year = 2052 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
13,518,224
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); }
26,676,380
ru
C#
logic_ops
intermediate
Напишите на C# логику проверки, является ли год 2053 високосным.
public bool IsLeap() { int y = 2053; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2053 високосным. ### Response: public bool IsLeap() { int y = 2053; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,780,038
kk
Unity
var_decl
beginner
Unity тілінде 987748 мәнімен result айнымалысын қалай жариялауға болады?
int result = 987748;
### Instruction: Unity тілінде 987748 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 987748;
4,901,489
ru
Unity
var_decl
beginner
Как объявить переменную result со значением 572743 в Unity?
int result = 572743;
### Instruction: Как объявить переменную result со значением 572743 в Unity? ### Response: int result = 572743;
86,390,860
en
Unity
string_ops
intermediate
Write a function that converts a string to uppercase in Unity.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Unity. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
4,607,320
ru
Java
var_decl
beginner
Как объявить переменную size со значением 296383 в Java?
int size = 296383;
### Instruction: Как объявить переменную size со значением 296383 в Java? ### Response: int size = 296383;
14,654
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 7394.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7394)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 7394. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7394)); }
4,576,569
ru
JavaScript
var_decl
beginner
Как объявить переменную amount со значением 959102 в JavaScript?
let amount = 959102;
### Instruction: Как объявить переменную amount со значением 959102 в JavaScript? ### Response: let amount = 959102;
1,923,022
kk
Java
var_decl
beginner
Java тілінде 126595 мәнімен buffer айнымалысын қалай жариялауға болады?
int buffer = 126595;
### Instruction: Java тілінде 126595 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: int buffer = 126595;
735,583
en
C#
var_decl
beginner
How to declare a variable offset with value 77459 in C#?
int offset = 77459;
### Instruction: How to declare a variable offset with value 77459 in C#? ### Response: int offset = 77459;
64,950,988
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; }
827,044
en
Unity
var_decl
beginner
How to declare a variable total with value 475911 in Unity?
int total = 475911;
### Instruction: How to declare a variable total with value 475911 in Unity? ### Response: int total = 475911;
941,658
kk
JavaScript
var_decl
beginner
JavaScript тілінде 898447 мәнімен score айнымалысын қалай жариялауға болады?
let score = 898447;
### Instruction: JavaScript тілінде 898447 мәнімен score айнымалысын қалай жариялауға болады? ### Response: let score = 898447;
67,558,453
en
Unity
array_ops
intermediate
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; }
36,280,516
kk
Python
array_ops
intermediate
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
59,206,149
ru
Python
logic_ops
intermediate
Напишите на Python логику проверки, является ли год 1953 високосным.
def is_leap(): year = 1953 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 1953 високосным. ### Response: def is_leap(): year = 1953 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
81,155,800
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('');
88,182,281
kk
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; }
3,774,006
ru
Java
var_decl
beginner
Как объявить переменную total со значением 699763 в Java?
int total = 699763;
### Instruction: Как объявить переменную total со значением 699763 в Java? ### Response: int total = 699763;
2,088,884
ru
JavaScript
var_decl
beginner
Как объявить переменную timer со значением 345160 в JavaScript?
let timer = 345160;
### Instruction: Как объявить переменную timer со значением 345160 в JavaScript? ### Response: let timer = 345160;
65,905,268
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 147 простым.
public bool IsPrime() { int n = 147; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 147 простым. ### Response: public bool IsPrime() { int n = 147; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
49,208,088
ru
Python
array_ops
advanced
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
1,994,802
kk
Java
var_decl
beginner
Java тілінде 860433 мәнімен size айнымалысын қалай жариялауға болады?
int size = 860433;
### Instruction: Java тілінде 860433 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 860433;
33,152,096
en
Java
logic_ops
intermediate
Write logic to check if the year 2066 is a leap year in Java.
public bool IsLeap() { int y = 2066; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2066 is a leap year in Java. ### Response: public bool IsLeap() { int y = 2066; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
14,288,068
en
Python
string_ops
advanced
Write a function that converts a string to uppercase in Python.
def to_upper(s): return s.upper()
### Instruction: Write a function that converts a string to uppercase in Python. ### Response: def to_upper(s): return s.upper()
64,904,440
en
Python
logic_ops
intermediate
Write logic to check if the year 2085 is a leap year in Python.
def is_leap(): year = 2085 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2085 is a leap year in Python. ### Response: def is_leap(): year = 2085 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)