id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
734,042 | en | C# | var_decl | beginner | How to declare a variable health with value 844202 in C#? | int health = 844202; | ### Instruction:
How to declare a variable health with value 844202 in C#?
### Response:
int health = 844202; |
2,875,308 | ru | Java | var_decl | beginner | Как объявить переменную score со значением 948513 в Java? | int score = 948513; | ### Instruction:
Как объявить переменную score со значением 948513 в Java?
### Response:
int score = 948513; |
30,784,959 | 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;
} |
63,329,033 | en | Java | array_ops | intermediate | 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);
} |
22,663,717 | kk | Unity | array_ops | intermediate | Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
4,717,359 | kk | Java | var_decl | beginner | Java тілінде 481825 мәнімен y айнымалысын қалай жариялауға болады? | int y = 481825; | ### Instruction:
Java тілінде 481825 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
int y = 481825; |
11,317,811 | 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;
} |
985,497 | en | Python | var_decl | beginner | How to declare a variable health with value 28485 in Python? | health = 28485 | ### Instruction:
How to declare a variable health with value 28485 in Python?
### Response:
health = 28485 |
249,095 | ru | JavaScript | sum_n | intermediate | Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 9236. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(9236)); | ### Instruction:
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 9236.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(9236)); |
79,731,524 | en | Java | logic_ops | advanced | Write a function that determines if the number 350 is prime in Java. | public bool IsPrime() {
int n = 350;
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 350 is prime in Java.
### Response:
public bool IsPrime() {
int n = 350;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
74,709,555 | 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); |
99,719,659 | kk | Unity | logic_ops | intermediate | Unity тилінде 2071 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2071;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2071 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2071;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
45,950,837 | kk | Unity | logic_ops | intermediate | Unity тилінде 1920 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1920;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1920 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1920;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
757,059 | ru | Python | sum_n | intermediate | Напиши функцию на Python, которая считает сумму чисел от 1 до 7594. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(7594)) | ### Instruction:
Напиши функцию на Python, которая считает сумму чисел от 1 до 7594.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(7594)) |
94,616,623 | en | Java | string_ops | advanced | 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();
} |
66,738,017 | kk | C++ | logic_ops | advanced | C++ тилінде 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:
C++ тилінде 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;
} |
48,152,142 | kk | Java | logic_ops | advanced | Java тилінде 209 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 209;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 209 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 209;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
74,085,468 | en | C++ | logic_ops | advanced | Write logic to check if the year 2034 is a leap year in C++. | public bool IsLeap() {
int y = 2034;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2034 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2034;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
75,179,775 | 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] |
24,933,835 | 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();
} |
86,579,633 | kk | 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;
} |
95,521,257 | ru | Unity | array_ops | advanced | Напишите на Unity функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на Unity функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
337,621 | ru | Unity | sum_n | intermediate | Напиши функцию на Unity, которая считает сумму чисел от 1 до 6254. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(6254));
} | ### Instruction:
Напиши функцию на Unity, которая считает сумму чисел от 1 до 6254.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(6254));
} |
3,012,492 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 284817 мәнімен size айнымалысын қалай жариялауға болады? | let size = 284817; | ### Instruction:
JavaScript тілінде 284817 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
let size = 284817; |
92,083,248 | 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();
} |
858,502 | kk | Unity | var_decl | beginner | Unity тілінде 711706 мәнімен health айнымалысын қалай жариялауға болады? | int health = 711706; | ### Instruction:
Unity тілінде 711706 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 711706; |
77,899,947 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
23,290,215 | 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;
} |
69,103,904 | en | Unity | string_ops | advanced | Write a function that checks if a string is a palindrome in Unity. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in Unity.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
79,351,034 | 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(''); |
1,358,577 | kk | C# | var_decl | beginner | C# тілінде 972086 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 972086; | ### Instruction:
C# тілінде 972086 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 972086; |
1,023,378 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 1870. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1870)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 1870.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1870)); |
2,022,559 | ru | Python | var_decl | beginner | Как объявить переменную offset со значением 891886 в Python? | offset = 891886 | ### Instruction:
Как объявить переменную offset со значением 891886 в Python?
### Response:
offset = 891886 |
746,647 | ru | Java | var_decl | beginner | Как объявить переменную size со значением 561575 в Java? | int size = 561575; | ### Instruction:
Как объявить переменную size со значением 561575 в Java?
### Response:
int size = 561575; |
35,589,277 | 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();
} |
672,290 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 2703. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(2703)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 2703.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(2703)); |
42,709,342 | 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(''); |
1,545,858 | kk | C++ | var_decl | beginner | C++ тілінде 585469 мәнімен score айнымалысын қалай жариялауға болады? | int score = 585469; | ### Instruction:
C++ тілінде 585469 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 585469; |
3,552,172 | ru | JavaScript | var_decl | beginner | Как объявить переменную data со значением 116171 в JavaScript? | let data = 116171; | ### Instruction:
Как объявить переменную data со значением 116171 в JavaScript?
### Response:
let data = 116171; |
528,792 | ru | C++ | var_decl | beginner | Как объявить переменную size со значением 796403 в C++? | int size = 796403; | ### Instruction:
Как объявить переменную size со значением 796403 в C++?
### Response:
int size = 796403; |
61,721,552 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 2044 is a leap year in JavaScript. | function isLeap() {
let y = 2044;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2044 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2044;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
35,274,009 | en | Java | array_ops | intermediate | Write a function that filters only even numbers from a list in Java. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Java.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
97,106,197 | kk | Java | logic_ops | advanced | Java тилінде 1902 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1902;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1902 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1902;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
55,371,538 | 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(''); |
87,787,520 | en | Java | string_ops | intermediate | 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;
} |
51,183,411 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 1947 високосным. | public bool IsLeap() {
int y = 1947;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 1947 високосным.
### Response:
public bool IsLeap() {
int y = 1947;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
13,128,165 | 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] |
81,086,714 | 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;
} |
1,899,592 | ru | Java | var_decl | beginner | Как объявить переменную data со значением 378327 в Java? | int data = 378327; | ### Instruction:
Как объявить переменную data со значением 378327 в Java?
### Response:
int data = 378327; |
27,942,337 | kk | C# | logic_ops | intermediate | C# тилінде 1983 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1983;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1983 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1983;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
388,576 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 1219. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(1219)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 1219.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(1219)); |
14,193,233 | en | Unity | logic_ops | advanced | Write logic to check if the year 2012 is a leap year in Unity. | public bool IsLeap() {
int y = 2012;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2012 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2012;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,659,853 | ru | Python | var_decl | beginner | Как объявить переменную size со значением 649984 в Python? | size = 649984 | ### Instruction:
Как объявить переменную size со значением 649984 в Python?
### Response:
size = 649984 |
4,638,897 | ru | Unity | var_decl | beginner | Как объявить переменную count со значением 510784 в Unity? | int count = 510784; | ### Instruction:
Как объявить переменную count со значением 510784 в Unity?
### Response:
int count = 510784; |
50,436,446 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 2083 високосным. | public bool IsLeap() {
int y = 2083;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2083 високосным.
### Response:
public bool IsLeap() {
int y = 2083;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
31,464,333 | en | JavaScript | string_ops | intermediate | 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(''); |
1,035,702 | ru | Java | var_decl | beginner | Как объявить переменную count со значением 439186 в Java? | int count = 439186; | ### Instruction:
Как объявить переменную count со значением 439186 в Java?
### Response:
int count = 439186; |
25,459,016 | 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;
} |
509,026 | en | Python | var_decl | beginner | How to declare a variable weight with value 741399 in Python? | weight = 741399 | ### Instruction:
How to declare a variable weight with value 741399 in Python?
### Response:
weight = 741399 |
294,372 | kk | C# | sum_n | intermediate | C# тілінде 1-ден 3671-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(3671)); | ### Instruction:
C# тілінде 1-ден 3671-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(3671)); |
12,728,424 | kk | Unity | string_ops | intermediate | Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
2,762,806 | en | JavaScript | var_decl | beginner | How to declare a variable index with value 899906 in JavaScript? | let index = 899906; | ### Instruction:
How to declare a variable index with value 899906 in JavaScript?
### Response:
let index = 899906; |
344,825 | kk | Unity | var_decl | beginner | Unity тілінде 39638 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 39638; | ### Instruction:
Unity тілінде 39638 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 39638; |
84,761,624 | 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] |
377,923 | kk | Java | factorial | advanced | Java тілінде 9453 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(9453)); | ### Instruction:
Java тілінде 9453 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(9453)); |
235,640 | kk | Java | factorial | advanced | Java тілінде 2510 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(2510)); | ### Instruction:
Java тілінде 2510 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(2510)); |
67,275,835 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 1901 is a leap year in JavaScript. | function isLeap() {
let y = 1901;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1901 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1901;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
4,111,482 | en | Unity | var_decl | beginner | How to declare a variable timer with value 698649 in Unity? | int timer = 698649; | ### Instruction:
How to declare a variable timer with value 698649 in Unity?
### Response:
int timer = 698649; |
41,613,786 | 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;
} |
187,182 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 64-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(64)) | ### Instruction:
Python тілінде 1-ден 64-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(64)) |
4,505,004 | ru | Python | var_decl | beginner | Как объявить переменную y со значением 351798 в Python? | y = 351798 | ### Instruction:
Как объявить переменную y со значением 351798 в Python?
### Response:
y = 351798 |
18,417,753 | kk | Python | string_ops | intermediate | Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
78,569,096 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 2021 високосным. | def is_leap():
year = 2021
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2021 високосным.
### Response:
def is_leap():
year = 2021
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
15,326,319 | en | JavaScript | array_ops | advanced | Write a function that reverses a list in JavaScript. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Write a function that reverses a list in JavaScript.
### Response:
const reverseArr = arr => arr.reverse(); |
938,430 | en | Java | var_decl | beginner | How to declare a variable buffer with value 460797 in Java? | int buffer = 460797; | ### Instruction:
How to declare a variable buffer with value 460797 in Java?
### Response:
int buffer = 460797; |
642,277 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 80. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(80)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 80.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(80)); |
236,293 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 8223. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(8223)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 8223.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(8223)); |
3,954,473 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 599952 мәнімен weight айнымалысын қалай жариялауға болады? | let weight = 599952; | ### Instruction:
JavaScript тілінде 599952 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
let weight = 599952; |
340,577 | en | Python | sum_n | intermediate | Write a function in Python that sums numbers from 1 to 8464. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(8464)) | ### Instruction:
Write a function in Python that sums numbers from 1 to 8464.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(8464)) |
94,974,257 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript функцию, определяющую, является ли число 273 простым. | function isPrime() {
let n = 273;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 273 простым.
### Response:
function isPrime() {
let n = 273;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
57,142,917 | kk | Unity | logic_ops | advanced | Unity тилінде 1909 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1909;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1909 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1909;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
66,753,335 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 2074 високосным. | public bool IsLeap() {
int y = 2074;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2074 високосным.
### Response:
public bool IsLeap() {
int y = 2074;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,935,872 | kk | C++ | var_decl | beginner | C++ тілінде 610318 мәнімен data айнымалысын қалай жариялауға болады? | int data = 610318; | ### Instruction:
C++ тілінде 610318 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 610318; |
179,491 | ru | Python | sum_n | intermediate | Напиши функцию на Python, которая считает сумму чисел от 1 до 6089. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6089)) | ### Instruction:
Напиши функцию на Python, которая считает сумму чисел от 1 до 6089.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6089)) |
2,571,253 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 356601 мәнімен y айнымалысын қалай жариялауға болады? | let y = 356601; | ### Instruction:
JavaScript тілінде 356601 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
let y = 356601; |
1,011,008 | kk | C# | var_decl | beginner | C# тілінде 589430 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 589430; | ### Instruction:
C# тілінде 589430 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 589430; |
900,861 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 7655. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7655)); | ### Instruction:
Write a function in Java that calculates the factorial of 7655.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7655)); |
39,588,162 | ru | Unity | array_ops | intermediate | Напишите на Unity функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Unity функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
123,788 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 4787. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(4787)); | ### Instruction:
Write a function in Java that calculates the factorial of 4787.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(4787)); |
86,004,121 | ru | Java | array_ops | advanced | Напишите на Java функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Java функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
3,496,780 | kk | Unity | var_decl | beginner | Unity тілінде 236866 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 236866; | ### Instruction:
Unity тілінде 236866 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 236866; |
4,640,621 | ru | Java | var_decl | beginner | Как объявить переменную x со значением 707609 в Java? | int x = 707609; | ### Instruction:
Как объявить переменную x со значением 707609 в Java?
### Response:
int x = 707609; |
28,903,933 | en | Python | logic_ops | advanced | Write logic to check if the year 2074 is a leap year in Python. | def is_leap():
year = 2074
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2074 is a leap year in Python.
### Response:
def is_leap():
year = 2074
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
28,120,832 | ru | Java | string_ops | advanced | Напишите на 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;
} |
98,528,320 | kk | Python | string_ops | advanced | Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
94,007,029 | 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;
} |
52,707,333 | 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);
} |
67,373,733 | kk | 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); |
32,732,086 | 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;
} |
52,722,836 | kk | Unity | string_ops | advanced | Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.