id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
1,761,899
ru
C#
var_decl
beginner
Как объявить переменную x со значением 191263 в C#?
int x = 191263;
### Instruction: Как объявить переменную x со значением 191263 в C#? ### Response: int x = 191263;
1,847,882
kk
C#
var_decl
beginner
C# тілінде 890105 мәнімен result айнымалысын қалай жариялауға болады?
int result = 890105;
### Instruction: C# тілінде 890105 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 890105;
515,568
en
JavaScript
factorial
advanced
Write a function in JavaScript that calculates the factorial of 836.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(836));
### Instruction: Write a function in JavaScript that calculates the factorial of 836. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(836));
93,986,902
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); }
67,733,230
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; }
375,953
en
JavaScript
sum_n
intermediate
Write a function in JavaScript that sums numbers from 1 to 3051.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(3051));
### Instruction: Write a function in JavaScript that sums numbers from 1 to 3051. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(3051));
61,264,256
en
Unity
string_ops
intermediate
Write a function that checks if a string is a palindrome in 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: Write a function that checks if a string is a palindrome in 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; }
2,164,364
en
Python
var_decl
beginner
How to declare a variable level with value 736622 in Python?
level = 736622
### Instruction: How to declare a variable level with value 736622 in Python? ### Response: level = 736622
14,437,052
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 1917 високосным.
public bool IsLeap() { int y = 1917; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 1917 високосным. ### Response: public bool IsLeap() { int y = 1917; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
696,636
kk
Python
factorial
advanced
Python тілінде 6351 санының факториалын есептейтін функция жаз.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(6351))
### Instruction: Python тілінде 6351 санының факториалын есептейтін функция жаз. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(6351))
1,783,794
kk
Java
var_decl
beginner
Java тілінде 135712 мәнімен x айнымалысын қалай жариялауға болады?
int x = 135712;
### Instruction: Java тілінде 135712 мәнімен x айнымалысын қалай жариялауға болады? ### Response: int x = 135712;
2,616,006
kk
Unity
var_decl
beginner
Unity тілінде 834158 мәнімен value айнымалысын қалай жариялауға болады?
int value = 834158;
### Instruction: Unity тілінде 834158 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 834158;
243,130
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 7528.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(7528))
### Instruction: Write a function in Python that sums numbers from 1 to 7528. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(7528))
26,019,042
en
Unity
logic_ops
advanced
Write logic to check if the year 2077 is a leap year in Unity.
public bool IsLeap() { int y = 2077; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2077 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2077; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
29,375,651
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; }
3,331,600
kk
Python
var_decl
beginner
Python тілінде 871341 мәнімен index айнымалысын қалай жариялауға болады?
index = 871341
### Instruction: Python тілінде 871341 мәнімен index айнымалысын қалай жариялауға болады? ### Response: index = 871341
54,610,461
ru
C#
logic_ops
advanced
Напишите на C# функцию, определяющую, является ли число 372 простым.
public bool IsPrime() { int n = 372; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 372 простым. ### Response: public bool IsPrime() { int n = 372; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
24,040,289
en
Python
logic_ops
advanced
Write a function that determines if the number 418 is prime in Python.
def is_prime(): n = 418 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Write a function that determines if the number 418 is prime in Python. ### Response: def is_prime(): n = 418 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
1,572,181
en
C++
var_decl
beginner
How to declare a variable total with value 108157 in C++?
int total = 108157;
### Instruction: How to declare a variable total with value 108157 in C++? ### Response: int total = 108157;
19,332,675
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 1913 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 1913; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 1913 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 1913; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
19,428,905
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('');
47,130,066
ru
Python
logic_ops
advanced
Напишите на Python логику проверки, является ли год 2015 високосным.
def is_leap(): year = 2015 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 2015 високосным. ### Response: def is_leap(): year = 2015 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
47,491,703
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; }
1,750,976
en
Python
var_decl
beginner
How to declare a variable size with value 132027 in Python?
size = 132027
### Instruction: How to declare a variable size with value 132027 in Python? ### Response: size = 132027
80,098,583
en
JavaScript
string_ops
intermediate
Write a function that converts a string to uppercase in JavaScript.
const toUpper = s => s.toUpperCase();
### Instruction: Write a function that converts a string to uppercase in JavaScript. ### Response: const toUpper = s => s.toUpperCase();
62,468,741
en
C++
logic_ops
intermediate
Write a function that determines if the number 80 is prime in C++.
public bool IsPrime() { int n = 80; 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 80 is prime in C++. ### Response: public bool IsPrime() { int n = 80; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
77,099,128
en
JavaScript
array_ops
advanced
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();
1,454,271
kk
Java
var_decl
beginner
Java тілінде 445711 мәнімен size айнымалысын қалай жариялауға болады?
int size = 445711;
### Instruction: Java тілінде 445711 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 445711;
260,873
kk
Python
factorial
advanced
Python тілінде 1059 санының факториалын есептейтін функция жаз.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(1059))
### Instruction: Python тілінде 1059 санының факториалын есептейтін функция жаз. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(1059))
79,495,098
kk
Python
logic_ops
advanced
Python тилінде 211 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 211 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 211 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 211 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
75,027,999
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 2064 високосным.
public bool IsLeap() { int y = 2064; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 2064 високосным. ### Response: public bool IsLeap() { int y = 2064; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
83,429,226
en
Python
logic_ops
advanced
Write logic to check if the year 1957 is a leap year in Python.
def is_leap(): year = 1957 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 1957 is a leap year in Python. ### Response: def is_leap(): year = 1957 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
2,971,842
kk
Unity
var_decl
beginner
Unity тілінде 609259 мәнімен health айнымалысын қалай жариялауға болады?
int health = 609259;
### Instruction: Unity тілінде 609259 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 609259;
29,502,936
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 2077 високосным.
public bool IsLeap() { int y = 2077; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 2077 високосным. ### Response: public bool IsLeap() { int y = 2077; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,126,158
kk
JavaScript
var_decl
beginner
JavaScript тілінде 514056 мәнімен buffer айнымалысын қалай жариялауға болады?
let buffer = 514056;
### Instruction: JavaScript тілінде 514056 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: let buffer = 514056;
358,957
ru
C++
factorial
advanced
Напиши функцию на C++, которая вычисляет факториал числа 3754.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(3754) << std::endl;
### Instruction: Напиши функцию на C++, которая вычисляет факториал числа 3754. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(3754) << std::endl;
48,529,791
kk
Python
string_ops
intermediate
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
69,827,770
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; }
1,628,638
ru
C#
var_decl
beginner
Как объявить переменную size со значением 151446 в C#?
int size = 151446;
### Instruction: Как объявить переменную size со значением 151446 в C#? ### Response: int size = 151446;
4,367,563
kk
C#
var_decl
beginner
C# тілінде 69214 мәнімен score айнымалысын қалай жариялауға болады?
int score = 69214;
### Instruction: C# тілінде 69214 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 69214;
4,615,073
ru
Unity
var_decl
beginner
Как объявить переменную total со значением 909503 в Unity?
int total = 909503;
### Instruction: Как объявить переменную total со значением 909503 в Unity? ### Response: int total = 909503;
2,906,488
en
Java
var_decl
beginner
How to declare a variable total with value 858879 in Java?
int total = 858879;
### Instruction: How to declare a variable total with value 858879 in Java? ### Response: int total = 858879;
70,376,491
kk
JavaScript
array_ops
intermediate
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
87,521,290
kk
C#
logic_ops
intermediate
C# тилінде 76 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 76; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 76 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 76; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
13,105,555
en
JavaScript
string_ops
intermediate
Write a function that checks if a string is a palindrome in JavaScript.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: Write a function that checks if a string is a palindrome in JavaScript. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
3,208,448
kk
Unity
var_decl
beginner
Unity тілінде 293025 мәнімен total айнымалысын қалай жариялауға болады?
int total = 293025;
### Instruction: Unity тілінде 293025 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 293025;
1,122,838
en
Python
var_decl
beginner
How to declare a variable weight with value 319698 in Python?
weight = 319698
### Instruction: How to declare a variable weight with value 319698 in Python? ### Response: weight = 319698
18,146,835
kk
Java
array_ops
advanced
Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
56,943,232
en
Unity
string_ops
intermediate
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; }
175,225
kk
C++
sum_n
intermediate
C++ тілінде 1-ден 6520-ге дейінгі сандардың қосындысын есептейтін функция жаз.
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(6520) << std::endl;
### Instruction: C++ тілінде 1-ден 6520-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### 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(6520) << std::endl;
3,820,031
en
Unity
var_decl
beginner
How to declare a variable weight with value 145320 in Unity?
int weight = 145320;
### Instruction: How to declare a variable weight with value 145320 in Unity? ### Response: int weight = 145320;
50,259,264
en
Java
logic_ops
intermediate
Write logic to check if the year 2054 is a leap year in Java.
public bool IsLeap() { int y = 2054; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2054 is a leap year in Java. ### Response: public bool IsLeap() { int y = 2054; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
57,204,728
ru
Python
logic_ops
advanced
Напишите на Python логику проверки, является ли год 1934 високосным.
def is_leap(): year = 1934 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Напишите на Python логику проверки, является ли год 1934 високосным. ### Response: def is_leap(): year = 1934 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
57,592,385
ru
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; }
96,954,765
en
JavaScript
logic_ops
advanced
Write logic to check if the year 2049 is a leap year in JavaScript.
function isLeap() { let y = 2049; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Write logic to check if the year 2049 is a leap year in JavaScript. ### Response: function isLeap() { let y = 2049; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
23,110,094
ru
C++
string_ops
intermediate
Напишите на C++ функцию, которая проверяет, является ли строка палиндромом.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Напишите на C++ функцию, которая проверяет, является ли строка палиндромом. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
44,659,526
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; }
2,414,261
en
C++
var_decl
beginner
How to declare a variable rate with value 529231 in C++?
int rate = 529231;
### Instruction: How to declare a variable rate with value 529231 in C++? ### Response: int rate = 529231;
72,703,894
en
Java
string_ops
intermediate
Write a function that counts vowels in a text in Java.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in Java. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
32,250,468
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аеёиоуыэюя')
1,542,271
en
Python
var_decl
beginner
How to declare a variable weight with value 96686 in Python?
weight = 96686
### Instruction: How to declare a variable weight with value 96686 in Python? ### Response: weight = 96686
3,080,680
kk
Unity
var_decl
beginner
Unity тілінде 581765 мәнімен value айнымалысын қалай жариялауға болады?
int value = 581765;
### Instruction: Unity тілінде 581765 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 581765;
2,763,512
kk
JavaScript
var_decl
beginner
JavaScript тілінде 88817 мәнімен result айнымалысын қалай жариялауға болады?
let result = 88817;
### Instruction: JavaScript тілінде 88817 мәнімен result айнымалысын қалай жариялауға болады? ### Response: let result = 88817;
3,187,488
ru
JavaScript
var_decl
beginner
Как объявить переменную speed со значением 667770 в JavaScript?
let speed = 667770;
### Instruction: Как объявить переменную speed со значением 667770 в JavaScript? ### Response: let speed = 667770;
50,038,932
en
C++
array_ops
intermediate
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; }
92,104,624
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(); }
66,253,789
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]
45,901,299
en
C#
logic_ops
advanced
Write logic to check if the year 1984 is a leap year in C#.
public bool IsLeap() { int y = 1984; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1984 is a leap year in C#. ### Response: public bool IsLeap() { int y = 1984; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
605,258
en
Unity
factorial
advanced
Write a function in Unity that calculates the factorial of 1294.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(1294)); }
### Instruction: Write a function in Unity that calculates the factorial of 1294. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(1294)); }
1,128,362
ru
Java
var_decl
beginner
Как объявить переменную offset со значением 970052 в Java?
int offset = 970052;
### Instruction: Как объявить переменную offset со значением 970052 в Java? ### Response: int offset = 970052;
1,103,896
en
Unity
var_decl
beginner
How to declare a variable y with value 259217 in Unity?
int y = 259217;
### Instruction: How to declare a variable y with value 259217 in Unity? ### Response: int y = 259217;
98,504,264
en
Unity
logic_ops
intermediate
Write logic to check if the year 2000 is a leap year in Unity.
public bool IsLeap() { int y = 2000; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2000 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2000; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
69,883,368
kk
JavaScript
string_ops
intermediate
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
81,481,956
ru
Java
logic_ops
intermediate
Напишите на Java логику проверки, является ли год 2062 високосным.
public bool IsLeap() { int y = 2062; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 2062 високосным. ### Response: public bool IsLeap() { int y = 2062; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
71,999,258
en
Unity
array_ops
advanced
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); }
56,106,915
ru
Unity
array_ops
intermediate
Напишите на Unity функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на Unity функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
18,422,149
en
C++
logic_ops
intermediate
Write a function that determines if the number 454 is prime in C++.
public bool IsPrime() { int n = 454; 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 454 is prime in C++. ### Response: public bool IsPrime() { int n = 454; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
945,431
ru
C#
var_decl
beginner
Как объявить переменную weight со значением 804415 в C#?
int weight = 804415;
### Instruction: Как объявить переменную weight со значением 804415 в C#? ### Response: int weight = 804415;
21,481,897
ru
Java
logic_ops
intermediate
Напишите на Java функцию, определяющую, является ли число 227 простым.
public bool IsPrime() { int n = 227; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 227 простым. ### Response: public bool IsPrime() { int n = 227; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,298,501
en
JavaScript
var_decl
beginner
How to declare a variable score with value 950867 in JavaScript?
let score = 950867;
### Instruction: How to declare a variable score with value 950867 in JavaScript? ### Response: let score = 950867;
1,650,158
ru
C#
var_decl
beginner
Как объявить переменную value со значением 521316 в C#?
int value = 521316;
### Instruction: Как объявить переменную value со значением 521316 в C#? ### Response: int value = 521316;
17,294,190
en
C#
array_ops
intermediate
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; }
4,727,071
kk
JavaScript
var_decl
beginner
JavaScript тілінде 832691 мәнімен level айнымалысын қалай жариялауға болады?
let level = 832691;
### Instruction: JavaScript тілінде 832691 мәнімен level айнымалысын қалай жариялауға болады? ### Response: let level = 832691;
24,772,737
ru
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; }
2,764,948
ru
C++
var_decl
beginner
Как объявить переменную value со значением 723296 в C++?
int value = 723296;
### Instruction: Как объявить переменную value со значением 723296 в C++? ### Response: int value = 723296;
871,130
ru
C++
var_decl
beginner
Как объявить переменную data со значением 139907 в C++?
int data = 139907;
### Instruction: Как объявить переменную data со значением 139907 в C++? ### Response: int data = 139907;
24,850,316
ru
Python
array_ops
advanced
Напишите на Python функцию, которая фильтрует только четные числа из списка.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Напишите на Python функцию, которая фильтрует только четные числа из списка. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
84,084,767
en
JavaScript
string_ops
intermediate
Write a function that counts vowels in a text in JavaScript.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Write a function that counts vowels in a text in JavaScript. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
61,590,023
ru
Unity
logic_ops
advanced
Напишите на Unity логику проверки, является ли год 1933 високосным.
public bool IsLeap() { int y = 1933; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1933 високосным. ### Response: public bool IsLeap() { int y = 1933; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
85,629,215
ru
Python
array_ops
advanced
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
2,999,547
en
C++
var_decl
beginner
How to declare a variable count with value 445751 in C++?
int count = 445751;
### Instruction: How to declare a variable count with value 445751 in C++? ### Response: int count = 445751;
4,306,705
en
Python
var_decl
beginner
How to declare a variable x with value 256684 in Python?
x = 256684
### Instruction: How to declare a variable x with value 256684 in Python? ### Response: x = 256684
49,049,317
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); }
90,768,247
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; }
4,370,041
ru
C++
var_decl
beginner
Как объявить переменную y со значением 814213 в C++?
int y = 814213;
### Instruction: Как объявить переменную y со значением 814213 в C++? ### Response: int y = 814213;
21,105,191
kk
Java
logic_ops
advanced
Java тилінде 120 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 120; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 120 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 120; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
43,141,936
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 441 простым.
public bool IsPrime() { int n = 441; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 441 простым. ### Response: public bool IsPrime() { int n = 441; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
27,597,312
kk
C++
string_ops
intermediate
C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
3,405,817
en
Java
var_decl
beginner
How to declare a variable value with value 968456 in Java?
int value = 968456;
### Instruction: How to declare a variable value with value 968456 in Java? ### Response: int value = 968456;
68,879,623
en
Java
array_ops
intermediate
Write a function that reverses a list in Java.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in Java. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }