id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
2,089,666
en
JavaScript
var_decl
beginner
How to declare a variable health with value 537816 in JavaScript?
let health = 537816;
### Instruction: How to declare a variable health with value 537816 in JavaScript? ### Response: let health = 537816;
4,233,893
ru
C++
var_decl
beginner
Как объявить переменную score со значением 293692 в C++?
int score = 293692;
### Instruction: Как объявить переменную score со значением 293692 в C++? ### Response: int score = 293692;
75,545,592
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();
3,660,030
kk
Java
var_decl
beginner
Java тілінде 763982 мәнімен size айнымалысын қалай жариялауға болады?
int size = 763982;
### Instruction: Java тілінде 763982 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 763982;
15,066,128
ru
Unity
string_ops
intermediate
Напишите на Unity функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на Unity функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
2,274,189
kk
C++
var_decl
beginner
C++ тілінде 501466 мәнімен limit айнымалысын қалай жариялауға болады?
int limit = 501466;
### Instruction: C++ тілінде 501466 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: int limit = 501466;
4,365,139
ru
C++
var_decl
beginner
Как объявить переменную index со значением 839546 в C++?
int index = 839546;
### Instruction: Как объявить переменную index со значением 839546 в C++? ### Response: int index = 839546;
13,102,714
en
Python
array_ops
intermediate
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)
855,061
ru
C++
factorial
advanced
Напиши функцию на C++, которая вычисляет факториал числа 9322.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(9322) << std::endl;
### Instruction: Напиши функцию на C++, которая вычисляет факториал числа 9322. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(9322) << std::endl;
1,502,209
en
JavaScript
var_decl
beginner
How to declare a variable rate with value 739887 in JavaScript?
let rate = 739887;
### Instruction: How to declare a variable rate with value 739887 in JavaScript? ### Response: let rate = 739887;
47,684
kk
JavaScript
sum_n
intermediate
JavaScript тілінде 1-ден 1372-ге дейінгі сандардың қосындысын есептейтін функция жаз.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(1372));
### Instruction: JavaScript тілінде 1-ден 1372-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(1372));
4,968,829
en
C++
var_decl
beginner
How to declare a variable index with value 956913 in C++?
int index = 956913;
### Instruction: How to declare a variable index with value 956913 in C++? ### Response: int index = 956913;
61,702,627
kk
Python
logic_ops
advanced
Python тилінде 1982 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
def is_leap(): year = 1982 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Python тилінде 1982 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: def is_leap(): year = 1982 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
33,182,556
kk
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; }
45,933,560
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; }
1,952,358
ru
JavaScript
var_decl
beginner
Как объявить переменную amount со значением 857681 в JavaScript?
let amount = 857681;
### Instruction: Как объявить переменную amount со значением 857681 в JavaScript? ### Response: let amount = 857681;
28,997,249
en
Java
array_ops
advanced
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); }
26,122,288
en
Python
string_ops
intermediate
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()
512,104
en
C++
var_decl
beginner
How to declare a variable amount with value 215043 in C++?
int amount = 215043;
### Instruction: How to declare a variable amount with value 215043 in C++? ### Response: int amount = 215043;
2,253,151
kk
C#
var_decl
beginner
C# тілінде 20180 мәнімен level айнымалысын қалай жариялауға болады?
int level = 20180;
### Instruction: C# тілінде 20180 мәнімен level айнымалысын қалай жариялауға болады? ### Response: int level = 20180;
56,529,769
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
62,655,114
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 2045 високосным.
public bool IsLeap() { int y = 2045; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2045 високосным. ### Response: public bool IsLeap() { int y = 2045; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
67,707,842
kk
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,687,291
en
JavaScript
var_decl
beginner
How to declare a variable x with value 283213 in JavaScript?
let x = 283213;
### Instruction: How to declare a variable x with value 283213 in JavaScript? ### Response: let x = 283213;
479,923
kk
JavaScript
sum_n
intermediate
JavaScript тілінде 1-ден 7463-ге дейінгі сандардың қосындысын есептейтін функция жаз.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(7463));
### Instruction: JavaScript тілінде 1-ден 7463-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(7463));
12,146,530
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(); }
4,761,711
en
JavaScript
var_decl
beginner
How to declare a variable score with value 451231 in JavaScript?
let score = 451231;
### Instruction: How to declare a variable score with value 451231 in JavaScript? ### Response: let score = 451231;
48,726,340
kk
Python
array_ops
intermediate
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
def get_max(arr): return max(arr)
### Instruction: Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: def get_max(arr): return max(arr)
82,362,675
en
Unity
array_ops
intermediate
Write a function that reverses a list in Unity.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in Unity. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
27,217,885
kk
JavaScript
array_ops
intermediate
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
65,166,152
en
Unity
array_ops
advanced
Write a function that filters only even numbers from a list in Unity.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Write a function that filters only even numbers from a list in Unity. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
1,475,035
kk
JavaScript
var_decl
beginner
JavaScript тілінде 425959 мәнімен health айнымалысын қалай жариялауға болады?
let health = 425959;
### Instruction: JavaScript тілінде 425959 мәнімен health айнымалысын қалай жариялауға болады? ### Response: let health = 425959;
245,862
en
Unity
factorial
advanced
Write a function in Unity that calculates the factorial of 8437.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(8437)); }
### Instruction: Write a function in Unity that calculates the factorial of 8437. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(8437)); }
74,346,072
ru
C++
logic_ops
intermediate
Напишите на C++ логику проверки, является ли год 2041 високосным.
public bool IsLeap() { int y = 2041; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 2041 високосным. ### Response: public bool IsLeap() { int y = 2041; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
53,661,518
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая находит максимальное число в массиве.
def get_max(arr): return max(arr)
### Instruction: Напишите на Python функцию, которая находит максимальное число в массиве. ### Response: def get_max(arr): return max(arr)
91,451,131
en
C++
logic_ops
intermediate
Write logic to check if the year 2027 is a leap year in C++.
public bool IsLeap() { int y = 2027; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2027 is a leap year in C++. ### Response: public bool IsLeap() { int y = 2027; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,314,291
ru
Java
var_decl
beginner
Как объявить переменную score со значением 812184 в Java?
int score = 812184;
### Instruction: Как объявить переменную score со значением 812184 в Java? ### Response: int score = 812184;
1,440,170
ru
Python
var_decl
beginner
Как объявить переменную amount со значением 372175 в Python?
amount = 372175
### Instruction: Как объявить переменную amount со значением 372175 в Python? ### Response: amount = 372175
11,401,382
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; }
87,981,053
ru
Unity
string_ops
advanced
Напишите на Unity функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на Unity функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
2,703,415
ru
JavaScript
var_decl
beginner
Как объявить переменную index со значением 600526 в JavaScript?
let index = 600526;
### Instruction: Как объявить переменную index со значением 600526 в JavaScript? ### Response: let index = 600526;
437,868
kk
JavaScript
factorial
advanced
JavaScript тілінде 5342 санының факториалын есептейтін функция жаз.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(5342));
### Instruction: JavaScript тілінде 5342 санының факториалын есептейтін функция жаз. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(5342));
83,235,891
kk
Java
logic_ops
advanced
Java тилінде 212 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 212; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 212 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 212; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
597,342
en
C++
factorial
advanced
Write a function in C++ that calculates the factorial of 3207.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(3207) << std::endl;
### Instruction: Write a function in C++ that calculates the factorial of 3207. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(3207) << std::endl;
1,482,085
en
JavaScript
var_decl
beginner
How to declare a variable buffer with value 663979 in JavaScript?
let buffer = 663979;
### Instruction: How to declare a variable buffer with value 663979 in JavaScript? ### Response: let buffer = 663979;
66,236,901
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; }
691,758
kk
JavaScript
var_decl
beginner
JavaScript тілінде 761110 мәнімен amount айнымалысын қалай жариялауға болады?
let amount = 761110;
### Instruction: JavaScript тілінде 761110 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: let amount = 761110;
39,631,242
kk
C#
logic_ops
intermediate
C# тилінде 143 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 143; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 143 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 143; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,021,341
en
C++
var_decl
beginner
How to declare a variable count with value 519442 in C++?
int count = 519442;
### Instruction: How to declare a variable count with value 519442 in C++? ### Response: int count = 519442;
81,165,966
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; }
91,757,489
en
Python
logic_ops
intermediate
Write a function that determines if the number 231 is prime in Python.
def is_prime(): n = 231 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 231 is prime in Python. ### Response: def is_prime(): n = 231 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
17,157,454
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 1927 високосным.
public bool IsLeap() { int y = 1927; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 1927 високосным. ### Response: public bool IsLeap() { int y = 1927; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,085,619
kk
C++
var_decl
beginner
C++ тілінде 443228 мәнімен data айнымалысын қалай жариялауға болады?
int data = 443228;
### Instruction: C++ тілінде 443228 мәнімен data айнымалысын қалай жариялауға болады? ### Response: int data = 443228;
343,401
ru
C#
factorial
advanced
Напиши функцию на C#, которая вычисляет факториал числа 7416.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(7416));
### Instruction: Напиши функцию на C#, которая вычисляет факториал числа 7416. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(7416));
29,976,761
en
JavaScript
logic_ops
advanced
Write logic to check if the year 1941 is a leap year in JavaScript.
function isLeap() { let y = 1941; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Write logic to check if the year 1941 is a leap year in JavaScript. ### Response: function isLeap() { let y = 1941; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
29,083,069
ru
Python
logic_ops
advanced
Напишите на Python функцию, определяющую, является ли число 55 простым.
def is_prime(): n = 55 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Напишите на Python функцию, определяющую, является ли число 55 простым. ### Response: def is_prime(): n = 55 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
13,201,547
en
Java
logic_ops
intermediate
Write a function that determines if the number 4 is prime in Java.
public bool IsPrime() { int n = 4; 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 4 is prime in Java. ### Response: public bool IsPrime() { int n = 4; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
85,583,992
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; }
3,478,336
ru
Python
var_decl
beginner
Как объявить переменную level со значением 72924 в Python?
level = 72924
### Instruction: Как объявить переменную level со значением 72924 в Python? ### Response: level = 72924
2,113
en
Java
func_def
intermediate
Write a function process in Java that takes total and doubles it.
static int process(int total) { return total * 2; }
### Instruction: Write a function process in Java that takes total and doubles it. ### Response: static int process(int total) { return total * 2; }
22,214,234
kk
Python
array_ops
advanced
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
31,544,938
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; }
43,665,522
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
15,633,681
kk
C#
logic_ops
advanced
C# тилінде 375 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 375; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 375 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 375; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
126,857
en
C++
var_decl
beginner
How to declare a variable level with value 928143 in C++?
int level = 928143;
### Instruction: How to declare a variable level with value 928143 in C++? ### Response: int level = 928143;
63,078,841
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; }
2,865,748
en
Python
var_decl
beginner
How to declare a variable offset with value 885664 in Python?
offset = 885664
### Instruction: How to declare a variable offset with value 885664 in Python? ### Response: offset = 885664
35,077,485
kk
JavaScript
string_ops
intermediate
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
const toUpper = s => s.toUpperCase();
### Instruction: JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: const toUpper = s => s.toUpperCase();
1,734,221
ru
Unity
var_decl
beginner
Как объявить переменную health со значением 634745 в Unity?
int health = 634745;
### Instruction: Как объявить переменную health со значением 634745 в Unity? ### Response: int health = 634745;
1,644,740
en
C++
var_decl
beginner
How to declare a variable count with value 860486 in C++?
int count = 860486;
### Instruction: How to declare a variable count with value 860486 in C++? ### Response: int count = 860486;
46,378,875
kk
Unity
string_ops
advanced
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
4,028,391
ru
JavaScript
var_decl
beginner
Как объявить переменную offset со значением 349079 в JavaScript?
let offset = 349079;
### Instruction: Как объявить переменную offset со значением 349079 в JavaScript? ### Response: let offset = 349079;
3,438,318
kk
Unity
var_decl
beginner
Unity тілінде 860737 мәнімен score айнымалысын қалай жариялауға болады?
int score = 860737;
### Instruction: Unity тілінде 860737 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 860737;
61,990,356
en
JavaScript
array_ops
advanced
Write a function that finds the maximum number in an array in JavaScript.
const getMax = arr => Math.max(...arr);
### Instruction: Write a function that finds the maximum number in an array in JavaScript. ### Response: const getMax = arr => Math.max(...arr);
4,800,516
en
Unity
var_decl
beginner
How to declare a variable buffer with value 771005 in Unity?
int buffer = 771005;
### Instruction: How to declare a variable buffer with value 771005 in Unity? ### Response: int buffer = 771005;
4,141,108
kk
JavaScript
var_decl
beginner
JavaScript тілінде 715643 мәнімен value айнымалысын қалай жариялауға болады?
let value = 715643;
### Instruction: JavaScript тілінде 715643 мәнімен value айнымалысын қалай жариялауға болады? ### Response: let value = 715643;
32,418,110
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]
2,733,695
en
C++
var_decl
beginner
How to declare a variable offset with value 919130 in C++?
int offset = 919130;
### Instruction: How to declare a variable offset with value 919130 in C++? ### Response: int offset = 919130;
945,154
ru
JavaScript
var_decl
beginner
Как объявить переменную x со значением 257207 в JavaScript?
let x = 257207;
### Instruction: Как объявить переменную x со значением 257207 в JavaScript? ### Response: let x = 257207;
3,975,044
en
C++
var_decl
beginner
How to declare a variable timer with value 515921 in C++?
int timer = 515921;
### Instruction: How to declare a variable timer with value 515921 in C++? ### Response: int timer = 515921;
314,397
en
JavaScript
sum_n
intermediate
Write a function in JavaScript that sums numbers from 1 to 9119.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(9119));
### Instruction: Write a function in JavaScript that sums numbers from 1 to 9119. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(9119));
94,878,370
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
const getMax = arr => Math.max(...arr);
### Instruction: Напишите на JavaScript функцию, которая находит максимальное число в массиве. ### Response: const getMax = arr => Math.max(...arr);
47,524,631
kk
JavaScript
array_ops
advanced
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
14,744,558
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 405 is prime in JavaScript.
function isPrime() { let n = 405; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Write a function that determines if the number 405 is prime in JavaScript. ### Response: function isPrime() { let n = 405; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
494,468
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 8328.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(8328))
### Instruction: Write a function in Python that sums numbers from 1 to 8328. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(8328))
3,973,362
en
Java
var_decl
beginner
How to declare a variable offset with value 596517 in Java?
int offset = 596517;
### Instruction: How to declare a variable offset with value 596517 in Java? ### Response: int offset = 596517;
35,244,159
kk
Unity
logic_ops
advanced
Unity тилінде 2094 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2094; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2094 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2094; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
47,452,847
ru
Python
string_ops
advanced
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
346,500
ru
C#
sum_n
intermediate
Напиши функцию на C#, которая считает сумму чисел от 1 до 3561.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(3561));
### Instruction: Напиши функцию на C#, которая считает сумму чисел от 1 до 3561. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(3561));
1,751,889
kk
JavaScript
var_decl
beginner
JavaScript тілінде 593463 мәнімен level айнымалысын қалай жариялауға болады?
let level = 593463;
### Instruction: JavaScript тілінде 593463 мәнімен level айнымалысын қалай жариялауға болады? ### Response: let level = 593463;
81,277,729
ru
C++
logic_ops
intermediate
Напишите на C++ логику проверки, является ли год 2079 високосным.
public bool IsLeap() { int y = 2079; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 2079 високосным. ### Response: public bool IsLeap() { int y = 2079; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
92,934,327
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);
120,474
kk
Java
factorial
advanced
Java тілінде 1867 санының факториалын есептейтін функция жаз.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1867));
### Instruction: Java тілінде 1867 санының факториалын есептейтін функция жаз. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1867));
37,704,570
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 1963 високосным.
public bool IsLeap() { int y = 1963; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 1963 високосным. ### Response: public bool IsLeap() { int y = 1963; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,952,523
en
C++
var_decl
beginner
How to declare a variable health with value 878311 in C++?
int health = 878311;
### Instruction: How to declare a variable health with value 878311 in C++? ### Response: int health = 878311;
69,422,853
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; }
110,209
en
C++
factorial
advanced
Write a function in C++ that calculates the factorial of 4488.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(4488) << std::endl;
### Instruction: Write a function in C++ that calculates the factorial of 4488. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(4488) << std::endl;
4,997,545
en
Java
var_decl
beginner
How to declare a variable score with value 659566 in Java?
int score = 659566;
### Instruction: How to declare a variable score with value 659566 in Java? ### Response: int score = 659566;
99,183,455
ru
C#
logic_ops
advanced
Напишите на C# функцию, определяющую, является ли число 492 простым.
public bool IsPrime() { int n = 492; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 492 простым. ### Response: public bool IsPrime() { int n = 492; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
88,977,225
en
C#
string_ops
advanced
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; }