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
84,525,683
kk
Java
string_ops
intermediate
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
1,968,918
ru
C#
var_decl
beginner
Как объявить переменную count со значением 773420 в C#?
int count = 773420;
### Instruction: Как объявить переменную count со значением 773420 в C#? ### Response: int count = 773420;
27,314,549
en
Unity
logic_ops
advanced
Write a function that determines if the number 330 is prime in Unity.
public bool IsPrime() { int n = 330; 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 330 is prime in Unity. ### Response: public bool IsPrime() { int n = 330; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,794,124
en
JavaScript
var_decl
beginner
How to declare a variable score with value 197306 in JavaScript?
let score = 197306;
### Instruction: How to declare a variable score with value 197306 in JavaScript? ### Response: let score = 197306;
486,742
kk
JavaScript
factorial
advanced
JavaScript тілінде 927 санының факториалын есептейтін функция жаз.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(927));
### Instruction: JavaScript тілінде 927 санының факториалын есептейтін функция жаз. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(927));
42,715,943
en
C#
logic_ops
advanced
Write logic to check if the year 2057 is a leap year in C#.
public bool IsLeap() { int y = 2057; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2057 is a leap year in C#. ### Response: public bool IsLeap() { int y = 2057; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
81,766,375
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 2066 високосным.
public bool IsLeap() { int y = 2066; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2066 високосным. ### Response: public bool IsLeap() { int y = 2066; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,831,711
ru
Unity
var_decl
beginner
Как объявить переменную offset со значением 773132 в Unity?
int offset = 773132;
### Instruction: Как объявить переменную offset со значением 773132 в Unity? ### Response: int offset = 773132;
22,930,592
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; }
52,677,128
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; }
98,622,507
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; }
75,490,078
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; }
833,012
ru
JavaScript
factorial
advanced
Напиши функцию на JavaScript, которая вычисляет факториал числа 1439.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(1439));
### Instruction: Напиши функцию на JavaScript, которая вычисляет факториал числа 1439. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(1439));
26,831,776
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 259 is prime in JavaScript.
function isPrime() { let n = 259; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Write a function that determines if the number 259 is prime in JavaScript. ### Response: function isPrime() { let n = 259; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
156,730
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 6650.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(6650)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 6650. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(6650)); }
49,346,197
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; }
53,541,330
ru
Java
string_ops
intermediate
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Напишите на Java функцию, которая проверяет, является ли строка палиндромом. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
16,719,924
kk
Unity
string_ops
intermediate
Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
3,277,902
en
Unity
var_decl
beginner
How to declare a variable total with value 343074 in Unity?
int total = 343074;
### Instruction: How to declare a variable total with value 343074 in Unity? ### Response: int total = 343074;
1,987,868
ru
Python
var_decl
beginner
Как объявить переменную result со значением 174023 в Python?
result = 174023
### Instruction: Как объявить переменную result со значением 174023 в Python? ### Response: result = 174023
77,754,078
kk
Java
string_ops
advanced
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; }
4,983,899
kk
Java
var_decl
beginner
Java тілінде 155686 мәнімен data айнымалысын қалай жариялауға болады?
int data = 155686;
### Instruction: Java тілінде 155686 мәнімен data айнымалысын қалай жариялауға болады? ### Response: int data = 155686;
251,603
ru
C++
var_decl
beginner
Как объявить переменную speed со значением 700009 в C++?
int speed = 700009;
### Instruction: Как объявить переменную speed со значением 700009 в C++? ### Response: int speed = 700009;
94,829,236
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 75 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 75; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 75 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 75; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
56,011,652
en
JavaScript
array_ops
intermediate
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();
30,067,508
ru
Java
array_ops
advanced
Напишите на 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; }
57,180,819
ru
C++
logic_ops
advanced
Напишите на C++ функцию, определяющую, является ли число 272 простым.
public bool IsPrime() { int n = 272; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 272 простым. ### Response: public bool IsPrime() { int n = 272; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,960,254
kk
C#
var_decl
beginner
C# тілінде 964717 мәнімен y айнымалысын қалай жариялауға болады?
int y = 964717;
### Instruction: C# тілінде 964717 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 964717;
19,459,225
en
Unity
string_ops
advanced
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(); }
23,919,982
en
JavaScript
string_ops
intermediate
Write a function that counts vowels in a text in JavaScript.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Write a function that counts vowels in a text in JavaScript. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
1,091,460
ru
C#
var_decl
beginner
Как объявить переменную rate со значением 699699 в C#?
int rate = 699699;
### Instruction: Как объявить переменную rate со значением 699699 в C#? ### Response: int rate = 699699;
3,388,697
en
Java
var_decl
beginner
How to declare a variable value with value 279948 in Java?
int value = 279948;
### Instruction: How to declare a variable value with value 279948 in Java? ### Response: int value = 279948;
73,218,280
ru
Java
logic_ops
intermediate
Напишите на Java логику проверки, является ли год 2053 високосным.
public bool IsLeap() { int y = 2053; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 2053 високосным. ### Response: public bool IsLeap() { int y = 2053; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
95,937,219
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; }
945,155
en
C++
var_decl
beginner
How to declare a variable y with value 847527 in C++?
int y = 847527;
### Instruction: How to declare a variable y with value 847527 in C++? ### Response: int y = 847527;
1,817,892
kk
Java
var_decl
beginner
Java тілінде 670942 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 670942;
### Instruction: Java тілінде 670942 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 670942;
66,584,458
kk
Java
logic_ops
advanced
Java тилінде 371 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 371; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 371 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 371; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
196,527
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 1959.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1959)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 1959. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1959)); }
60,722,474
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; }
843,365
kk
Python
var_decl
beginner
Python тілінде 739387 мәнімен data айнымалысын қалай жариялауға болады?
data = 739387
### Instruction: Python тілінде 739387 мәнімен data айнымалысын қалай жариялауға болады? ### Response: data = 739387
57,426,924
ru
C#
logic_ops
advanced
Напишите на C# функцию, определяющую, является ли число 200 простым.
public bool IsPrime() { int n = 200; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 200 простым. ### Response: public bool IsPrime() { int n = 200; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
86,281,544
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(); }
49,092,130
ru
Python
logic_ops
intermediate
Напишите на Python логику проверки, является ли год 2018 високосным.
def is_leap(): year = 2018 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 2018 високосным. ### Response: def is_leap(): year = 2018 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
69,317,064
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; }
38,623,077
en
JavaScript
array_ops
advanced
Write a function that finds the maximum number in an array in JavaScript.
const getMax = arr => Math.max(...arr);
### Instruction: Write a function that finds the maximum number in an array in JavaScript. ### Response: const getMax = arr => Math.max(...arr);
4,537,239
kk
Java
var_decl
beginner
Java тілінде 439207 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 439207;
### Instruction: Java тілінде 439207 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 439207;
4,195,728
en
JavaScript
var_decl
beginner
How to declare a variable rate with value 871957 in JavaScript?
let rate = 871957;
### Instruction: How to declare a variable rate with value 871957 in JavaScript? ### Response: let rate = 871957;
45,257
ru
Unity
var_decl
beginner
Как объявить переменную value со значением 160481 в Unity?
int value = 160481;
### Instruction: Как объявить переменную value со значением 160481 в Unity? ### Response: int value = 160481;
30,459,646
ru
Java
array_ops
advanced
Напишите на 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,675,588
en
C++
var_decl
beginner
How to declare a variable weight with value 319227 in C++?
int weight = 319227;
### Instruction: How to declare a variable weight with value 319227 in C++? ### Response: int weight = 319227;
99,632,858
kk
C#
logic_ops
intermediate
C# тилінде 1964 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1964; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C# тилінде 1964 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1964; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
51,622,750
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; }
41,582,213
ru
Java
array_ops
intermediate
Напишите на Java функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на Java функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
90,603,729
kk
Python
logic_ops
intermediate
Python тилінде 2088 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
def is_leap(): year = 2088 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Python тилінде 2088 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: def is_leap(): year = 2088 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
94,574,642
en
C#
array_ops
intermediate
Write a function that finds the maximum number in an array in C#.
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 C#. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
4,453,678
ru
C++
var_decl
beginner
Как объявить переменную value со значением 799349 в C++?
int value = 799349;
### Instruction: Как объявить переменную value со значением 799349 в C++? ### Response: int value = 799349;
3,865,672
kk
Unity
var_decl
beginner
Unity тілінде 300284 мәнімен value айнымалысын қалай жариялауға болады?
int value = 300284;
### Instruction: Unity тілінде 300284 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 300284;
3,643,134
en
JavaScript
var_decl
beginner
How to declare a variable size with value 582118 in JavaScript?
let size = 582118;
### Instruction: How to declare a variable size with value 582118 in JavaScript? ### Response: let size = 582118;
43,815,432
en
Python
logic_ops
intermediate
Write a function that determines if the number 409 is prime in Python.
def is_prime(): n = 409 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Write a function that determines if the number 409 is prime in Python. ### Response: def is_prime(): n = 409 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
809,562
en
Unity
factorial
advanced
Write a function in Unity that calculates the factorial of 7622.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7622)); }
### Instruction: Write a function in Unity that calculates the factorial of 7622. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7622)); }
62,916,244
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); }
26,319,705
kk
Unity
logic_ops
intermediate
Unity тилінде 250 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 250; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 250 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 250; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,663,882
kk
Unity
var_decl
beginner
Unity тілінде 404514 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 404514;
### Instruction: Unity тілінде 404514 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 404514;
781,627
ru
Java
factorial
advanced
Напиши функцию на Java, которая вычисляет факториал числа 1645.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1645));
### Instruction: Напиши функцию на Java, которая вычисляет факториал числа 1645. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1645));
15,066,032
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; }
53,189,611
kk
C++
string_ops
intermediate
C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
31,880,747
ru
Unity
array_ops
intermediate
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Unity функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
73,886,995
en
Python
logic_ops
intermediate
Write logic to check if the year 1972 is a leap year in Python.
def is_leap(): year = 1972 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 1972 is a leap year in Python. ### Response: def is_leap(): year = 1972 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
766,469
ru
C++
sum_n
intermediate
Напиши функцию на C++, которая считает сумму чисел от 1 до 3958.
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(3958) << std::endl;
### Instruction: Напиши функцию на C++, которая считает сумму чисел от 1 до 3958. ### 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(3958) << std::endl;
3,664,801
kk
JavaScript
var_decl
beginner
JavaScript тілінде 747997 мәнімен speed айнымалысын қалай жариялауға болады?
let speed = 747997;
### Instruction: JavaScript тілінде 747997 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: let speed = 747997;
79,138,913
kk
Python
array_ops
intermediate
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
41,372,174
en
Java
logic_ops
advanced
Write logic to check if the year 2099 is a leap year in Java.
public bool IsLeap() { int y = 2099; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2099 is a leap year in Java. ### Response: public bool IsLeap() { int y = 2099; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
46,124,409
ru
Unity
array_ops
intermediate
Напишите на Unity функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на Unity функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
54,770,233
en
Java
array_ops
advanced
Write a function that finds the maximum number in an array in Java.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in Java. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
47,671,847
kk
Python
logic_ops
intermediate
Python тилінде 449 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 449 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 449 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 449 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
4,878,942
kk
JavaScript
var_decl
beginner
JavaScript тілінде 343856 мәнімен weight айнымалысын қалай жариялауға болады?
let weight = 343856;
### Instruction: JavaScript тілінде 343856 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: let weight = 343856;
74,193,835
kk
C++
string_ops
intermediate
C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
3,273,919
en
C++
var_decl
beginner
How to declare a variable limit with value 352888 in C++?
int limit = 352888;
### Instruction: How to declare a variable limit with value 352888 in C++? ### Response: int limit = 352888;
2,848,786
en
JavaScript
var_decl
beginner
How to declare a variable result with value 787933 in JavaScript?
let result = 787933;
### Instruction: How to declare a variable result with value 787933 in JavaScript? ### Response: let result = 787933;
31,771,502
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
3,231,392
kk
Java
var_decl
beginner
Java тілінде 693506 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 693506;
### Instruction: Java тілінде 693506 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 693506;
2,581,109
kk
JavaScript
var_decl
beginner
JavaScript тілінде 192573 мәнімен data айнымалысын қалай жариялауға болады?
let data = 192573;
### Instruction: JavaScript тілінде 192573 мәнімен data айнымалысын қалай жариялауға болады? ### Response: let data = 192573;
3,912,427
en
Unity
var_decl
beginner
How to declare a variable level with value 731596 in Unity?
int level = 731596;
### Instruction: How to declare a variable level with value 731596 in Unity? ### Response: int level = 731596;
4,967,187
kk
JavaScript
var_decl
beginner
JavaScript тілінде 114814 мәнімен weight айнымалысын қалай жариялауға болады?
let weight = 114814;
### Instruction: JavaScript тілінде 114814 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: let weight = 114814;
4,314,789
en
Unity
var_decl
beginner
How to declare a variable count with value 510268 in Unity?
int count = 510268;
### Instruction: How to declare a variable count with value 510268 in Unity? ### Response: int count = 510268;
91,660,520
en
Unity
logic_ops
advanced
Write a function that determines if the number 94 is prime in Unity.
public bool IsPrime() { int n = 94; 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 94 is prime in Unity. ### Response: public bool IsPrime() { int n = 94; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,205,551
kk
Unity
var_decl
beginner
Unity тілінде 481009 мәнімен size айнымалысын қалай жариялауға болады?
int size = 481009;
### Instruction: Unity тілінде 481009 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 481009;
65,962,087
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 55 is prime in JavaScript.
function isPrime() { let n = 55; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Write a function that determines if the number 55 is prime in JavaScript. ### Response: function isPrime() { let n = 55; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
29,390,149
ru
Java
logic_ops
intermediate
Напишите на Java логику проверки, является ли год 1964 високосным.
public bool IsLeap() { int y = 1964; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 1964 високосным. ### Response: public bool IsLeap() { int y = 1964; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
41,599,735
en
Unity
logic_ops
intermediate
Write logic to check if the year 2083 is a leap year in Unity.
public bool IsLeap() { int y = 2083; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2083 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2083; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
914,724
ru
C++
var_decl
beginner
Как объявить переменную y со значением 876697 в C++?
int y = 876697;
### Instruction: Как объявить переменную y со значением 876697 в C++? ### Response: int y = 876697;
62,272,756
kk
C#
logic_ops
advanced
C# тилінде 55 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 55; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 55 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 55; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
94,730,199
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();
4,450,854
ru
Python
var_decl
beginner
Как объявить переменную health со значением 967857 в Python?
health = 967857
### Instruction: Как объявить переменную health со значением 967857 в Python? ### Response: health = 967857
4,627,132
kk
Python
var_decl
beginner
Python тілінде 325140 мәнімен weight айнымалысын қалай жариялауға болады?
weight = 325140
### Instruction: Python тілінде 325140 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: weight = 325140
160,421
en
JavaScript
var_decl
beginner
How to declare a variable weight with value 837841 in JavaScript?
let weight = 837841;
### Instruction: How to declare a variable weight with value 837841 in JavaScript? ### Response: let weight = 837841;
392,952
ru
JavaScript
var_decl
beginner
Как объявить переменную timer со значением 837530 в JavaScript?
let timer = 837530;
### Instruction: Как объявить переменную timer со значением 837530 в JavaScript? ### Response: let timer = 837530;
39,800,826
kk
Java
array_ops
intermediate
Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
4,665,689
kk
Python
var_decl
beginner
Python тілінде 483117 мәнімен rate айнымалысын қалай жариялауға болады?
rate = 483117
### Instruction: Python тілінде 483117 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: rate = 483117
68,601,440
en
C#
logic_ops
intermediate
Write a function that determines if the number 393 is prime in C#.
public bool IsPrime() { int n = 393; 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 393 is prime in C#. ### Response: public bool IsPrime() { int n = 393; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }