id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
83,025,470
kk
C#
logic_ops
intermediate
C# тилінде 475 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 475; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 475 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 475; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
65,958,309
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
699,272
en
C++
var_decl
beginner
How to declare a variable offset with value 813687 in C++?
int offset = 813687;
### Instruction: How to declare a variable offset with value 813687 in C++? ### Response: int offset = 813687;
161,438
en
C++
sum_n
intermediate
Write a function in C++ that sums numbers from 1 to 4324.
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(4324) << std::endl;
### Instruction: Write a function in C++ that sums numbers from 1 to 4324. ### 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(4324) << std::endl;
709,227
en
Java
sum_n
intermediate
Write a function in Java that sums numbers from 1 to 7635.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(7635));
### Instruction: Write a function in Java that sums numbers from 1 to 7635. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(7635));
472,725
ru
Java
sum_n
intermediate
Напиши функцию на Java, которая считает сумму чисел от 1 до 4084.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(4084));
### Instruction: Напиши функцию на Java, которая считает сумму чисел от 1 до 4084. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(4084));
1,003,101
en
C#
factorial
advanced
Write a function in C# that calculates the factorial of 829.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(829));
### Instruction: Write a function in C# that calculates the factorial of 829. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(829));
78,434,273
ru
C#
logic_ops
intermediate
Напишите на C# логику проверки, является ли год 1941 високосным.
public bool IsLeap() { int y = 1941; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 1941 високосным. ### Response: public bool IsLeap() { int y = 1941; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
19,417,203
kk
Python
logic_ops
advanced
Python тилінде 78 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 78 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 78 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 78 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
2,645,173
ru
C++
var_decl
beginner
Как объявить переменную data со значением 186185 в C++?
int data = 186185;
### Instruction: Как объявить переменную data со значением 186185 в C++? ### Response: int data = 186185;
4,661,536
en
Unity
var_decl
beginner
How to declare a variable result with value 613908 in Unity?
int result = 613908;
### Instruction: How to declare a variable result with value 613908 in Unity? ### Response: int result = 613908;
87,468,838
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; }
206,236
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 1097.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1097)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 1097. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1097)); }
1,577,955
en
C#
var_decl
beginner
How to declare a variable x with value 907022 in C#?
int x = 907022;
### Instruction: How to declare a variable x with value 907022 in C#? ### Response: int x = 907022;
51,743
kk
JavaScript
sum_n
intermediate
JavaScript тілінде 1-ден 6492-ге дейінгі сандардың қосындысын есептейтін функция жаз.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(6492));
### Instruction: JavaScript тілінде 1-ден 6492-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(6492));
79,343,210
ru
Python
string_ops
advanced
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
def is_palindrome(s): return s == s[::-1]
### Instruction: Напишите на Python функцию, которая проверяет, является ли строка палиндромом. ### Response: def is_palindrome(s): return s == s[::-1]
96,718,183
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; }
70,802,179
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); }
69,269,809
kk
Java
logic_ops
advanced
Java тилінде 1979 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1979; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1979 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1979; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
96,286,516
kk
C++
logic_ops
advanced
C++ тилінде 2056 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2056; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 2056 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2056; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
31,754,765
kk
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,845,874
kk
Unity
var_decl
beginner
Unity тілінде 756092 мәнімен count айнымалысын қалай жариялауға болады?
int count = 756092;
### Instruction: Unity тілінде 756092 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 756092;
299,119
kk
C#
sum_n
intermediate
C# тілінде 1-ден 7761-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(7761));
### Instruction: C# тілінде 1-ден 7761-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(7761));
3,155,318
kk
C#
var_decl
beginner
C# тілінде 378954 мәнімен count айнымалысын қалай жариялауға болады?
int count = 378954;
### Instruction: C# тілінде 378954 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 378954;
4,439,655
kk
C#
var_decl
beginner
C# тілінде 274560 мәнімен y айнымалысын қалай жариялауға болады?
int y = 274560;
### Instruction: C# тілінде 274560 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 274560;
321,437
en
Unity
factorial
advanced
Write a function in Unity that calculates the factorial of 5428.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(5428)); }
### Instruction: Write a function in Unity that calculates the factorial of 5428. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(5428)); }
96,986,111
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); }
2,193,331
en
C++
var_decl
beginner
How to declare a variable count with value 232590 in C++?
int count = 232590;
### Instruction: How to declare a variable count with value 232590 in C++? ### Response: int count = 232590;
74,785,970
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(); }
64,292,901
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; }
18,644,888
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 142 is prime in JavaScript.
function isPrime() { let n = 142; 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 142 is prime in JavaScript. ### Response: function isPrime() { let n = 142; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
28,232,646
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; }
30,712,209
kk
Python
string_ops
advanced
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
83,136,801
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 145 простым.
public bool IsPrime() { int n = 145; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 145 простым. ### Response: public bool IsPrime() { int n = 145; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
371,690
kk
C++
var_decl
beginner
C++ тілінде 261047 мәнімен size айнымалысын қалай жариялауға болады?
int size = 261047;
### Instruction: C++ тілінде 261047 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 261047;
76,253,432
ru
JavaScript
logic_ops
advanced
Напишите на JavaScript функцию, определяющую, является ли число 107 простым.
function isPrime() { let n = 107; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 107 простым. ### Response: function isPrime() { let n = 107; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
83,884,994
en
JavaScript
logic_ops
advanced
Write logic to check if the year 2003 is a leap year in JavaScript.
function isLeap() { let y = 2003; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Write logic to check if the year 2003 is a leap year in JavaScript. ### Response: function isLeap() { let y = 2003; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
93,833,798
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; }
64,649,307
en
JavaScript
array_ops
intermediate
Write a function that filters only even numbers from a list in JavaScript.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Write a function that filters only even numbers from a list in JavaScript. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
78,775,499
en
Unity
string_ops
advanced
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; }
75,364,716
en
Unity
array_ops
advanced
Write a function that reverses a list in Unity.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in Unity. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
1,362,066
en
Java
var_decl
beginner
How to declare a variable rate with value 602664 in Java?
int rate = 602664;
### Instruction: How to declare a variable rate with value 602664 in Java? ### Response: int rate = 602664;
32,698,026
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; }
356,749
ru
Java
factorial
advanced
Напиши функцию на Java, которая вычисляет факториал числа 2927.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(2927));
### Instruction: Напиши функцию на Java, которая вычисляет факториал числа 2927. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(2927));
21,037,982
kk
Unity
logic_ops
intermediate
Unity тилінде 148 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 148; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 148 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 148; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
93,298,636
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; }
93,827,115
en
Java
string_ops
intermediate
Write a function that counts vowels in a text in Java.
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 Java. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
95,663,300
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
const getMax = arr => Math.max(...arr);
### Instruction: Напишите на JavaScript функцию, которая находит максимальное число в массиве. ### Response: const getMax = arr => Math.max(...arr);
11,882,904
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
def is_palindrome(s): return s == s[::-1]
### Instruction: Напишите на Python функцию, которая проверяет, является ли строка палиндромом. ### Response: def is_palindrome(s): return s == s[::-1]
70,843,937
en
JavaScript
logic_ops
advanced
Write logic to check if the year 1916 is a leap year in JavaScript.
function isLeap() { let y = 1916; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Write logic to check if the year 1916 is a leap year in JavaScript. ### Response: function isLeap() { let y = 1916; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
322,587
kk
Java
sum_n
intermediate
Java тілінде 1-ден 5671-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(5671));
### Instruction: Java тілінде 1-ден 5671-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(5671));
2,347,079
kk
Python
var_decl
beginner
Python тілінде 824509 мәнімен result айнымалысын қалай жариялауға болады?
result = 824509
### Instruction: Python тілінде 824509 мәнімен result айнымалысын қалай жариялауға болады? ### Response: result = 824509
16,230,361
kk
C++
logic_ops
intermediate
C++ тилінде 2009 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2009; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 2009 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2009; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
69,418,524
en
Unity
array_ops
intermediate
Write a function that reverses a list in Unity.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in Unity. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
78,909,570
kk
Python
string_ops
advanced
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
### Instruction: Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
74,288,916
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); }
1,035,143
ru
Python
var_decl
beginner
Как объявить переменную count со значением 740856 в Python?
count = 740856
### Instruction: Как объявить переменную count со значением 740856 в Python? ### Response: count = 740856
1,198,470
kk
Unity
var_decl
beginner
Unity тілінде 257604 мәнімен score айнымалысын қалай жариялауға болады?
int score = 257604;
### Instruction: Unity тілінде 257604 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 257604;
15,440,380
ru
Java
logic_ops
intermediate
Напишите на Java функцию, определяющую, является ли число 377 простым.
public bool IsPrime() { int n = 377; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 377 простым. ### Response: public bool IsPrime() { int n = 377; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
99,441,834
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); }
4,477,851
kk
Unity
var_decl
beginner
Unity тілінде 186420 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 186420;
### Instruction: Unity тілінде 186420 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 186420;
2,707,778
en
Unity
var_decl
beginner
How to declare a variable level with value 630602 in Unity?
int level = 630602;
### Instruction: How to declare a variable level with value 630602 in Unity? ### Response: int level = 630602;
98,563,938
en
JavaScript
string_ops
intermediate
Write a function that converts a string to uppercase in JavaScript.
const toUpper = s => s.toUpperCase();
### Instruction: Write a function that converts a string to uppercase in JavaScript. ### Response: const toUpper = s => s.toUpperCase();
4,735,448
en
JavaScript
var_decl
beginner
How to declare a variable total with value 415430 in JavaScript?
let total = 415430;
### Instruction: How to declare a variable total with value 415430 in JavaScript? ### Response: let total = 415430;
97,454,575
kk
C#
array_ops
intermediate
C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
38,421,368
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
28,154,580
kk
JavaScript
array_ops
intermediate
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
3,851,542
kk
C++
var_decl
beginner
C++ тілінде 905606 мәнімен y айнымалысын қалай жариялауға болады?
int y = 905606;
### Instruction: C++ тілінде 905606 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 905606;
3,628,028
ru
C#
var_decl
beginner
Как объявить переменную y со значением 76859 в C#?
int y = 76859;
### Instruction: Как объявить переменную y со значением 76859 в C#? ### Response: int y = 76859;
70,974,329
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 406 простым.
public bool IsPrime() { int n = 406; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 406 простым. ### Response: public bool IsPrime() { int n = 406; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,060,273
ru
Unity
var_decl
beginner
Как объявить переменную health со значением 176521 в Unity?
int health = 176521;
### Instruction: Как объявить переменную health со значением 176521 в Unity? ### Response: int health = 176521;
27,445,415
en
Unity
logic_ops
advanced
Write logic to check if the year 2003 is a leap year in Unity.
public bool IsLeap() { int y = 2003; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2003 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2003; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
28,173,455
kk
Unity
logic_ops
advanced
Unity тилінде 1970 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1970; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1970 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1970; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,036,012
ru
C#
var_decl
beginner
Как объявить переменную limit со значением 596043 в C#?
int limit = 596043;
### Instruction: Как объявить переменную limit со значением 596043 в C#? ### Response: int limit = 596043;
3,792,214
ru
C#
var_decl
beginner
Как объявить переменную level со значением 605317 в C#?
int level = 605317;
### Instruction: Как объявить переменную level со значением 605317 в C#? ### Response: int level = 605317;
3,632,222
en
Unity
var_decl
beginner
How to declare a variable offset with value 693880 in Unity?
int offset = 693880;
### Instruction: How to declare a variable offset with value 693880 in Unity? ### Response: int offset = 693880;
64,053,208
kk
Java
logic_ops
intermediate
Java тилінде 1958 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1958; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1958 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1958; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,793,099
en
C++
var_decl
beginner
How to declare a variable speed with value 319968 in C++?
int speed = 319968;
### Instruction: How to declare a variable speed with value 319968 in C++? ### Response: int speed = 319968;
2,301,376
en
Unity
var_decl
beginner
How to declare a variable size with value 534918 in Unity?
int size = 534918;
### Instruction: How to declare a variable size with value 534918 in Unity? ### Response: int size = 534918;
494,833
kk
Python
factorial
advanced
Python тілінде 7924 санының факториалын есептейтін функция жаз.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(7924))
### Instruction: Python тілінде 7924 санының факториалын есептейтін функция жаз. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(7924))
45,523,610
kk
Java
logic_ops
advanced
Java тилінде 388 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 388; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 388 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 388; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
77,564,784
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; }
49,780,833
ru
C#
array_ops
intermediate
Напишите на C# функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на C# функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
560,745
en
C++
sum_n
intermediate
Write a function in C++ that sums numbers from 1 to 9517.
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(9517) << std::endl;
### Instruction: Write a function in C++ that sums numbers from 1 to 9517. ### 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(9517) << std::endl;
95,677
kk
C++
factorial
advanced
C++ тілінде 9261 санының факториалын есептейтін функция жаз.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(9261) << std::endl;
### Instruction: C++ тілінде 9261 санының факториалын есептейтін функция жаз. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(9261) << std::endl;
4,039,182
kk
C#
var_decl
beginner
C# тілінде 652825 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 652825;
### Instruction: C# тілінде 652825 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 652825;
368,944
kk
JavaScript
factorial
advanced
JavaScript тілінде 1876 санының факториалын есептейтін функция жаз.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(1876));
### Instruction: JavaScript тілінде 1876 санының факториалын есептейтін функция жаз. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(1876));
42,352,227
en
JavaScript
logic_ops
intermediate
Write logic to check if the year 1962 is a leap year in JavaScript.
function isLeap() { let y = 1962; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Write logic to check if the year 1962 is a leap year in JavaScript. ### Response: function isLeap() { let y = 1962; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
95,061
kk
Java
factorial
advanced
Java тілінде 7336 санының факториалын есептейтін функция жаз.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(7336));
### Instruction: Java тілінде 7336 санының факториалын есептейтін функция жаз. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(7336));
213,331
kk
Unity
factorial
advanced
Unity тілінде 8903 санының факториалын есептейтін функция жаз.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(8903)); }
### Instruction: Unity тілінде 8903 санының факториалын есептейтін функция жаз. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(8903)); }
58,012,934
ru
Unity
array_ops
intermediate
Напишите на Unity функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на Unity функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
4,342,035
kk
JavaScript
var_decl
beginner
JavaScript тілінде 651309 мәнімен offset айнымалысын қалай жариялауға болады?
let offset = 651309;
### Instruction: JavaScript тілінде 651309 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: let offset = 651309;
96,034,574
kk
Unity
string_ops
intermediate
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
556,391
en
JavaScript
factorial
advanced
Write a function in JavaScript that calculates the factorial of 2083.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(2083));
### Instruction: Write a function in JavaScript that calculates the factorial of 2083. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(2083));
1,851,294
kk
JavaScript
var_decl
beginner
JavaScript тілінде 114379 мәнімен data айнымалысын қалай жариялауға болады?
let data = 114379;
### Instruction: JavaScript тілінде 114379 мәнімен data айнымалысын қалай жариялауға болады? ### Response: let data = 114379;
62,963,675
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 17 простым.
public bool IsPrime() { int n = 17; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 17 простым. ### Response: public bool IsPrime() { int n = 17; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
22,454,314
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;
4,823,911
kk
JavaScript
var_decl
beginner
JavaScript тілінде 202373 мәнімен weight айнымалысын қалай жариялауға болады?
let weight = 202373;
### Instruction: JavaScript тілінде 202373 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: let weight = 202373;
3,713,129
ru
JavaScript
var_decl
beginner
Как объявить переменную total со значением 158855 в JavaScript?
let total = 158855;
### Instruction: Как объявить переменную total со значением 158855 в JavaScript? ### Response: let total = 158855;
51,951,548
kk
JavaScript
string_ops
intermediate
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;