id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
4,505,610 | kk | C# | var_decl | beginner | C# тілінде 453871 мәнімен health айнымалысын қалай жариялауға болады? | int health = 453871; | ### Instruction:
C# тілінде 453871 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 453871; |
37,539,104 | ru | Unity | string_ops | intermediate | Напишите на Unity функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Unity функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
51,334,225 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 2031 високосным. | public bool IsLeap() {
int y = 2031;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2031 високосным.
### Response:
public bool IsLeap() {
int y = 2031;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
676,011 | ru | C# | sum_n | intermediate | Напиши функцию на C#, которая считает сумму чисел от 1 до 6206. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(6206)); | ### Instruction:
Напиши функцию на C#, которая считает сумму чисел от 1 до 6206.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(6206)); |
2,701,602 | kk | Unity | var_decl | beginner | Unity тілінде 384489 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 384489; | ### Instruction:
Unity тілінде 384489 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 384489; |
97,177,459 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 2047 високосным. | public bool IsLeap() {
int y = 2047;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2047 високосным.
### Response:
public bool IsLeap() {
int y = 2047;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,644,261 | kk | Python | var_decl | beginner | Python тілінде 908129 мәнімен size айнымалысын қалай жариялауға болады? | size = 908129 | ### Instruction:
Python тілінде 908129 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
size = 908129 |
66,840,980 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая проверяет, является ли строка палиндромом. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
### Response:
def is_palindrome(s):
return s == s[::-1] |
27,266,678 | 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,334,358 | ru | C# | var_decl | beginner | Как объявить переменную x со значением 326270 в C#? | int x = 326270; | ### Instruction:
Как объявить переменную x со значением 326270 в C#?
### Response:
int x = 326270; |
31,514,150 | 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;
} |
4,752,064 | ru | C# | var_decl | beginner | Как объявить переменную score со значением 956231 в C#? | int score = 956231; | ### Instruction:
Как объявить переменную score со значением 956231 в C#?
### Response:
int score = 956231; |
75,081,162 | ru | Unity | array_ops | advanced | Напишите на Unity функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
27,497,375 | en | C# | logic_ops | intermediate | Write a function that determines if the number 177 is prime in C#. | public bool IsPrime() {
int n = 177;
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 177 is prime in C#.
### Response:
public bool IsPrime() {
int n = 177;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
410,143 | kk | C++ | var_decl | beginner | C++ тілінде 525910 мәнімен total айнымалысын қалай жариялауға болады? | int total = 525910; | ### Instruction:
C++ тілінде 525910 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 525910; |
462,152 | en | Python | var_decl | beginner | How to declare a variable level with value 225353 in Python? | level = 225353 | ### Instruction:
How to declare a variable level with value 225353 in Python?
### Response:
level = 225353 |
97,267,146 | 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аеёиоуыэюя') |
817,495 | en | Unity | var_decl | beginner | How to declare a variable total with value 159221 in Unity? | int total = 159221; | ### Instruction:
How to declare a variable total with value 159221 in Unity?
### Response:
int total = 159221; |
61,991 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 7758. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(7758)) | ### Instruction:
Write a function in Python that calculates the factorial of 7758.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(7758)) |
98,386,047 | 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] |
33,409,585 | kk | Java | logic_ops | advanced | Java тилінде 313 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 313;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 313 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 313;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
15,406,041 | en | Python | logic_ops | intermediate | Write logic to check if the year 2020 is a leap year in Python. | def is_leap():
year = 2020
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2020 is a leap year in Python.
### Response:
def is_leap():
year = 2020
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
1,114,809 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 261136 мәнімен result айнымалысын қалай жариялауға болады? | let result = 261136; | ### Instruction:
JavaScript тілінде 261136 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
let result = 261136; |
362,920 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 7762. | 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(7762) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 7762.
### 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(7762) << std::endl; |
3,427,318 | kk | Java | var_decl | beginner | Java тілінде 373583 мәнімен value айнымалысын қалай жариялауға болады? | int value = 373583; | ### Instruction:
Java тілінде 373583 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 373583; |
1,352,361 | ru | JavaScript | var_decl | beginner | Как объявить переменную score со значением 161652 в JavaScript? | let score = 161652; | ### Instruction:
Как объявить переменную score со значением 161652 в JavaScript?
### Response:
let score = 161652; |
27,445,808 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 1949 високосным. | function isLeap() {
let y = 1949;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1949 високосным.
### Response:
function isLeap() {
let y = 1949;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
43,415,474 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
40,355,523 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 89 простым. | public bool IsPrime() {
int n = 89;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 89 простым.
### Response:
public bool IsPrime() {
int n = 89;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
40,260,342 | en | C# | string_ops | advanced | 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();
} |
122,501 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 5618. | 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(5618) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 5618.
### 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(5618) << std::endl; |
4,213,996 | ru | Java | var_decl | beginner | Как объявить переменную weight со значением 372353 в Java? | int weight = 372353; | ### Instruction:
Как объявить переменную weight со значением 372353 в Java?
### Response:
int weight = 372353; |
1,982,602 | kk | C# | var_decl | beginner | C# тілінде 697193 мәнімен size айнымалысын қалай жариялауға болады? | int size = 697193; | ### Instruction:
C# тілінде 697193 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 697193; |
2,639,505 | kk | Unity | var_decl | beginner | Unity тілінде 288371 мәнімен level айнымалысын қалай жариялауға болады? | int level = 288371; | ### Instruction:
Unity тілінде 288371 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 288371; |
2,391,661 | en | Java | var_decl | beginner | How to declare a variable health with value 181800 in Java? | int health = 181800; | ### Instruction:
How to declare a variable health with value 181800 in Java?
### Response:
int health = 181800; |
42,550,145 | en | C# | logic_ops | advanced | Write logic to check if the year 2026 is a leap year in C#. | public bool IsLeap() {
int y = 2026;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2026 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2026;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
121,493 | en | Python | var_decl | beginner | How to declare a variable score with value 38619 in Python? | score = 38619 | ### Instruction:
How to declare a variable score with value 38619 in Python?
### Response:
score = 38619 |
3,683,428 | kk | Java | var_decl | beginner | Java тілінде 529154 мәнімен value айнымалысын қалай жариялауға болады? | int value = 529154; | ### Instruction:
Java тілінде 529154 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 529154; |
30,719,752 | 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);
} |
3,383,983 | kk | Python | var_decl | beginner | Python тілінде 552800 мәнімен health айнымалысын қалай жариялауға болады? | health = 552800 | ### Instruction:
Python тілінде 552800 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
health = 552800 |
84,640,154 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 1904 високосным. | function isLeap() {
let y = 1904;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1904 високосным.
### Response:
function isLeap() {
let y = 1904;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
218,936 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 345. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(345));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 345.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(345));
} |
4,851,569 | en | Python | var_decl | beginner | How to declare a variable health with value 612800 in Python? | health = 612800 | ### Instruction:
How to declare a variable health with value 612800 in Python?
### Response:
health = 612800 |
13,447,629 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript функцию, определяющую, является ли число 60 простым. | function isPrime() {
let n = 60;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 60 простым.
### Response:
function isPrime() {
let n = 60;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
81,783,095 | 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);
} |
51,235,753 | 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);
} |
3,682,987 | en | Java | var_decl | beginner | How to declare a variable speed with value 377918 in Java? | int speed = 377918; | ### Instruction:
How to declare a variable speed with value 377918 in Java?
### Response:
int speed = 377918; |
80,767,824 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
54,739,687 | en | Unity | array_ops | advanced | Write a function that filters only even numbers from a list in Unity. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Unity.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
87,115,646 | 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;
} |
29,815,465 | en | Unity | logic_ops | intermediate | Write logic to check if the year 2029 is a leap year in Unity. | public bool IsLeap() {
int y = 2029;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2029 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2029;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
38,118,469 | kk | C# | array_ops | intermediate | C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
1,921,977 | kk | Java | var_decl | beginner | Java тілінде 218067 мәнімен score айнымалысын қалай жариялауға болады? | int score = 218067; | ### Instruction:
Java тілінде 218067 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 218067; |
18,501,837 | 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;
} |
524,620 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 4025-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(4025));
} | ### Instruction:
Unity тілінде 1-ден 4025-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(4025));
} |
3,966,886 | ru | Java | var_decl | beginner | Как объявить переменную result со значением 931784 в Java? | int result = 931784; | ### Instruction:
Как объявить переменную result со значением 931784 в Java?
### Response:
int result = 931784; |
77,050,560 | en | Unity | logic_ops | intermediate | Write logic to check if the year 2057 is a leap year in Unity. | public bool IsLeap() {
int y = 2057;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2057 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2057;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
592,216 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 7465. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7465)); | ### Instruction:
Write a function in Java that calculates the factorial of 7465.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7465)); |
64,561,341 | 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;
} |
3,196,037 | en | Java | var_decl | beginner | How to declare a variable x with value 629531 in Java? | int x = 629531; | ### Instruction:
How to declare a variable x with value 629531 in Java?
### Response:
int x = 629531; |
61,488,809 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 2072 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 2072;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 2072 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 2072;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
2,461,632 | ru | C# | var_decl | beginner | Как объявить переменную score со значением 560691 в C#? | int score = 560691; | ### Instruction:
Как объявить переменную score со значением 560691 в C#?
### Response:
int score = 560691; |
3,328,797 | ru | C# | var_decl | beginner | Как объявить переменную index со значением 22388 в C#? | int index = 22388; | ### Instruction:
Как объявить переменную index со значением 22388 в C#?
### Response:
int index = 22388; |
80,955,440 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая проверяет, является ли строка палиндромом. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
### Response:
def is_palindrome(s):
return s == s[::-1] |
66,937,862 | 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);
} |
282,871 | kk | Python | factorial | advanced | Python тілінде 6214 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(6214)) | ### Instruction:
Python тілінде 6214 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(6214)) |
95,590,320 | 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;
} |
826,461 | en | C# | sum_n | intermediate | Write a function in C# that sums numbers from 1 to 8151. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(8151)); | ### Instruction:
Write a function in C# that sums numbers from 1 to 8151.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(8151)); |
70,694,108 | en | JavaScript | array_ops | intermediate | 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(); |
3,400,799 | en | C# | var_decl | beginner | How to declare a variable timer with value 652909 in C#? | int timer = 652909; | ### Instruction:
How to declare a variable timer with value 652909 in C#?
### Response:
int timer = 652909; |
2,025,249 | kk | Unity | var_decl | beginner | Unity тілінде 904684 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 904684; | ### Instruction:
Unity тілінде 904684 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 904684; |
76,472,884 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая переводит строку в верхний регистр. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
### Response:
const toUpper = s => s.toUpperCase(); |
34,081,534 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 473 is prime in JavaScript. | function isPrime() {
let n = 473;
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 473 is prime in JavaScript.
### Response:
function isPrime() {
let n = 473;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
63,553,677 | en | Unity | array_ops | intermediate | Write a function that reverses a list in Unity. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Unity.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
3,990,089 | en | C# | var_decl | beginner | How to declare a variable timer with value 60 in C#? | int timer = 60; | ### Instruction:
How to declare a variable timer with value 60 in C#?
### Response:
int timer = 60; |
36,237,288 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
39,923,565 | en | Python | array_ops | intermediate | Write a function that finds the maximum number in an array in Python. | def get_max(arr):
return max(arr) | ### Instruction:
Write a function that finds the maximum number in an array in Python.
### Response:
def get_max(arr):
return max(arr) |
79,799,308 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 258 is prime in JavaScript. | function isPrime() {
let n = 258;
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 258 is prime in JavaScript.
### Response:
function isPrime() {
let n = 258;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
66,201,392 | kk | C# | logic_ops | advanced | C# тилінде 2052 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2052;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 2052 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2052;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,642,302 | en | C# | var_decl | beginner | How to declare a variable buffer with value 897655 in C#? | int buffer = 897655; | ### Instruction:
How to declare a variable buffer with value 897655 in C#?
### Response:
int buffer = 897655; |
3,997,739 | en | C++ | var_decl | beginner | How to declare a variable level with value 460695 in C++? | int level = 460695; | ### Instruction:
How to declare a variable level with value 460695 in C++?
### Response:
int level = 460695; |
696,010 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 358818 мәнімен size айнымалысын қалай жариялауға болады? | let size = 358818; | ### Instruction:
JavaScript тілінде 358818 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
let size = 358818; |
4,424,043 | ru | JavaScript | var_decl | beginner | Как объявить переменную result со значением 127610 в JavaScript? | let result = 127610; | ### Instruction:
Как объявить переменную result со значением 127610 в JavaScript?
### Response:
let result = 127610; |
86,352,391 | 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();
} |
2,387,302 | kk | Python | var_decl | beginner | Python тілінде 674496 мәнімен amount айнымалысын қалай жариялауға болады? | amount = 674496 | ### Instruction:
Python тілінде 674496 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
amount = 674496 |
81,028,074 | 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;
} |
62,039,576 | 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;
} |
61,210,725 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Java функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
55,283,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;
} |
36,646,846 | 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;
} |
70,125,260 | 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;
} |
4,969,914 | ru | JavaScript | var_decl | beginner | Как объявить переменную value со значением 552157 в JavaScript? | let value = 552157; | ### Instruction:
Как объявить переменную value со значением 552157 в JavaScript?
### Response:
let value = 552157; |
20,796,409 | kk | Python | array_ops | advanced | 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] |
73,150,435 | 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;
} |
43,788,736 | en | C# | logic_ops | intermediate | Write logic to check if the year 2058 is a leap year in C#. | public bool IsLeap() {
int y = 2058;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2058 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2058;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
97,267,155 | en | C++ | array_ops | advanced | Write a function that filters only even numbers from a list in C++. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in C++.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
47,160,446 | 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;
} |
1,126,690 | ru | JavaScript | var_decl | beginner | Как объявить переменную index со значением 683510 в JavaScript? | let index = 683510; | ### Instruction:
Как объявить переменную index со значением 683510 в JavaScript?
### Response:
let index = 683510; |
76,041,164 | 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;
} |
94,299,727 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 1964 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 1964;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 1964 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 1964;
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.