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
3,750,647
kk
Python
var_decl
beginner
Python тілінде 39740 мәнімен total айнымалысын қалай жариялауға болады?
total = 39740
### Instruction: Python тілінде 39740 мәнімен total айнымалысын қалай жариялауға болады? ### Response: total = 39740
698,566
en
Java
sum_n
intermediate
Write a function in Java that sums numbers from 1 to 7844.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(7844));
### Instruction: Write a function in Java that sums numbers from 1 to 7844. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(7844));
3,461,294
ru
JavaScript
var_decl
beginner
Как объявить переменную result со значением 745868 в JavaScript?
let result = 745868;
### Instruction: Как объявить переменную result со значением 745868 в JavaScript? ### Response: let result = 745868;
20,586,455
kk
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; }
4,117,809
ru
JavaScript
var_decl
beginner
Как объявить переменную buffer со значением 785559 в JavaScript?
let buffer = 785559;
### Instruction: Как объявить переменную buffer со значением 785559 в JavaScript? ### Response: let buffer = 785559;
75,058,615
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; }
4,913,665
en
C#
var_decl
beginner
How to declare a variable timer with value 971263 in C#?
int timer = 971263;
### Instruction: How to declare a variable timer with value 971263 in C#? ### Response: int timer = 971263;
10,398,940
en
Unity
array_ops
intermediate
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; }
2,412,446
en
C#
var_decl
beginner
How to declare a variable value with value 838583 in C#?
int value = 838583;
### Instruction: How to declare a variable value with value 838583 in C#? ### Response: int value = 838583;
65,017,047
en
Unity
logic_ops
intermediate
Write logic to check if the year 2094 is a leap year in Unity.
public bool IsLeap() { int y = 2094; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2094 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2094; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,943,665
ru
Unity
var_decl
beginner
Как объявить переменную rate со значением 801808 в Unity?
int rate = 801808;
### Instruction: Как объявить переменную rate со значением 801808 в Unity? ### Response: int rate = 801808;
91,818,951
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); }
62,147,042
kk
Unity
logic_ops
intermediate
Unity тилінде 2025 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2025; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2025 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2025; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
40,114,653
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; }
11,608,980
ru
C#
array_ops
advanced
Напишите на C# функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на C# функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
64,024,562
ru
C#
string_ops
advanced
Напишите на C# функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на C# функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
1,119,303
kk
Python
var_decl
beginner
Python тілінде 150904 мәнімен amount айнымалысын қалай жариялауға болады?
amount = 150904
### Instruction: Python тілінде 150904 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: amount = 150904
34,141,136
en
Python
string_ops
intermediate
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]
58,221,314
ru
C++
array_ops
advanced
Напишите на C++ функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на C++ функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
58,201,986
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; }
3,241,908
en
C#
var_decl
beginner
How to declare a variable offset with value 680243 in C#?
int offset = 680243;
### Instruction: How to declare a variable offset with value 680243 in C#? ### Response: int offset = 680243;
1,270,727
kk
Unity
var_decl
beginner
Unity тілінде 739053 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 739053;
### Instruction: Unity тілінде 739053 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 739053;
4,534,495
en
C++
var_decl
beginner
How to declare a variable rate with value 388677 in C++?
int rate = 388677;
### Instruction: How to declare a variable rate with value 388677 in C++? ### Response: int rate = 388677;
4,809,103
kk
C++
var_decl
beginner
C++ тілінде 869549 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 869549;
### Instruction: C++ тілінде 869549 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 869549;
4,388,786
kk
Java
var_decl
beginner
Java тілінде 282061 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 282061;
### Instruction: Java тілінде 282061 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 282061;
86,818,618
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(); }
1,582,608
kk
Unity
var_decl
beginner
Unity тілінде 861309 мәнімен count айнымалысын қалай жариялауға болады?
int count = 861309;
### Instruction: Unity тілінде 861309 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 861309;
472,438
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 59.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(59)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 59. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(59)); }
4,297,589
kk
C++
var_decl
beginner
C++ тілінде 5969 мәнімен count айнымалысын қалай жариялауға болады?
int count = 5969;
### Instruction: C++ тілінде 5969 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 5969;
37,245,892
ru
C++
logic_ops
intermediate
Напишите на 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); }
78,842,064
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; }
54,461,753
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(); }
46,350,722
en
Unity
logic_ops
advanced
Write logic to check if the year 2065 is a leap year in Unity.
public bool IsLeap() { int y = 2065; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2065 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2065; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,848,208
kk
Unity
var_decl
beginner
Unity тілінде 429626 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 429626;
### Instruction: Unity тілінде 429626 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 429626;
1,349,292
ru
JavaScript
var_decl
beginner
Как объявить переменную size со значением 478056 в JavaScript?
let size = 478056;
### Instruction: Как объявить переменную size со значением 478056 в JavaScript? ### Response: let size = 478056;
27,300,967
ru
Java
array_ops
advanced
Напишите на Java функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Java функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
3,924,372
en
Python
var_decl
beginner
How to declare a variable index with value 825376 in Python?
index = 825376
### Instruction: How to declare a variable index with value 825376 in Python? ### Response: index = 825376
1,786,260
kk
Python
var_decl
beginner
Python тілінде 971116 мәнімен count айнымалысын қалай жариялауға болады?
count = 971116
### Instruction: Python тілінде 971116 мәнімен count айнымалысын қалай жариялауға болады? ### Response: count = 971116
77,144,455
ru
Python
array_ops
advanced
Напишите на 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]
4,489,905
en
Unity
var_decl
beginner
How to declare a variable size with value 43195 in Unity?
int size = 43195;
### Instruction: How to declare a variable size with value 43195 in Unity? ### Response: int size = 43195;
1,861,129
kk
Python
var_decl
beginner
Python тілінде 606638 мәнімен result айнымалысын қалай жариялауға болады?
result = 606638
### Instruction: Python тілінде 606638 мәнімен result айнымалысын қалай жариялауға болады? ### Response: result = 606638
30,925,740
kk
Python
string_ops
intermediate
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
564,802
ru
Java
sum_n
intermediate
Напиши функцию на Java, которая считает сумму чисел от 1 до 2541.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(2541));
### Instruction: Напиши функцию на Java, которая считает сумму чисел от 1 до 2541. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(2541));
405,257
en
Unity
var_decl
beginner
How to declare a variable weight with value 378152 in Unity?
int weight = 378152;
### Instruction: How to declare a variable weight with value 378152 in Unity? ### Response: int weight = 378152;
62,499,366
en
Java
logic_ops
intermediate
Write a function that determines if the number 210 is prime in Java.
public bool IsPrime() { int n = 210; 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 210 is prime in Java. ### Response: public bool IsPrime() { int n = 210; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
29,626,361
kk
Unity
logic_ops
advanced
Unity тилінде 13 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 13; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 13 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 13; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,940,848
en
C#
var_decl
beginner
How to declare a variable data with value 459108 in C#?
int data = 459108;
### Instruction: How to declare a variable data with value 459108 in C#? ### Response: int data = 459108;
56,073,336
kk
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; }
2,592,368
kk
Java
var_decl
beginner
Java тілінде 386810 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 386810;
### Instruction: Java тілінде 386810 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 386810;
2,079,508
ru
Python
var_decl
beginner
Как объявить переменную amount со значением 882430 в Python?
amount = 882430
### Instruction: Как объявить переменную amount со значением 882430 в Python? ### Response: amount = 882430
65,269,817
ru
C#
logic_ops
intermediate
Напишите на C# логику проверки, является ли год 1911 високосным.
public bool IsLeap() { int y = 1911; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 1911 високосным. ### Response: public bool IsLeap() { int y = 1911; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
86,158,252
kk
Java
logic_ops
intermediate
Java тилінде 2092 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2092; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 2092 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2092; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
76,419,230
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); }
3,446,986
en
Java
var_decl
beginner
How to declare a variable x with value 520157 in Java?
int x = 520157;
### Instruction: How to declare a variable x with value 520157 in Java? ### Response: int x = 520157;
99,747,463
ru
Unity
string_ops
intermediate
Напишите на Unity функцию, которая проверяет, является ли строка палиндромом.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Напишите на Unity функцию, которая проверяет, является ли строка палиндромом. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
20,589,991
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();
41,928,298
en
C#
logic_ops
intermediate
Write logic to check if the year 2021 is a leap year in C#.
public bool IsLeap() { int y = 2021; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2021 is a leap year in C#. ### Response: public bool IsLeap() { int y = 2021; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,756,222
kk
C#
var_decl
beginner
C# тілінде 805556 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 805556;
### Instruction: C# тілінде 805556 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 805556;
3,548,484
en
C++
var_decl
beginner
How to declare a variable buffer with value 253628 in C++?
int buffer = 253628;
### Instruction: How to declare a variable buffer with value 253628 in C++? ### Response: int buffer = 253628;
15,679,281
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; }
31,154,026
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; }
654,282
en
C#
var_decl
beginner
How to declare a variable score with value 188834 in C#?
int score = 188834;
### Instruction: How to declare a variable score with value 188834 in C#? ### Response: int score = 188834;
18,552,034
ru
C++
array_ops
advanced
Напишите на C++ функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на C++ функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
85,576,556
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 396 простым.
public bool IsPrime() { int n = 396; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 396 простым. ### Response: public bool IsPrime() { int n = 396; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,032,670
ru
C++
var_decl
beginner
Как объявить переменную weight со значением 878487 в C++?
int weight = 878487;
### Instruction: Как объявить переменную weight со значением 878487 в C++? ### Response: int weight = 878487;
37,446,825
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; }
4,515,142
kk
Java
var_decl
beginner
Java тілінде 260350 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 260350;
### Instruction: Java тілінде 260350 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 260350;
3,753,842
ru
JavaScript
var_decl
beginner
Как объявить переменную result со значением 352760 в JavaScript?
let result = 352760;
### Instruction: Как объявить переменную result со значением 352760 в JavaScript? ### Response: let result = 352760;
4,345,680
en
JavaScript
var_decl
beginner
How to declare a variable y with value 18148 in JavaScript?
let y = 18148;
### Instruction: How to declare a variable y with value 18148 in JavaScript? ### Response: let y = 18148;
2,434,378
en
Unity
var_decl
beginner
How to declare a variable result with value 101937 in Unity?
int result = 101937;
### Instruction: How to declare a variable result with value 101937 in Unity? ### Response: int result = 101937;
39,617,113
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
3,045,279
kk
JavaScript
var_decl
beginner
JavaScript тілінде 257958 мәнімен speed айнымалысын қалай жариялауға болады?
let speed = 257958;
### Instruction: JavaScript тілінде 257958 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: let speed = 257958;
814,584
kk
JavaScript
factorial
advanced
JavaScript тілінде 8232 санының факториалын есептейтін функция жаз.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(8232));
### Instruction: JavaScript тілінде 8232 санының факториалын есептейтін функция жаз. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(8232));
4,495,342
en
Python
var_decl
beginner
How to declare a variable x with value 120176 in Python?
x = 120176
### Instruction: How to declare a variable x with value 120176 in Python? ### Response: x = 120176
88,758,881
en
Python
logic_ops
advanced
Write logic to check if the year 2007 is a leap year in Python.
def is_leap(): year = 2007 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2007 is a leap year in Python. ### Response: def is_leap(): year = 2007 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
42,567,108
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; }
4,887,955
kk
Java
var_decl
beginner
Java тілінде 314847 мәнімен index айнымалысын қалай жариялауға болады?
int index = 314847;
### Instruction: Java тілінде 314847 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 314847;
21,447,970
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 11 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 11; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 11 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 11; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
66,236,977
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); }
87,769,893
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; }
74,713,626
ru
C#
logic_ops
intermediate
Напишите на C# функцию, определяющую, является ли число 394 простым.
public bool IsPrime() { int n = 394; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 394 простым. ### Response: public bool IsPrime() { int n = 394; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
20,917,111
kk
Unity
logic_ops
intermediate
Unity тилінде 1977 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1977; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1977 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1977; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,900,423
kk
Java
var_decl
beginner
Java тілінде 953896 мәнімен size айнымалысын қалай жариялауға болады?
int size = 953896;
### Instruction: Java тілінде 953896 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 953896;
112,457
ru
C#
factorial
advanced
Напиши функцию на C#, которая вычисляет факториал числа 7822.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(7822));
### Instruction: Напиши функцию на C#, которая вычисляет факториал числа 7822. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(7822));
34,683,963
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(); }
86,086,902
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; }
3,870,934
kk
C++
var_decl
beginner
C++ тілінде 534492 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 534492;
### Instruction: C++ тілінде 534492 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 534492;
4,356,409
en
Python
var_decl
beginner
How to declare a variable data with value 721033 in Python?
data = 721033
### Instruction: How to declare a variable data with value 721033 in Python? ### Response: data = 721033
848,244
en
JavaScript
var_decl
beginner
How to declare a variable rate with value 352521 in JavaScript?
let rate = 352521;
### Instruction: How to declare a variable rate with value 352521 in JavaScript? ### Response: let rate = 352521;
4,048,630
en
C++
var_decl
beginner
How to declare a variable total with value 696671 in C++?
int total = 696671;
### Instruction: How to declare a variable total with value 696671 in C++? ### Response: int total = 696671;
3,909,475
en
Java
var_decl
beginner
How to declare a variable rate with value 429725 in Java?
int rate = 429725;
### Instruction: How to declare a variable rate with value 429725 in Java? ### Response: int rate = 429725;
42,206,515
kk
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; }
55,545,879
en
Python
array_ops
advanced
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)
66,551,240
kk
Java
logic_ops
intermediate
Java тилінде 362 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 362; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 362 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 362; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,660,788
ru
Unity
var_decl
beginner
Как объявить переменную speed со значением 789014 в Unity?
int speed = 789014;
### Instruction: Как объявить переменную speed со значением 789014 в Unity? ### Response: int speed = 789014;
92,771,323
en
JavaScript
array_ops
advanced
Write a function that reverses a list in JavaScript.
const reverseArr = arr => arr.reverse();
### Instruction: Write a function that reverses a list in JavaScript. ### Response: const reverseArr = arr => arr.reverse();
89,302,369
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; }
49,298,643
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; }
65,363,156
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;
3,661,694
en
JavaScript
var_decl
beginner
How to declare a variable size with value 219658 in JavaScript?
let size = 219658;
### Instruction: How to declare a variable size with value 219658 in JavaScript? ### Response: let size = 219658;