id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
18,108,021 | kk | Unity | logic_ops | intermediate | Unity тилінде 362 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 362;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 362 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 362;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
357,708 | kk | Java | var_decl | beginner | Java тілінде 100350 мәнімен data айнымалысын қалай жариялауға болады? | int data = 100350; | ### Instruction:
Java тілінде 100350 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 100350; |
71,051,899 | 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;
} |
55,606,988 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 2008 is a leap year in JavaScript. | function isLeap() {
let y = 2008;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2008 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2008;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
2,955,766 | kk | C# | var_decl | beginner | C# тілінде 254152 мәнімен health айнымалысын қалай жариялауға болады? | int health = 254152; | ### Instruction:
C# тілінде 254152 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 254152; |
24,945,849 | en | Python | array_ops | intermediate | Write a function that filters only even numbers from a list in Python. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Write a function that filters only even numbers from a list in Python.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
2,443,975 | en | C# | var_decl | beginner | How to declare a variable data with value 583463 in C#? | int data = 583463; | ### Instruction:
How to declare a variable data with value 583463 in C#?
### Response:
int data = 583463; |
4,734,936 | kk | Java | var_decl | beginner | Java тілінде 725115 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 725115; | ### Instruction:
Java тілінде 725115 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 725115; |
362,614 | ru | Python | factorial | advanced | Напиши функцию на Python, которая вычисляет факториал числа 4466. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(4466)) | ### Instruction:
Напиши функцию на Python, которая вычисляет факториал числа 4466.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(4466)) |
97,316,143 | kk | Java | array_ops | advanced | Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
586,036 | ru | JavaScript | var_decl | beginner | Как объявить переменную level со значением 132080 в JavaScript? | let level = 132080; | ### Instruction:
Как объявить переменную level со значением 132080 в JavaScript?
### Response:
let level = 132080; |
82,885,400 | 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();
} |
4,112,958 | ru | C# | var_decl | beginner | Как объявить переменную rate со значением 698084 в C#? | int rate = 698084; | ### Instruction:
Как объявить переменную rate со значением 698084 в C#?
### Response:
int rate = 698084; |
76,616,837 | en | JavaScript | array_ops | advanced | Write a function that filters only even numbers from a list in JavaScript. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Write a function that filters only even numbers from a list in JavaScript.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
4,136,034 | ru | Python | var_decl | beginner | Как объявить переменную y со значением 740649 в Python? | y = 740649 | ### Instruction:
Как объявить переменную y со значением 740649 в Python?
### Response:
y = 740649 |
3,160,406 | kk | Java | var_decl | beginner | Java тілінде 125142 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 125142; | ### Instruction:
Java тілінде 125142 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 125142; |
1,412,013 | kk | Python | var_decl | beginner | Python тілінде 860344 мәнімен weight айнымалысын қалай жариялауға болады? | weight = 860344 | ### Instruction:
Python тілінде 860344 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
weight = 860344 |
4,138,888 | kk | Java | var_decl | beginner | Java тілінде 322283 мәнімен result айнымалысын қалай жариялауға болады? | int result = 322283; | ### Instruction:
Java тілінде 322283 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 322283; |
60,693,786 | ru | Unity | string_ops | advanced | Напишите на Unity функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Unity функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
13,019,498 | en | Python | array_ops | advanced | Write a function that finds the maximum number in an array in Python. | def get_max(arr):
return max(arr) | ### Instruction:
Write a function that finds the maximum number in an array in Python.
### Response:
def get_max(arr):
return max(arr) |
35,129,390 | en | C# | logic_ops | intermediate | Write logic to check if the year 2040 is a leap year in C#. | public bool IsLeap() {
int y = 2040;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2040 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2040;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
13,352,533 | en | Unity | string_ops | advanced | Write a function that counts vowels in a text in Unity. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in Unity.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
882,890 | kk | Python | var_decl | beginner | Python тілінде 524876 мәнімен timer айнымалысын қалай жариялауға болады? | timer = 524876 | ### Instruction:
Python тілінде 524876 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
timer = 524876 |
755,611 | ru | Unity | var_decl | beginner | Как объявить переменную size со значением 15033 в Unity? | int size = 15033; | ### Instruction:
Как объявить переменную size со значением 15033 в Unity?
### Response:
int size = 15033; |
16,080,520 | 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();
} |
18,152,334 | 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;
} |
87,579,557 | en | C# | array_ops | intermediate | Write a function that reverses a list in C#. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C#.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
540,554 | kk | Java | var_decl | beginner | Java тілінде 128047 мәнімен total айнымалысын қалай жариялауға болады? | int total = 128047; | ### Instruction:
Java тілінде 128047 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 128047; |
14,822,445 | 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(''); |
10,938,322 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
61,561,288 | kk | C# | logic_ops | intermediate | C# тилінде 249 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 249;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 249 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 249;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
54,070,997 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 337 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 337;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 337 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 337;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
49,086 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 4766. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(4766));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 4766.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(4766));
} |
40,965,944 | kk | Java | logic_ops | intermediate | Java тилінде 300 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 300;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 300 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 300;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,232,976 | kk | Python | var_decl | beginner | Python тілінде 508118 мәнімен level айнымалысын қалай жариялауға болады? | level = 508118 | ### Instruction:
Python тілінде 508118 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
level = 508118 |
2,930,757 | kk | C# | var_decl | beginner | C# тілінде 486009 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 486009; | ### Instruction:
C# тілінде 486009 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 486009; |
70,965,133 | 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;
} |
4,624,781 | ru | Java | var_decl | beginner | Как объявить переменную rate со значением 45815 в Java? | int rate = 45815; | ### Instruction:
Как объявить переменную rate со значением 45815 в Java?
### Response:
int rate = 45815; |
4,454,486 | ru | Python | var_decl | beginner | Как объявить переменную result со значением 429843 в Python? | result = 429843 | ### Instruction:
Как объявить переменную result со значением 429843 в Python?
### Response:
result = 429843 |
4,805,685 | en | Unity | var_decl | beginner | How to declare a variable health with value 847018 in Unity? | int health = 847018; | ### Instruction:
How to declare a variable health with value 847018 in Unity?
### Response:
int health = 847018; |
4,821,573 | kk | C# | var_decl | beginner | C# тілінде 611083 мәнімен score айнымалысын қалай жариялауға болады? | int score = 611083; | ### Instruction:
C# тілінде 611083 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 611083; |
3,511,217 | kk | C# | var_decl | beginner | C# тілінде 223185 мәнімен x айнымалысын қалай жариялауға болады? | int x = 223185; | ### Instruction:
C# тілінде 223185 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 223185; |
42,459,782 | kk | Python | string_ops | advanced | Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
def is_palindrome(s):
return s == s[::-1] |
61,743,913 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая считает количество гласных букв в тексте. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Напишите на Java функцию, которая считает количество гласных букв в тексте.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
92,822,921 | 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;
} |
346,371 | ru | JavaScript | sum_n | intermediate | Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 1930. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(1930)); | ### Instruction:
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 1930.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(1930)); |
4,452,557 | en | C++ | var_decl | beginner | How to declare a variable value with value 388151 in C++? | int value = 388151; | ### Instruction:
How to declare a variable value with value 388151 in C++?
### Response:
int value = 388151; |
1,312,032 | en | Python | var_decl | beginner | How to declare a variable timer with value 715574 in Python? | timer = 715574 | ### Instruction:
How to declare a variable timer with value 715574 in Python?
### Response:
timer = 715574 |
21,136,790 | ru | C# | logic_ops | advanced | Напишите на C# логику проверки, является ли год 2054 високосным. | public bool IsLeap() {
int y = 2054;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2054 високосным.
### Response:
public bool IsLeap() {
int y = 2054;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,272,917 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 569847 мәнімен result айнымалысын қалай жариялауға болады? | let result = 569847; | ### Instruction:
JavaScript тілінде 569847 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
let result = 569847; |
98,296,724 | kk | C# | logic_ops | advanced | C# тилінде 1929 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1929;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1929 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1929;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
315,288 | kk | Java | factorial | advanced | Java тілінде 6234 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(6234)); | ### Instruction:
Java тілінде 6234 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(6234)); |
53,715,371 | en | C++ | logic_ops | advanced | Write a function that determines if the number 361 is prime in C++. | public bool IsPrime() {
int n = 361;
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 361 is prime in C++.
### Response:
public bool IsPrime() {
int n = 361;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,296,682 | en | C++ | var_decl | beginner | How to declare a variable timer with value 923284 in C++? | int timer = 923284; | ### Instruction:
How to declare a variable timer with value 923284 in C++?
### Response:
int timer = 923284; |
572,648 | ru | Unity | var_decl | beginner | Как объявить переменную timer со значением 453292 в Unity? | int timer = 453292; | ### Instruction:
Как объявить переменную timer со значением 453292 в Unity?
### Response:
int timer = 453292; |
94,366,691 | kk | Java | array_ops | intermediate | Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
1,134,368 | en | Java | var_decl | beginner | How to declare a variable weight with value 615615 in Java? | int weight = 615615; | ### Instruction:
How to declare a variable weight with value 615615 in Java?
### Response:
int weight = 615615; |
79,719,472 | kk | JavaScript | array_ops | advanced | JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | const getMax = arr => Math.max(...arr); | ### Instruction:
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
const getMax = arr => Math.max(...arr); |
82,183,114 | 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();
} |
23,244,158 | en | Python | logic_ops | advanced | Write logic to check if the year 1975 is a leap year in Python. | def is_leap():
year = 1975
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1975 is a leap year in Python.
### Response:
def is_leap():
year = 1975
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
21,944,790 | 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;
} |
79,884,403 | en | Unity | logic_ops | intermediate | Write logic to check if the year 2084 is a leap year in Unity. | public bool IsLeap() {
int y = 2084;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2084 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2084;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,149,110 | kk | C++ | var_decl | beginner | C++ тілінде 251977 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 251977; | ### Instruction:
C++ тілінде 251977 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 251977; |
3,014,389 | kk | C++ | var_decl | beginner | C++ тілінде 279843 мәнімен result айнымалысын қалай жариялауға болады? | int result = 279843; | ### Instruction:
C++ тілінде 279843 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 279843; |
48,581,407 | en | Unity | string_ops | advanced | Write a function that counts vowels in a text in Unity. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in Unity.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
2,939,096 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 948752 мәнімен limit айнымалысын қалай жариялауға болады? | let limit = 948752; | ### Instruction:
JavaScript тілінде 948752 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
let limit = 948752; |
4,449,997 | en | C# | var_decl | beginner | How to declare a variable score with value 420270 in C#? | int score = 420270; | ### Instruction:
How to declare a variable score with value 420270 in C#?
### Response:
int score = 420270; |
311,820 | ru | JavaScript | var_decl | beginner | Как объявить переменную limit со значением 221389 в JavaScript? | let limit = 221389; | ### Instruction:
Как объявить переменную limit со значением 221389 в JavaScript?
### Response:
let limit = 221389; |
47,630,398 | 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;
} |
99,055,615 | en | C# | logic_ops | advanced | Write logic to check if the year 1926 is a leap year in C#. | public bool IsLeap() {
int y = 1926;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1926 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 1926;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
53,434,911 | en | C# | string_ops | intermediate | Write a function that checks if a string is a palindrome in C#. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in C#.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
36,460,585 | 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,767,074 | en | C++ | var_decl | beginner | How to declare a variable value with value 390088 in C++? | int value = 390088; | ### Instruction:
How to declare a variable value with value 390088 in C++?
### Response:
int value = 390088; |
16,706,650 | 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(''); |
62,794,269 | kk | Python | string_ops | advanced | Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
def is_palindrome(s):
return s == s[::-1] |
2,362,516 | en | Python | var_decl | beginner | How to declare a variable buffer with value 191672 in Python? | buffer = 191672 | ### Instruction:
How to declare a variable buffer with value 191672 in Python?
### Response:
buffer = 191672 |
68,143,659 | kk | Python | array_ops | intermediate | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
84,052 | kk | C++ | sum_n | intermediate | C++ тілінде 1-ден 8998-ге дейінгі сандардың қосындысын есептейтін функция жаз. | 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(8998) << std::endl; | ### Instruction:
C++ тілінде 1-ден 8998-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### 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(8998) << std::endl; |
4,966,526 | kk | C# | var_decl | beginner | C# тілінде 943510 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 943510; | ### Instruction:
C# тілінде 943510 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 943510; |
88,328,376 | ru | 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); |
33,069,471 | kk | C# | array_ops | intermediate | C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
135,085 | kk | Java | sum_n | intermediate | Java тілінде 1-ден 8698-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8698)); | ### Instruction:
Java тілінде 1-ден 8698-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8698)); |
16,702,850 | kk | C++ | logic_ops | intermediate | C++ тилінде 307 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 307;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 307 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 307;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
90,673,219 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
248,581 | ru | Python | factorial | advanced | Напиши функцию на Python, которая вычисляет факториал числа 7312. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(7312)) | ### Instruction:
Напиши функцию на Python, которая вычисляет факториал числа 7312.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(7312)) |
58,533,374 | ru | Unity | array_ops | advanced | Напишите на Unity функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на Unity функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
12,407,454 | 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;
} |
20,544,898 | kk | Python | array_ops | advanced | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
13,879,213 | 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);
} |
59,181,996 | 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;
} |
2,737,464 | en | Python | var_decl | beginner | How to declare a variable speed with value 908383 in Python? | speed = 908383 | ### Instruction:
How to declare a variable speed with value 908383 in Python?
### Response:
speed = 908383 |
2,516,791 | kk | Python | var_decl | beginner | Python тілінде 667935 мәнімен timer айнымалысын қалай жариялауға болады? | timer = 667935 | ### Instruction:
Python тілінде 667935 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
timer = 667935 |
42,199,061 | kk | Unity | logic_ops | intermediate | Unity тилінде 1986 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1986;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1986 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1986;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
19,068,641 | en | Java | string_ops | advanced | 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;
} |
19,678,569 | 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;
} |
42,480,479 | ru | Java | logic_ops | intermediate | Напишите на Java логику проверки, является ли год 2009 високосным. | public bool IsLeap() {
int y = 2009;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 2009 високосным.
### Response:
public bool IsLeap() {
int y = 2009;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
65,420,158 | en | Python | array_ops | advanced | Write a function that finds the maximum number in an array in Python. | def get_max(arr):
return max(arr) | ### Instruction:
Write a function that finds the maximum number in an array in Python.
### Response:
def get_max(arr):
return max(arr) |
510,731 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 3020. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(3020));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 3020.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(3020));
} |
4,174,886 | ru | JavaScript | var_decl | beginner | Как объявить переменную offset со значением 523710 в JavaScript? | let offset = 523710; | ### Instruction:
Как объявить переменную offset со значением 523710 в JavaScript?
### Response:
let offset = 523710; |
2,657,146 | kk | Java | var_decl | beginner | Java тілінде 774096 мәнімен level айнымалысын қалай жариялауға болады? | int level = 774096; | ### Instruction:
Java тілінде 774096 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 774096; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.