id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
35,120,454 | 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); |
32,443,822 | en | JavaScript | array_ops | advanced | Write a function that finds the maximum number in an array in JavaScript. | const getMax = arr => Math.max(...arr); | ### Instruction:
Write a function that finds the maximum number in an array in JavaScript.
### Response:
const getMax = arr => Math.max(...arr); |
83,428,344 | 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);
} |
83,503,213 | 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;
} |
88,573,474 | 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;
} |
68,306,935 | kk | Python | logic_ops | intermediate | Python тилінде 1961 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1961
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1961 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1961
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
3,979,820 | en | C# | var_decl | beginner | How to declare a variable offset with value 118094 in C#? | int offset = 118094; | ### Instruction:
How to declare a variable offset with value 118094 in C#?
### Response:
int offset = 118094; |
91,928,325 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 2082 високосным. | public bool IsLeap() {
int y = 2082;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2082 високосным.
### Response:
public bool IsLeap() {
int y = 2082;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
84,458,461 | en | Unity | logic_ops | advanced | Write logic to check if the year 2029 is a leap year in Unity. | public bool IsLeap() {
int y = 2029;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2029 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2029;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,094,913 | ru | Unity | var_decl | beginner | Как объявить переменную timer со значением 210256 в Unity? | int timer = 210256; | ### Instruction:
Как объявить переменную timer со значением 210256 в Unity?
### Response:
int timer = 210256; |
3,635,084 | ru | C++ | var_decl | beginner | Как объявить переменную offset со значением 941101 в C++? | int offset = 941101; | ### Instruction:
Как объявить переменную offset со значением 941101 в C++?
### Response:
int offset = 941101; |
71,291,566 | en | Unity | array_ops | intermediate | Write a function that reverses a list in Unity. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Unity.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
4,442,345 | ru | Python | var_decl | beginner | Как объявить переменную timer со значением 16548 в Python? | timer = 16548 | ### Instruction:
Как объявить переменную timer со значением 16548 в Python?
### Response:
timer = 16548 |
391,332 | ru | Unity | sum_n | intermediate | Напиши функцию на Unity, которая считает сумму чисел от 1 до 9045. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(9045));
} | ### Instruction:
Напиши функцию на Unity, которая считает сумму чисел от 1 до 9045.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(9045));
} |
3,255,369 | ru | Unity | var_decl | beginner | Как объявить переменную count со значением 159104 в Unity? | int count = 159104; | ### Instruction:
Как объявить переменную count со значением 159104 в Unity?
### Response:
int count = 159104; |
4,089,544 | en | Python | var_decl | beginner | How to declare a variable value with value 329053 in Python? | value = 329053 | ### Instruction:
How to declare a variable value with value 329053 in Python?
### Response:
value = 329053 |
42,177,534 | kk | Java | logic_ops | advanced | Java тилінде 42 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 42;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 42 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 42;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,166,959 | kk | C# | var_decl | beginner | C# тілінде 778231 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 778231; | ### Instruction:
C# тілінде 778231 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 778231; |
4,557,913 | en | JavaScript | var_decl | beginner | How to declare a variable y with value 409556 in JavaScript? | let y = 409556; | ### Instruction:
How to declare a variable y with value 409556 in JavaScript?
### Response:
let y = 409556; |
40,303,239 | ru | 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;
} |
28,350,266 | en | JavaScript | array_ops | intermediate | Write a function that finds the maximum number in an array in JavaScript. | const getMax = arr => Math.max(...arr); | ### Instruction:
Write a function that finds the maximum number in an array in JavaScript.
### Response:
const getMax = arr => Math.max(...arr); |
2,047,613 | kk | C++ | var_decl | beginner | C++ тілінде 329775 мәнімен y айнымалысын қалай жариялауға болады? | int y = 329775; | ### Instruction:
C++ тілінде 329775 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
int y = 329775; |
100,223 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 740. | 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(740) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 740.
### 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(740) << std::endl; |
34,632,924 | en | JavaScript | string_ops | advanced | 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(''); |
30,679,549 | en | Java | array_ops | advanced | Write a function that finds the maximum number in an array in Java. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Write a function that finds the maximum number in an array in Java.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
285,585 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 8485-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(8485));
} | ### Instruction:
Unity тілінде 1-ден 8485-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(8485));
} |
95,032,448 | en | C++ | logic_ops | intermediate | Write logic to check if the year 2052 is a leap year in C++. | public bool IsLeap() {
int y = 2052;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2052 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2052;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,854,103 | ru | C++ | var_decl | beginner | Как объявить переменную buffer со значением 980808 в C++? | int buffer = 980808; | ### Instruction:
Как объявить переменную buffer со значением 980808 в C++?
### Response:
int buffer = 980808; |
55,072,590 | kk | 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;
} |
1,727,374 | ru | C# | var_decl | beginner | Как объявить переменную data со значением 230677 в C#? | int data = 230677; | ### Instruction:
Как объявить переменную data со значением 230677 в C#?
### Response:
int data = 230677; |
1,042,855 | kk | Java | var_decl | beginner | Java тілінде 49687 мәнімен total айнымалысын қалай жариялауға болады? | int total = 49687; | ### Instruction:
Java тілінде 49687 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 49687; |
94,231 | kk | JavaScript | sum_n | intermediate | JavaScript тілінде 1-ден 9309-ге дейінгі сандардың қосындысын есептейтін функция жаз. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(9309)); | ### Instruction:
JavaScript тілінде 1-ден 9309-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(9309)); |
2,873,159 | ru | Unity | var_decl | beginner | Как объявить переменную y со значением 98646 в Unity? | int y = 98646; | ### Instruction:
Как объявить переменную y со значением 98646 в Unity?
### Response:
int y = 98646; |
2,729,685 | en | Java | var_decl | beginner | How to declare a variable amount with value 928024 in Java? | int amount = 928024; | ### Instruction:
How to declare a variable amount with value 928024 in Java?
### Response:
int amount = 928024; |
389,594 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 6193-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6193)) | ### Instruction:
Python тілінде 1-ден 6193-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6193)) |
39,678,320 | en | Java | logic_ops | advanced | Write a function that determines if the number 165 is prime in Java. | public bool IsPrime() {
int n = 165;
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 165 is prime in Java.
### Response:
public bool IsPrime() {
int n = 165;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
64,594,416 | kk | Python | array_ops | intermediate | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
4,394,890 | en | C# | var_decl | beginner | How to declare a variable count with value 910410 in C#? | int count = 910410; | ### Instruction:
How to declare a variable count with value 910410 in C#?
### Response:
int count = 910410; |
193,489 | ru | Unity | sum_n | intermediate | Напиши функцию на Unity, которая считает сумму чисел от 1 до 8904. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(8904));
} | ### Instruction:
Напиши функцию на Unity, которая считает сумму чисел от 1 до 8904.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(8904));
} |
94,153,201 | kk | Unity | logic_ops | intermediate | Unity тилінде 2020 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2020;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2020 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2020;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
29,461,745 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript функцию, определяющую, является ли число 102 простым. | function isPrime() {
let n = 102;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 102 простым.
### Response:
function isPrime() {
let n = 102;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
4,159,115 | en | C# | var_decl | beginner | How to declare a variable rate with value 917461 in C#? | int rate = 917461; | ### Instruction:
How to declare a variable rate with value 917461 in C#?
### Response:
int rate = 917461; |
3,403,892 | ru | C# | var_decl | beginner | Как объявить переменную timer со значением 539375 в C#? | int timer = 539375; | ### Instruction:
Как объявить переменную timer со значением 539375 в C#?
### Response:
int timer = 539375; |
1,074,320 | ru | Unity | var_decl | beginner | Как объявить переменную rate со значением 956632 в Unity? | int rate = 956632; | ### Instruction:
Как объявить переменную rate со значением 956632 в Unity?
### Response:
int rate = 956632; |
2,169,460 | en | JavaScript | var_decl | beginner | How to declare a variable x with value 355204 in JavaScript? | let x = 355204; | ### Instruction:
How to declare a variable x with value 355204 in JavaScript?
### Response:
let x = 355204; |
34,305,707 | en | Java | logic_ops | intermediate | Write logic to check if the year 1964 is a leap year in Java. | public bool IsLeap() {
int y = 1964;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1964 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1964;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
95,433,529 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 1949 високосным. | public bool IsLeap() {
int y = 1949;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1949 високосным.
### Response:
public bool IsLeap() {
int y = 1949;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
13,142,345 | kk | Java | logic_ops | intermediate | Java тилінде 128 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 128;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 128 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 128;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
25,545,728 | 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] |
3,183,092 | en | Unity | var_decl | beginner | How to declare a variable weight with value 387841 in Unity? | int weight = 387841; | ### Instruction:
How to declare a variable weight with value 387841 in Unity?
### Response:
int weight = 387841; |
871,435 | en | C# | factorial | advanced | Write a function in C# that calculates the factorial of 9357. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9357)); | ### Instruction:
Write a function in C# that calculates the factorial of 9357.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9357)); |
2,968,842 | kk | C# | var_decl | beginner | C# тілінде 875618 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 875618; | ### Instruction:
C# тілінде 875618 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 875618; |
2,874,780 | kk | Python | var_decl | beginner | Python тілінде 776441 мәнімен speed айнымалысын қалай жариялауға болады? | speed = 776441 | ### Instruction:
Python тілінде 776441 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
speed = 776441 |
164,331 | en | C++ | var_decl | beginner | How to declare a variable limit with value 399962 in C++? | int limit = 399962; | ### Instruction:
How to declare a variable limit with value 399962 in C++?
### Response:
int limit = 399962; |
96,623,484 | kk | C# | logic_ops | advanced | C# тилінде 69 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 69;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 69 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 69;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,972,780 | en | C# | var_decl | beginner | How to declare a variable speed with value 277693 in C#? | int speed = 277693; | ### Instruction:
How to declare a variable speed with value 277693 in C#?
### Response:
int speed = 277693; |
2,483,251 | ru | C++ | var_decl | beginner | Как объявить переменную x со значением 302051 в C++? | int x = 302051; | ### Instruction:
Как объявить переменную x со значением 302051 в C++?
### Response:
int x = 302051; |
16,623,532 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 153 простым. | public bool IsPrime() {
int n = 153;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 153 простым.
### Response:
public bool IsPrime() {
int n = 153;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,202,493 | en | Python | var_decl | beginner | How to declare a variable level with value 846744 in Python? | level = 846744 | ### Instruction:
How to declare a variable level with value 846744 in Python?
### Response:
level = 846744 |
4,139,798 | en | JavaScript | var_decl | beginner | How to declare a variable value with value 172273 in JavaScript? | let value = 172273; | ### Instruction:
How to declare a variable value with value 172273 in JavaScript?
### Response:
let value = 172273; |
474,330 | en | Python | var_decl | beginner | How to declare a variable amount with value 992419 in Python? | amount = 992419 | ### Instruction:
How to declare a variable amount with value 992419 in Python?
### Response:
amount = 992419 |
73,008,088 | 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;
} |
4,057,195 | en | Python | var_decl | beginner | How to declare a variable total with value 31003 in Python? | total = 31003 | ### Instruction:
How to declare a variable total with value 31003 in Python?
### Response:
total = 31003 |
10,216 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 1122. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1122)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 1122.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1122)); |
94,445,014 | kk | Python | string_ops | intermediate | Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
def is_palindrome(s):
return s == s[::-1] |
3,207,120 | ru | C# | var_decl | beginner | Как объявить переменную score со значением 397812 в C#? | int score = 397812; | ### Instruction:
Как объявить переменную score со значением 397812 в C#?
### Response:
int score = 397812; |
74,191,181 | en | JavaScript | string_ops | advanced | 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(''); |
33,014,250 | en | Unity | logic_ops | intermediate | Write logic to check if the year 1934 is a leap year in Unity. | public bool IsLeap() {
int y = 1934;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1934 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1934;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
22,635,635 | 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(); |
55,572,827 | 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;
} |
50,249,113 | en | C# | string_ops | advanced | Write a function that checks if a string is a palindrome in C#. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in C#.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
69,585,942 | en | C# | logic_ops | advanced | Write logic to check if the year 2025 is a leap year in C#. | public bool IsLeap() {
int y = 2025;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2025 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2025;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
53,844,571 | 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;
} |
31,958,264 | ru | C++ | array_ops | advanced | Напишите на C++ функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на C++ функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
498,575 | kk | C++ | factorial | advanced | C++ тілінде 5862 санының факториалын есептейтін функция жаз. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(5862) << std::endl; | ### Instruction:
C++ тілінде 5862 санының факториалын есептейтін функция жаз.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(5862) << std::endl; |
1,980,365 | ru | C++ | var_decl | beginner | Как объявить переменную y со значением 338849 в C++? | int y = 338849; | ### Instruction:
Как объявить переменную y со значением 338849 в C++?
### Response:
int y = 338849; |
88,299,152 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 299 простым. | public bool IsPrime() {
int n = 299;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 299 простым.
### Response:
public bool IsPrime() {
int n = 299;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
97,478,038 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 2021 високосным. | def is_leap():
year = 2021
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2021 високосным.
### Response:
def is_leap():
year = 2021
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
15,039,109 | ru | Unity | string_ops | intermediate | Напишите на Unity функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Unity функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
2,899,724 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 105518 мәнімен result айнымалысын қалай жариялауға болады? | let result = 105518; | ### Instruction:
JavaScript тілінде 105518 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
let result = 105518; |
13,457,569 | kk | C# | logic_ops | advanced | C# тилінде 256 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 256;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 256 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 256;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,646,023 | ru | Python | var_decl | beginner | Как объявить переменную health со значением 715094 в Python? | health = 715094 | ### Instruction:
Как объявить переменную health со значением 715094 в Python?
### Response:
health = 715094 |
205,484 | ru | JavaScript | sum_n | intermediate | Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 5025. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(5025)); | ### Instruction:
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 5025.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(5025)); |
4,935,441 | kk | Unity | var_decl | beginner | Unity тілінде 598 мәнімен data айнымалысын қалай жариялауға болады? | int data = 598; | ### Instruction:
Unity тілінде 598 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 598; |
339,688 | kk | C# | sum_n | intermediate | C# тілінде 1-ден 2234-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(2234)); | ### Instruction:
C# тілінде 1-ден 2234-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(2234)); |
49,016,513 | ru | Unity | array_ops | advanced | Напишите на Unity функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Unity функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
2,749,434 | kk | Python | var_decl | beginner | Python тілінде 815576 мәнімен value айнымалысын қалай жариялауға болады? | value = 815576 | ### Instruction:
Python тілінде 815576 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
value = 815576 |
69,955,929 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 34 is prime in JavaScript. | function isPrime() {
let n = 34;
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 34 is prime in JavaScript.
### Response:
function isPrime() {
let n = 34;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
4,178,816 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 699136 мәнімен index айнымалысын қалай жариялауға болады? | let index = 699136; | ### Instruction:
JavaScript тілінде 699136 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
let index = 699136; |
4,799,883 | ru | C# | var_decl | beginner | Как объявить переменную x со значением 835714 в C#? | int x = 835714; | ### Instruction:
Как объявить переменную x со значением 835714 в C#?
### Response:
int x = 835714; |
2,454,265 | kk | C++ | var_decl | beginner | C++ тілінде 905424 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 905424; | ### Instruction:
C++ тілінде 905424 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 905424; |
925,535 | ru | Python | var_decl | beginner | Как объявить переменную amount со значением 801311 в Python? | amount = 801311 | ### Instruction:
Как объявить переменную amount со значением 801311 в Python?
### Response:
amount = 801311 |
36,865,782 | 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;
} |
3,885,329 | kk | Python | var_decl | beginner | Python тілінде 996039 мәнімен count айнымалысын қалай жариялауға болады? | count = 996039 | ### Instruction:
Python тілінде 996039 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
count = 996039 |
2,169,946 | kk | Python | var_decl | beginner | Python тілінде 379410 мәнімен count айнымалысын қалай жариялауға болады? | count = 379410 | ### Instruction:
Python тілінде 379410 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
count = 379410 |
3,156,380 | ru | Java | var_decl | beginner | Как объявить переменную weight со значением 462824 в Java? | int weight = 462824; | ### Instruction:
Как объявить переменную weight со значением 462824 в Java?
### Response:
int weight = 462824; |
12,792,081 | 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;
} |
60,298,030 | 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;
} |
11,053,026 | kk | C# | logic_ops | advanced | C# тилінде 1920 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1920;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1920 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1920;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,105,456 | ru | C# | var_decl | beginner | Как объявить переменную count со значением 332590 в C#? | int count = 332590; | ### Instruction:
Как объявить переменную count со значением 332590 в C#?
### Response:
int count = 332590; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.