id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
91,529,187 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
2,940,727 | kk | Unity | var_decl | beginner | Unity тілінде 275686 мәнімен count айнымалысын қалай жариялауға болады? | int count = 275686; | ### Instruction:
Unity тілінде 275686 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 275686; |
450,030 | en | Unity | var_decl | beginner | How to declare a variable y with value 932735 in Unity? | int y = 932735; | ### Instruction:
How to declare a variable y with value 932735 in Unity?
### Response:
int y = 932735; |
58,822,376 | 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;
} |
12,837,722 | 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();
} |
57,380,065 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 126 простым. | public bool IsPrime() {
int n = 126;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 126 простым.
### Response:
public bool IsPrime() {
int n = 126;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
38,084,606 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 2033 високосным. | public bool IsLeap() {
int y = 2033;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 2033 високосным.
### Response:
public bool IsLeap() {
int y = 2033;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
39,145,001 | 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;
} |
759,509 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 9425. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(9425)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 9425.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(9425)); |
69,660,981 | 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;
} |
2,298,193 | ru | Unity | var_decl | beginner | Как объявить переменную size со значением 466301 в Unity? | int size = 466301; | ### Instruction:
Как объявить переменную size со значением 466301 в Unity?
### Response:
int size = 466301; |
76,959,917 | 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;
} |
91,151,685 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
22,983,563 | kk | Java | logic_ops | intermediate | Java тилінде 12 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 12;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 12 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 12;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,829,695 | ru | JavaScript | var_decl | beginner | Как объявить переменную value со значением 832443 в JavaScript? | let value = 832443; | ### Instruction:
Как объявить переменную value со значением 832443 в JavaScript?
### Response:
let value = 832443; |
4,933,948 | ru | C++ | var_decl | beginner | Как объявить переменную size со значением 260966 в C++? | int size = 260966; | ### Instruction:
Как объявить переменную size со значением 260966 в C++?
### Response:
int size = 260966; |
952,024 | en | C# | var_decl | beginner | How to declare a variable limit with value 648467 in C#? | int limit = 648467; | ### Instruction:
How to declare a variable limit with value 648467 in C#?
### Response:
int limit = 648467; |
71,241,622 | en | C++ | string_ops | advanced | Write a function that counts vowels in a text in C++. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in C++.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
51,145,066 | kk | 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);
} |
1,849,105 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 204616 мәнімен result айнымалысын қалай жариялауға болады? | let result = 204616; | ### Instruction:
JavaScript тілінде 204616 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
let result = 204616; |
3,554,777 | ru | JavaScript | var_decl | beginner | Как объявить переменную rate со значением 490553 в JavaScript? | let rate = 490553; | ### Instruction:
Как объявить переменную rate со значением 490553 в JavaScript?
### Response:
let rate = 490553; |
58,073,335 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая разворачивает список задом наперед. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
### Response:
const reverseArr = arr => arr.reverse(); |
3,966,541 | en | JavaScript | var_decl | beginner | How to declare a variable total with value 393623 in JavaScript? | let total = 393623; | ### Instruction:
How to declare a variable total with value 393623 in JavaScript?
### Response:
let total = 393623; |
2,891,732 | kk | Java | var_decl | beginner | Java тілінде 199700 мәнімен health айнымалысын қалай жариялауға болады? | int health = 199700; | ### Instruction:
Java тілінде 199700 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 199700; |
40,107,773 | 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();
} |
2,450,814 | en | Java | var_decl | beginner | How to declare a variable rate with value 331715 in Java? | int rate = 331715; | ### Instruction:
How to declare a variable rate with value 331715 in Java?
### Response:
int rate = 331715; |
2,370,054 | kk | Unity | var_decl | beginner | Unity тілінде 487631 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 487631; | ### Instruction:
Unity тілінде 487631 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 487631; |
16,269,187 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 217 простым. | public bool IsPrime() {
int n = 217;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 217 простым.
### Response:
public bool IsPrime() {
int n = 217;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
46,953,014 | kk | Unity | array_ops | advanced | Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
4,322,852 | kk | Java | var_decl | beginner | Java тілінде 917926 мәнімен data айнымалысын қалай жариялауға болады? | int data = 917926; | ### Instruction:
Java тілінде 917926 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 917926; |
15,479,682 | en | Python | array_ops | intermediate | Write a function that filters only even numbers from a list in Python. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Write a function that filters only even numbers from a list in Python.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
4,716,742 | ru | Java | var_decl | beginner | Как объявить переменную timer со значением 285746 в Java? | int timer = 285746; | ### Instruction:
Как объявить переменную timer со значением 285746 в Java?
### Response:
int timer = 285746; |
26,106,321 | en | C# | logic_ops | advanced | Write a function that determines if the number 340 is prime in C#. | public bool IsPrime() {
int n = 340;
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 340 is prime in C#.
### Response:
public bool IsPrime() {
int n = 340;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,978,921 | kk | Python | var_decl | beginner | Python тілінде 261983 мәнімен size айнымалысын қалай жариялауға болады? | size = 261983 | ### Instruction:
Python тілінде 261983 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
size = 261983 |
1,221,750 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 548793 мәнімен health айнымалысын қалай жариялауға болады? | let health = 548793; | ### Instruction:
JavaScript тілінде 548793 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
let health = 548793; |
38,921,097 | en | C++ | string_ops | advanced | Write a function that checks if a string is a palindrome in C++. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in C++.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
3,839,547 | ru | JavaScript | var_decl | beginner | Как объявить переменную speed со значением 33633 в JavaScript? | let speed = 33633; | ### Instruction:
Как объявить переменную speed со значением 33633 в JavaScript?
### Response:
let speed = 33633; |
34,987,365 | 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] |
447,009 | kk | Java | sum_n | intermediate | Java тілінде 1-ден 7171-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(7171)); | ### Instruction:
Java тілінде 1-ден 7171-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(7171)); |
69,232,823 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 2024 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 2024;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 2024 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 2024;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
760,245 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 9682. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(9682)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 9682.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(9682)); |
80,060,069 | 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;
} |
2,875,291 | kk | Unity | var_decl | beginner | Unity тілінде 436724 мәнімен index айнымалысын қалай жариялауға болады? | int index = 436724; | ### Instruction:
Unity тілінде 436724 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 436724; |
87,879,932 | kk | Java | logic_ops | advanced | Java тилінде 1985 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1985;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1985 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1985;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
88,988,441 | 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();
} |
39,767,531 | 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;
} |
282,902 | ru | C++ | factorial | advanced | Напиши функцию на C++, которая вычисляет факториал числа 7639. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(7639) << std::endl; | ### Instruction:
Напиши функцию на C++, которая вычисляет факториал числа 7639.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(7639) << std::endl; |
355,044 | ru | Python | factorial | advanced | Напиши функцию на Python, которая вычисляет факториал числа 2741. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2741)) | ### Instruction:
Напиши функцию на Python, которая вычисляет факториал числа 2741.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2741)) |
1,448,963 | kk | C# | var_decl | beginner | C# тілінде 481560 мәнімен value айнымалысын қалай жариялауға болады? | int value = 481560; | ### Instruction:
C# тілінде 481560 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 481560; |
3,555,232 | ru | JavaScript | var_decl | beginner | Как объявить переменную limit со значением 857395 в JavaScript? | let limit = 857395; | ### Instruction:
Как объявить переменную limit со значением 857395 в JavaScript?
### Response:
let limit = 857395; |
84,034,700 | 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();
} |
33,885,204 | 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;
} |
83,297,667 | en | C++ | string_ops | advanced | Write a function that checks if a string is a palindrome in C++. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in C++.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
20,040,251 | 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;
} |
3,856,837 | kk | Unity | var_decl | beginner | Unity тілінде 810018 мәнімен result айнымалысын қалай жариялауға болады? | int result = 810018; | ### Instruction:
Unity тілінде 810018 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 810018; |
412,333 | en | JavaScript | var_decl | beginner | How to declare a variable limit with value 9166 in JavaScript? | let limit = 9166; | ### Instruction:
How to declare a variable limit with value 9166 in JavaScript?
### Response:
let limit = 9166; |
1,059,564 | kk | C++ | var_decl | beginner | C++ тілінде 808159 мәнімен data айнымалысын қалай жариялауға болады? | int data = 808159; | ### Instruction:
C++ тілінде 808159 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 808159; |
70,073,599 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 13 is prime in JavaScript. | function isPrime() {
let n = 13;
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 13 is prime in JavaScript.
### Response:
function isPrime() {
let n = 13;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
20,162,330 | ru | 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,807,712 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 113 is prime in JavaScript. | function isPrime() {
let n = 113;
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 113 is prime in JavaScript.
### Response:
function isPrime() {
let n = 113;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
26,973 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 4719. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4719)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 4719.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4719)); |
36,239,868 | en | Unity | string_ops | advanced | 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;
} |
639,360 | en | C++ | var_decl | beginner | How to declare a variable amount with value 996179 in C++? | int amount = 996179; | ### Instruction:
How to declare a variable amount with value 996179 in C++?
### Response:
int amount = 996179; |
1,169,995 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 1644. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1644)); | ### Instruction:
Write a function in Java that calculates the factorial of 1644.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1644)); |
14,792,354 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
664,969 | ru | Python | var_decl | beginner | Как объявить переменную rate со значением 434687 в Python? | rate = 434687 | ### Instruction:
Как объявить переменную rate со значением 434687 в Python?
### Response:
rate = 434687 |
1,212,319 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 626080 мәнімен health айнымалысын қалай жариялауға болады? | let health = 626080; | ### Instruction:
JavaScript тілінде 626080 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
let health = 626080; |
95,496,613 | 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();
} |
93,660,018 | en | Python | string_ops | intermediate | Write a function that checks if a string is a palindrome in Python. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Write a function that checks if a string is a palindrome in Python.
### Response:
def is_palindrome(s):
return s == s[::-1] |
95,403,234 | 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;
} |
3,343,111 | kk | C# | var_decl | beginner | C# тілінде 832695 мәнімен value айнымалысын қалай жариялауға болады? | int value = 832695; | ### Instruction:
C# тілінде 832695 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 832695; |
51,205,586 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 1903 високосным. | public bool IsLeap() {
int y = 1903;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 1903 високосным.
### Response:
public bool IsLeap() {
int y = 1903;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
15,513,850 | 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();
} |
40,850,575 | ru | Java | string_ops | advanced | Напишите на 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;
} |
96,142,853 | 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] |
3,428,272 | ru | C# | var_decl | beginner | Как объявить переменную size со значением 497385 в C#? | int size = 497385; | ### Instruction:
Как объявить переменную size со значением 497385 в C#?
### Response:
int size = 497385; |
35,798,929 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 437 is prime in C++. | public bool IsPrime() {
int n = 437;
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 437 is prime in C++.
### Response:
public bool IsPrime() {
int n = 437;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
64,226,550 | 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); |
63,329,558 | 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;
} |
14,976,170 | 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(''); |
43,230,402 | ru | C# | logic_ops | advanced | Напишите на C# логику проверки, является ли год 1974 високосным. | public bool IsLeap() {
int y = 1974;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1974 високосным.
### Response:
public bool IsLeap() {
int y = 1974;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,854,880 | ru | C++ | var_decl | beginner | Как объявить переменную timer со значением 778841 в C++? | int timer = 778841; | ### Instruction:
Как объявить переменную timer со значением 778841 в C++?
### Response:
int timer = 778841; |
38,399,341 | kk | Unity | array_ops | intermediate | Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
51,651,634 | 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(''); |
10,674,333 | kk | Python | logic_ops | advanced | Python тилінде 2084 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 2084
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 2084 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 2084
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
77,902,561 | kk | Unity | string_ops | advanced | 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;
} |
82,240,333 | en | Java | logic_ops | intermediate | Write logic to check if the year 2011 is a leap year in Java. | public bool IsLeap() {
int y = 2011;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2011 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2011;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,607,244 | en | C# | var_decl | beginner | How to declare a variable size with value 639180 in C#? | int size = 639180; | ### Instruction:
How to declare a variable size with value 639180 in C#?
### Response:
int size = 639180; |
2,881,650 | ru | C++ | var_decl | beginner | Как объявить переменную limit со значением 160353 в C++? | int limit = 160353; | ### Instruction:
Как объявить переменную limit со значением 160353 в C++?
### Response:
int limit = 160353; |
3,812,228 | en | Unity | var_decl | beginner | How to declare a variable size with value 743686 in Unity? | int size = 743686; | ### Instruction:
How to declare a variable size with value 743686 in Unity?
### Response:
int size = 743686; |
34,976,344 | 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;
} |
1,317,154 | ru | C++ | var_decl | beginner | Как объявить переменную result со значением 72612 в C++? | int result = 72612; | ### Instruction:
Как объявить переменную result со значением 72612 в C++?
### Response:
int result = 72612; |
66,945,730 | 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();
} |
824,742 | kk | Java | var_decl | beginner | Java тілінде 304493 мәнімен count айнымалысын қалай жариялауға болады? | int count = 304493; | ### Instruction:
Java тілінде 304493 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 304493; |
4,976,686 | ru | JavaScript | var_decl | beginner | Как объявить переменную data со значением 296828 в JavaScript? | let data = 296828; | ### Instruction:
Как объявить переменную data со значением 296828 в JavaScript?
### Response:
let data = 296828; |
46,874,469 | en | Python | array_ops | intermediate | Write a function that filters only even numbers from a list in Python. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Write a function that filters only even numbers from a list in Python.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
83,151,805 | kk | Java | logic_ops | advanced | Java тилінде 226 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 226;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 226 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 226;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
902,179 | kk | Unity | var_decl | beginner | Unity тілінде 876581 мәнімен index айнымалысын қалай жариялауға болады? | int index = 876581; | ### Instruction:
Unity тілінде 876581 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 876581; |
57,811,137 | en | JavaScript | array_ops | advanced | 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,851,360 | kk | Python | var_decl | beginner | Python тілінде 471022 мәнімен health айнымалысын қалай жариялауға болады? | health = 471022 | ### Instruction:
Python тілінде 471022 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
health = 471022 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.