id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
33,705,600 | 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();
} |
25,080,329 | 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;
} |
52,737,265 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript функцию, определяющую, является ли число 80 простым. | function isPrime() {
let n = 80;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 80 простым.
### Response:
function isPrime() {
let n = 80;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
96,997,060 | 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,246,585 | kk | Unity | var_decl | beginner | Unity тілінде 86993 мәнімен result айнымалысын қалай жариялауға болады? | int result = 86993; | ### Instruction:
Unity тілінде 86993 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 86993; |
636,534 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 4670. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(4670) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 4670.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(4670) << std::endl; |
1,344,909 | ru | C# | var_decl | beginner | Как объявить переменную value со значением 378880 в C#? | int value = 378880; | ### Instruction:
Как объявить переменную value со значением 378880 в C#?
### Response:
int value = 378880; |
2,941,755 | en | JavaScript | var_decl | beginner | How to declare a variable value with value 721189 in JavaScript? | let value = 721189; | ### Instruction:
How to declare a variable value with value 721189 in JavaScript?
### Response:
let value = 721189; |
90,931,889 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
19,641,006 | 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;
} |
57,024,022 | kk | 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;
} |
66,648,410 | 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);
} |
32,836,699 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 1966 високосным. | def is_leap():
year = 1966
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1966 високосным.
### Response:
def is_leap():
year = 1966
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
52,355,196 | ru | C# | string_ops | intermediate | Напишите на C# функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на C# функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
37,619,819 | ru | C# | logic_ops | intermediate | Напишите на C# функцию, определяющую, является ли число 130 простым. | public bool IsPrime() {
int n = 130;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 130 простым.
### Response:
public bool IsPrime() {
int n = 130;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
96,689,119 | 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;
} |
24,086,933 | kk | 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;
} |
1,837,559 | ru | C# | var_decl | beginner | Как объявить переменную timer со значением 724313 в C#? | int timer = 724313; | ### Instruction:
Как объявить переменную timer со значением 724313 в C#?
### Response:
int timer = 724313; |
2,934,938 | en | Java | var_decl | beginner | How to declare a variable score with value 547836 in Java? | int score = 547836; | ### Instruction:
How to declare a variable score with value 547836 in Java?
### Response:
int score = 547836; |
58,398,799 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | const getMax = arr => Math.max(...arr); | ### Instruction:
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
const getMax = arr => Math.max(...arr); |
4,423,508 | en | JavaScript | var_decl | beginner | How to declare a variable total with value 901088 in JavaScript? | let total = 901088; | ### Instruction:
How to declare a variable total with value 901088 in JavaScript?
### Response:
let total = 901088; |
72,342,102 | kk | C++ | logic_ops | advanced | C++ тилінде 2050 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2050;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2050 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2050;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
72,703,112 | en | C# | string_ops | intermediate | 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,201,435 | ru | Java | var_decl | beginner | Как объявить переменную limit со значением 931274 в Java? | int limit = 931274; | ### Instruction:
Как объявить переменную limit со значением 931274 в Java?
### Response:
int limit = 931274; |
29,633,001 | en | Java | logic_ops | advanced | Write logic to check if the year 1989 is a leap year in Java. | public bool IsLeap() {
int y = 1989;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1989 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1989;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
51,208,975 | 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;
} |
74,543,105 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 84 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 84;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 84 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 84;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
99,227,261 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 62 простым. | public bool IsPrime() {
int n = 62;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 62 простым.
### Response:
public bool IsPrime() {
int n = 62;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
459,103 | kk | C# | factorial | advanced | C# тілінде 5919 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(5919)); | ### Instruction:
C# тілінде 5919 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(5919)); |
43,650,408 | 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;
} |
34,613,880 | ru | C# | string_ops | intermediate | Напишите на C# функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на C# функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
4,671,812 | ru | Java | var_decl | beginner | Как объявить переменную y со значением 902375 в Java? | int y = 902375; | ### Instruction:
Как объявить переменную y со значением 902375 в Java?
### Response:
int y = 902375; |
3,246,626 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 541484 мәнімен offset айнымалысын қалай жариялауға болады? | let offset = 541484; | ### Instruction:
JavaScript тілінде 541484 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
let offset = 541484; |
24,636,830 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 1947 високосным. | public bool IsLeap() {
int y = 1947;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1947 високосным.
### Response:
public bool IsLeap() {
int y = 1947;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
11,856,292 | ru | Java | array_ops | intermediate | Напишите на 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;
} |
58,626,729 | kk | Java | logic_ops | intermediate | Java тилінде 1912 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1912;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1912 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1912;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
32,774,785 | 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;
} |
25,014,500 | kk | C++ | logic_ops | intermediate | C++ тилінде 1957 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1957;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1957 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1957;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
84,936,172 | kk | Unity | array_ops | intermediate | Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
82,182,645 | kk | C++ | logic_ops | advanced | C++ тилінде 375 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 375;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 375 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 375;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,148,268 | en | C# | var_decl | beginner | How to declare a variable size with value 516651 in C#? | int size = 516651; | ### Instruction:
How to declare a variable size with value 516651 in C#?
### Response:
int size = 516651; |
4,000,674 | en | C++ | var_decl | beginner | How to declare a variable value with value 374291 in C++? | int value = 374291; | ### Instruction:
How to declare a variable value with value 374291 in C++?
### Response:
int value = 374291; |
96,956,389 | kk | Unity | string_ops | intermediate | Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
79,494,475 | en | Unity | logic_ops | advanced | Write logic to check if the year 1960 is a leap year in Unity. | 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 Unity.
### Response:
public bool IsLeap() {
int y = 1960;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
60,824,601 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 1984 is a leap year in JavaScript. | function isLeap() {
let y = 1984;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1984 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1984;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
96,117,911 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 65 простым. | def is_prime():
n = 65
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 65 простым.
### Response:
def is_prime():
n = 65
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
74,814,656 | ru | C++ | array_ops | advanced | Напишите на C++ функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на C++ функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
33,789,723 | kk | C# | logic_ops | advanced | C# тилінде 312 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 312;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 312 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 312;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
15,404,765 | kk | Python | string_ops | advanced | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
34,885,962 | 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);
} |
43,984,238 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 2003 is a leap year in JavaScript. | function isLeap() {
let y = 2003;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2003 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2003;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
60,840,274 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая считает количество гласных букв в тексте. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Напишите на Java функцию, которая считает количество гласных букв в тексте.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
36,915,066 | kk | Java | logic_ops | intermediate | Java тилінде 1937 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1937;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1937 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1937;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
19,469,575 | kk | C# | logic_ops | advanced | C# тилінде 1970 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1970;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1970 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1970;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,993,978 | ru | Unity | var_decl | beginner | Как объявить переменную rate со значением 338564 в Unity? | int rate = 338564; | ### Instruction:
Как объявить переменную rate со значением 338564 в Unity?
### Response:
int rate = 338564; |
71,513,877 | ru | Unity | array_ops | intermediate | Напишите на Unity функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
1,431,505 | ru | C++ | var_decl | beginner | Как объявить переменную data со значением 9288 в C++? | int data = 9288; | ### Instruction:
Как объявить переменную data со значением 9288 в C++?
### Response:
int data = 9288; |
2,043,014 | ru | C# | var_decl | beginner | Как объявить переменную score со значением 919770 в C#? | int score = 919770; | ### Instruction:
Как объявить переменную score со значением 919770 в C#?
### Response:
int score = 919770; |
23,381,834 | ru | C++ | array_ops | advanced | Напишите на C++ функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на C++ функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
4,212,492 | en | Java | var_decl | beginner | How to declare a variable timer with value 29588 in Java? | int timer = 29588; | ### Instruction:
How to declare a variable timer with value 29588 in Java?
### Response:
int timer = 29588; |
14,560,317 | en | C++ | array_ops | intermediate | 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);
} |
78,189,709 | 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;
} |
391,079 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 2271. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(2271));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 2271.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(2271));
} |
53,190,613 | en | C++ | string_ops | intermediate | Write a function that converts a string to uppercase in C++. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in C++.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
3,058,913 | kk | C++ | var_decl | beginner | C++ тілінде 25609 мәнімен count айнымалысын қалай жариялауға болады? | int count = 25609; | ### Instruction:
C++ тілінде 25609 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 25609; |
88,914,584 | en | Python | string_ops | advanced | 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] |
1,651,149 | ru | C++ | var_decl | beginner | Как объявить переменную x со значением 876831 в C++? | int x = 876831; | ### Instruction:
Как объявить переменную x со значением 876831 в C++?
### Response:
int x = 876831; |
35,421,863 | 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;
} |
53,596,936 | 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);
} |
3,741,608 | kk | Unity | var_decl | beginner | Unity тілінде 771774 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 771774; | ### Instruction:
Unity тілінде 771774 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 771774; |
76,994,063 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 2079 високосным. | public bool IsLeap() {
int y = 2079;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 2079 високосным.
### Response:
public bool IsLeap() {
int y = 2079;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
414,859 | kk | C++ | sum_n | intermediate | C++ тілінде 1-ден 7267-ге дейінгі сандардың қосындысын есептейтін функция жаз. | 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(7267) << std::endl; | ### Instruction:
C++ тілінде 1-ден 7267-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### 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(7267) << std::endl; |
15,128,438 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 1910 is a leap year in JavaScript. | function isLeap() {
let y = 1910;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1910 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1910;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
650,845 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 8354. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(8354));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 8354.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(8354));
} |
39,820,711 | 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); |
1,750,749 | kk | C++ | var_decl | beginner | C++ тілінде 865157 мәнімен result айнымалысын қалай жариялауға болады? | int result = 865157; | ### Instruction:
C++ тілінде 865157 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 865157; |
66,718,068 | 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;
} |
85,664,302 | ru | C# | array_ops | advanced | Напишите на C# функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на C# функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
2,484,736 | kk | C# | var_decl | beginner | C# тілінде 295430 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 295430; | ### Instruction:
C# тілінде 295430 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 295430; |
26,496,000 | 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(''); |
18,405,714 | en | C++ | logic_ops | advanced | Write logic to check if the year 2073 is a leap year in C++. | public bool IsLeap() {
int y = 2073;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2073 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2073;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
85,622,274 | 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;
} |
729,127 | en | C# | var_decl | beginner | How to declare a variable total with value 813941 in C#? | int total = 813941; | ### Instruction:
How to declare a variable total with value 813941 in C#?
### Response:
int total = 813941; |
3,817,040 | ru | C++ | var_decl | beginner | Как объявить переменную buffer со значением 392050 в C++? | int buffer = 392050; | ### Instruction:
Как объявить переменную buffer со значением 392050 в C++?
### Response:
int buffer = 392050; |
39,003,552 | en | C++ | logic_ops | advanced | Write logic to check if the year 2027 is a leap year in C++. | public bool IsLeap() {
int y = 2027;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2027 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2027;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
52,386,967 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 1970 високосным. | public bool IsLeap() {
int y = 1970;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 1970 високосным.
### Response:
public bool IsLeap() {
int y = 1970;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
24,416,652 | en | Java | array_ops | intermediate | 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;
} |
774,905 | kk | C# | var_decl | beginner | C# тілінде 969050 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 969050; | ### Instruction:
C# тілінде 969050 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 969050; |
65,951,396 | kk | Java | logic_ops | advanced | Java тилінде 71 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 71;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 71 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 71;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
14,631,733 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
87,898,912 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
1,197,962 | en | C++ | var_decl | beginner | How to declare a variable count with value 610257 in C++? | int count = 610257; | ### Instruction:
How to declare a variable count with value 610257 in C++?
### Response:
int count = 610257; |
628,964 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 2864. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(2864)); | ### Instruction:
Write a function in Java that calculates the factorial of 2864.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(2864)); |
11,078,777 | 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] |
4,172,561 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 701417 мәнімен rate айнымалысын қалай жариялауға болады? | let rate = 701417; | ### Instruction:
JavaScript тілінде 701417 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
let rate = 701417; |
85,080,645 | 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] |
3,140,232 | en | Java | var_decl | beginner | How to declare a variable value with value 471582 in Java? | int value = 471582; | ### Instruction:
How to declare a variable value with value 471582 in Java?
### Response:
int value = 471582; |
167,050 | kk | Unity | factorial | advanced | Unity тілінде 1544 санының факториалын есептейтін функция жаз. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(1544));
} | ### Instruction:
Unity тілінде 1544 санының факториалын есептейтін функция жаз.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(1544));
} |
870,525 | ru | C++ | factorial | advanced | Напиши функцию на C++, которая вычисляет факториал числа 4983. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(4983) << std::endl; | ### Instruction:
Напиши функцию на C++, которая вычисляет факториал числа 4983.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(4983) << std::endl; |
33,494,138 | kk | Unity | logic_ops | intermediate | Unity тилінде 2061 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2061;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2061 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2061;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.