id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
303,639 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 7174. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7174)); | ### Instruction:
Write a function in Java that calculates the factorial of 7174.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(7174)); |
85,656,906 | kk | Python | logic_ops | advanced | Python тилінде 2034 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 2034
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 2034 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 2034
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
1,344,662 | en | C++ | var_decl | beginner | How to declare a variable weight with value 203567 in C++? | int weight = 203567; | ### Instruction:
How to declare a variable weight with value 203567 in C++?
### Response:
int weight = 203567; |
1,269,888 | kk | C++ | var_decl | beginner | C++ тілінде 657219 мәнімен level айнымалысын қалай жариялауға болады? | int level = 657219; | ### Instruction:
C++ тілінде 657219 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 657219; |
41,622,224 | 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;
} |
82,177,755 | 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;
} |
2,243,592 | ru | C++ | var_decl | beginner | Как объявить переменную weight со значением 34111 в C++? | int weight = 34111; | ### Instruction:
Как объявить переменную weight со значением 34111 в C++?
### Response:
int weight = 34111; |
77,677,311 | 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);
} |
86,398,919 | en | Python | string_ops | advanced | Write a function that counts vowels in a text in Python. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Write a function that counts vowels in a text in Python.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
23,711,055 | en | Python | array_ops | advanced | Write a function that filters only even numbers from a list in Python. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Write a function that filters only even numbers from a list in Python.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
85,689,733 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
3,119,989 | ru | Java | var_decl | beginner | Как объявить переменную count со значением 42598 в Java? | int count = 42598; | ### Instruction:
Как объявить переменную count со значением 42598 в Java?
### Response:
int count = 42598; |
3,339,569 | en | Java | var_decl | beginner | How to declare a variable level with value 258810 in Java? | int level = 258810; | ### Instruction:
How to declare a variable level with value 258810 in Java?
### Response:
int level = 258810; |
90,448,903 | ru | Python | logic_ops | advanced | Напишите на Python функцию, определяющую, является ли число 138 простым. | def is_prime():
n = 138
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 138 простым.
### Response:
def is_prime():
n = 138
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
92,070,199 | en | C++ | array_ops | advanced | Write a function that finds the maximum number in an array in C++. | 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 C++.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
761,203 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 625370 мәнімен value айнымалысын қалай жариялауға болады? | let value = 625370; | ### Instruction:
JavaScript тілінде 625370 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
let value = 625370; |
72,720,248 | 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;
} |
506,321 | kk | C# | sum_n | intermediate | C# тілінде 1-ден 9608-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(9608)); | ### Instruction:
C# тілінде 1-ден 9608-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(9608)); |
33,376,667 | en | Python | string_ops | intermediate | Write a function that counts vowels in a text in Python. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Write a function that counts vowels in a text in Python.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
81,943,344 | en | Unity | string_ops | advanced | Write a function that converts a string to uppercase in Unity. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in Unity.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
4,248,403 | kk | C++ | var_decl | beginner | C++ тілінде 574354 мәнімен score айнымалысын қалай жариялауға болады? | int score = 574354; | ### Instruction:
C++ тілінде 574354 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 574354; |
25,700,799 | en | Python | string_ops | advanced | Write a function that converts a string to uppercase in Python. | def to_upper(s):
return s.upper() | ### Instruction:
Write a function that converts a string to uppercase in Python.
### Response:
def to_upper(s):
return s.upper() |
17,501,076 | ru | 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;
} |
96,007,739 | en | Java | array_ops | intermediate | 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;
} |
4,817,592 | en | Unity | var_decl | beginner | How to declare a variable weight with value 959085 in Unity? | int weight = 959085; | ### Instruction:
How to declare a variable weight with value 959085 in Unity?
### Response:
int weight = 959085; |
817,886 | kk | Python | factorial | advanced | Python тілінде 7563 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(7563)) | ### Instruction:
Python тілінде 7563 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(7563)) |
4,731,974 | ru | Unity | var_decl | beginner | Как объявить переменную y со значением 160820 в Unity? | int y = 160820; | ### Instruction:
Как объявить переменную y со значением 160820 в Unity?
### Response:
int y = 160820; |
2,913,948 | kk | Unity | var_decl | beginner | Unity тілінде 933284 мәнімен size айнымалысын қалай жариялауға болады? | int size = 933284; | ### Instruction:
Unity тілінде 933284 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 933284; |
581,014 | en | Unity | var_decl | beginner | How to declare a variable size with value 136118 in Unity? | int size = 136118; | ### Instruction:
How to declare a variable size with value 136118 in Unity?
### Response:
int size = 136118; |
3,606,977 | en | C++ | var_decl | beginner | How to declare a variable total with value 503822 in C++? | int total = 503822; | ### Instruction:
How to declare a variable total with value 503822 in C++?
### Response:
int total = 503822; |
238,798 | kk | Java | var_decl | beginner | Java тілінде 688264 мәнімен value айнымалысын қалай жариялауға болады? | int value = 688264; | ### Instruction:
Java тілінде 688264 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 688264; |
508,096 | kk | C++ | sum_n | intermediate | C++ тілінде 1-ден 7730-ге дейінгі сандардың қосындысын есептейтін функция жаз. | 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(7730) << std::endl; | ### Instruction:
C++ тілінде 1-ден 7730-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### 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(7730) << std::endl; |
92,433,134 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая проверяет, является ли строка палиндромом. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
### Response:
def is_palindrome(s):
return s == s[::-1] |
52,425,981 | 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); |
75,432,110 | en | JavaScript | array_ops | intermediate | Write a function that reverses a list in JavaScript. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Write a function that reverses a list in JavaScript.
### Response:
const reverseArr = arr => arr.reverse(); |
65,208,034 | en | C# | logic_ops | intermediate | Write a function that determines if the number 79 is prime in C#. | public bool IsPrime() {
int n = 79;
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 79 is prime in C#.
### Response:
public bool IsPrime() {
int n = 79;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
81,153,277 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 94 простым. | public bool IsPrime() {
int n = 94;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 94 простым.
### Response:
public bool IsPrime() {
int n = 94;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
41,307,344 | kk | Python | string_ops | intermediate | Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
4,474,994 | kk | Java | var_decl | beginner | Java тілінде 401259 мәнімен data айнымалысын қалай жариялауға болады? | int data = 401259; | ### Instruction:
Java тілінде 401259 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 401259; |
76,844,769 | kk | Python | array_ops | intermediate | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
57,659,757 | kk | Java | string_ops | intermediate | Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
96,015,162 | 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;
} |
96,582,462 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 420 простым. | public bool IsPrime() {
int n = 420;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 420 простым.
### Response:
public bool IsPrime() {
int n = 420;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
287,196 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 389964 мәнімен data айнымалысын қалай жариялауға болады? | let data = 389964; | ### Instruction:
JavaScript тілінде 389964 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
let data = 389964; |
2,075,111 | en | JavaScript | var_decl | beginner | How to declare a variable rate with value 988289 in JavaScript? | let rate = 988289; | ### Instruction:
How to declare a variable rate with value 988289 in JavaScript?
### Response:
let rate = 988289; |
316,391 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 6270. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(6270)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 6270.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(6270)); |
1,824,602 | en | Python | var_decl | beginner | How to declare a variable rate with value 564619 in Python? | rate = 564619 | ### Instruction:
How to declare a variable rate with value 564619 in Python?
### Response:
rate = 564619 |
26,352,216 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
96,351,227 | en | C# | array_ops | advanced | Write a function that filters only even numbers from a list in C#. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in C#.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
13,395,012 | 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;
} |
71,480,123 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript функцию, определяющую, является ли число 309 простым. | function isPrime() {
let n = 309;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 309 простым.
### Response:
function isPrime() {
let n = 309;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
21,271,736 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
2,302,063 | kk | Java | var_decl | beginner | Java тілінде 908948 мәнімен score айнымалысын қалай жариялауға болады? | int score = 908948; | ### Instruction:
Java тілінде 908948 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 908948; |
587,262 | ru | Unity | sum_n | intermediate | Напиши функцию на Unity, которая считает сумму чисел от 1 до 5315. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(5315));
} | ### Instruction:
Напиши функцию на Unity, которая считает сумму чисел от 1 до 5315.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(5315));
} |
3,395,166 | kk | Java | var_decl | beginner | Java тілінде 301552 мәнімен score айнымалысын қалай жариялауға болады? | int score = 301552; | ### Instruction:
Java тілінде 301552 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 301552; |
12,435,478 | kk | Java | string_ops | intermediate | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
88,664,528 | 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] |
17,967 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 5059. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(5059)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 5059.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(5059)); |
14,179,466 | 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;
} |
85,613,781 | kk | Unity | string_ops | intermediate | Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
2,196,827 | kk | Python | var_decl | beginner | Python тілінде 917506 мәнімен limit айнымалысын қалай жариялауға болады? | limit = 917506 | ### Instruction:
Python тілінде 917506 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
limit = 917506 |
47,760,556 | kk | C++ | logic_ops | intermediate | C++ тилінде 1986 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1986;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1986 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1986;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
68,715,001 | en | Java | logic_ops | advanced | Write logic to check if the year 2092 is a leap year in Java. | public bool IsLeap() {
int y = 2092;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2092 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2092;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
98,822,095 | kk | JavaScript | string_ops | advanced | JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
4,554,144 | ru | Java | var_decl | beginner | Как объявить переменную value со значением 301641 в Java? | int value = 301641; | ### Instruction:
Как объявить переменную value со значением 301641 в Java?
### Response:
int value = 301641; |
4,779,409 | en | Unity | var_decl | beginner | How to declare a variable amount with value 795369 in Unity? | int amount = 795369; | ### Instruction:
How to declare a variable amount with value 795369 in Unity?
### Response:
int amount = 795369; |
2,345,458 | en | Java | var_decl | beginner | How to declare a variable y with value 635601 in Java? | int y = 635601; | ### Instruction:
How to declare a variable y with value 635601 in Java?
### Response:
int y = 635601; |
3,438,395 | en | C# | var_decl | beginner | How to declare a variable health with value 55918 in C#? | int health = 55918; | ### Instruction:
How to declare a variable health with value 55918 in C#?
### Response:
int health = 55918; |
57,585,415 | kk | Python | string_ops | advanced | Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
1,974,194 | en | Java | var_decl | beginner | How to declare a variable y with value 461224 in Java? | int y = 461224; | ### Instruction:
How to declare a variable y with value 461224 in Java?
### Response:
int y = 461224; |
1,633,744 | ru | JavaScript | var_decl | beginner | Как объявить переменную result со значением 960499 в JavaScript? | let result = 960499; | ### Instruction:
Как объявить переменную result со значением 960499 в JavaScript?
### Response:
let result = 960499; |
88,347,706 | en | Python | logic_ops | intermediate | Write logic to check if the year 2036 is a leap year in Python. | def is_leap():
year = 2036
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 2036 is a leap year in Python.
### Response:
def is_leap():
year = 2036
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
511,733 | en | JavaScript | var_decl | beginner | How to declare a variable y with value 416243 in JavaScript? | let y = 416243; | ### Instruction:
How to declare a variable y with value 416243 in JavaScript?
### Response:
let y = 416243; |
1,715,961 | ru | Unity | var_decl | beginner | Как объявить переменную value со значением 2801 в Unity? | int value = 2801; | ### Instruction:
Как объявить переменную value со значением 2801 в Unity?
### Response:
int value = 2801; |
1,315,469 | en | Unity | var_decl | beginner | How to declare a variable weight with value 28948 in Unity? | int weight = 28948; | ### Instruction:
How to declare a variable weight with value 28948 in Unity?
### Response:
int weight = 28948; |
4,183,788 | ru | JavaScript | var_decl | beginner | Как объявить переменную data со значением 718672 в JavaScript? | let data = 718672; | ### Instruction:
Как объявить переменную data со значением 718672 в JavaScript?
### Response:
let data = 718672; |
78,621,952 | 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;
} |
66,541,001 | kk | Java | logic_ops | advanced | Java тилінде 439 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 439;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 439 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 439;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,295,620 | ru | Unity | var_decl | beginner | Как объявить переменную buffer со значением 608575 в Unity? | int buffer = 608575; | ### Instruction:
Как объявить переменную buffer со значением 608575 в Unity?
### Response:
int buffer = 608575; |
4,106,790 | ru | Unity | var_decl | beginner | Как объявить переменную speed со значением 253121 в Unity? | int speed = 253121; | ### Instruction:
Как объявить переменную speed со значением 253121 в Unity?
### Response:
int speed = 253121; |
209,519 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 7667-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(7667));
} | ### Instruction:
Unity тілінде 1-ден 7667-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(7667));
} |
555,002 | kk | Java | factorial | advanced | Java тілінде 1595 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1595)); | ### Instruction:
Java тілінде 1595 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(1595)); |
33,506,460 | en | Unity | logic_ops | advanced | Write logic to check if the year 1996 is a leap year in Unity. | public bool IsLeap() {
int y = 1996;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1996 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1996;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,265,837 | kk | C# | var_decl | beginner | C# тілінде 159314 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 159314; | ### Instruction:
C# тілінде 159314 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 159314; |
60,595,421 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая разворачивает список задом наперед. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
### Response:
const reverseArr = arr => arr.reverse(); |
16,296,195 | 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;
} |
63,522,501 | en | Python | array_ops | advanced | Write a function that reverses a list in Python. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Write a function that reverses a list in Python.
### Response:
def reverse_list(arr):
return arr[::-1] |
3,455,819 | ru | Python | var_decl | beginner | Как объявить переменную timer со значением 671887 в Python? | timer = 671887 | ### Instruction:
Как объявить переменную timer со значением 671887 в Python?
### Response:
timer = 671887 |
24,020,507 | kk | Unity | logic_ops | intermediate | Unity тилінде 2057 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2057;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2057 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2057;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,944,321 | ru | C# | var_decl | beginner | Как объявить переменную amount со значением 153813 в C#? | int amount = 153813; | ### Instruction:
Как объявить переменную amount со значением 153813 в C#?
### Response:
int amount = 153813; |
2,754,465 | ru | Python | var_decl | beginner | Как объявить переменную level со значением 832442 в Python? | level = 832442 | ### Instruction:
Как объявить переменную level со значением 832442 в Python?
### Response:
level = 832442 |
2,963,324 | ru | Unity | var_decl | beginner | Как объявить переменную timer со значением 410880 в Unity? | int timer = 410880; | ### Instruction:
Как объявить переменную timer со значением 410880 в Unity?
### Response:
int timer = 410880; |
1,993,322 | en | Java | var_decl | beginner | How to declare a variable rate with value 436431 in Java? | int rate = 436431; | ### Instruction:
How to declare a variable rate with value 436431 in Java?
### Response:
int rate = 436431; |
32,250,371 | kk | JavaScript | string_ops | advanced | JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
3,600,991 | ru | Python | var_decl | beginner | Как объявить переменную x со значением 709706 в Python? | x = 709706 | ### Instruction:
Как объявить переменную x со значением 709706 в Python?
### Response:
x = 709706 |
3,681,807 | en | Python | var_decl | beginner | How to declare a variable offset with value 447158 in Python? | offset = 447158 | ### Instruction:
How to declare a variable offset with value 447158 in Python?
### Response:
offset = 447158 |
2,317,715 | kk | Unity | var_decl | beginner | Unity тілінде 499564 мәнімен data айнымалысын қалай жариялауға болады? | int data = 499564; | ### Instruction:
Unity тілінде 499564 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 499564; |
64,597,615 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
34,695,257 | 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;
} |
45,659,641 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 15 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 15;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 15 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 15;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.