id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
66,320,462 | kk | C++ | array_ops | advanced | 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;
} |
1,208,140 | kk | C++ | var_decl | beginner | C++ тілінде 102696 мәнімен size айнымалысын қалай жариялауға болады? | int size = 102696; | ### Instruction:
C++ тілінде 102696 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 102696; |
87,189,864 | ru | 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);
} |
35,498,519 | kk | Unity | array_ops | advanced | Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
1,098,534 | kk | C# | var_decl | beginner | C# тілінде 847314 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 847314; | ### Instruction:
C# тілінде 847314 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 847314; |
4,889,779 | ru | JavaScript | var_decl | beginner | Как объявить переменную amount со значением 986239 в JavaScript? | let amount = 986239; | ### Instruction:
Как объявить переменную amount со значением 986239 в JavaScript?
### Response:
let amount = 986239; |
32,491,006 | en | Java | array_ops | advanced | Write a function that filters only even numbers from a list in Java. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Java.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
22,754,580 | kk | Unity | logic_ops | intermediate | Unity тилінде 272 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 272;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 272 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 272;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
76,991,277 | 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) |
185,029 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 979. | 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(979) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 979.
### 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(979) << std::endl; |
3,618,309 | ru | Python | var_decl | beginner | Как объявить переменную buffer со значением 605644 в Python? | buffer = 605644 | ### Instruction:
Как объявить переменную buffer со значением 605644 в Python?
### Response:
buffer = 605644 |
14,648,878 | kk | Python | logic_ops | intermediate | Python тилінде 167 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 167
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 167 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 167
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
28,576,693 | 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();
} |
49,000,566 | 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] |
1,804,865 | ru | Unity | var_decl | beginner | Как объявить переменную x со значением 973230 в Unity? | int x = 973230; | ### Instruction:
Как объявить переменную x со значением 973230 в Unity?
### Response:
int x = 973230; |
76,296,085 | kk | 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;
} |
12,555,781 | 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;
} |
16,076,434 | en | Unity | logic_ops | intermediate | Write a function that determines if the number 459 is prime in Unity. | public bool IsPrime() {
int n = 459;
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 459 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 459;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
20,354,990 | 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;
} |
55,133,314 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
98,871,568 | en | Java | string_ops | intermediate | 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;
} |
89,790,616 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
2,561,945 | ru | Java | var_decl | beginner | Как объявить переменную value со значением 695364 в Java? | int value = 695364; | ### Instruction:
Как объявить переменную value со значением 695364 в Java?
### Response:
int value = 695364; |
2,518,344 | ru | JavaScript | var_decl | beginner | Как объявить переменную result со значением 507785 в JavaScript? | let result = 507785; | ### Instruction:
Как объявить переменную result со значением 507785 в JavaScript?
### Response:
let result = 507785; |
37,924,900 | en | C++ | logic_ops | intermediate | Write logic to check if the year 2007 is a leap year in C++. | public bool IsLeap() {
int y = 2007;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2007 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2007;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,619,689 | ru | JavaScript | var_decl | beginner | Как объявить переменную offset со значением 305067 в JavaScript? | let offset = 305067; | ### Instruction:
Как объявить переменную offset со значением 305067 в JavaScript?
### Response:
let offset = 305067; |
469,076 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 448005 мәнімен timer айнымалысын қалай жариялауға болады? | let timer = 448005; | ### Instruction:
JavaScript тілінде 448005 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
let timer = 448005; |
75,294,314 | 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();
} |
46,752,078 | kk | C++ | array_ops | advanced | C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
58,075,717 | kk | Python | string_ops | advanced | Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
def is_palindrome(s):
return s == s[::-1] |
81,297,161 | 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;
} |
81,334,681 | 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;
} |
3,405,210 | en | C++ | var_decl | beginner | How to declare a variable score with value 368366 in C++? | int score = 368366; | ### Instruction:
How to declare a variable score with value 368366 in C++?
### Response:
int score = 368366; |
98,265,145 | kk | Java | string_ops | intermediate | Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
69,273,892 | en | Unity | array_ops | advanced | 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;
} |
368,834 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 1812. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(1812));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 1812.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(1812));
} |
19,781,948 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 1988 високосным. | def is_leap():
year = 1988
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1988 високосным.
### Response:
def is_leap():
year = 1988
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
75,629,685 | 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;
} |
74,493,077 | 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;
} |
499,111 | ru | Python | factorial | advanced | Напиши функцию на Python, которая вычисляет факториал числа 2732. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2732)) | ### Instruction:
Напиши функцию на Python, которая вычисляет факториал числа 2732.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2732)) |
18,825,713 | kk | JavaScript | array_ops | advanced | JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
82,414,128 | en | C++ | string_ops | advanced | Write a function that converts a string to uppercase in C++. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in C++.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
91,065,136 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 356 is prime in C++. | public bool IsPrime() {
int n = 356;
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 356 is prime in C++.
### Response:
public bool IsPrime() {
int n = 356;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
335,233 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 8249. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8249)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 8249.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8249)); |
1,478,038 | kk | Java | var_decl | beginner | Java тілінде 120958 мәнімен value айнымалысын қалай жариялауға болады? | int value = 120958; | ### Instruction:
Java тілінде 120958 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 120958; |
60,330,009 | 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;
} |
21,307,097 | 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;
} |
666,558 | en | C++ | var_decl | beginner | How to declare a variable offset with value 526120 in C++? | int offset = 526120; | ### Instruction:
How to declare a variable offset with value 526120 in C++?
### Response:
int offset = 526120; |
68,606,434 | en | JavaScript | array_ops | advanced | 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(); |
40,371,759 | kk | Unity | string_ops | advanced | Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
2,624,724 | kk | Unity | var_decl | beginner | Unity тілінде 963947 мәнімен x айнымалысын қалай жариялауға болады? | int x = 963947; | ### Instruction:
Unity тілінде 963947 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 963947; |
1,538,524 | en | Python | var_decl | beginner | How to declare a variable data with value 290609 in Python? | data = 290609 | ### Instruction:
How to declare a variable data with value 290609 in Python?
### Response:
data = 290609 |
41,248,300 | en | Python | string_ops | intermediate | Write a function that counts vowels in a text in Python. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Write a function that counts vowels in a text in Python.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
31,298,149 | 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;
} |
69,739,103 | en | C# | logic_ops | intermediate | Write logic to check if the year 1911 is a leap year in C#. | public bool IsLeap() {
int y = 1911;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1911 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 1911;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
69,458,909 | en | C# | logic_ops | intermediate | Write logic to check if the year 2001 is a leap year in C#. | public bool IsLeap() {
int y = 2001;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2001 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2001;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
59,869,695 | kk | Python | array_ops | advanced | Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
580,578 | en | Python | var_decl | beginner | How to declare a variable index with value 714214 in Python? | index = 714214 | ### Instruction:
How to declare a variable index with value 714214 in Python?
### Response:
index = 714214 |
12,899,619 | en | Python | array_ops | advanced | Write a function that filters only even numbers from a list in Python. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Write a function that filters only even numbers from a list in Python.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
3,003,354 | ru | Python | var_decl | beginner | Как объявить переменную index со значением 895851 в Python? | index = 895851 | ### Instruction:
Как объявить переменную index со значением 895851 в Python?
### Response:
index = 895851 |
89,188,820 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 83 is prime in C++. | public bool IsPrime() {
int n = 83;
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 83 is prime in C++.
### Response:
public bool IsPrime() {
int n = 83;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
30,820,731 | 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);
} |
3,801,766 | kk | C++ | var_decl | beginner | C++ тілінде 576315 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 576315; | ### Instruction:
C++ тілінде 576315 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 576315; |
55,414,003 | kk | C# | array_ops | advanced | C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
37,458,284 | kk | Java | array_ops | advanced | Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
510,779 | kk | C# | var_decl | beginner | C# тілінде 287438 мәнімен health айнымалысын қалай жариялауға болады? | int health = 287438; | ### Instruction:
C# тілінде 287438 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 287438; |
460,929 | ru | Unity | var_decl | beginner | Как объявить переменную amount со значением 581375 в Unity? | int amount = 581375; | ### Instruction:
Как объявить переменную amount со значением 581375 в Unity?
### Response:
int amount = 581375; |
3,060,592 | ru | C# | var_decl | beginner | Как объявить переменную total со значением 71395 в C#? | int total = 71395; | ### Instruction:
Как объявить переменную total со значением 71395 в C#?
### Response:
int total = 71395; |
383,418 | kk | Python | factorial | advanced | Python тілінде 6380 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(6380)) | ### Instruction:
Python тілінде 6380 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(6380)) |
98,385,549 | kk | JavaScript | array_ops | advanced | JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
82,318,319 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 2085 високосным. | public bool IsLeap() {
int y = 2085;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2085 високосным.
### Response:
public bool IsLeap() {
int y = 2085;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
588,595 | ru | C# | sum_n | intermediate | Напиши функцию на C#, которая считает сумму чисел от 1 до 1072. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(1072)); | ### Instruction:
Напиши функцию на C#, которая считает сумму чисел от 1 до 1072.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(1072)); |
93,323,872 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 431 is prime in JavaScript. | function isPrime() {
let n = 431;
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 431 is prime in JavaScript.
### Response:
function isPrime() {
let n = 431;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
89,133,921 | en | JavaScript | string_ops | advanced | Write a function that converts a string to uppercase in JavaScript. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Write a function that converts a string to uppercase in JavaScript.
### Response:
const toUpper = s => s.toUpperCase(); |
1,773,065 | en | C++ | var_decl | beginner | How to declare a variable index with value 604190 in C++? | int index = 604190; | ### Instruction:
How to declare a variable index with value 604190 in C++?
### Response:
int index = 604190; |
1,314,838 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 9220. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9220)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 9220.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9220)); |
511,400 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 485564 мәнімен offset айнымалысын қалай жариялауға болады? | let offset = 485564; | ### Instruction:
JavaScript тілінде 485564 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
let offset = 485564; |
3,023,062 | en | C++ | var_decl | beginner | How to declare a variable data with value 912906 in C++? | int data = 912906; | ### Instruction:
How to declare a variable data with value 912906 in C++?
### Response:
int data = 912906; |
3,933,797 | ru | Java | var_decl | beginner | Как объявить переменную weight со значением 685635 в Java? | int weight = 685635; | ### Instruction:
Как объявить переменную weight со значением 685635 в Java?
### Response:
int weight = 685635; |
2,340,498 | en | C++ | var_decl | beginner | How to declare a variable total with value 453605 in C++? | int total = 453605; | ### Instruction:
How to declare a variable total with value 453605 in C++?
### Response:
int total = 453605; |
70,581,794 | kk | Unity | logic_ops | intermediate | Unity тилінде 2046 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2046;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2046 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2046;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
290,226 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 4494. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(4494)); | ### Instruction:
Write a function in Java that calculates the factorial of 4494.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(4494)); |
326,385 | en | C# | var_decl | beginner | How to declare a variable score with value 508767 in C#? | int score = 508767; | ### Instruction:
How to declare a variable score with value 508767 in C#?
### Response:
int score = 508767; |
3,375,762 | en | JavaScript | var_decl | beginner | How to declare a variable score with value 820500 in JavaScript? | let score = 820500; | ### Instruction:
How to declare a variable score with value 820500 in JavaScript?
### Response:
let score = 820500; |
397,744 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 6611. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(6611)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 6611.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(6611)); |
54,942,445 | 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;
} |
52,192,252 | 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;
} |
572,557 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 2282. | 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(2282) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 2282.
### 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(2282) << std::endl; |
1,756,005 | ru | JavaScript | var_decl | beginner | Как объявить переменную limit со значением 238333 в JavaScript? | let limit = 238333; | ### Instruction:
Как объявить переменную limit со значением 238333 в JavaScript?
### Response:
let limit = 238333; |
4,636,503 | en | C++ | var_decl | beginner | How to declare a variable speed with value 908982 in C++? | int speed = 908982; | ### Instruction:
How to declare a variable speed with value 908982 in C++?
### Response:
int speed = 908982; |
1,620,867 | kk | Python | var_decl | beginner | Python тілінде 102869 мәнімен level айнымалысын қалай жариялауға болады? | level = 102869 | ### Instruction:
Python тілінде 102869 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
level = 102869 |
36,773,356 | 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);
} |
88,657,957 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
51,287,755 | 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;
} |
68,693,515 | 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; |
2,144,189 | kk | Unity | var_decl | beginner | Unity тілінде 398970 мәнімен count айнымалысын қалай жариялауға болады? | int count = 398970; | ### Instruction:
Unity тілінде 398970 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 398970; |
1,423,268 | kk | Java | var_decl | beginner | Java тілінде 939114 мәнімен data айнымалысын қалай жариялауға болады? | int data = 939114; | ### Instruction:
Java тілінде 939114 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 939114; |
81,645,470 | kk | Python | logic_ops | advanced | Python тилінде 245 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 245
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 245 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 245
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
4,447,107 | en | Python | var_decl | beginner | How to declare a variable level with value 379217 in Python? | level = 379217 | ### Instruction:
How to declare a variable level with value 379217 in Python?
### Response:
level = 379217 |
82,211,237 | en | JavaScript | string_ops | intermediate | Write a function that converts a string to uppercase in JavaScript. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Write a function that converts a string to uppercase in JavaScript.
### Response:
const toUpper = s => s.toUpperCase(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.