id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
25,802,064 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
37,870,853 | kk | Python | array_ops | intermediate | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
29,988,440 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 2097 is a leap year in JavaScript. | function isLeap() {
let y = 2097;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2097 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2097;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
34,345,988 | en | C++ | logic_ops | intermediate | Write logic to check if the year 2031 is a leap year in C++. | public bool IsLeap() {
int y = 2031;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2031 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2031;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
75,767,494 | en | C# | logic_ops | advanced | Write a function that determines if the number 132 is prime in C#. | public bool IsPrime() {
int n = 132;
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 132 is prime in C#.
### Response:
public bool IsPrime() {
int n = 132;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
38,510,453 | 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;
} |
1,340,294 | kk | C++ | factorial | advanced | C++ тілінде 9829 санының факториалын есептейтін функция жаз. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(9829) << std::endl; | ### Instruction:
C++ тілінде 9829 санының факториалын есептейтін функция жаз.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(9829) << std::endl; |
13,458,480 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
33,555,874 | 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;
} |
40,017,251 | 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();
} |
85,207,584 | ru | C# | logic_ops | advanced | Напишите на C# функцию, определяющую, является ли число 314 простым. | public bool IsPrime() {
int n = 314;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 314 простым.
### Response:
public bool IsPrime() {
int n = 314;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
68,823,469 | en | C# | string_ops | advanced | Write a function that checks if a string is a palindrome in 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:
Write a function that checks if a string is a palindrome in 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;
} |
71,443,045 | en | Unity | array_ops | intermediate | Write a function that finds the maximum number in an array in Unity. | 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 Unity.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
32,052,967 | en | JavaScript | string_ops | advanced | Write a function that converts a string to uppercase in JavaScript. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Write a function that converts a string to uppercase in JavaScript.
### Response:
const toUpper = s => s.toUpperCase(); |
4,970,623 | en | JavaScript | var_decl | beginner | How to declare a variable buffer with value 629035 in JavaScript? | let buffer = 629035; | ### Instruction:
How to declare a variable buffer with value 629035 in JavaScript?
### Response:
let buffer = 629035; |
39,329,383 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
1,551,152 | kk | Python | var_decl | beginner | Python тілінде 603480 мәнімен result айнымалысын қалай жариялауға болады? | result = 603480 | ### Instruction:
Python тілінде 603480 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
result = 603480 |
54,881,370 | kk | JavaScript | array_ops | advanced | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
69,706,432 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
51,329,668 | 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;
} |
68,482,134 | en | Python | logic_ops | intermediate | Write a function that determines if the number 430 is prime in Python. | def is_prime():
n = 430
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 430 is prime in Python.
### Response:
def is_prime():
n = 430
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
64,270,794 | en | Java | string_ops | advanced | Write a function that counts vowels in a text in Java. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in Java.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
27,536,823 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 1979 is a leap year in JavaScript. | function isLeap() {
let y = 1979;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1979 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1979;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
28,676,362 | en | JavaScript | string_ops | advanced | Write a function that checks if a string is a palindrome in JavaScript. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Write a function that checks if a string is a palindrome in JavaScript.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
4,317,807 | kk | C# | var_decl | beginner | C# тілінде 827625 мәнімен size айнымалысын қалай жариялауға болады? | int size = 827625; | ### Instruction:
C# тілінде 827625 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 827625; |
78,637,441 | ru | Unity | logic_ops | advanced | Напишите на Unity функцию, определяющую, является ли число 244 простым. | public bool IsPrime() {
int n = 244;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 244 простым.
### Response:
public bool IsPrime() {
int n = 244;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
46,130,557 | 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);
} |
1,515,020 | en | JavaScript | var_decl | beginner | How to declare a variable score with value 296632 in JavaScript? | let score = 296632; | ### Instruction:
How to declare a variable score with value 296632 in JavaScript?
### Response:
let score = 296632; |
20,375,613 | en | Python | logic_ops | intermediate | Write logic to check if the year 1933 is a leap year in Python. | def is_leap():
year = 1933
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1933 is a leap year in Python.
### Response:
def is_leap():
year = 1933
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
90,948,530 | 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] |
513,461 | ru | Python | var_decl | beginner | Как объявить переменную amount со значением 263296 в Python? | amount = 263296 | ### Instruction:
Как объявить переменную amount со значением 263296 в Python?
### Response:
amount = 263296 |
125,123 | ru | C++ | factorial | advanced | Напиши функцию на C++, которая вычисляет факториал числа 7562. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(7562) << std::endl; | ### Instruction:
Напиши функцию на C++, которая вычисляет факториал числа 7562.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(7562) << std::endl; |
61,241,549 | kk | 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;
} |
69,550,909 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
91,239,307 | ru | Python | array_ops | intermediate | Напишите на 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] |
75,875,560 | en | Unity | array_ops | advanced | Write a function that reverses a list in Unity. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Unity.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
66,899,343 | 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);
} |
1,056,236 | kk | C++ | var_decl | beginner | C++ тілінде 381190 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 381190; | ### Instruction:
C++ тілінде 381190 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 381190; |
63,712,268 | kk | C++ | string_ops | intermediate | C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
10,712 | kk | JavaScript | sum_n | intermediate | JavaScript тілінде 1-ден 4831-ге дейінгі сандардың қосындысын есептейтін функция жаз. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(4831)); | ### Instruction:
JavaScript тілінде 1-ден 4831-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(4831)); |
540,039 | ru | Unity | var_decl | beginner | Как объявить переменную rate со значением 249135 в Unity? | int rate = 249135; | ### Instruction:
Как объявить переменную rate со значением 249135 в Unity?
### Response:
int rate = 249135; |
85,102,488 | en | C# | string_ops | advanced | Write a function that checks if a string is a palindrome in 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:
Write a function that checks if a string is a palindrome in 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;
} |
4,778,712 | en | Unity | var_decl | beginner | How to declare a variable score with value 301872 in Unity? | int score = 301872; | ### Instruction:
How to declare a variable score with value 301872 in Unity?
### Response:
int score = 301872; |
2,628,615 | kk | C++ | var_decl | beginner | C++ тілінде 475800 мәнімен health айнымалысын қалай жариялауға болады? | int health = 475800; | ### Instruction:
C++ тілінде 475800 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 475800; |
2,691,598 | en | JavaScript | var_decl | beginner | How to declare a variable total with value 537826 in JavaScript? | let total = 537826; | ### Instruction:
How to declare a variable total with value 537826 in JavaScript?
### Response:
let total = 537826; |
2,812,021 | en | C++ | var_decl | beginner | How to declare a variable level with value 327537 in C++? | int level = 327537; | ### Instruction:
How to declare a variable level with value 327537 in C++?
### Response:
int level = 327537; |
706,685 | kk | Python | factorial | advanced | Python тілінде 9260 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(9260)) | ### Instruction:
Python тілінде 9260 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(9260)) |
115,210 | kk | Java | factorial | advanced | Java тілінде 4278 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(4278)); | ### Instruction:
Java тілінде 4278 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(4278)); |
202,387 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 7575. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(7575));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 7575.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(7575));
} |
4,694,763 | ru | JavaScript | var_decl | beginner | Как объявить переменную timer со значением 488510 в JavaScript? | let timer = 488510; | ### Instruction:
Как объявить переменную timer со значением 488510 в JavaScript?
### Response:
let timer = 488510; |
201,281 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 5248. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(5248));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 5248.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(5248));
} |
53,606,396 | 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();
} |
4,154,203 | ru | Java | var_decl | beginner | Как объявить переменную total со значением 283649 в Java? | int total = 283649; | ### Instruction:
Как объявить переменную total со значением 283649 в Java?
### Response:
int total = 283649; |
94,125,973 | 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();
} |
70,618,870 | 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;
} |
341,534 | kk | Python | factorial | advanced | Python тілінде 4009 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(4009)) | ### Instruction:
Python тілінде 4009 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(4009)) |
39,793,226 | kk | Java | string_ops | intermediate | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
4,158,444 | ru | Python | var_decl | beginner | Как объявить переменную size со значением 196136 в Python? | size = 196136 | ### Instruction:
Как объявить переменную size со значением 196136 в Python?
### Response:
size = 196136 |
77,066,935 | 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;
} |
4,440,972 | ru | Python | var_decl | beginner | Как объявить переменную value со значением 553281 в Python? | value = 553281 | ### Instruction:
Как объявить переменную value со значением 553281 в Python?
### Response:
value = 553281 |
81,707,204 | en | C++ | array_ops | advanced | Write a function that reverses a list in C++. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C++.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
11,043,235 | 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;
} |
78,394,827 | ru | Unity | string_ops | intermediate | Напишите на Unity функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Unity функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
4,238,831 | ru | JavaScript | var_decl | beginner | Как объявить переменную data со значением 593573 в JavaScript? | let data = 593573; | ### Instruction:
Как объявить переменную data со значением 593573 в JavaScript?
### Response:
let data = 593573; |
3,128,625 | ru | Unity | var_decl | beginner | Как объявить переменную weight со значением 43849 в Unity? | int weight = 43849; | ### Instruction:
Как объявить переменную weight со значением 43849 в Unity?
### Response:
int weight = 43849; |
21,486 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 8736. | int sum_to_n(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
std::cout << sum_to_n(8736) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 8736.
### Response:
int sum_to_n(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
std::cout << sum_to_n(8736) << std::endl; |
3,784,519 | en | C++ | var_decl | beginner | How to declare a variable timer with value 666993 in C++? | int timer = 666993; | ### Instruction:
How to declare a variable timer with value 666993 in C++?
### Response:
int timer = 666993; |
2,490,816 | kk | Java | var_decl | beginner | Java тілінде 694504 мәнімен index айнымалысын қалай жариялауға болады? | int index = 694504; | ### Instruction:
Java тілінде 694504 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 694504; |
71,697,964 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
2,435,642 | en | Python | var_decl | beginner | How to declare a variable score with value 95508 in Python? | score = 95508 | ### Instruction:
How to declare a variable score with value 95508 in Python?
### Response:
score = 95508 |
97,751,283 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 276 простым. | def is_prime():
n = 276
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 276 простым.
### Response:
def is_prime():
n = 276
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
23,632,681 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 275 простым. | public bool IsPrime() {
int n = 275;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 275 простым.
### Response:
public bool IsPrime() {
int n = 275;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,426,940 | kk | Unity | var_decl | beginner | Unity тілінде 32848 мәнімен health айнымалысын қалай жариялауға болады? | int health = 32848; | ### Instruction:
Unity тілінде 32848 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 32848; |
42,606,616 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая проверяет, является ли строка палиндромом. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
### Response:
def is_palindrome(s):
return s == s[::-1] |
10,554,003 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая переводит строку в верхний регистр. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
### Response:
const toUpper = s => s.toUpperCase(); |
59,858,302 | en | Unity | array_ops | intermediate | 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;
} |
57,819,394 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 1976 is a leap year in JavaScript. | function isLeap() {
let y = 1976;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1976 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1976;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
1,309,289 | kk | Python | var_decl | beginner | Python тілінде 95929 мәнімен amount айнымалысын қалай жариялауға болады? | amount = 95929 | ### Instruction:
Python тілінде 95929 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
amount = 95929 |
31,396,133 | kk | C# | logic_ops | advanced | C# тилінде 220 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 220;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 220 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 220;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,960,012 | en | Java | var_decl | beginner | How to declare a variable total with value 526614 in Java? | int total = 526614; | ### Instruction:
How to declare a variable total with value 526614 in Java?
### Response:
int total = 526614; |
3,566,369 | ru | Python | var_decl | beginner | Как объявить переменную health со значением 660742 в Python? | health = 660742 | ### Instruction:
Как объявить переменную health со значением 660742 в Python?
### Response:
health = 660742 |
3,093,628 | ru | Python | var_decl | beginner | Как объявить переменную amount со значением 520700 в Python? | amount = 520700 | ### Instruction:
Как объявить переменную amount со значением 520700 в Python?
### Response:
amount = 520700 |
28,353,798 | 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;
} |
1,142,237 | kk | Java | var_decl | beginner | Java тілінде 484387 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 484387; | ### Instruction:
Java тілінде 484387 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 484387; |
49,990,611 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
93,359,846 | 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;
} |
1,607,215 | en | Python | var_decl | beginner | How to declare a variable total with value 165023 in Python? | total = 165023 | ### Instruction:
How to declare a variable total with value 165023 in Python?
### Response:
total = 165023 |
80,822,475 | 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,658,336 | 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();
} |
66,202,873 | 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;
} |
52,029,114 | kk | 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;
} |
77,456,534 | en | Java | logic_ops | intermediate | Write a function that determines if the number 343 is prime in Java. | public bool IsPrime() {
int n = 343;
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 343 is prime in Java.
### Response:
public bool IsPrime() {
int n = 343;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,731,300 | en | Python | var_decl | beginner | How to declare a variable amount with value 772359 in Python? | amount = 772359 | ### Instruction:
How to declare a variable amount with value 772359 in Python?
### Response:
amount = 772359 |
2,773,213 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 100302 мәнімен result айнымалысын қалай жариялауға болады? | let result = 100302; | ### Instruction:
JavaScript тілінде 100302 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
let result = 100302; |
2,405,720 | ru | JavaScript | var_decl | beginner | Как объявить переменную weight со значением 567062 в JavaScript? | let weight = 567062; | ### Instruction:
Как объявить переменную weight со значением 567062 в JavaScript?
### Response:
let weight = 567062; |
12,687,124 | en | C++ | array_ops | advanced | Write a function that reverses a list in C++. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C++.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
4,437,802 | ru | C++ | var_decl | beginner | Как объявить переменную buffer со значением 67604 в C++? | int buffer = 67604; | ### Instruction:
Как объявить переменную buffer со значением 67604 в C++?
### Response:
int buffer = 67604; |
83,920,065 | 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;
} |
56,775,655 | kk | 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;
} |
47,286,766 | 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] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.