id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
72,629,733
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;
34,599,160
ru
Java
string_ops
advanced
Напишите на 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; }
26,705,972
ru
Java
string_ops
advanced
Напишите на Java функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на Java функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
2,377,404
ru
Python
var_decl
beginner
Как объявить переменную y со значением 406735 в Python?
y = 406735
### Instruction: Как объявить переменную y со значением 406735 в Python? ### Response: y = 406735
71,841,920
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
3,719,475
kk
Unity
var_decl
beginner
Unity тілінде 233907 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 233907;
### Instruction: Unity тілінде 233907 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 233907;
61,374,743
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); }
2,381,739
ru
C#
var_decl
beginner
Как объявить переменную value со значением 992875 в C#?
int value = 992875;
### Instruction: Как объявить переменную value со значением 992875 в C#? ### Response: int value = 992875;
39,008,916
en
C#
array_ops
advanced
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; }
24,791,713
kk
C#
logic_ops
intermediate
C# тилінде 2084 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2084; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C# тилінде 2084 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2084; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
69,958,523
ru
Unity
array_ops
advanced
Напишите на Unity функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на Unity функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
4,068,495
kk
Python
var_decl
beginner
Python тілінде 77362 мәнімен count айнымалысын қалай жариялауға болады?
count = 77362
### Instruction: Python тілінде 77362 мәнімен count айнымалысын қалай жариялауға болады? ### Response: count = 77362
88,764,394
en
JavaScript
array_ops
intermediate
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);
54,580,344
ru
Unity
array_ops
advanced
Напишите на 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,192,187
en
Python
var_decl
beginner
How to declare a variable offset with value 580550 in Python?
offset = 580550
### Instruction: How to declare a variable offset with value 580550 in Python? ### Response: offset = 580550
85,607,645
ru
Python
logic_ops
intermediate
Напишите на Python функцию, определяющую, является ли число 283 простым.
def is_prime(): n = 283 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 283 простым. ### Response: def is_prime(): n = 283 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
1,874,008
kk
JavaScript
var_decl
beginner
JavaScript тілінде 95725 мәнімен offset айнымалысын қалай жариялауға болады?
let offset = 95725;
### Instruction: JavaScript тілінде 95725 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: let offset = 95725;
60,067,062
en
Python
logic_ops
intermediate
Write a function that determines if the number 107 is prime in Python.
def is_prime(): n = 107 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 107 is prime in Python. ### Response: def is_prime(): n = 107 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
10,284,815
kk
C#
logic_ops
intermediate
C# тилінде 96 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 96; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 96 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 96; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,218,875
ru
C++
var_decl
beginner
Как объявить переменную total со значением 975452 в C++?
int total = 975452;
### Instruction: Как объявить переменную total со значением 975452 в C++? ### Response: int total = 975452;
58,241,948
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; }
4,379,118
kk
Java
var_decl
beginner
Java тілінде 63460 мәнімен level айнымалысын қалай жариялауға болады?
int level = 63460;
### Instruction: Java тілінде 63460 мәнімен level айнымалысын қалай жариялауға болады? ### Response: int level = 63460;
185,023
ru
Python
factorial
advanced
Напиши функцию на Python, которая вычисляет факториал числа 1008.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(1008))
### Instruction: Напиши функцию на Python, которая вычисляет факториал числа 1008. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(1008))
21,660
kk
C#
var_decl
beginner
C# тілінде 643685 мәнімен count айнымалысын қалай жариялауға болады?
int count = 643685;
### Instruction: C# тілінде 643685 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 643685;
2,526,902
en
C#
var_decl
beginner
How to declare a variable size with value 811330 in C#?
int size = 811330;
### Instruction: How to declare a variable size with value 811330 in C#? ### Response: int size = 811330;
1,145,656
ru
C++
var_decl
beginner
Как объявить переменную timer со значением 577035 в C++?
int timer = 577035;
### Instruction: Как объявить переменную timer со значением 577035 в C++? ### Response: int timer = 577035;
1,270,703
kk
Unity
var_decl
beginner
Unity тілінде 417676 мәнімен data айнымалысын қалай жариялауға болады?
int data = 417676;
### Instruction: Unity тілінде 417676 мәнімен data айнымалысын қалай жариялауға болады? ### Response: int data = 417676;
41,817,419
ru
Java
string_ops
advanced
Напишите на 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; }
63,304,617
ru
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); }
1,614,605
en
JavaScript
var_decl
beginner
How to declare a variable score with value 58295 in JavaScript?
let score = 58295;
### Instruction: How to declare a variable score with value 58295 in JavaScript? ### Response: let score = 58295;
2,470,129
en
JavaScript
var_decl
beginner
How to declare a variable result with value 18592 in JavaScript?
let result = 18592;
### Instruction: How to declare a variable result with value 18592 in JavaScript? ### Response: let result = 18592;
329,930
kk
C#
factorial
advanced
C# тілінде 8441 санының факториалын есептейтін функция жаз.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(8441));
### Instruction: C# тілінде 8441 санының факториалын есептейтін функция жаз. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(8441));
62,376,191
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); }
91,893,692
en
Python
array_ops
advanced
Write a function that filters only even numbers from a list in Python.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Write a function that filters only even numbers from a list in Python. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
85,698,075
kk
C++
logic_ops
advanced
C++ тилінде 483 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 483; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C++ тилінде 483 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 483; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
96,330,263
kk
C#
logic_ops
advanced
C# тилінде 2003 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2003; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C# тилінде 2003 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2003; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
26,559,416
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
const getMax = arr => Math.max(...arr);
### Instruction: Напишите на JavaScript функцию, которая находит максимальное число в массиве. ### Response: const getMax = arr => Math.max(...arr);
32,147,753
en
Unity
string_ops
intermediate
Write a function that checks if a string is a palindrome in Unity.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in Unity. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
13,958,640
en
Python
logic_ops
advanced
Write logic to check if the year 1921 is a leap year in Python.
def is_leap(): year = 1921 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 1921 is a leap year in Python. ### Response: def is_leap(): year = 1921 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
70,152,776
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 2042 високосным.
public bool IsLeap() { int y = 2042; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2042 високосным. ### Response: public bool IsLeap() { int y = 2042; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
61,594,575
kk
Unity
logic_ops
advanced
Unity тилінде 2073 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2073; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2073 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2073; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
27,776,498
ru
Unity
logic_ops
advanced
Напишите на Unity логику проверки, является ли год 1943 високосным.
public bool IsLeap() { int y = 1943; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1943 високосным. ### Response: public bool IsLeap() { int y = 1943; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
54,590,053
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); }
28,710,363
ru
Unity
string_ops
advanced
Напишите на Unity функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на Unity функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
63,874,434
ru
Unity
string_ops
advanced
Напишите на 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; }
63,954,541
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; }
89,032,367
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(); }
2,132,203
kk
C++
var_decl
beginner
C++ тілінде 944610 мәнімен y айнымалысын қалай жариялауға болады?
int y = 944610;
### Instruction: C++ тілінде 944610 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 944610;
33,625,599
ru
C++
string_ops
intermediate
Напишите на C++ функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на C++ функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
890,127
en
Unity
factorial
advanced
Write a function in Unity that calculates the factorial of 7744.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7744)); }
### Instruction: Write a function in Unity that calculates the factorial of 7744. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(7744)); }
56,590,431
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; }
29,087,198
kk
JavaScript
array_ops
intermediate
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
const reverseArr = arr => arr.reverse();
### Instruction: JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: const reverseArr = arr => arr.reverse();
84,264,628
en
Unity
logic_ops
intermediate
Write a function that determines if the number 306 is prime in Unity.
public bool IsPrime() { int n = 306; 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 306 is prime in Unity. ### Response: public bool IsPrime() { int n = 306; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
774,563
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 2667.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(2667)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 2667. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(2667)); }
72,467,549
en
Java
logic_ops
intermediate
Write logic to check if the year 2074 is a leap year in Java.
public bool IsLeap() { int y = 2074; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2074 is a leap year in Java. ### Response: public bool IsLeap() { int y = 2074; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
72,932,389
kk
Python
string_ops
advanced
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
62,114,499
en
C#
array_ops
advanced
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; }
66,821,966
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;
78,800,937
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; }
98,444,593
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
3,519,173
ru
Python
var_decl
beginner
Как объявить переменную result со значением 484880 в Python?
result = 484880
### Instruction: Как объявить переменную result со значением 484880 в Python? ### Response: result = 484880
56,206,908
kk
JavaScript
array_ops
advanced
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
3,410,866
en
C#
var_decl
beginner
How to declare a variable score with value 300548 in C#?
int score = 300548;
### Instruction: How to declare a variable score with value 300548 in C#? ### Response: int score = 300548;
78,194,410
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; }
2,186,051
kk
JavaScript
var_decl
beginner
JavaScript тілінде 817109 мәнімен weight айнымалысын қалай жариялауға болады?
let weight = 817109;
### Instruction: JavaScript тілінде 817109 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: let weight = 817109;
450,650
ru
JavaScript
var_decl
beginner
Как объявить переменную weight со значением 206389 в JavaScript?
let weight = 206389;
### Instruction: Как объявить переменную weight со значением 206389 в JavaScript? ### Response: let weight = 206389;
4,173,849
ru
C#
var_decl
beginner
Как объявить переменную amount со значением 546203 в C#?
int amount = 546203;
### Instruction: Как объявить переменную amount со значением 546203 в C#? ### Response: int amount = 546203;
35,913,156
ru
Python
array_ops
advanced
Напишите на Python функцию, которая фильтрует только четные числа из списка.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Напишите на Python функцию, которая фильтрует только четные числа из списка. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
34,116,587
en
Python
array_ops
advanced
Write a function that filters only even numbers from a list in Python.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Write a function that filters only even numbers from a list in Python. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
173,894
ru
JavaScript
factorial
advanced
Напиши функцию на JavaScript, которая вычисляет факториал числа 2846.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(2846));
### Instruction: Напиши функцию на JavaScript, которая вычисляет факториал числа 2846. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(2846));
824,944
ru
Java
var_decl
beginner
Как объявить переменную result со значением 936649 в Java?
int result = 936649;
### Instruction: Как объявить переменную result со значением 936649 в Java? ### Response: int result = 936649;
145,047
kk
C#
sum_n
intermediate
C# тілінде 1-ден 3993-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(3993));
### Instruction: C# тілінде 1-ден 3993-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(3993));
4,048,288
kk
C++
var_decl
beginner
C++ тілінде 183840 мәнімен value айнымалысын қалай жариялауға болады?
int value = 183840;
### Instruction: C++ тілінде 183840 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 183840;
94,728,109
en
C#
logic_ops
intermediate
Write a function that determines if the number 491 is prime in C#.
public bool IsPrime() { int n = 491; 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 491 is prime in C#. ### Response: public bool IsPrime() { int n = 491; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
70,951,998
ru
C++
string_ops
advanced
Напишите на C++ функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на C++ функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
31,541,618
ru
JavaScript
logic_ops
advanced
Напишите на JavaScript логику проверки, является ли год 2059 високосным.
function isLeap() { let y = 2059; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 2059 високосным. ### Response: function isLeap() { let y = 2059; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
269,535
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 4630.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(4630))
### Instruction: Write a function in Python that sums numbers from 1 to 4630. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(4630))
13,992,711
ru
C++
array_ops
advanced
Напишите на C++ функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на C++ функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
1,010,072
en
JavaScript
var_decl
beginner
How to declare a variable timer with value 310327 in JavaScript?
let timer = 310327;
### Instruction: How to declare a variable timer with value 310327 in JavaScript? ### Response: let timer = 310327;
3,757,306
kk
C++
var_decl
beginner
C++ тілінде 957434 мәнімен y айнымалысын қалай жариялауға болады?
int y = 957434;
### Instruction: C++ тілінде 957434 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 957434;
38,455,057
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аеёиоуыэюя')
2,900,914
kk
JavaScript
var_decl
beginner
JavaScript тілінде 805101 мәнімен count айнымалысын қалай жариялауға болады?
let count = 805101;
### Instruction: JavaScript тілінде 805101 мәнімен count айнымалысын қалай жариялауға болады? ### Response: let count = 805101;
2,641,808
ru
Unity
var_decl
beginner
Как объявить переменную weight со значением 946749 в Unity?
int weight = 946749;
### Instruction: Как объявить переменную weight со значением 946749 в Unity? ### Response: int weight = 946749;
18,047,763
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);
73,407,847
en
C++
string_ops
intermediate
Write a function that counts vowels in a text in C++.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in C++. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
34,628,283
en
Python
array_ops
intermediate
Write a function that finds the maximum number in an array in Python.
def get_max(arr): return max(arr)
### Instruction: Write a function that finds the maximum number in an array in Python. ### Response: def get_max(arr): return max(arr)
91,760,477
en
C++
string_ops
intermediate
Write a function that converts a string to uppercase in C++.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in C++. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
4,173,608
kk
Python
var_decl
beginner
Python тілінде 99681 мәнімен level айнымалысын қалай жариялауға болады?
level = 99681
### Instruction: Python тілінде 99681 мәнімен level айнымалысын қалай жариялауға болады? ### Response: level = 99681
33,822,341
en
C++
logic_ops
advanced
Write logic to check if the year 1936 is a leap year in C++.
public bool IsLeap() { int y = 1936; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1936 is a leap year in C++. ### Response: public bool IsLeap() { int y = 1936; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
14,004,535
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();
96,791,008
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript функцию, определяющую, является ли число 81 простым.
function isPrime() { let n = 81; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 81 простым. ### Response: function isPrime() { let n = 81; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
758,562
kk
Unity
var_decl
beginner
Unity тілінде 780957 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 780957;
### Instruction: Unity тілінде 780957 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 780957;
98,919,753
en
Python
string_ops
intermediate
Write a function that counts vowels in a text in Python.
def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
### Instruction: Write a function that counts vowels in a text in Python. ### Response: def count_vowels(s): return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя')
48,280,274
ru
Java
array_ops
advanced
Напишите на Java функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на Java функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
4,037,298
kk
Python
var_decl
beginner
Python тілінде 913299 мәнімен score айнымалысын қалай жариялауға болады?
score = 913299
### Instruction: Python тілінде 913299 мәнімен score айнымалысын қалай жариялауға болады? ### Response: score = 913299
65,043,826
kk
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; }
853,091
en
C++
var_decl
beginner
How to declare a variable limit with value 751763 in C++?
int limit = 751763;
### Instruction: How to declare a variable limit with value 751763 in C++? ### Response: int limit = 751763;
57,821,879
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 449 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 449; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 449 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 449; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
50,736,914
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; }
41,038,754
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;