id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
81,533,734
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; }
254,092
ru
Java
var_decl
beginner
Как объявить переменную limit со значением 671465 в Java?
int limit = 671465;
### Instruction: Как объявить переменную limit со значением 671465 в Java? ### Response: int limit = 671465;
50,823,327
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,490,424
ru
Java
var_decl
beginner
Как объявить переменную amount со значением 746596 в Java?
int amount = 746596;
### Instruction: Как объявить переменную amount со значением 746596 в Java? ### Response: int amount = 746596;
18,906,933
en
C++
string_ops
advanced
Write a function that counts vowels in a text in C++.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in C++. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
62,324,826
ru
Java
logic_ops
intermediate
Напишите на Java логику проверки, является ли год 2048 високосным.
public bool IsLeap() { int y = 2048; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 2048 високосным. ### Response: public bool IsLeap() { int y = 2048; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,273,589
en
C#
var_decl
beginner
How to declare a variable rate with value 251457 in C#?
int rate = 251457;
### Instruction: How to declare a variable rate with value 251457 in C#? ### Response: int rate = 251457;
33,360,069
en
C++
array_ops
advanced
Write a function that filters only even numbers from a list in C++.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Write a function that filters only even numbers from a list in C++. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
4,349,397
ru
C#
var_decl
beginner
Как объявить переменную timer со значением 342991 в C#?
int timer = 342991;
### Instruction: Как объявить переменную timer со значением 342991 в C#? ### Response: int timer = 342991;
10,263,828
en
C++
logic_ops
intermediate
Write logic to check if the year 2026 is a leap year in C++.
public bool IsLeap() { int y = 2026; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2026 is a leap year in C++. ### Response: public bool IsLeap() { int y = 2026; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
23,060,161
en
Python
logic_ops
advanced
Write logic to check if the year 1955 is a leap year in Python.
def is_leap(): year = 1955 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 1955 is a leap year in Python. ### Response: def is_leap(): year = 1955 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
385,398
kk
JavaScript
var_decl
beginner
JavaScript тілінде 769699 мәнімен score айнымалысын қалай жариялауға болады?
let score = 769699;
### Instruction: JavaScript тілінде 769699 мәнімен score айнымалысын қалай жариялауға болады? ### Response: let score = 769699;
58,345,742
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
843,473
en
JavaScript
var_decl
beginner
How to declare a variable total with value 879802 in JavaScript?
let total = 879802;
### Instruction: How to declare a variable total with value 879802 in JavaScript? ### Response: let total = 879802;
2,777,536
kk
JavaScript
var_decl
beginner
JavaScript тілінде 328089 мәнімен x айнымалысын қалай жариялауға болады?
let x = 328089;
### Instruction: JavaScript тілінде 328089 мәнімен x айнымалысын қалай жариялауға болады? ### Response: let x = 328089;
17,474,478
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
164,604
ru
JavaScript
var_decl
beginner
Как объявить переменную amount со значением 697576 в JavaScript?
let amount = 697576;
### Instruction: Как объявить переменную amount со значением 697576 в JavaScript? ### Response: let amount = 697576;
26,929,372
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(); }
968,750
kk
C#
var_decl
beginner
C# тілінде 721895 мәнімен score айнымалысын қалай жариялауға болады?
int score = 721895;
### Instruction: C# тілінде 721895 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 721895;
41,632,513
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 334 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 334; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 334 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 334; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
1,299,161
ru
Unity
var_decl
beginner
Как объявить переменную result со значением 117529 в Unity?
int result = 117529;
### Instruction: Как объявить переменную result со значением 117529 в Unity? ### Response: int result = 117529;
93,568,854
ru
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,311,794
kk
C#
var_decl
beginner
C# тілінде 666507 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 666507;
### Instruction: C# тілінде 666507 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 666507;
15,165,435
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; }
16,051,262
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); }
155,563
en
Unity
factorial
advanced
Write a function in Unity that calculates the factorial of 7042.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7042)); }
### Instruction: Write a function in Unity that calculates the factorial of 7042. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7042)); }
3,807,385
kk
JavaScript
var_decl
beginner
JavaScript тілінде 421940 мәнімен x айнымалысын қалай жариялауға болады?
let x = 421940;
### Instruction: JavaScript тілінде 421940 мәнімен x айнымалысын қалай жариялауға болады? ### Response: let x = 421940;
4,837,837
en
Python
var_decl
beginner
How to declare a variable rate with value 693906 in Python?
rate = 693906
### Instruction: How to declare a variable rate with value 693906 in Python? ### Response: rate = 693906
4,110,641
kk
C#
var_decl
beginner
C# тілінде 525399 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 525399;
### Instruction: C# тілінде 525399 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 525399;
59,877,134
en
Java
array_ops
intermediate
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); }
216,653
en
C#
sum_n
intermediate
Write a function in C# that sums numbers from 1 to 80.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(80));
### Instruction: Write a function in C# that sums numbers from 1 to 80. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(80));
61,511,523
kk
Python
array_ops
advanced
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
def get_max(arr): return max(arr)
### Instruction: Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: def get_max(arr): return max(arr)
63,786,843
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 1948 високосным.
public bool IsLeap() { int y = 1948; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 1948 високосным. ### Response: public bool IsLeap() { int y = 1948; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
637,631
en
Python
var_decl
beginner
How to declare a variable count with value 934895 in Python?
count = 934895
### Instruction: How to declare a variable count with value 934895 in Python? ### Response: count = 934895
36,008,813
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(); }
97,063,169
kk
C++
logic_ops
advanced
C++ тилінде 2058 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2058; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 2058 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2058; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
17,718,640
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; }
39,604,900
en
Java
string_ops
intermediate
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(); }
95,858,266
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
3,159,762
ru
Python
var_decl
beginner
Как объявить переменную size со значением 190715 в Python?
size = 190715
### Instruction: Как объявить переменную size со значением 190715 в Python? ### Response: size = 190715
24,445,095
en
Java
string_ops
intermediate
Write a function that checks if a string is a palindrome in Java.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in Java. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
379,548
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 2931.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(2931)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 2931. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(2931)); }
2,119,531
en
Unity
var_decl
beginner
How to declare a variable size with value 274535 in Unity?
int size = 274535;
### Instruction: How to declare a variable size with value 274535 in Unity? ### Response: int size = 274535;
1,729,603
ru
Unity
var_decl
beginner
Как объявить переменную y со значением 626479 в Unity?
int y = 626479;
### Instruction: Как объявить переменную y со значением 626479 в Unity? ### Response: int y = 626479;
83,781,357
kk
Python
array_ops
advanced
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
def get_max(arr): return max(arr)
### Instruction: Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: def get_max(arr): return max(arr)
4,182,855
en
C++
var_decl
beginner
How to declare a variable data with value 193570 in C++?
int data = 193570;
### Instruction: How to declare a variable data with value 193570 in C++? ### Response: int data = 193570;
40,897,750
kk
C++
string_ops
advanced
C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
114,805
ru
JavaScript
factorial
advanced
Напиши функцию на JavaScript, которая вычисляет факториал числа 5292.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(5292));
### Instruction: Напиши функцию на JavaScript, которая вычисляет факториал числа 5292. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(5292));
37,824,912
kk
C#
logic_ops
advanced
C# тилінде 265 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 265; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 265 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 265; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,607,983
ru
C++
var_decl
beginner
Как объявить переменную count со значением 367256 в C++?
int count = 367256;
### Instruction: Как объявить переменную count со значением 367256 в C++? ### Response: int count = 367256;
82,986,462
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);
66,732,689
ru
Python
logic_ops
intermediate
Напишите на Python функцию, определяющую, является ли число 355 простым.
def is_prime(): n = 355 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 355 простым. ### Response: def is_prime(): n = 355 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
4,424,062
en
C++
var_decl
beginner
How to declare a variable speed with value 915179 in C++?
int speed = 915179;
### Instruction: How to declare a variable speed with value 915179 in C++? ### Response: int speed = 915179;
26,196,201
kk
Python
logic_ops
intermediate
Python тилінде 445 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 445 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 445 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 445 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
2,517,992
en
C#
var_decl
beginner
How to declare a variable y with value 307656 in C#?
int y = 307656;
### Instruction: How to declare a variable y with value 307656 in C#? ### Response: int y = 307656;
816,168
kk
C#
factorial
advanced
C# тілінде 7581 санының факториалын есептейтін функция жаз.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(7581));
### Instruction: C# тілінде 7581 санының факториалын есептейтін функция жаз. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(7581));
38,912,792
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; }
57,804,500
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript логику проверки, является ли год 1928 високосным.
function isLeap() { let y = 1928; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 1928 високосным. ### Response: function isLeap() { let y = 1928; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
1,638,717
en
C#
var_decl
beginner
How to declare a variable speed with value 726805 in C#?
int speed = 726805;
### Instruction: How to declare a variable speed with value 726805 in C#? ### Response: int speed = 726805;
47,503,121
en
Unity
logic_ops
advanced
Write a function that determines if the number 46 is prime in Unity.
public bool IsPrime() { int n = 46; 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 46 is prime in Unity. ### Response: public bool IsPrime() { int n = 46; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
59,531,659
kk
JavaScript
array_ops
intermediate
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
16,476,133
kk
Python
logic_ops
advanced
Python тилінде 1920 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
def is_leap(): year = 1920 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Python тилінде 1920 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: def is_leap(): year = 1920 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
14,048,023
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript функцию, определяющую, является ли число 23 простым.
function isPrime() { let n = 23; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 23 простым. ### Response: function isPrime() { let n = 23; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
4,780,738
kk
JavaScript
var_decl
beginner
JavaScript тілінде 813162 мәнімен speed айнымалысын қалай жариялауға болады?
let speed = 813162;
### Instruction: JavaScript тілінде 813162 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: let speed = 813162;
2,055,969
ru
C#
var_decl
beginner
Как объявить переменную size со значением 84486 в C#?
int size = 84486;
### Instruction: Как объявить переменную size со значением 84486 в C#? ### Response: int size = 84486;
142,858
ru
JavaScript
sum_n
intermediate
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 7496.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(7496));
### Instruction: Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 7496. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(7496));
50,703,543
kk
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; }
2,065,149
en
Unity
var_decl
beginner
How to declare a variable total with value 596156 in Unity?
int total = 596156;
### Instruction: How to declare a variable total with value 596156 in Unity? ### Response: int total = 596156;
73,470,302
en
JavaScript
array_ops
advanced
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);
332,968
ru
Java
factorial
advanced
Напиши функцию на Java, которая вычисляет факториал числа 5455.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(5455));
### Instruction: Напиши функцию на Java, которая вычисляет факториал числа 5455. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(5455));
417,956
kk
C#
factorial
advanced
C# тілінде 7742 санының факториалын есептейтін функция жаз.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(7742));
### Instruction: C# тілінде 7742 санының факториалын есептейтін функция жаз. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(7742));
144,163
ru
JavaScript
factorial
advanced
Напиши функцию на JavaScript, которая вычисляет факториал числа 2567.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(2567));
### Instruction: Напиши функцию на JavaScript, которая вычисляет факториал числа 2567. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(2567));
57,060,310
ru
C++
array_ops
intermediate
Напишите на C++ функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на C++ функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
2,183,191
kk
C++
var_decl
beginner
C++ тілінде 726857 мәнімен index айнымалысын қалай жариялауға болады?
int index = 726857;
### Instruction: C++ тілінде 726857 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 726857;
4,701,605
ru
Python
var_decl
beginner
Как объявить переменную health со значением 237784 в Python?
health = 237784
### Instruction: Как объявить переменную health со значением 237784 в Python? ### Response: health = 237784
22,574,282
en
Python
logic_ops
advanced
Write a function that determines if the number 92 is prime in Python.
def is_prime(): n = 92 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 92 is prime in Python. ### Response: def is_prime(): n = 92 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
91,988,355
ru
C++
logic_ops
intermediate
Напишите на C++ функцию, определяющую, является ли число 153 простым.
public bool IsPrime() { int n = 153; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 153 простым. ### Response: public bool IsPrime() { int n = 153; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
81,100,788
kk
Python
array_ops
intermediate
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
2,490,711
kk
C++
var_decl
beginner
C++ тілінде 857988 мәнімен total айнымалысын қалай жариялауға болады?
int total = 857988;
### Instruction: C++ тілінде 857988 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 857988;
16,570,480
kk
Python
logic_ops
intermediate
Python тилінде 1958 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
def is_leap(): year = 1958 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Python тилінде 1958 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: def is_leap(): year = 1958 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
77,335,774
kk
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]
3,009,578
ru
Java
var_decl
beginner
Как объявить переменную buffer со значением 3908 в Java?
int buffer = 3908;
### Instruction: Как объявить переменную buffer со значением 3908 в Java? ### Response: int buffer = 3908;
95,015,770
kk
C++
logic_ops
intermediate
C++ тилінде 1969 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1969; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 1969 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1969; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
76,695,150
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; }
98,791,701
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 415 is prime in JavaScript.
function isPrime() { let n = 415; 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 415 is prime in JavaScript. ### Response: function isPrime() { let n = 415; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
84,264,139
kk
Java
logic_ops
intermediate
Java тилінде 240 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 240; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 240 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 240; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,981,207
en
Java
var_decl
beginner
How to declare a variable rate with value 828579 in Java?
int rate = 828579;
### Instruction: How to declare a variable rate with value 828579 in Java? ### Response: int rate = 828579;
50,373,572
ru
Python
logic_ops
intermediate
Напишите на Python функцию, определяющую, является ли число 238 простым.
def is_prime(): n = 238 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 238 простым. ### Response: def is_prime(): n = 238 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
35,441,847
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
33,017,891
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(); }
88,332,675
kk
Python
array_ops
intermediate
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
def get_max(arr): return max(arr)
### Instruction: Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: def get_max(arr): return max(arr)
90,793,953
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; }
2,930,495
en
Unity
var_decl
beginner
How to declare a variable level with value 152606 in Unity?
int level = 152606;
### Instruction: How to declare a variable level with value 152606 in Unity? ### Response: int level = 152606;
3,895,422
ru
Unity
var_decl
beginner
Как объявить переменную score со значением 92382 в Unity?
int score = 92382;
### Instruction: Как объявить переменную score со значением 92382 в Unity? ### Response: int score = 92382;
4,482,466
ru
JavaScript
var_decl
beginner
Как объявить переменную amount со значением 219254 в JavaScript?
let amount = 219254;
### Instruction: Как объявить переменную amount со значением 219254 в JavaScript? ### Response: let amount = 219254;
54,383,940
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; }
1,725,912
en
C#
var_decl
beginner
How to declare a variable rate with value 813188 in C#?
int rate = 813188;
### Instruction: How to declare a variable rate with value 813188 in C#? ### Response: int rate = 813188;
76,220,677
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; }
2,123,465
kk
Unity
var_decl
beginner
Unity тілінде 22823 мәнімен value айнымалысын қалай жариялауға болады?
int value = 22823;
### Instruction: Unity тілінде 22823 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 22823;
65,295,696
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);