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 |
|---|---|---|---|---|---|---|---|
26,627,229 | 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;
} |
17,053,107 | 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;
} |
527,468 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 9005. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(9005)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 9005.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(9005)); |
99,337,953 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая разворачивает список задом наперед. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
### Response:
const reverseArr = arr => arr.reverse(); |
92,020,784 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | const getMax = arr => Math.max(...arr); | ### Instruction:
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
const getMax = arr => Math.max(...arr); |
193,389 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 3348. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(3348)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 3348.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(3348)); |
83,591 | en | Java | var_decl | beginner | How to declare a variable level with value 47868 in Java? | int level = 47868; | ### Instruction:
How to declare a variable level with value 47868 in Java?
### Response:
int level = 47868; |
42,124,009 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
91,752,995 | kk | 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;
} |
4,472,087 | ru | C++ | var_decl | beginner | Как объявить переменную limit со значением 257181 в C++? | int limit = 257181; | ### Instruction:
Как объявить переменную limit со значением 257181 в C++?
### Response:
int limit = 257181; |
19,512,647 | kk | Java | logic_ops | advanced | Java тилінде 48 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 48;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 48 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 48;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,019,892 | ru | C++ | var_decl | beginner | Как объявить переменную timer со значением 846544 в C++? | int timer = 846544; | ### Instruction:
Как объявить переменную timer со значением 846544 в C++?
### Response:
int timer = 846544; |
1,625,884 | kk | Python | var_decl | beginner | Python тілінде 620906 мәнімен index айнымалысын қалай жариялауға болады? | index = 620906 | ### Instruction:
Python тілінде 620906 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
index = 620906 |
653,959 | ru | C# | var_decl | beginner | Как объявить переменную data со значением 770504 в C#? | int data = 770504; | ### Instruction:
Как объявить переменную data со значением 770504 в C#?
### Response:
int data = 770504; |
178,118 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 2028. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2028)) | ### Instruction:
Write a function in Python that calculates the factorial of 2028.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2028)) |
11,465,737 | kk | Python | array_ops | intermediate | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
84,689,134 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
4,890,143 | kk | Java | var_decl | beginner | Java тілінде 496233 мәнімен y айнымалысын қалай жариялауға болады? | int y = 496233; | ### Instruction:
Java тілінде 496233 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
int y = 496233; |
32,901,550 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 68 простым. | public bool IsPrime() {
int n = 68;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 68 простым.
### Response:
public bool IsPrime() {
int n = 68;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,443,707 | en | Python | var_decl | beginner | How to declare a variable health with value 740981 in Python? | health = 740981 | ### Instruction:
How to declare a variable health with value 740981 in Python?
### Response:
health = 740981 |
425,748 | ru | JavaScript | sum_n | intermediate | Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 8617. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(8617)); | ### Instruction:
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 8617.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(8617)); |
81,641,130 | en | Unity | array_ops | intermediate | Write a function that finds the maximum number in an array in Unity. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in Unity.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
12,135,538 | 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);
} |
63,179,249 | 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;
} |
57,148,399 | kk | C++ | string_ops | intermediate | C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
791,640 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 7133. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(7133)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 7133.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(7133)); |
3,450,679 | ru | JavaScript | var_decl | beginner | Как объявить переменную weight со значением 471472 в JavaScript? | let weight = 471472; | ### Instruction:
Как объявить переменную weight со значением 471472 в JavaScript?
### Response:
let weight = 471472; |
87,927,021 | en | Java | logic_ops | advanced | Write a function that determines if the number 257 is prime in Java. | public bool IsPrime() {
int n = 257;
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 257 is prime in Java.
### Response:
public bool IsPrime() {
int n = 257;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
49,671,729 | en | Java | logic_ops | intermediate | Write a function that determines if the number 335 is prime in Java. | public bool IsPrime() {
int n = 335;
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 335 is prime in Java.
### Response:
public bool IsPrime() {
int n = 335;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
29,240,428 | kk | Java | string_ops | advanced | Java тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Java тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
1,829,784 | kk | C# | var_decl | beginner | C# тілінде 647470 мәнімен level айнымалысын қалай жариялауға болады? | int level = 647470; | ### Instruction:
C# тілінде 647470 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 647470; |
2,733,863 | ru | JavaScript | var_decl | beginner | Как объявить переменную weight со значением 1935 в JavaScript? | let weight = 1935; | ### Instruction:
Как объявить переменную weight со значением 1935 в JavaScript?
### Response:
let weight = 1935; |
398,667 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 4884. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(4884));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 4884.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(4884));
} |
14,936,500 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 2001 is a leap year in JavaScript. | function isLeap() {
let 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 JavaScript.
### Response:
function isLeap() {
let y = 2001;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
2,807,831 | kk | Java | var_decl | beginner | Java тілінде 301062 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 301062; | ### Instruction:
Java тілінде 301062 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 301062; |
73,117,455 | en | Python | logic_ops | advanced | Write logic to check if the year 1916 is a leap year in Python. | def is_leap():
year = 1916
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1916 is a leap year in Python.
### Response:
def is_leap():
year = 1916
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
19,006,352 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 2100 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 2100;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 2100 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 2100;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
4,483,350 | kk | C# | var_decl | beginner | C# тілінде 1253 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 1253; | ### Instruction:
C# тілінде 1253 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 1253; |
36,429,482 | 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;
} |
85,616,477 | kk | Python | array_ops | intermediate | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
1,028,789 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 4511. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4511)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 4511.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(4511)); |
39,553,776 | en | Unity | logic_ops | intermediate | Write logic to check if the year 2093 is a leap year in Unity. | public bool IsLeap() {
int y = 2093;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2093 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2093;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
22,773,393 | 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;
} |
1,849,336 | en | C# | var_decl | beginner | How to declare a variable timer with value 85988 in C#? | int timer = 85988; | ### Instruction:
How to declare a variable timer with value 85988 in C#?
### Response:
int timer = 85988; |
36,968,608 | 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();
} |
3,860,082 | en | Unity | var_decl | beginner | How to declare a variable level with value 997580 in Unity? | int level = 997580; | ### Instruction:
How to declare a variable level with value 997580 in Unity?
### Response:
int level = 997580; |
71,374,912 | ru | Java | array_ops | intermediate | Напишите на Java функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Java функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
91,338,596 | kk | Unity | logic_ops | intermediate | Unity тилінде 2019 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2019;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2019 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2019;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
52,747,780 | 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();
} |
771,434 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 9971. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(9971)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 9971.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(9971)); |
5,534 | kk | Unity | factorial | advanced | Unity тілінде 3994 санының факториалын есептейтін функция жаз. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(3994));
} | ### Instruction:
Unity тілінде 3994 санының факториалын есептейтін функция жаз.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(3994));
} |
81,374,608 | ru | C# | logic_ops | advanced | Напишите на C# функцию, определяющую, является ли число 183 простым. | public bool IsPrime() {
int n = 183;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 183 простым.
### Response:
public bool IsPrime() {
int n = 183;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
98,519,426 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 254 простым. | public bool IsPrime() {
int n = 254;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 254 простым.
### Response:
public bool IsPrime() {
int n = 254;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
98,023,370 | ru | C# | logic_ops | advanced | Напишите на C# функцию, определяющую, является ли число 116 простым. | public bool IsPrime() {
int n = 116;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 116 простым.
### Response:
public bool IsPrime() {
int n = 116;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
80,234,484 | ru | C# | logic_ops | advanced | Напишите на C# функцию, определяющую, является ли число 440 простым. | public bool IsPrime() {
int n = 440;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 440 простым.
### Response:
public bool IsPrime() {
int n = 440;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
48,615,132 | kk | Python | array_ops | intermediate | 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] |
4,910,158 | kk | C# | var_decl | beginner | C# тілінде 147311 мәнімен y айнымалысын қалай жариялауға болады? | int y = 147311; | ### Instruction:
C# тілінде 147311 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
int y = 147311; |
1,105,221 | kk | Java | var_decl | beginner | Java тілінде 994466 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 994466; | ### Instruction:
Java тілінде 994466 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 994466; |
403,109 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 2561. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(2561)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 2561.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(2561)); |
2,772,347 | en | Python | var_decl | beginner | How to declare a variable limit with value 922465 in Python? | limit = 922465 | ### Instruction:
How to declare a variable limit with value 922465 in Python?
### Response:
limit = 922465 |
4,629,529 | ru | Python | var_decl | beginner | Как объявить переменную buffer со значением 695768 в Python? | buffer = 695768 | ### Instruction:
Как объявить переменную buffer со значением 695768 в Python?
### Response:
buffer = 695768 |
2,279,984 | en | Unity | var_decl | beginner | How to declare a variable timer with value 149388 in Unity? | int timer = 149388; | ### Instruction:
How to declare a variable timer with value 149388 in Unity?
### Response:
int timer = 149388; |
41,104,322 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript функцию, определяющую, является ли число 301 простым. | function isPrime() {
let n = 301;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 301 простым.
### Response:
function isPrime() {
let n = 301;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
4,407,394 | en | Unity | var_decl | beginner | How to declare a variable total with value 462299 in Unity? | int total = 462299; | ### Instruction:
How to declare a variable total with value 462299 in Unity?
### Response:
int total = 462299; |
3,256,359 | ru | C++ | var_decl | beginner | Как объявить переменную speed со значением 855344 в C++? | int speed = 855344; | ### Instruction:
Как объявить переменную speed со значением 855344 в C++?
### Response:
int speed = 855344; |
74,830,686 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 234 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 234;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 234 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 234;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
2,280,623 | ru | C# | var_decl | beginner | Как объявить переменную rate со значением 213545 в C#? | int rate = 213545; | ### Instruction:
Как объявить переменную rate со значением 213545 в C#?
### Response:
int rate = 213545; |
3,450,579 | kk | C++ | var_decl | beginner | C++ тілінде 152972 мәнімен health айнымалысын қалай жариялауға болады? | int health = 152972; | ### Instruction:
C++ тілінде 152972 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 152972; |
60,389,276 | kk | C# | array_ops | advanced | C# тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
C# тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
1,425,516 | en | JavaScript | var_decl | beginner | How to declare a variable health with value 636662 in JavaScript? | let health = 636662; | ### Instruction:
How to declare a variable health with value 636662 in JavaScript?
### Response:
let health = 636662; |
4,832,093 | en | C++ | var_decl | beginner | How to declare a variable y with value 323128 in C++? | int y = 323128; | ### Instruction:
How to declare a variable y with value 323128 in C++?
### Response:
int y = 323128; |
36,226,830 | ru | 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аеёиоуыэюя') |
67,174,134 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 142 простым. | public bool IsPrime() {
int n = 142;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 142 простым.
### Response:
public bool IsPrime() {
int n = 142;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
119,470 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 7422. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(7422)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 7422.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(7422)); |
19,818,123 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
3,870,468 | kk | C# | var_decl | beginner | C# тілінде 815956 мәнімен result айнымалысын қалай жариялауға болады? | int result = 815956; | ### Instruction:
C# тілінде 815956 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 815956; |
20,951,736 | 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;
} |
3,392,836 | en | Java | var_decl | beginner | How to declare a variable size with value 977972 in Java? | int size = 977972; | ### Instruction:
How to declare a variable size with value 977972 in Java?
### Response:
int size = 977972; |
4,196,499 | kk | C++ | var_decl | beginner | C++ тілінде 665018 мәнімен level айнымалысын қалай жариялауға болады? | int level = 665018; | ### Instruction:
C++ тілінде 665018 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 665018; |
50,527,076 | kk | Unity | string_ops | intermediate | Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
71,012,831 | 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();
} |
3,468,150 | ru | JavaScript | var_decl | beginner | Как объявить переменную speed со значением 871543 в JavaScript? | let speed = 871543; | ### Instruction:
Как объявить переменную speed со значением 871543 в JavaScript?
### Response:
let speed = 871543; |
3,015,955 | ru | C# | var_decl | beginner | Как объявить переменную level со значением 310921 в C#? | int level = 310921; | ### Instruction:
Как объявить переменную level со значением 310921 в C#?
### Response:
int level = 310921; |
3,806,549 | en | Unity | var_decl | beginner | How to declare a variable buffer with value 503419 in Unity? | int buffer = 503419; | ### Instruction:
How to declare a variable buffer with value 503419 in Unity?
### Response:
int buffer = 503419; |
987,872 | ru | JavaScript | var_decl | beginner | Как объявить переменную y со значением 152030 в JavaScript? | let y = 152030; | ### Instruction:
Как объявить переменную y со значением 152030 в JavaScript?
### Response:
let y = 152030; |
13,580 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 137. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(137)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 137.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(137)); |
47,046,308 | kk | Python | logic_ops | advanced | 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) |
53,661,995 | 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;
} |
95,028,442 | en | Unity | logic_ops | intermediate | Write a function that determines if the number 251 is prime in Unity. | public bool IsPrime() {
int n = 251;
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 251 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 251;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
84,445,508 | en | Unity | logic_ops | intermediate | Write logic to check if the year 2028 is a leap year in Unity. | public bool IsLeap() {
int y = 2028;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2028 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2028;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,568,161 | ru | C# | var_decl | beginner | Как объявить переменную x со значением 983044 в C#? | int x = 983044; | ### Instruction:
Как объявить переменную x со значением 983044 в C#?
### Response:
int x = 983044; |
93,806,242 | kk | C++ | string_ops | intermediate | C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
31,386,278 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
79,747,016 | 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;
} |
80,566,501 | ru | C# | array_ops | intermediate | Напишите на C# функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на C# функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
189,341 | en | C# | var_decl | beginner | How to declare a variable offset with value 274825 in C#? | int offset = 274825; | ### Instruction:
How to declare a variable offset with value 274825 in C#?
### Response:
int offset = 274825; |
15,078,362 | en | Java | array_ops | intermediate | 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;
} |
3,488,781 | en | C++ | var_decl | beginner | How to declare a variable data with value 921901 in C++? | int data = 921901; | ### Instruction:
How to declare a variable data with value 921901 in C++?
### Response:
int data = 921901; |
70,093,114 | 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;
} |
322,441 | kk | Python | var_decl | beginner | Python тілінде 447552 мәнімен data айнымалысын қалай жариялауға болады? | data = 447552 | ### Instruction:
Python тілінде 447552 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
data = 447552 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.