id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
96,136,817
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(); }
35,150,793
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; }
1,812,265
en
C++
var_decl
beginner
How to declare a variable y with value 295721 in C++?
int y = 295721;
### Instruction: How to declare a variable y with value 295721 in C++? ### Response: int y = 295721;
76,920,891
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]
736,219
en
Unity
var_decl
beginner
How to declare a variable buffer with value 207284 in Unity?
int buffer = 207284;
### Instruction: How to declare a variable buffer with value 207284 in Unity? ### Response: int buffer = 207284;
2,188,461
ru
Java
var_decl
beginner
Как объявить переменную data со значением 132477 в Java?
int data = 132477;
### Instruction: Как объявить переменную data со значением 132477 в Java? ### Response: int data = 132477;
91,612,464
kk
JavaScript
string_ops
intermediate
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
65,546,323
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; }
32,309,279
en
Java
string_ops
advanced
Write a function that checks if a string is a palindrome in Java.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in Java. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
49,787,215
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(); }
34,451,622
en
Unity
string_ops
advanced
Write a function that converts a string to uppercase in Unity.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Unity. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
1,526,526
ru
C#
var_decl
beginner
Как объявить переменную score со значением 421691 в C#?
int score = 421691;
### Instruction: Как объявить переменную score со значением 421691 в C#? ### Response: int score = 421691;
37,496,164
kk
Unity
logic_ops
advanced
Unity тилінде 163 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 163; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 163 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 163; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
464,129
en
Unity
var_decl
beginner
How to declare a variable health with value 607586 in Unity?
int health = 607586;
### Instruction: How to declare a variable health with value 607586 in Unity? ### Response: int health = 607586;
198,599
kk
Unity
sum_n
intermediate
Unity тілінде 1-ден 9805-ге дейінгі сандардың қосындысын есептейтін функция жаз.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(9805)); }
### Instruction: Unity тілінде 1-ден 9805-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(9805)); }
2,926,006
en
C++
var_decl
beginner
How to declare a variable y with value 505389 in C++?
int y = 505389;
### Instruction: How to declare a variable y with value 505389 in C++? ### Response: int y = 505389;
51,963,348
kk
Python
string_ops
advanced
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
def is_palindrome(s): return s == s[::-1]
### Instruction: Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: def is_palindrome(s): return s == s[::-1]
534,912
kk
Python
factorial
advanced
Python тілінде 7532 санының факториалын есептейтін функция жаз.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(7532))
### Instruction: Python тілінде 7532 санының факториалын есептейтін функция жаз. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(7532))
31,192,388
en
C++
array_ops
intermediate
Write a function that filters only even numbers from a list in C++.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Write a function that filters only even numbers from a list in C++. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
546,827
kk
Python
var_decl
beginner
Python тілінде 697080 мәнімен offset айнымалысын қалай жариялауға болады?
offset = 697080
### Instruction: Python тілінде 697080 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: offset = 697080
45,354,928
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; }
19,020,082
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; }
52,927,945
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 1907 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 1907; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 1907 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 1907; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
58,935,786
kk
Java
logic_ops
intermediate
Java тилінде 1978 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1978; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1978 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1978; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,239,934
kk
C++
var_decl
beginner
C++ тілінде 920787 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 920787;
### Instruction: C++ тілінде 920787 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 920787;
4,979,005
ru
C++
var_decl
beginner
Как объявить переменную rate со значением 337354 в C++?
int rate = 337354;
### Instruction: Как объявить переменную rate со значением 337354 в C++? ### Response: int rate = 337354;
88,305,154
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(); }
25,803,896
en
C++
logic_ops
advanced
Write a function that determines if the number 246 is prime in C++.
public bool IsPrime() { int n = 246; 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 246 is prime in C++. ### Response: public bool IsPrime() { int n = 246; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
76,533,463
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; }
94,496,907
kk
JavaScript
array_ops
intermediate
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
3,322,429
en
Python
var_decl
beginner
How to declare a variable y with value 242341 in Python?
y = 242341
### Instruction: How to declare a variable y with value 242341 in Python? ### Response: y = 242341
33,510,696
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; }
39,605,367
kk
Unity
logic_ops
advanced
Unity тилінде 1969 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1969; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1969 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1969; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
26,961,034
kk
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); }
27,979,428
kk
Python
string_ops
advanced
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
846,385
en
Java
var_decl
beginner
How to declare a variable result with value 615008 in Java?
int result = 615008;
### Instruction: How to declare a variable result with value 615008 in Java? ### Response: int result = 615008;
3,646,311
en
JavaScript
var_decl
beginner
How to declare a variable result with value 494918 in JavaScript?
let result = 494918;
### Instruction: How to declare a variable result with value 494918 in JavaScript? ### Response: let result = 494918;
2,315,628
ru
C++
var_decl
beginner
Как объявить переменную y со значением 523288 в C++?
int y = 523288;
### Instruction: Как объявить переменную y со значением 523288 в C++? ### Response: int y = 523288;
81,371,278
en
Python
logic_ops
advanced
Write a function that determines if the number 36 is prime in Python.
def is_prime(): n = 36 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 36 is prime in Python. ### Response: def is_prime(): n = 36 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
196,341
en
C++
sum_n
intermediate
Write a function in C++ that sums numbers from 1 to 1092.
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(1092) << std::endl;
### Instruction: Write a function in C++ that sums numbers from 1 to 1092. ### 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(1092) << std::endl;
26,077,310
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; }
81,613,181
kk
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); }
179,338
kk
Java
sum_n
intermediate
Java тілінде 1-ден 290-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(290));
### Instruction: Java тілінде 1-ден 290-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(290));
1,536,132
ru
Java
var_decl
beginner
Как объявить переменную offset со значением 723376 в Java?
int offset = 723376;
### Instruction: Как объявить переменную offset со значением 723376 в Java? ### Response: int offset = 723376;
57,988,554
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; }
96,865,611
en
JavaScript
array_ops
advanced
Write a function that finds the maximum number in an array in JavaScript.
const getMax = arr => Math.max(...arr);
### Instruction: Write a function that finds the maximum number in an array in JavaScript. ### Response: const getMax = arr => Math.max(...arr);
173,301
kk
Python
factorial
advanced
Python тілінде 2505 санының факториалын есептейтін функция жаз.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(2505))
### Instruction: Python тілінде 2505 санының факториалын есептейтін функция жаз. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(2505))
64,897,159
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 394 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 394; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 394 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 394; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
4,145,023
ru
Python
var_decl
beginner
Как объявить переменную weight со значением 743110 в Python?
weight = 743110
### Instruction: Как объявить переменную weight со значением 743110 в Python? ### Response: weight = 743110
2,323,692
ru
Java
var_decl
beginner
Как объявить переменную size со значением 91225 в Java?
int size = 91225;
### Instruction: Как объявить переменную size со значением 91225 в Java? ### Response: int size = 91225;
39,468,489
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 374 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 374; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 374 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 374; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
63,674
ru
Python
factorial
advanced
Напиши функцию на Python, которая вычисляет факториал числа 9152.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(9152))
### Instruction: Напиши функцию на Python, которая вычисляет факториал числа 9152. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(9152))
282,935
ru
Unity
factorial
advanced
Напиши функцию на Unity, которая вычисляет факториал числа 1678.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(1678)); }
### Instruction: Напиши функцию на Unity, которая вычисляет факториал числа 1678. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(1678)); }
3,368,700
ru
Unity
var_decl
beginner
Как объявить переменную total со значением 53731 в Unity?
int total = 53731;
### Instruction: Как объявить переменную total со значением 53731 в Unity? ### Response: int total = 53731;
4,168,069
kk
C#
var_decl
beginner
C# тілінде 320833 мәнімен index айнымалысын қалай жариялауға болады?
int index = 320833;
### Instruction: C# тілінде 320833 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 320833;
13,210,700
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аеёиоуыэюя')
830,708
en
Unity
var_decl
beginner
How to declare a variable limit with value 679791 in Unity?
int limit = 679791;
### Instruction: How to declare a variable limit with value 679791 in Unity? ### Response: int limit = 679791;
86,828,024
en
Unity
string_ops
intermediate
Write a function that counts vowels in a text in Unity.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in Unity. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
90,572,440
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 285 is prime in JavaScript.
function isPrime() { let n = 285; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Write a function that determines if the number 285 is prime in JavaScript. ### Response: function isPrime() { let n = 285; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
19,544,738
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); }
21,663,830
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]
99,093,007
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 2045 високосным.
public bool IsLeap() { int y = 2045; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2045 високосным. ### Response: public bool IsLeap() { int y = 2045; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,748,291
kk
JavaScript
var_decl
beginner
JavaScript тілінде 210809 мәнімен timer айнымалысын қалай жариялауға болады?
let timer = 210809;
### Instruction: JavaScript тілінде 210809 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: let timer = 210809;
36,883,886
ru
Python
array_ops
advanced
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
355,451
kk
Java
var_decl
beginner
Java тілінде 136848 мәнімен result айнымалысын қалай жариялауға болады?
int result = 136848;
### Instruction: Java тілінде 136848 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 136848;
2,422,017
ru
Unity
var_decl
beginner
Как объявить переменную count со значением 65906 в Unity?
int count = 65906;
### Instruction: Как объявить переменную count со значением 65906 в Unity? ### Response: int count = 65906;
3,877,187
ru
C#
var_decl
beginner
Как объявить переменную amount со значением 297889 в C#?
int amount = 297889;
### Instruction: Как объявить переменную amount со значением 297889 в C#? ### Response: int amount = 297889;
3,780,684
en
JavaScript
var_decl
beginner
How to declare a variable amount with value 301787 in JavaScript?
let amount = 301787;
### Instruction: How to declare a variable amount with value 301787 in JavaScript? ### Response: let amount = 301787;
48,031,323
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; }
28,675,022
kk
C++
logic_ops
advanced
C++ тилінде 2011 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2011; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 2011 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2011; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
43,475,869
en
Python
array_ops
advanced
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)
74,363,438
kk
Unity
logic_ops
intermediate
Unity тилінде 406 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 406; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 406 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 406; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
98,500,949
ru
Python
logic_ops
intermediate
Напишите на Python логику проверки, является ли год 2100 високосным.
def is_leap(): year = 2100 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 2100 високосным. ### Response: def is_leap(): year = 2100 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
20,331,569
en
Python
logic_ops
advanced
Write logic to check if the year 2017 is a leap year in Python.
def is_leap(): year = 2017 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2017 is a leap year in Python. ### Response: def is_leap(): year = 2017 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
2,331,130
ru
Python
var_decl
beginner
Как объявить переменную count со значением 386347 в Python?
count = 386347
### Instruction: Как объявить переменную count со значением 386347 в Python? ### Response: count = 386347
3,320,816
kk
C#
var_decl
beginner
C# тілінде 751288 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 751288;
### Instruction: C# тілінде 751288 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 751288;
27,678,635
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); }
23,332,872
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(); }
78,629,184
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(); }
62,514,445
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);
397,580
ru
Python
factorial
advanced
Напиши функцию на Python, которая вычисляет факториал числа 5274.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(5274))
### Instruction: Напиши функцию на Python, которая вычисляет факториал числа 5274. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(5274))
43,061,791
en
C++
logic_ops
intermediate
Write logic to check if the year 1927 is a leap year in C++.
public bool IsLeap() { int y = 1927; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1927 is a leap year in C++. ### Response: public bool IsLeap() { int y = 1927; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
47,883,951
kk
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,262,214
en
Unity
var_decl
beginner
How to declare a variable index with value 56083 in Unity?
int index = 56083;
### Instruction: How to declare a variable index with value 56083 in Unity? ### Response: int index = 56083;
1,174,185
ru
Python
var_decl
beginner
Как объявить переменную amount со значением 620526 в Python?
amount = 620526
### Instruction: Как объявить переменную amount со значением 620526 в Python? ### Response: amount = 620526
16,208,129
ru
C++
logic_ops
intermediate
Напишите на C++ функцию, определяющую, является ли число 153 простым.
public bool IsPrime() { int n = 153; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 153 простым. ### Response: public bool IsPrime() { int n = 153; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
45,460,127
en
Unity
string_ops
intermediate
Write a function that converts a string to uppercase in Unity.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Unity. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
67,855,604
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);
98,660,045
kk
C++
logic_ops
intermediate
C++ тилінде 2063 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2063; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 2063 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2063; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
85,652,002
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; }
37,924,720
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(); }
1,785,230
kk
C#
var_decl
beginner
C# тілінде 239885 мәнімен count айнымалысын қалай жариялауға болады?
int count = 239885;
### Instruction: C# тілінде 239885 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 239885;
13,521,183
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
63,866,470
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,820,072
kk
C#
var_decl
beginner
C# тілінде 906741 мәнімен size айнымалысын қалай жариялауға болады?
int size = 906741;
### Instruction: C# тілінде 906741 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 906741;
2,026,582
en
JavaScript
var_decl
beginner
How to declare a variable health with value 127148 in JavaScript?
let health = 127148;
### Instruction: How to declare a variable health with value 127148 in JavaScript? ### Response: let health = 127148;
92,352,257
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,054,029
en
C++
var_decl
beginner
How to declare a variable score with value 2990 in C++?
int score = 2990;
### Instruction: How to declare a variable score with value 2990 in C++? ### Response: int score = 2990;
97,080,917
en
Python
string_ops
intermediate
Write a function that converts a string to uppercase in Python.
def to_upper(s): return s.upper()
### Instruction: Write a function that converts a string to uppercase in Python. ### Response: def to_upper(s): return s.upper()
1,683,462
en
Unity
var_decl
beginner
How to declare a variable value with value 151816 in Unity?
int value = 151816;
### Instruction: How to declare a variable value with value 151816 in Unity? ### Response: int value = 151816;