id int64 0 100M | language stringclasses 3
values | prog_lang stringclasses 6
values | category stringclasses 10
values | difficulty stringclasses 3
values | instruction stringlengths 30 86 | output stringlengths 7 192 | text stringlengths 92 300 |
|---|---|---|---|---|---|---|---|
28,315,104 | 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] |
25,757,323 | 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;
} |
14,152,128 | 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] |
17,096,430 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript логику проверки, является ли год 2046 високосным. | function isLeap() {
let y = 2046;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 2046 високосным.
### Response:
function isLeap() {
let y = 2046;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
65,747,526 | ru | Java | array_ops | intermediate | Напишите на Java функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Java функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
53,760,794 | 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); |
25,352,107 | 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; |
2,714,187 | en | C++ | var_decl | beginner | How to declare a variable total with value 154920 in C++? | int total = 154920; | ### Instruction:
How to declare a variable total with value 154920 in C++?
### Response:
int total = 154920; |
1,194,425 | en | JavaScript | var_decl | beginner | How to declare a variable value with value 330392 in JavaScript? | let value = 330392; | ### Instruction:
How to declare a variable value with value 330392 in JavaScript?
### Response:
let value = 330392; |
86,138,854 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая переводит строку в верхний регистр. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
### Response:
const toUpper = s => s.toUpperCase(); |
687,770 | en | C++ | var_decl | beginner | How to declare a variable x with value 71377 in C++? | int x = 71377; | ### Instruction:
How to declare a variable x with value 71377 in C++?
### Response:
int x = 71377; |
68,950,721 | kk | Java | string_ops | intermediate | Java тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Java тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
66,829,133 | en | Unity | array_ops | advanced | Write a function that filters only even numbers from a list in Unity. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Unity.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
74,363 | en | C# | factorial | advanced | Write a function in C# that calculates the factorial of 2381. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(2381)); | ### Instruction:
Write a function in C# that calculates the factorial of 2381.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(2381)); |
55,096,574 | ru | 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;
} |
91,042,196 | en | Unity | logic_ops | intermediate | Write logic to check if the year 1931 is a leap year in Unity. | public bool IsLeap() {
int y = 1931;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1931 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1931;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
40,679,602 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 1907 високосным. | public bool IsLeap() {
int y = 1907;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1907 високосным.
### Response:
public bool IsLeap() {
int y = 1907;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
71,761,019 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
25,133,386 | en | C++ | array_ops | intermediate | Write a function that finds the maximum number in an array in C++. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in C++.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
2,751,399 | ru | Python | var_decl | beginner | Как объявить переменную data со значением 833913 в Python? | data = 833913 | ### Instruction:
Как объявить переменную data со значением 833913 в Python?
### Response:
data = 833913 |
21,173,024 | en | Python | array_ops | advanced | Write a function that reverses a list in Python. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Write a function that reverses a list in Python.
### Response:
def reverse_list(arr):
return arr[::-1] |
42,741,750 | 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;
} |
24,997,462 | 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);
} |
36,608,495 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 2042 високосным. | public bool IsLeap() {
int y = 2042;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2042 високосным.
### Response:
public bool IsLeap() {
int y = 2042;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,934,410 | en | Unity | var_decl | beginner | How to declare a variable health with value 490251 in Unity? | int health = 490251; | ### Instruction:
How to declare a variable health with value 490251 in Unity?
### Response:
int health = 490251; |
917,013 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 7374-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(7374));
} | ### Instruction:
Unity тілінде 1-ден 7374-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(7374));
} |
4,159,256 | ru | Unity | var_decl | beginner | Как объявить переменную timer со значением 741212 в Unity? | int timer = 741212; | ### Instruction:
Как объявить переменную timer со значением 741212 в Unity?
### Response:
int timer = 741212; |
699,513 | kk | C# | factorial | advanced | C# тілінде 3844 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(3844)); | ### Instruction:
C# тілінде 3844 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(3844)); |
44,667,111 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
76,049,359 | 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;
} |
15,488,657 | en | Python | string_ops | intermediate | Write a function that checks if a string is a palindrome in Python. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Write a function that checks if a string is a palindrome in Python.
### Response:
def is_palindrome(s):
return s == s[::-1] |
127,247 | en | Python | sum_n | intermediate | Write a function in Python that sums numbers from 1 to 566. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(566)) | ### Instruction:
Write a function in Python that sums numbers from 1 to 566.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(566)) |
54,360,734 | en | Python | string_ops | intermediate | Write a function that checks if a string is a palindrome in Python. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Write a function that checks if a string is a palindrome in Python.
### Response:
def is_palindrome(s):
return s == s[::-1] |
92,915,405 | kk | Python | logic_ops | advanced | Python тилінде 315 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 315
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 315 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 315
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
66,960,663 | 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;
} |
56,245,606 | en | Python | logic_ops | intermediate | Write a function that determines if the number 313 is prime in Python. | def is_prime():
n = 313
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 313 is prime in Python.
### Response:
def is_prime():
n = 313
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
35,520,238 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
24,356,456 | 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;
} |
88,552,388 | 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) |
17,450,412 | kk | JavaScript | array_ops | advanced | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
84,513,536 | en | Java | logic_ops | advanced | Write a function that determines if the number 140 is prime in Java. | public bool IsPrime() {
int n = 140;
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 140 is prime in Java.
### Response:
public bool IsPrime() {
int n = 140;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
67,657,916 | 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;
} |
88,016,404 | kk | Java | array_ops | advanced | Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
2,019,352 | kk | Python | var_decl | beginner | Python тілінде 49745 мәнімен value айнымалысын қалай жариялауға болады? | value = 49745 | ### Instruction:
Python тілінде 49745 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
value = 49745 |
1,935,678 | kk | Unity | var_decl | beginner | Unity тілінде 684936 мәнімен result айнымалысын қалай жариялауға болады? | int result = 684936; | ### Instruction:
Unity тілінде 684936 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 684936; |
327,512 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 2143. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(2143)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 2143.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(2143)); |
4,033,309 | en | Java | var_decl | beginner | How to declare a variable result with value 628736 in Java? | int result = 628736; | ### Instruction:
How to declare a variable result with value 628736 in Java?
### Response:
int result = 628736; |
53,427,187 | ru | Java | array_ops | intermediate | Напишите на Java функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Java функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
26,770,183 | kk | C# | logic_ops | intermediate | C# тилінде 2055 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2055;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 2055 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2055;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,963,288 | en | JavaScript | var_decl | beginner | How to declare a variable weight with value 606205 in JavaScript? | let weight = 606205; | ### Instruction:
How to declare a variable weight with value 606205 in JavaScript?
### Response:
let weight = 606205; |
3,060,948 | en | Java | var_decl | beginner | How to declare a variable index with value 545906 in Java? | int index = 545906; | ### Instruction:
How to declare a variable index with value 545906 in Java?
### Response:
int index = 545906; |
80,382,908 | kk | C# | logic_ops | intermediate | C# тилінде 1931 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1931;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1931 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1931;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,003,172 | kk | Java | var_decl | beginner | Java тілінде 725389 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 725389; | ### Instruction:
Java тілінде 725389 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 725389; |
69,109,092 | en | Python | string_ops | advanced | 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аеёиоуыэюя') |
63,340,512 | en | C# | array_ops | intermediate | Write a function that finds the maximum number in an array in C#. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in C#.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
73,812,920 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
37,737,021 | kk | 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);
} |
42,574,076 | 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;
} |
3,877,028 | ru | Unity | var_decl | beginner | Как объявить переменную data со значением 844826 в Unity? | int data = 844826; | ### Instruction:
Как объявить переменную data со значением 844826 в Unity?
### Response:
int data = 844826; |
2,898,417 | en | C++ | var_decl | beginner | How to declare a variable score with value 311381 in C++? | int score = 311381; | ### Instruction:
How to declare a variable score with value 311381 in C++?
### Response:
int score = 311381; |
4,165,525 | ru | Java | var_decl | beginner | Как объявить переменную data со значением 38 в Java? | int data = 38; | ### Instruction:
Как объявить переменную data со значением 38 в Java?
### Response:
int data = 38; |
2,420,076 | en | C# | var_decl | beginner | How to declare a variable data with value 31228 in C#? | int data = 31228; | ### Instruction:
How to declare a variable data with value 31228 in C#?
### Response:
int data = 31228; |
18,812,467 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
1,116,433 | kk | Unity | var_decl | beginner | Unity тілінде 935097 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 935097; | ### Instruction:
Unity тілінде 935097 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 935097; |
3,061,233 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 859391 мәнімен level айнымалысын қалай жариялауға болады? | let level = 859391; | ### Instruction:
JavaScript тілінде 859391 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
let level = 859391; |
69,083,244 | 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;
} |
56,991,807 | 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;
} |
4,176,389 | kk | C++ | var_decl | beginner | C++ тілінде 119639 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 119639; | ### Instruction:
C++ тілінде 119639 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 119639; |
25,412,577 | 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;
} |
3,519,946 | en | C++ | var_decl | beginner | How to declare a variable size with value 173122 in C++? | int size = 173122; | ### Instruction:
How to declare a variable size with value 173122 in C++?
### Response:
int size = 173122; |
98,492,599 | 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;
} |
19,873,908 | kk | Python | logic_ops | intermediate | Python тилінде 1910 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1910
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1910 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1910
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
32,037,602 | 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] |
98,545,983 | 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;
} |
29,356,662 | 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;
} |
79,854,423 | ru | C# | array_ops | advanced | Напишите на C# функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на C# функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
986,406 | en | Unity | var_decl | beginner | How to declare a variable y with value 399324 in Unity? | int y = 399324; | ### Instruction:
How to declare a variable y with value 399324 in Unity?
### Response:
int y = 399324; |
94,442,463 | 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; |
97,669 | kk | JavaScript | factorial | advanced | JavaScript тілінде 9502 санының факториалын есептейтін функция жаз. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(9502)); | ### Instruction:
JavaScript тілінде 9502 санының факториалын есептейтін функция жаз.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(9502)); |
10,255,831 | kk | Java | string_ops | advanced | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
57,945,797 | 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;
} |
39,632,958 | en | Java | array_ops | advanced | Write a function that filters only even numbers from a list in 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:
Write a function that filters only even numbers from a list in Java.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
3,713,769 | en | C++ | var_decl | beginner | How to declare a variable amount with value 166839 in C++? | int amount = 166839; | ### Instruction:
How to declare a variable amount with value 166839 in C++?
### Response:
int amount = 166839; |
37,248,911 | ru | 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,733,928 | kk | C++ | logic_ops | advanced | C++ тилінде 438 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 438;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 438 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 438;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,363,397 | ru | Python | var_decl | beginner | Как объявить переменную limit со значением 457539 в Python? | limit = 457539 | ### Instruction:
Как объявить переменную limit со значением 457539 в Python?
### Response:
limit = 457539 |
1,384,087 | en | JavaScript | var_decl | beginner | How to declare a variable data with value 308401 in JavaScript? | let data = 308401; | ### Instruction:
How to declare a variable data with value 308401 in JavaScript?
### Response:
let data = 308401; |
4,460,527 | en | C++ | var_decl | beginner | How to declare a variable timer with value 20981 in C++? | int timer = 20981; | ### Instruction:
How to declare a variable timer with value 20981 in C++?
### Response:
int timer = 20981; |
4,836,821 | kk | Python | var_decl | beginner | Python тілінде 944711 мәнімен score айнымалысын қалай жариялауға болады? | score = 944711 | ### Instruction:
Python тілінде 944711 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
score = 944711 |
68,056,072 | ru | C# | logic_ops | advanced | Напишите на C# функцию, определяющую, является ли число 489 простым. | public bool IsPrime() {
int n = 489;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 489 простым.
### Response:
public bool IsPrime() {
int n = 489;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,438,197 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 351433 мәнімен x айнымалысын қалай жариялауға болады? | let x = 351433; | ### Instruction:
JavaScript тілінде 351433 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
let x = 351433; |
4,029,930 | en | C++ | var_decl | beginner | How to declare a variable timer with value 408499 in C++? | int timer = 408499; | ### Instruction:
How to declare a variable timer with value 408499 in C++?
### Response:
int timer = 408499; |
33,579,113 | kk | 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;
} |
37,275,824 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 78 простым. | public bool IsPrime() {
int n = 78;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 78 простым.
### Response:
public bool IsPrime() {
int n = 78;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
83,962,559 | en | C# | logic_ops | intermediate | Write logic to check if the year 1960 is a leap year in C#. | public bool IsLeap() {
int y = 1960;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1960 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 1960;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,901,506 | en | Java | var_decl | beginner | How to declare a variable y with value 460152 in Java? | int y = 460152; | ### Instruction:
How to declare a variable y with value 460152 in Java?
### Response:
int y = 460152; |
56,145,788 | en | Python | logic_ops | intermediate | Write logic to check if the year 1970 is a leap year in Python. | def is_leap():
year = 1970
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1970 is a leap year in Python.
### Response:
def is_leap():
year = 1970
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
4,556,024 | kk | Unity | var_decl | beginner | Unity тілінде 735753 мәнімен x айнымалысын қалай жариялауға болады? | int x = 735753; | ### Instruction:
Unity тілінде 735753 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 735753; |
4,790,677 | kk | Unity | var_decl | beginner | Unity тілінде 884647 мәнімен value айнымалысын қалай жариялауға болады? | int value = 884647; | ### Instruction:
Unity тілінде 884647 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 884647; |
2,663,757 | en | C++ | var_decl | beginner | How to declare a variable offset with value 131831 in C++? | int offset = 131831; | ### Instruction:
How to declare a variable offset with value 131831 in C++?
### Response:
int offset = 131831; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.