id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
4,392,522 | en | C++ | var_decl | beginner | How to declare a variable value with value 406846 in C++? | int value = 406846; | ### Instruction:
How to declare a variable value with value 406846 in C++?
### Response:
int value = 406846; |
4,145,498 | en | JavaScript | var_decl | beginner | How to declare a variable y with value 140698 in JavaScript? | let y = 140698; | ### Instruction:
How to declare a variable y with value 140698 in JavaScript?
### Response:
let y = 140698; |
24,728,829 | kk | Unity | logic_ops | advanced | Unity тилінде 127 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 127;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 127 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 127;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
57,538,890 | en | C++ | array_ops | advanced | Write a function that reverses a list in C++. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C++.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
14,435,005 | kk | 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;
} |
38,497,605 | ru | 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,205,859 | kk | C++ | var_decl | beginner | C++ тілінде 988349 мәнімен result айнымалысын қалай жариялауға болады? | int result = 988349; | ### Instruction:
C++ тілінде 988349 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 988349; |
2,089,175 | ru | Python | var_decl | beginner | Как объявить переменную limit со значением 301808 в Python? | limit = 301808 | ### Instruction:
Как объявить переменную limit со значением 301808 в Python?
### Response:
limit = 301808 |
75,360,224 | 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;
} |
78,524,365 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 452 простым. | public bool IsPrime() {
int n = 452;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 452 простым.
### Response:
public bool IsPrime() {
int n = 452;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
62,919,406 | 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;
} |
925,542 | ru | C# | var_decl | beginner | Как объявить переменную offset со значением 136600 в C#? | int offset = 136600; | ### Instruction:
Как объявить переменную offset со значением 136600 в C#?
### Response:
int offset = 136600; |
14,444,170 | kk | Java | string_ops | advanced | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
1,664,047 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 570478 мәнімен data айнымалысын қалай жариялауға болады? | let data = 570478; | ### Instruction:
JavaScript тілінде 570478 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
let data = 570478; |
82,461,450 | kk | Unity | logic_ops | advanced | Unity тилінде 2004 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2004;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2004 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2004;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
767,692 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 889503 мәнімен value айнымалысын қалай жариялауға болады? | let value = 889503; | ### Instruction:
JavaScript тілінде 889503 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
let value = 889503; |
89,266,252 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 36 простым. | public bool IsPrime() {
int n = 36;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 36 простым.
### Response:
public bool IsPrime() {
int n = 36;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
46,374,711 | kk | Python | string_ops | advanced | Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
4,240,724 | ru | JavaScript | var_decl | beginner | Как объявить переменную x со значением 248065 в JavaScript? | let x = 248065; | ### Instruction:
Как объявить переменную x со значением 248065 в JavaScript?
### Response:
let x = 248065; |
66,143,306 | en | Python | logic_ops | intermediate | Write a function that determines if the number 315 is prime in Python. | def is_prime():
n = 315
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 315 is prime in Python.
### Response:
def is_prime():
n = 315
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
19,273,133 | en | C++ | string_ops | advanced | 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;
} |
37,417,858 | kk | Unity | logic_ops | intermediate | Unity тилінде 2086 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2086;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2086 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2086;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,997,876 | ru | Java | var_decl | beginner | Как объявить переменную weight со значением 606273 в Java? | int weight = 606273; | ### Instruction:
Как объявить переменную weight со значением 606273 в Java?
### Response:
int weight = 606273; |
286,186 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 1167. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1167)); | ### Instruction:
Write a function in Java that calculates the factorial of 1167.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1167)); |
1,642,935 | en | JavaScript | var_decl | beginner | How to declare a variable health with value 275840 in JavaScript? | let health = 275840; | ### Instruction:
How to declare a variable health with value 275840 in JavaScript?
### Response:
let health = 275840; |
70,363,935 | 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;
} |
94,836,748 | kk | C++ | array_ops | intermediate | C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
378,476 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 6727. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(6727)); | ### Instruction:
Write a function in Java that calculates the factorial of 6727.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(6727)); |
270,974 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 1133. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(1133)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 1133.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(1133)); |
1,524,596 | en | C++ | var_decl | beginner | How to declare a variable result with value 180704 in C++? | int result = 180704; | ### Instruction:
How to declare a variable result with value 180704 in C++?
### Response:
int result = 180704; |
25,677,238 | ru | Python | logic_ops | advanced | Напишите на Python функцию, определяющую, является ли число 191 простым. | def is_prime():
n = 191
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 191 простым.
### Response:
def is_prime():
n = 191
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
645,923 | en | C# | factorial | advanced | Write a function in C# that calculates the factorial of 7958. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(7958)); | ### Instruction:
Write a function in C# that calculates the factorial of 7958.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(7958)); |
21,588,914 | kk | Java | logic_ops | advanced | Java тилінде 1960 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1960;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1960 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1960;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,553,538 | ru | JavaScript | var_decl | beginner | Как объявить переменную value со значением 944748 в JavaScript? | let value = 944748; | ### Instruction:
Как объявить переменную value со значением 944748 в JavaScript?
### Response:
let value = 944748; |
3,663,564 | ru | Python | var_decl | beginner | Как объявить переменную rate со значением 293954 в Python? | rate = 293954 | ### Instruction:
Как объявить переменную rate со значением 293954 в Python?
### Response:
rate = 293954 |
62,435,502 | 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;
} |
2,162,585 | kk | Python | var_decl | beginner | Python тілінде 269417 мәнімен timer айнымалысын қалай жариялауға болады? | timer = 269417 | ### Instruction:
Python тілінде 269417 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
timer = 269417 |
1,465,668 | kk | Python | var_decl | beginner | Python тілінде 922853 мәнімен rate айнымалысын қалай жариялауға болады? | rate = 922853 | ### Instruction:
Python тілінде 922853 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
rate = 922853 |
84,773,919 | 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;
} |
50,724,698 | kk | C++ | logic_ops | advanced | C++ тилінде 2070 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2070;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2070 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2070;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
82,837,233 | 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;
} |
13,305,437 | kk | C# | logic_ops | intermediate | C# тилінде 1923 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1923;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1923 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1923;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,277,095 | en | Java | var_decl | beginner | How to declare a variable size with value 633500 in Java? | int size = 633500; | ### Instruction:
How to declare a variable size with value 633500 in Java?
### Response:
int size = 633500; |
70,416,149 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая разворачивает список задом наперед. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
### Response:
const reverseArr = arr => arr.reverse(); |
56,178,547 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
2,071,593 | ru | JavaScript | var_decl | beginner | Как объявить переменную result со значением 446902 в JavaScript? | let result = 446902; | ### Instruction:
Как объявить переменную result со значением 446902 в JavaScript?
### Response:
let result = 446902; |
50,765,273 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 1905 високосным. | public bool IsLeap() {
int y = 1905;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 1905 високосным.
### Response:
public bool IsLeap() {
int y = 1905;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,334,041 | en | C++ | var_decl | beginner | How to declare a variable index with value 553797 in C++? | int index = 553797; | ### Instruction:
How to declare a variable index with value 553797 in C++?
### Response:
int index = 553797; |
654,293 | ru | Python | var_decl | beginner | Как объявить переменную level со значением 860763 в Python? | level = 860763 | ### Instruction:
Как объявить переменную level со значением 860763 в Python?
### Response:
level = 860763 |
87,537,602 | 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();
} |
97,829,977 | 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(); |
60,676,745 | ru | C++ | string_ops | advanced | Напишите на C++ функцию, которая считает количество гласных букв в тексте. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Напишите на C++ функцию, которая считает количество гласных букв в тексте.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
61,381,805 | kk | Python | array_ops | advanced | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
57,643,290 | en | Unity | logic_ops | advanced | Write a function that determines if the number 55 is prime in Unity. | public bool IsPrime() {
int n = 55;
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 55 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 55;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
847,794 | en | Java | var_decl | beginner | How to declare a variable index with value 326811 in Java? | int index = 326811; | ### Instruction:
How to declare a variable index with value 326811 in Java?
### Response:
int index = 326811; |
61,293,965 | 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;
} |
11,192,856 | 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(); |
71,031,564 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая переводит строку в верхний регистр. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
### Response:
const toUpper = s => s.toUpperCase(); |
11,253,309 | 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;
} |
2,181,709 | en | C# | var_decl | beginner | How to declare a variable index with value 22006 in C#? | int index = 22006; | ### Instruction:
How to declare a variable index with value 22006 in C#?
### Response:
int index = 22006; |
23,206,393 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 221 простым. | def is_prime():
n = 221
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 221 простым.
### Response:
def is_prime():
n = 221
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
75,616,641 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 2066 is a leap year in JavaScript. | function isLeap() {
let y = 2066;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2066 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2066;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
3,762,354 | en | Unity | var_decl | beginner | How to declare a variable result with value 262211 in Unity? | int result = 262211; | ### Instruction:
How to declare a variable result with value 262211 in Unity?
### Response:
int result = 262211; |
29,317,049 | kk | 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);
} |
33,727,053 | kk | Python | string_ops | advanced | Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
299,240 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 6737. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(6737)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 6737.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(6737)); |
3,201,922 | ru | Java | var_decl | beginner | Как объявить переменную rate со значением 230974 в Java? | int rate = 230974; | ### Instruction:
Как объявить переменную rate со значением 230974 в Java?
### Response:
int rate = 230974; |
3,587,826 | kk | C++ | var_decl | beginner | C++ тілінде 841559 мәнімен size айнымалысын қалай жариялауға болады? | int size = 841559; | ### Instruction:
C++ тілінде 841559 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 841559; |
816,444 | ru | Python | sum_n | intermediate | Напиши функцию на Python, которая считает сумму чисел от 1 до 4144. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(4144)) | ### Instruction:
Напиши функцию на Python, которая считает сумму чисел от 1 до 4144.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(4144)) |
727,322 | ru | JavaScript | var_decl | beginner | Как объявить переменную amount со значением 228317 в JavaScript? | let amount = 228317; | ### Instruction:
Как объявить переменную amount со значением 228317 в JavaScript?
### Response:
let amount = 228317; |
76,493,745 | 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();
} |
67,568,954 | 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] |
37,538,130 | kk | C# | logic_ops | advanced | C# тилінде 466 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 466;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 466 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 466;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
411,059 | ru | Python | sum_n | intermediate | Напиши функцию на Python, которая считает сумму чисел от 1 до 5081. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(5081)) | ### Instruction:
Напиши функцию на Python, которая считает сумму чисел от 1 до 5081.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(5081)) |
2,738,408 | ru | Python | var_decl | beginner | Как объявить переменную health со значением 607029 в Python? | health = 607029 | ### Instruction:
Как объявить переменную health со значением 607029 в Python?
### Response:
health = 607029 |
47,429,985 | kk | Java | logic_ops | advanced | Java тилінде 66 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 66;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 66 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 66;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
58,658,292 | kk | 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;
} |
97,655,928 | en | Python | logic_ops | intermediate | Write a function that determines if the number 420 is prime in Python. | def is_prime():
n = 420
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 420 is prime in Python.
### Response:
def is_prime():
n = 420
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
98,367,780 | en | JavaScript | string_ops | intermediate | Write a function that checks if a string is a palindrome in JavaScript. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Write a function that checks if a string is a palindrome in JavaScript.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
318,839 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 2485. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(2485)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 2485.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(2485)); |
1,061,152 | en | C# | var_decl | beginner | How to declare a variable data with value 829102 in C#? | int data = 829102; | ### Instruction:
How to declare a variable data with value 829102 in C#?
### Response:
int data = 829102; |
76,856,986 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript функцию, определяющую, является ли число 375 простым. | function isPrime() {
let n = 375;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 375 простым.
### Response:
function isPrime() {
let n = 375;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
15,348,215 | 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();
} |
38,589,774 | 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;
} |
49,104,847 | kk | Unity | string_ops | advanced | Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
145,976 | kk | JavaScript | sum_n | intermediate | JavaScript тілінде 1-ден 799-ге дейінгі сандардың қосындысын есептейтін функция жаз. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(799)); | ### Instruction:
JavaScript тілінде 1-ден 799-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(799)); |
20,521,469 | en | Java | string_ops | intermediate | 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;
} |
92,105,813 | en | Unity | logic_ops | intermediate | Write logic to check if the year 1920 is a leap year in Unity. | public bool IsLeap() {
int y = 1920;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1920 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1920;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
87,000,797 | kk | Python | array_ops | intermediate | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
2,624,638 | en | JavaScript | var_decl | beginner | How to declare a variable size with value 564508 in JavaScript? | let size = 564508; | ### Instruction:
How to declare a variable size with value 564508 in JavaScript?
### Response:
let size = 564508; |
688,114 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 2143. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(2143));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 2143.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(2143));
} |
58,571,539 | en | Unity | array_ops | advanced | Write a function that filters only even numbers from a list in Unity. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Unity.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
22,764,321 | kk | Java | array_ops | advanced | 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;
} |
95,875,311 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая переводит строку в верхний регистр. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
### Response:
const toUpper = s => s.toUpperCase(); |
2,702,560 | ru | JavaScript | var_decl | beginner | Как объявить переменную index со значением 182078 в JavaScript? | let index = 182078; | ### Instruction:
Как объявить переменную index со значением 182078 в JavaScript?
### Response:
let index = 182078; |
15,040,373 | 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;
} |
4,130,709 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 183329 мәнімен offset айнымалысын қалай жариялауға болады? | let offset = 183329; | ### Instruction:
JavaScript тілінде 183329 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
let offset = 183329; |
421,225 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 4179. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(4179) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 4179.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(4179) << std::endl; |
4,114,760 | kk | C# | var_decl | beginner | C# тілінде 158801 мәнімен level айнымалысын қалай жариялауға болады? | int level = 158801; | ### Instruction:
C# тілінде 158801 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 158801; |
3,905,768 | ru | Unity | var_decl | beginner | Как объявить переменную value со значением 915993 в Unity? | int value = 915993; | ### Instruction:
Как объявить переменную value со значением 915993 в Unity?
### Response:
int value = 915993; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.