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 |
|---|---|---|---|---|---|---|---|
4,855,119 | en | Java | var_decl | beginner | How to declare a variable y with value 938621 in Java? | int y = 938621; | ### Instruction:
How to declare a variable y with value 938621 in Java?
### Response:
int y = 938621; |
98,321,543 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
2,008,278 | en | C# | var_decl | beginner | How to declare a variable rate with value 548537 in C#? | int rate = 548537; | ### Instruction:
How to declare a variable rate with value 548537 in C#?
### Response:
int rate = 548537; |
2,894,853 | kk | Unity | var_decl | beginner | Unity тілінде 974538 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 974538; | ### Instruction:
Unity тілінде 974538 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 974538; |
21,540,574 | 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();
} |
75,380,584 | 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();
} |
34,349,884 | kk | Java | logic_ops | advanced | Java тилінде 2095 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2095;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 2095 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2095;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
45,392,715 | 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,773,798 | kk | C# | var_decl | beginner | C# тілінде 735558 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 735558; | ### Instruction:
C# тілінде 735558 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 735558; |
36,065,845 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая переводит строку в верхний регистр. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
### Response:
const toUpper = s => s.toUpperCase(); |
45,593,590 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
14,105,389 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 81 is prime in C++. | public bool IsPrime() {
int n = 81;
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 81 is prime in C++.
### Response:
public bool IsPrime() {
int n = 81;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,048,738 | ru | C++ | var_decl | beginner | Как объявить переменную level со значением 174524 в C++? | int level = 174524; | ### Instruction:
Как объявить переменную level со значением 174524 в C++?
### Response:
int level = 174524; |
44,400,567 | ru | 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;
} |
87,107,981 | ru | C# | logic_ops | advanced | Напишите на C# логику проверки, является ли год 1987 високосным. | public bool IsLeap() {
int y = 1987;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1987 високосным.
### Response:
public bool IsLeap() {
int y = 1987;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
81,942,407 | 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;
} |
54,651,889 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 1958 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 1958;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 1958 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 1958;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
3,126,954 | kk | C# | var_decl | beginner | C# тілінде 982581 мәнімен index айнымалысын қалай жариялауға болады? | int index = 982581; | ### Instruction:
C# тілінде 982581 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 982581; |
2,086,481 | en | C# | var_decl | beginner | How to declare a variable count with value 898221 in C#? | int count = 898221; | ### Instruction:
How to declare a variable count with value 898221 in C#?
### Response:
int count = 898221; |
1,757,612 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 551199 мәнімен y айнымалысын қалай жариялауға болады? | let y = 551199; | ### Instruction:
JavaScript тілінде 551199 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
let y = 551199; |
3,669,571 | kk | Unity | var_decl | beginner | Unity тілінде 159468 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 159468; | ### Instruction:
Unity тілінде 159468 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 159468; |
56,612,799 | 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();
} |
31,018,503 | 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;
} |
432,669 | kk | C++ | sum_n | intermediate | C++ тілінде 1-ден 784-ге дейінгі сандардың қосындысын есептейтін функция жаз. | 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(784) << std::endl; | ### Instruction:
C++ тілінде 1-ден 784-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### 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(784) << std::endl; |
52,326,389 | en | Python | string_ops | advanced | Write a function that checks if a string is a palindrome in Python. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Write a function that checks if a string is a palindrome in Python.
### Response:
def is_palindrome(s):
return s == s[::-1] |
49,874,456 | 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(); |
23,251,236 | en | Python | string_ops | advanced | 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() |
279,296 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 9086. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(9086)) | ### Instruction:
Write a function in Python that calculates the factorial of 9086.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(9086)) |
584,925 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 1457. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(1457)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 1457.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(1457)); |
88,292,429 | kk | C++ | logic_ops | advanced | C++ тилінде 2019 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2019;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2019 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2019;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,064,353 | ru | C++ | var_decl | beginner | Как объявить переменную weight со значением 947611 в C++? | int weight = 947611; | ### Instruction:
Как объявить переменную weight со значением 947611 в C++?
### Response:
int weight = 947611; |
83,457,757 | ru | Unity | array_ops | intermediate | Напишите на Unity функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Unity функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
72,001,826 | kk | Java | logic_ops | advanced | Java тилінде 395 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 395;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 395 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 395;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,370,145 | ru | C++ | var_decl | beginner | Как объявить переменную weight со значением 191100 в C++? | int weight = 191100; | ### Instruction:
Как объявить переменную weight со значением 191100 в C++?
### Response:
int weight = 191100; |
969,204 | en | Python | var_decl | beginner | How to declare a variable data with value 208514 in Python? | data = 208514 | ### Instruction:
How to declare a variable data with value 208514 in Python?
### Response:
data = 208514 |
4,061,087 | ru | Unity | var_decl | beginner | Как объявить переменную y со значением 410795 в Unity? | int y = 410795; | ### Instruction:
Как объявить переменную y со значением 410795 в Unity?
### Response:
int y = 410795; |
31,914,612 | kk | Unity | logic_ops | intermediate | Unity тилінде 2028 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2028;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2028 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2028;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
91,309,894 | 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;
} |
3,370,245 | en | JavaScript | var_decl | beginner | How to declare a variable value with value 691055 in JavaScript? | let value = 691055; | ### Instruction:
How to declare a variable value with value 691055 in JavaScript?
### Response:
let value = 691055; |
15,912,049 | 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; |
25,378,434 | 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;
} |
10,585,233 | en | Java | array_ops | intermediate | 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;
} |
78,754,183 | 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;
} |
575,105 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 7315. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(7315));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 7315.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(7315));
} |
79,670,114 | ru | Java | logic_ops | intermediate | Напишите на Java логику проверки, является ли год 1952 високосным. | public bool IsLeap() {
int y = 1952;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 1952 високосным.
### Response:
public bool IsLeap() {
int y = 1952;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
21,119,070 | 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] |
74,067,016 | en | C++ | string_ops | intermediate | Write a function that counts vowels in a text in C++. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in C++.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
92,182,575 | en | Unity | logic_ops | intermediate | Write logic to check if the year 2004 is a leap year in Unity. | public bool IsLeap() {
int y = 2004;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2004 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2004;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
89,241,469 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
33,392,269 | en | C# | logic_ops | advanced | Write a function that determines if the number 136 is prime in C#. | public bool IsPrime() {
int n = 136;
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 136 is prime in C#.
### Response:
public bool IsPrime() {
int n = 136;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
127,907 | kk | JavaScript | factorial | advanced | JavaScript тілінде 1701 санының факториалын есептейтін функция жаз. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1701)); | ### Instruction:
JavaScript тілінде 1701 санының факториалын есептейтін функция жаз.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1701)); |
48,757,024 | en | Python | logic_ops | intermediate | Write logic to check if the year 1980 is a leap year in Python. | def is_leap():
year = 1980
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1980 is a leap year in Python.
### Response:
def is_leap():
year = 1980
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
973,102 | ru | Python | var_decl | beginner | Как объявить переменную buffer со значением 739868 в Python? | buffer = 739868 | ### Instruction:
Как объявить переменную buffer со значением 739868 в Python?
### Response:
buffer = 739868 |
4,924,236 | en | Java | var_decl | beginner | How to declare a variable index with value 920659 in Java? | int index = 920659; | ### Instruction:
How to declare a variable index with value 920659 in Java?
### Response:
int index = 920659; |
13,826,634 | ru | C++ | string_ops | intermediate | Напишите на C++ функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на C++ функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
801,931 | en | C# | var_decl | beginner | How to declare a variable buffer with value 660382 in C#? | int buffer = 660382; | ### Instruction:
How to declare a variable buffer with value 660382 in C#?
### Response:
int buffer = 660382; |
386,021 | ru | Python | factorial | advanced | Напиши функцию на Python, которая вычисляет факториал числа 7893. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(7893)) | ### Instruction:
Напиши функцию на Python, которая вычисляет факториал числа 7893.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(7893)) |
34,941,137 | ru | C++ | string_ops | intermediate | Напишите на 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;
} |
95,022,577 | en | Python | logic_ops | intermediate | Write a function that determines if the number 483 is prime in Python. | def is_prime():
n = 483
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 483 is prime in Python.
### Response:
def is_prime():
n = 483
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
14,837,143 | 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,498,942 | kk | Python | var_decl | beginner | Python тілінде 945209 мәнімен health айнымалысын қалай жариялауға болады? | health = 945209 | ### Instruction:
Python тілінде 945209 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
health = 945209 |
1,854,332 | kk | Python | var_decl | beginner | Python тілінде 859952 мәнімен rate айнымалысын қалай жариялауға болады? | rate = 859952 | ### Instruction:
Python тілінде 859952 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
rate = 859952 |
46,632,982 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 288 is prime in JavaScript. | function isPrime() {
let n = 288;
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 288 is prime in JavaScript.
### Response:
function isPrime() {
let n = 288;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
4,842,958 | en | Java | var_decl | beginner | How to declare a variable level with value 553560 in Java? | int level = 553560; | ### Instruction:
How to declare a variable level with value 553560 in Java?
### Response:
int level = 553560; |
218,383 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 8895. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(8895));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 8895.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(8895));
} |
87,656,403 | kk | C++ | logic_ops | advanced | C++ тилінде 2072 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2072;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2072 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2072;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
80,796 | kk | Java | sum_n | intermediate | Java тілінде 1-ден 1600-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(1600)); | ### Instruction:
Java тілінде 1-ден 1600-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(1600)); |
30,428,222 | kk | C# | logic_ops | intermediate | C# тилінде 309 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 309;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 309 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 309;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
89,230,647 | 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() |
47,109,381 | 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);
} |
25,649,295 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
22,493,082 | en | C++ | logic_ops | advanced | Write a function that determines if the number 293 is prime in C++. | public bool IsPrime() {
int n = 293;
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 293 is prime in C++.
### Response:
public bool IsPrime() {
int n = 293;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,917,474 | ru | Python | var_decl | beginner | Как объявить переменную weight со значением 611260 в Python? | weight = 611260 | ### Instruction:
Как объявить переменную weight со значением 611260 в Python?
### Response:
weight = 611260 |
73,434,768 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 2087 is a leap year in JavaScript. | function isLeap() {
let y = 2087;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2087 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2087;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
128,254 | kk | Java | factorial | advanced | Java тілінде 7931 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7931)); | ### Instruction:
Java тілінде 7931 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7931)); |
4,626,819 | ru | JavaScript | var_decl | beginner | Как объявить переменную size со значением 617541 в JavaScript? | let size = 617541; | ### Instruction:
Как объявить переменную size со значением 617541 в JavaScript?
### Response:
let size = 617541; |
26,161,531 | en | Java | string_ops | intermediate | 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();
} |
2,823,831 | ru | C++ | var_decl | beginner | Как объявить переменную result со значением 479511 в C++? | int result = 479511; | ### Instruction:
Как объявить переменную result со значением 479511 в C++?
### Response:
int result = 479511; |
598,912 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 842395 мәнімен rate айнымалысын қалай жариялауға болады? | let rate = 842395; | ### Instruction:
JavaScript тілінде 842395 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
let rate = 842395; |
79,112,993 | 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;
} |
41,857,531 | 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;
} |
66,180,933 | 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;
} |
59,006,807 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 2037 високосным. | def is_leap():
year = 2037
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2037 високосным.
### Response:
def is_leap():
year = 2037
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
22,849,893 | 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;
} |
4,162,601 | ru | Java | var_decl | beginner | Как объявить переменную level со значением 17259 в Java? | int level = 17259; | ### Instruction:
Как объявить переменную level со значением 17259 в Java?
### Response:
int level = 17259; |
2,696,481 | en | Python | var_decl | beginner | How to declare a variable score with value 735403 in Python? | score = 735403 | ### Instruction:
How to declare a variable score with value 735403 in Python?
### Response:
score = 735403 |
2,152,698 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 654886 мәнімен value айнымалысын қалай жариялауға болады? | let value = 654886; | ### Instruction:
JavaScript тілінде 654886 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
let value = 654886; |
48,527,543 | 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;
} |
68,334,438 | kk | Python | array_ops | intermediate | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
45,192,742 | 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] |
4,807,275 | en | C# | var_decl | beginner | How to declare a variable level with value 788989 in C#? | int level = 788989; | ### Instruction:
How to declare a variable level with value 788989 in C#?
### Response:
int level = 788989; |
24,328,602 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
22,189,883 | 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;
} |
83,659,229 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
2,386,816 | ru | C# | var_decl | beginner | Как объявить переменную index со значением 781337 в C#? | int index = 781337; | ### Instruction:
Как объявить переменную index со значением 781337 в C#?
### Response:
int index = 781337; |
67,893,137 | en | Python | string_ops | advanced | 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() |
26,679,825 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 2009 високосным. | def is_leap():
year = 2009
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2009 високосным.
### Response:
def is_leap():
year = 2009
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
58,619,713 | 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;
} |
22,946,755 | 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; |
2,361,442 | ru | C# | var_decl | beginner | Как объявить переменную limit со значением 975323 в C#? | int limit = 975323; | ### Instruction:
Как объявить переменную limit со значением 975323 в C#?
### Response:
int limit = 975323; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.