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 |
|---|---|---|---|---|---|---|---|
47,467,985 | 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() |
34,917,104 | kk | 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;
} |
29,440,484 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
14,922,726 | 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,457,187 | en | C++ | var_decl | beginner | How to declare a variable total with value 923533 in C++? | int total = 923533; | ### Instruction:
How to declare a variable total with value 923533 in C++?
### Response:
int total = 923533; |
509,534 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 3995. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(3995)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 3995.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(3995)); |
272,091 | kk | C# | factorial | advanced | C# тілінде 6569 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(6569)); | ### Instruction:
C# тілінде 6569 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(6569)); |
57,092,431 | kk | 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;
} |
87,290,147 | en | C# | string_ops | intermediate | Write a function that converts a string to uppercase in C#. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in C#.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
30,570,064 | kk | C# | logic_ops | advanced | C# тилінде 2068 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2068;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 2068 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2068;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
46,829,314 | 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;
} |
99,047,017 | 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();
} |
25,829,938 | en | C++ | string_ops | intermediate | Write a function that converts a string to uppercase in C++. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in C++.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
47,247,830 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
33,125,286 | ru | Unity | array_ops | advanced | Напишите на Unity функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на Unity функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
54,755,291 | ru | Unity | array_ops | intermediate | Напишите на Unity функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на Unity функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
1,717,676 | en | Unity | var_decl | beginner | How to declare a variable speed with value 652523 in Unity? | int speed = 652523; | ### Instruction:
How to declare a variable speed with value 652523 in Unity?
### Response:
int speed = 652523; |
1,479,251 | ru | JavaScript | var_decl | beginner | Как объявить переменную health со значением 813172 в JavaScript? | let health = 813172; | ### Instruction:
Как объявить переменную health со значением 813172 в JavaScript?
### Response:
let health = 813172; |
30,404,814 | en | Unity | string_ops | advanced | Write a function that checks if a string is a palindrome in Unity. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in Unity.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
41,518,319 | en | C++ | logic_ops | advanced | Write a function that determines if the number 368 is prime in C++. | 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:
Write a function that determines if the number 368 is prime in C++.
### 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;
} |
26,532,509 | ru | C# | logic_ops | advanced | Напишите на C# логику проверки, является ли год 2061 високосным. | public bool IsLeap() {
int y = 2061;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2061 високосным.
### Response:
public bool IsLeap() {
int y = 2061;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
34,502,460 | kk | C++ | logic_ops | advanced | C++ тилінде 1962 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1962;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1962 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1962;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,373,828 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 61055 мәнімен timer айнымалысын қалай жариялауға болады? | let timer = 61055; | ### Instruction:
JavaScript тілінде 61055 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
let timer = 61055; |
2,136,939 | ru | Unity | var_decl | beginner | Как объявить переменную count со значением 42169 в Unity? | int count = 42169; | ### Instruction:
Как объявить переменную count со значением 42169 в Unity?
### Response:
int count = 42169; |
23,710,760 | en | Python | logic_ops | intermediate | Write a function that determines if the number 39 is prime in Python. | def is_prime():
n = 39
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 39 is prime in Python.
### Response:
def is_prime():
n = 39
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
54,509,922 | ru | Java | array_ops | intermediate | Напишите на 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:
Напишите на 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;
} |
96,872,377 | en | Java | logic_ops | advanced | Write logic to check if the year 2092 is a leap year in Java. | public bool IsLeap() {
int y = 2092;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2092 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2092;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
61,697,401 | 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;
} |
4,832,909 | kk | Python | var_decl | beginner | Python тілінде 400197 мәнімен rate айнымалысын қалай жариялауға болады? | rate = 400197 | ### Instruction:
Python тілінде 400197 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
rate = 400197 |
4,805,807 | kk | C++ | var_decl | beginner | C++ тілінде 945713 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 945713; | ### Instruction:
C++ тілінде 945713 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 945713; |
869,034 | ru | C# | var_decl | beginner | Как объявить переменную value со значением 426390 в C#? | int value = 426390; | ### Instruction:
Как объявить переменную value со значением 426390 в C#?
### Response:
int value = 426390; |
269,592 | kk | C++ | var_decl | beginner | C++ тілінде 966121 мәнімен level айнымалысын қалай жариялауға болады? | int level = 966121; | ### Instruction:
C++ тілінде 966121 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 966121; |
15,082,093 | en | Java | logic_ops | advanced | Write a function that determines if the number 208 is prime in Java. | public bool IsPrime() {
int n = 208;
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 208 is prime in Java.
### Response:
public bool IsPrime() {
int n = 208;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
14,046,504 | en | Python | array_ops | intermediate | Write a function that reverses a list in Python. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Write a function that reverses a list in Python.
### Response:
def reverse_list(arr):
return arr[::-1] |
3,368,650 | ru | C# | var_decl | beginner | Как объявить переменную x со значением 885165 в C#? | int x = 885165; | ### Instruction:
Как объявить переменную x со значением 885165 в C#?
### Response:
int x = 885165; |
49,154,708 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 1969 високосным. | def is_leap():
year = 1969
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1969 високосным.
### Response:
def is_leap():
year = 1969
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
69,427,627 | kk | Python | logic_ops | intermediate | Python тилінде 92 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 92
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 92 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 92
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
1,330,150 | kk | C++ | var_decl | beginner | C++ тілінде 945803 мәнімен y айнымалысын қалай жариялауға болады? | int y = 945803; | ### Instruction:
C++ тілінде 945803 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
int y = 945803; |
1,934,648 | en | C++ | var_decl | beginner | How to declare a variable value with value 351845 in C++? | int value = 351845; | ### Instruction:
How to declare a variable value with value 351845 in C++?
### Response:
int value = 351845; |
16,784,386 | en | Java | array_ops | advanced | Write a function that finds the maximum number in an array in Java. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in Java.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
68,361,388 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 2067 високосным. | public bool IsLeap() {
int y = 2067;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2067 високосным.
### Response:
public bool IsLeap() {
int y = 2067;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
60,434,753 | kk | 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;
} |
57,909 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 6476. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(6476)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 6476.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(6476)); |
85,669,171 | en | Java | string_ops | advanced | Write a function that checks if a string is a palindrome in Java. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in Java.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
4,989,473 | en | JavaScript | var_decl | beginner | How to declare a variable rate with value 271105 in JavaScript? | let rate = 271105; | ### Instruction:
How to declare a variable rate with value 271105 in JavaScript?
### Response:
let rate = 271105; |
29,166,957 | kk | C++ | logic_ops | advanced | C++ тилінде 2043 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2043;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2043 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2043;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,636,693 | kk | C# | var_decl | beginner | C# тілінде 680353 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 680353; | ### Instruction:
C# тілінде 680353 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 680353; |
1,893,397 | ru | C++ | var_decl | beginner | Как объявить переменную y со значением 823623 в C++? | int y = 823623; | ### Instruction:
Как объявить переменную y со значением 823623 в C++?
### Response:
int y = 823623; |
325,615 | en | Python | sum_n | intermediate | Write a function in Python that sums numbers from 1 to 9104. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(9104)) | ### Instruction:
Write a function in Python that sums numbers from 1 to 9104.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(9104)) |
35,359,744 | ru | Unity | array_ops | advanced | Напишите на Unity функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Unity функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
13,616,322 | en | Python | array_ops | advanced | 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) |
1,200,824 | en | Python | var_decl | beginner | How to declare a variable total with value 657908 in Python? | total = 657908 | ### Instruction:
How to declare a variable total with value 657908 in Python?
### Response:
total = 657908 |
92,994,612 | 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);
} |
17,588,623 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 2006 is a leap year in JavaScript. | function isLeap() {
let y = 2006;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2006 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2006;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
361,009 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 2816-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(2816)) | ### Instruction:
Python тілінде 1-ден 2816-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(2816)) |
40,781,800 | 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,177,194 | en | Python | logic_ops | intermediate | Write a function that determines if the number 105 is prime in Python. | def is_prime():
n = 105
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 105 is prime in Python.
### Response:
def is_prime():
n = 105
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
42,319,115 | 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;
} |
254,449 | en | JavaScript | var_decl | beginner | How to declare a variable result with value 258882 in JavaScript? | let result = 258882; | ### Instruction:
How to declare a variable result with value 258882 in JavaScript?
### Response:
let result = 258882; |
3,061,468 | en | JavaScript | var_decl | beginner | How to declare a variable timer with value 737107 in JavaScript? | let timer = 737107; | ### Instruction:
How to declare a variable timer with value 737107 in JavaScript?
### Response:
let timer = 737107; |
2,062,088 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 686733 мәнімен x айнымалысын қалай жариялауға болады? | let x = 686733; | ### Instruction:
JavaScript тілінде 686733 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
let x = 686733; |
12,213,712 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
53,922,152 | 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;
} |
1,641,790 | en | C# | var_decl | beginner | How to declare a variable level with value 660155 in C#? | int level = 660155; | ### Instruction:
How to declare a variable level with value 660155 in C#?
### Response:
int level = 660155; |
57,653,276 | 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);
} |
14,041,737 | kk | JavaScript | array_ops | advanced | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
63,642 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 6952. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(6952)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 6952.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(6952)); |
1,794,341 | kk | Java | var_decl | beginner | Java тілінде 208510 мәнімен level айнымалысын қалай жариялауға болады? | int level = 208510; | ### Instruction:
Java тілінде 208510 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 208510; |
91,990,483 | kk | Python | logic_ops | advanced | Python тилінде 1968 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1968
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1968 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1968
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
3,872,147 | ru | Java | var_decl | beginner | Как объявить переменную result со значением 734456 в Java? | int result = 734456; | ### Instruction:
Как объявить переменную result со значением 734456 в Java?
### Response:
int result = 734456; |
59,365,202 | en | JavaScript | string_ops | intermediate | Write a function that counts vowels in a text in JavaScript. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Write a function that counts vowels in a text in JavaScript.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
94,954,531 | ru | C++ | logic_ops | intermediate | Напишите на C++ функцию, определяющую, является ли число 276 простым. | public bool IsPrime() {
int n = 276;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 276 простым.
### Response:
public bool IsPrime() {
int n = 276;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
62,606,458 | 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,155,872 | kk | C# | logic_ops | advanced | C# тилінде 2037 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2037;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 2037 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2037;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
18,836,617 | 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,031,554 | en | C++ | var_decl | beginner | How to declare a variable level with value 297031 in C++? | int level = 297031; | ### Instruction:
How to declare a variable level with value 297031 in C++?
### Response:
int level = 297031; |
6,016 | kk | C# | func_def | intermediate | C# тілінде total қабылдап, оны екі еселейтін convert функциясын жаз. | static int convert(int total) {
return total * 2;
} | ### Instruction:
C# тілінде total қабылдап, оны екі еселейтін convert функциясын жаз.
### Response:
static int convert(int total) {
return total * 2;
} |
4,135,502 | en | Python | var_decl | beginner | How to declare a variable data with value 533638 in Python? | data = 533638 | ### Instruction:
How to declare a variable data with value 533638 in Python?
### Response:
data = 533638 |
4,455,596 | ru | Python | var_decl | beginner | Как объявить переменную offset со значением 751707 в Python? | offset = 751707 | ### Instruction:
Как объявить переменную offset со значением 751707 в Python?
### Response:
offset = 751707 |
38,406,110 | kk | 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);
} |
80,663,889 | ru | C# | string_ops | intermediate | Напишите на C# функцию, которая считает количество гласных букв в тексте. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Напишите на C# функцию, которая считает количество гласных букв в тексте.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
22,350,845 | 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);
} |
13,462 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 4530. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4530)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 4530.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4530)); |
16,925,196 | kk | Python | logic_ops | advanced | Python тилінде 417 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 417
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 417 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 417
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
768,266 | ru | Python | var_decl | beginner | Как объявить переменную buffer со значением 873386 в Python? | buffer = 873386 | ### Instruction:
Как объявить переменную buffer со значением 873386 в Python?
### Response:
buffer = 873386 |
99,231,598 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 2008 is a leap year in JavaScript. | function isLeap() {
let y = 2008;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2008 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2008;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
166,854 | en | C# | sum_n | intermediate | Write a function in C# that sums numbers from 1 to 9524. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(9524)); | ### Instruction:
Write a function in C# that sums numbers from 1 to 9524.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(9524)); |
3,466,286 | ru | JavaScript | var_decl | beginner | Как объявить переменную y со значением 168193 в JavaScript? | let y = 168193; | ### Instruction:
Как объявить переменную y со значением 168193 в JavaScript?
### Response:
let y = 168193; |
2,075,550 | ru | Unity | var_decl | beginner | Как объявить переменную rate со значением 288851 в Unity? | int rate = 288851; | ### Instruction:
Как объявить переменную rate со значением 288851 в Unity?
### Response:
int rate = 288851; |
13,298,896 | ru | Java | string_ops | advanced | Напишите на Java функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Java функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
44,104,983 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 1917 високосным. | public bool IsLeap() {
int y = 1917;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 1917 високосным.
### Response:
public bool IsLeap() {
int y = 1917;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
59,740,351 | en | Java | logic_ops | advanced | Write logic to check if the year 1943 is a leap year in Java. | public bool IsLeap() {
int y = 1943;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1943 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1943;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
474,511 | kk | Unity | var_decl | beginner | Unity тілінде 560462 мәнімен data айнымалысын қалай жариялауға болады? | int data = 560462; | ### Instruction:
Unity тілінде 560462 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 560462; |
1,353,434 | kk | Python | var_decl | beginner | Python тілінде 663591 мәнімен offset айнымалысын қалай жариялауға болады? | offset = 663591 | ### Instruction:
Python тілінде 663591 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
offset = 663591 |
294,894 | kk | Unity | factorial | advanced | Unity тілінде 3792 санының факториалын есептейтін функция жаз. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(3792));
} | ### Instruction:
Unity тілінде 3792 санының факториалын есептейтін функция жаз.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(3792));
} |
61,969,556 | kk | Java | string_ops | intermediate | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
2,344,497 | ru | Unity | var_decl | beginner | Как объявить переменную index со значением 271384 в Unity? | int index = 271384; | ### Instruction:
Как объявить переменную index со значением 271384 в Unity?
### Response:
int index = 271384; |
57,892 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 4625-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(4625));
} | ### Instruction:
Unity тілінде 1-ден 4625-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(4625));
} |
4,492,540 | kk | C++ | var_decl | beginner | C++ тілінде 284015 мәнімен x айнымалысын қалай жариялауға болады? | int x = 284015; | ### Instruction:
C++ тілінде 284015 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 284015; |
4,363,861 | kk | Python | var_decl | beginner | Python тілінде 760156 мәнімен amount айнымалысын қалай жариялауға болады? | amount = 760156 | ### Instruction:
Python тілінде 760156 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
amount = 760156 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.