id int64 0 100M | language stringclasses 3
values | prog_lang stringclasses 6
values | category stringclasses 10
values | difficulty stringclasses 3
values | instruction stringlengths 30 86 | output stringlengths 7 192 | text stringlengths 92 300 |
|---|---|---|---|---|---|---|---|
2,360,696 | kk | Unity | var_decl | beginner | Unity тілінде 117446 мәнімен value айнымалысын қалай жариялауға болады? | int value = 117446; | ### Instruction:
Unity тілінде 117446 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 117446; |
62,908,188 | 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;
} |
4,913,140 | en | JavaScript | var_decl | beginner | How to declare a variable offset with value 355644 in JavaScript? | let offset = 355644; | ### Instruction:
How to declare a variable offset with value 355644 in JavaScript?
### Response:
let offset = 355644; |
48,148,723 | 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();
} |
46,762,400 | en | Unity | logic_ops | advanced | Write logic to check if the year 2085 is a leap year in Unity. | public bool IsLeap() {
int y = 2085;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2085 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2085;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,882,091 | en | C# | var_decl | beginner | How to declare a variable size with value 105564 in C#? | int size = 105564; | ### Instruction:
How to declare a variable size with value 105564 in C#?
### Response:
int size = 105564; |
4,200,444 | en | C# | var_decl | beginner | How to declare a variable level with value 351282 in C#? | int level = 351282; | ### Instruction:
How to declare a variable level with value 351282 in C#?
### Response:
int level = 351282; |
87,062,562 | 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();
} |
4,514,238 | kk | C# | var_decl | beginner | C# тілінде 465117 мәнімен score айнымалысын қалай жариялауға болады? | int score = 465117; | ### Instruction:
C# тілінде 465117 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 465117; |
3,772,832 | en | C# | var_decl | beginner | How to declare a variable score with value 686178 in C#? | int score = 686178; | ### Instruction:
How to declare a variable score with value 686178 in C#?
### Response:
int score = 686178; |
42,831,556 | 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;
} |
3,747,526 | ru | C# | var_decl | beginner | Как объявить переменную offset со значением 646787 в C#? | int offset = 646787; | ### Instruction:
Как объявить переменную offset со значением 646787 в C#?
### Response:
int offset = 646787; |
3,351,434 | en | Java | var_decl | beginner | How to declare a variable limit with value 413611 in Java? | int limit = 413611; | ### Instruction:
How to declare a variable limit with value 413611 in Java?
### Response:
int limit = 413611; |
3,899,695 | en | Java | var_decl | beginner | How to declare a variable score with value 34821 in Java? | int score = 34821; | ### Instruction:
How to declare a variable score with value 34821 in Java?
### Response:
int score = 34821; |
53,580,139 | en | Unity | logic_ops | advanced | Write logic to check if the year 2023 is a leap year in Unity. | public bool IsLeap() {
int y = 2023;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2023 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2023;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
969,031 | en | Python | var_decl | beginner | How to declare a variable health with value 472415 in Python? | health = 472415 | ### Instruction:
How to declare a variable health with value 472415 in Python?
### Response:
health = 472415 |
49,887,582 | kk | Unity | array_ops | intermediate | Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
35,024,281 | 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;
} |
73,992,129 | ru | 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аеёиоуыэюя') |
4,978,245 | ru | Python | var_decl | beginner | Как объявить переменную rate со значением 136695 в Python? | rate = 136695 | ### Instruction:
Как объявить переменную rate со значением 136695 в Python?
### Response:
rate = 136695 |
1,309,314 | ru | Java | var_decl | beginner | Как объявить переменную buffer со значением 112311 в Java? | int buffer = 112311; | ### Instruction:
Как объявить переменную buffer со значением 112311 в Java?
### Response:
int buffer = 112311; |
45,072,908 | en | C++ | logic_ops | advanced | Write logic to check if the year 2099 is a leap year in C++. | public bool IsLeap() {
int y = 2099;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2099 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2099;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
44,296,287 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
4,032,452 | en | Java | var_decl | beginner | How to declare a variable health with value 343847 in Java? | int health = 343847; | ### Instruction:
How to declare a variable health with value 343847 in Java?
### Response:
int health = 343847; |
74,796,630 | 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;
} |
47,896,780 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 1982 високосным. | public bool IsLeap() {
int y = 1982;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1982 високосным.
### Response:
public bool IsLeap() {
int y = 1982;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,285,405 | en | JavaScript | var_decl | beginner | How to declare a variable value with value 748959 in JavaScript? | let value = 748959; | ### Instruction:
How to declare a variable value with value 748959 in JavaScript?
### Response:
let value = 748959; |
539,953 | kk | JavaScript | sum_n | intermediate | JavaScript тілінде 1-ден 2947-ге дейінгі сандардың қосындысын есептейтін функция жаз. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(2947)); | ### Instruction:
JavaScript тілінде 1-ден 2947-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(2947)); |
67,075,137 | en | Python | logic_ops | intermediate | Write a function that determines if the number 309 is prime in Python. | def is_prime():
n = 309
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Write a function that determines if the number 309 is prime in Python.
### Response:
def is_prime():
n = 309
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
29,173,174 | 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(''); |
2,529,540 | en | Python | var_decl | beginner | How to declare a variable level with value 10948 in Python? | level = 10948 | ### Instruction:
How to declare a variable level with value 10948 in Python?
### Response:
level = 10948 |
2,857,500 | ru | C++ | var_decl | beginner | Как объявить переменную rate со значением 410677 в C++? | int rate = 410677; | ### Instruction:
Как объявить переменную rate со значением 410677 в C++?
### Response:
int rate = 410677; |
4,847,218 | kk | Python | var_decl | beginner | Python тілінде 246441 мәнімен buffer айнымалысын қалай жариялауға болады? | buffer = 246441 | ### Instruction:
Python тілінде 246441 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
buffer = 246441 |
12,781,085 | 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);
} |
3,071,643 | en | Unity | var_decl | beginner | How to declare a variable rate with value 786506 in Unity? | int rate = 786506; | ### Instruction:
How to declare a variable rate with value 786506 in Unity?
### Response:
int rate = 786506; |
96,837 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 1106. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(1106)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 1106.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(1106)); |
1,069,625 | ru | C++ | var_decl | beginner | Как объявить переменную size со значением 32831 в C++? | int size = 32831; | ### Instruction:
Как объявить переменную size со значением 32831 в C++?
### Response:
int size = 32831; |
2,431,129 | en | Java | var_decl | beginner | How to declare a variable x with value 156365 in Java? | int x = 156365; | ### Instruction:
How to declare a variable x with value 156365 in Java?
### Response:
int x = 156365; |
77,848 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 4854. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(4854)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 4854.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(4854)); |
88,492,918 | 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);
} |
641,475 | kk | Python | factorial | advanced | Python тілінде 5859 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(5859)) | ### Instruction:
Python тілінде 5859 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(5859)) |
3,316,931 | kk | C++ | var_decl | beginner | C++ тілінде 148585 мәнімен index айнымалысын қалай жариялауға болады? | int index = 148585; | ### Instruction:
C++ тілінде 148585 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 148585; |
62,566,036 | 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);
} |
62,453,087 | ru | C# | logic_ops | intermediate | Напишите на C# функцию, определяющую, является ли число 36 простым. | public bool IsPrime() {
int n = 36;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 36 простым.
### Response:
public bool IsPrime() {
int n = 36;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,355,676 | en | JavaScript | var_decl | beginner | How to declare a variable size with value 199048 in JavaScript? | let size = 199048; | ### Instruction:
How to declare a variable size with value 199048 in JavaScript?
### Response:
let size = 199048; |
51,406,397 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
28,267,884 | ru | C# | logic_ops | advanced | Напишите на C# логику проверки, является ли год 2058 високосным. | public bool IsLeap() {
int y = 2058;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2058 високосным.
### Response:
public bool IsLeap() {
int y = 2058;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,757,419 | en | Python | var_decl | beginner | How to declare a variable rate with value 55709 in Python? | rate = 55709 | ### Instruction:
How to declare a variable rate with value 55709 in Python?
### Response:
rate = 55709 |
69,787,458 | 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;
} |
25,636,087 | ru | Unity | array_ops | intermediate | Напишите на Unity функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
4,297,191 | en | JavaScript | var_decl | beginner | How to declare a variable index with value 939294 in JavaScript? | let index = 939294; | ### Instruction:
How to declare a variable index with value 939294 in JavaScript?
### Response:
let index = 939294; |
366,277 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 575628 мәнімен buffer айнымалысын қалай жариялауға болады? | let buffer = 575628; | ### Instruction:
JavaScript тілінде 575628 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
let buffer = 575628; |
43,877,404 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 1959 is a leap year in JavaScript. | function isLeap() {
let y = 1959;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1959 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1959;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
23,257,641 | 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;
} |
21,475,122 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
73,368,000 | ru | C++ | string_ops | advanced | Напишите на C++ функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на C++ функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
98,053,060 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript функцию, определяющую, является ли число 334 простым. | function isPrime() {
let n = 334;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 334 простым.
### Response:
function isPrime() {
let n = 334;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
83,493,072 | en | Unity | string_ops | intermediate | 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;
} |
27,582,968 | kk | 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);
} |
93,288,537 | kk | Java | logic_ops | intermediate | Java тилінде 2084 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2084;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 2084 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2084;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,780,086 | ru | JavaScript | var_decl | beginner | Как объявить переменную count со значением 978542 в JavaScript? | let count = 978542; | ### Instruction:
Как объявить переменную count со значением 978542 в JavaScript?
### Response:
let count = 978542; |
22,821,173 | 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(''); |
36,244,754 | 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);
} |
43,110,552 | 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;
} |
85,134,352 | 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;
} |
97,836,269 | 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] |
89,170,020 | 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);
} |
94,720,460 | 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;
} |
19,655,549 | 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;
} |
80,585,121 | 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;
} |
3,300,841 | en | Python | var_decl | beginner | How to declare a variable value with value 180928 in Python? | value = 180928 | ### Instruction:
How to declare a variable value with value 180928 in Python?
### Response:
value = 180928 |
1,251,354 | ru | JavaScript | var_decl | beginner | Как объявить переменную buffer со значением 303743 в JavaScript? | let buffer = 303743; | ### Instruction:
Как объявить переменную buffer со значением 303743 в JavaScript?
### Response:
let buffer = 303743; |
69,952,253 | 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;
} |
1,987,507 | ru | C# | var_decl | beginner | Как объявить переменную offset со значением 253113 в C#? | int offset = 253113; | ### Instruction:
Как объявить переменную offset со значением 253113 в C#?
### Response:
int offset = 253113; |
32,650,136 | 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;
} |
73,433,441 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 2058 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 2058;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 2058 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 2058;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
21,635,943 | 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,722,337 | en | Python | var_decl | beginner | How to declare a variable rate with value 553524 in Python? | rate = 553524 | ### Instruction:
How to declare a variable rate with value 553524 in Python?
### Response:
rate = 553524 |
25,767,535 | 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);
} |
2,162,209 | kk | Unity | var_decl | beginner | Unity тілінде 901864 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 901864; | ### Instruction:
Unity тілінде 901864 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 901864; |
766,759 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 4340. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(4340)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 4340.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(4340)); |
83,281,899 | kk | Python | string_ops | intermediate | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
73,263,955 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 71 простым. | public bool IsPrime() {
int n = 71;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 71 простым.
### Response:
public bool IsPrime() {
int n = 71;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,863,686 | ru | Java | var_decl | beginner | Как объявить переменную count со значением 212496 в Java? | int count = 212496; | ### Instruction:
Как объявить переменную count со значением 212496 в Java?
### Response:
int count = 212496; |
1,350,972 | ru | C++ | var_decl | beginner | Как объявить переменную rate со значением 379506 в C++? | int rate = 379506; | ### Instruction:
Как объявить переменную rate со значением 379506 в C++?
### Response:
int rate = 379506; |
14,147,125 | kk | C# | logic_ops | intermediate | C# тилінде 368 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 368;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 368 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 368;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
75,419,038 | en | C++ | logic_ops | advanced | Write a function that determines if the number 247 is prime in C++. | public bool IsPrime() {
int n = 247;
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 247 is prime in C++.
### Response:
public bool IsPrime() {
int n = 247;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
47,668,518 | 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;
} |
3,990,071 | ru | C# | var_decl | beginner | Как объявить переменную timer со значением 781576 в C#? | int timer = 781576; | ### Instruction:
Как объявить переменную timer со значением 781576 в C#?
### Response:
int timer = 781576; |
90,497,576 | kk | Unity | string_ops | intermediate | Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
86,598,600 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 250 is prime in JavaScript. | function isPrime() {
let n = 250;
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 250 is prime in JavaScript.
### Response:
function isPrime() {
let n = 250;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
16,547,095 | ru | Unity | array_ops | intermediate | Напишите на Unity функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
81,733 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 7206-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(7206)) | ### Instruction:
Python тілінде 1-ден 7206-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(7206)) |
92,613,256 | en | Python | string_ops | intermediate | Write a function that converts a string to uppercase in Python. | def to_upper(s):
return s.upper() | ### Instruction:
Write a function that converts a string to uppercase in Python.
### Response:
def to_upper(s):
return s.upper() |
3,154,848 | en | C++ | var_decl | beginner | How to declare a variable index with value 697082 in C++? | int index = 697082; | ### Instruction:
How to declare a variable index with value 697082 in C++?
### Response:
int index = 697082; |
238,904 | en | Python | sum_n | intermediate | Write a function in Python that sums numbers from 1 to 8982. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(8982)) | ### Instruction:
Write a function in Python that sums numbers from 1 to 8982.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(8982)) |
38,468,237 | kk | C# | logic_ops | advanced | C# тилінде 2094 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2094;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 2094 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2094;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
76,204,998 | 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;
} |
64,519,626 | ru | JavaScript | logic_ops | intermediate | Напишите на 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);
} |
4,271,618 | kk | C# | var_decl | beginner | C# тілінде 413086 мәнімен result айнымалысын қалай жариялауға болады? | int result = 413086; | ### Instruction:
C# тілінде 413086 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 413086; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.