id
int64
0
100M
language
stringclasses
3 values
prog_lang
stringclasses
6 values
category
stringclasses
10 values
difficulty
stringclasses
3 values
instruction
stringlengths
30
86
output
stringlengths
7
192
text
stringlengths
92
300
30,020,305
en
Java
logic_ops
advanced
Write logic to check if the year 2072 is a leap year in Java.
public bool IsLeap() { int y = 2072; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2072 is a leap year in Java. ### Response: public bool IsLeap() { int y = 2072; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
73,883,526
kk
JavaScript
array_ops
advanced
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
38,497,596
kk
Java
logic_ops
advanced
Java тилінде 497 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 497; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 497 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 497; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,831,672
kk
C#
var_decl
beginner
C# тілінде 683553 мәнімен index айнымалысын қалай жариялауға болады?
int index = 683553;
### Instruction: C# тілінде 683553 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 683553;
4,743,469
kk
JavaScript
var_decl
beginner
JavaScript тілінде 476174 мәнімен buffer айнымалысын қалай жариялауға болады?
let buffer = 476174;
### Instruction: JavaScript тілінде 476174 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: let buffer = 476174;
2,245,038
en
C++
var_decl
beginner
How to declare a variable value with value 311563 in C++?
int value = 311563;
### Instruction: How to declare a variable value with value 311563 in C++? ### Response: int value = 311563;
590,813
kk
JavaScript
var_decl
beginner
JavaScript тілінде 621430 мәнімен rate айнымалысын қалай жариялауға болады?
let rate = 621430;
### Instruction: JavaScript тілінде 621430 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: let rate = 621430;
4,495,359
en
C++
var_decl
beginner
How to declare a variable total with value 634350 in C++?
int total = 634350;
### Instruction: How to declare a variable total with value 634350 in C++? ### Response: int total = 634350;
1,800,332
ru
C++
var_decl
beginner
Как объявить переменную total со значением 183239 в C++?
int total = 183239;
### Instruction: Как объявить переменную total со значением 183239 в C++? ### Response: int total = 183239;
67,518,483
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; }
56,389,159
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); }
73,355,831
kk
C#
string_ops
advanced
C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
1,022,163
ru
C#
var_decl
beginner
Как объявить переменную x со значением 766245 в C#?
int x = 766245;
### Instruction: Как объявить переменную x со значением 766245 в C#? ### Response: int x = 766245;
3,632,805
kk
Unity
var_decl
beginner
Unity тілінде 99854 мәнімен timer айнымалысын қалай жариялауға болады?
int timer = 99854;
### Instruction: Unity тілінде 99854 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: int timer = 99854;
91,572,264
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('');
173,160
kk
Python
var_decl
beginner
Python тілінде 816442 мәнімен amount айнымалысын қалай жариялауға болады?
amount = 816442
### Instruction: Python тілінде 816442 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: amount = 816442
60,203,405
en
C#
string_ops
advanced
Write a function that converts a string to uppercase in C#.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in C#. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
82,421,866
ru
C++
string_ops
advanced
Напишите на C++ функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на C++ функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
19,806,009
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая находит максимальное число в массиве.
def get_max(arr): return max(arr)
### Instruction: Напишите на Python функцию, которая находит максимальное число в массиве. ### Response: def get_max(arr): return max(arr)
1,879,587
kk
Python
var_decl
beginner
Python тілінде 785290 мәнімен value айнымалысын қалай жариялауға болады?
value = 785290
### Instruction: Python тілінде 785290 мәнімен value айнымалысын қалай жариялауға болады? ### Response: value = 785290
616,552
ru
Unity
var_decl
beginner
Как объявить переменную data со значением 934302 в Unity?
int data = 934302;
### Instruction: Как объявить переменную data со значением 934302 в Unity? ### Response: int data = 934302;
81,386,735
kk
Python
array_ops
advanced
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
3,062,674
kk
Unity
var_decl
beginner
Unity тілінде 851283 мәнімен health айнымалысын қалай жариялауға болады?
int health = 851283;
### Instruction: Unity тілінде 851283 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 851283;
36,778,999
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);
30,783,432
kk
Unity
logic_ops
advanced
Unity тилінде 1953 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1953; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1953 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1953; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
386,765
en
C#
var_decl
beginner
How to declare a variable value with value 325971 in C#?
int value = 325971;
### Instruction: How to declare a variable value with value 325971 in C#? ### Response: int value = 325971;
4,405,563
kk
C#
var_decl
beginner
C# тілінде 789595 мәнімен level айнымалысын қалай жариялауға болады?
int level = 789595;
### Instruction: C# тілінде 789595 мәнімен level айнымалысын қалай жариялауға болады? ### Response: int level = 789595;
2,138,508
en
Python
var_decl
beginner
How to declare a variable x with value 263921 in Python?
x = 263921
### Instruction: How to declare a variable x with value 263921 in Python? ### Response: x = 263921
82,249,579
kk
Java
logic_ops
advanced
Java тилінде 68 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 68; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 68 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 68; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
636,584
en
C#
factorial
advanced
Write a function in C# that calculates the factorial of 186.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(186));
### Instruction: Write a function in C# that calculates the factorial of 186. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(186));
27,657,641
kk
Python
string_ops
intermediate
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
def is_palindrome(s): return s == s[::-1]
### Instruction: Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: def is_palindrome(s): return s == s[::-1]
2,289,442
en
Python
var_decl
beginner
How to declare a variable limit with value 868861 in Python?
limit = 868861
### Instruction: How to declare a variable limit with value 868861 in Python? ### Response: limit = 868861
73,133,073
kk
Python
string_ops
advanced
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
def is_palindrome(s): return s == s[::-1]
### Instruction: Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: def is_palindrome(s): return s == s[::-1]
32,943,991
ru
Unity
array_ops
intermediate
Напишите на Unity функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на Unity функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
1,142,896
kk
Unity
var_decl
beginner
Unity тілінде 719674 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 719674;
### Instruction: Unity тілінде 719674 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 719674;
68,883,548
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);
79,992,401
en
C++
array_ops
advanced
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); }
3,508,262
en
C++
var_decl
beginner
How to declare a variable buffer with value 99293 in C++?
int buffer = 99293;
### Instruction: How to declare a variable buffer with value 99293 in C++? ### Response: int buffer = 99293;
587,633
kk
C#
sum_n
intermediate
C# тілінде 1-ден 935-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(935));
### Instruction: C# тілінде 1-ден 935-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(935));
4,253,981
kk
Unity
var_decl
beginner
Unity тілінде 678698 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 678698;
### Instruction: Unity тілінде 678698 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 678698;
1,025,196
kk
C#
var_decl
beginner
C# тілінде 511021 мәнімен data айнымалысын қалай жариялауға болады?
int data = 511021;
### Instruction: C# тілінде 511021 мәнімен data айнымалысын қалай жариялауға болады? ### Response: int data = 511021;
47,854,143
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); }
2,082,035
ru
Python
var_decl
beginner
Как объявить переменную limit со значением 447445 в Python?
limit = 447445
### Instruction: Как объявить переменную limit со значением 447445 в Python? ### Response: limit = 447445
52,325,482
ru
C++
logic_ops
intermediate
Напишите на C++ функцию, определяющую, является ли число 233 простым.
public bool IsPrime() { int n = 233; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 233 простым. ### Response: public bool IsPrime() { int n = 233; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,635,268
ru
Java
var_decl
beginner
Как объявить переменную size со значением 324070 в Java?
int size = 324070;
### Instruction: Как объявить переменную size со значением 324070 в Java? ### Response: int size = 324070;
57,062,171
en
C#
logic_ops
intermediate
Write logic to check if the year 2049 is a leap year in C#.
public bool IsLeap() { int 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 C#. ### Response: public bool IsLeap() { int y = 2049; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
17,560,442
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
const getMax = arr => Math.max(...arr);
### Instruction: Напишите на JavaScript функцию, которая находит максимальное число в массиве. ### Response: const getMax = arr => Math.max(...arr);
756,049
ru
C++
var_decl
beginner
Как объявить переменную total со значением 90862 в C++?
int total = 90862;
### Instruction: Как объявить переменную total со значением 90862 в C++? ### Response: int total = 90862;
417,208
kk
Java
sum_n
intermediate
Java тілінде 1-ден 9531-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(9531));
### Instruction: Java тілінде 1-ден 9531-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(9531));
1,413,750
en
Python
var_decl
beginner
How to declare a variable result with value 393063 in Python?
result = 393063
### Instruction: How to declare a variable result with value 393063 in Python? ### Response: result = 393063
68,190,420
kk
Java
string_ops
advanced
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; }
1,422,318
en
Java
var_decl
beginner
How to declare a variable speed with value 383933 in Java?
int speed = 383933;
### Instruction: How to declare a variable speed with value 383933 in Java? ### Response: int speed = 383933;
30,414,028
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
const toUpper = s => s.toUpperCase();
### Instruction: Напишите на JavaScript функцию, которая переводит строку в верхний регистр. ### Response: const toUpper = s => s.toUpperCase();
652,846
en
Python
factorial
advanced
Write a function in Python that calculates the factorial of 2261.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(2261))
### Instruction: Write a function in Python that calculates the factorial of 2261. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(2261))
199,144
ru
C++
factorial
advanced
Напиши функцию на C++, которая вычисляет факториал числа 5274.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(5274) << std::endl;
### Instruction: Напиши функцию на C++, которая вычисляет факториал числа 5274. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(5274) << std::endl;
40,630,363
en
C#
string_ops
intermediate
Write a function that checks if a string is a palindrome in C#.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in C#. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
20,603,871
kk
Python
logic_ops
intermediate
Python тилінде 27 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 27 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 27 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 27 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
52,994,494
kk
Java
array_ops
intermediate
Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
44,359,650
kk
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; }
57,933,415
kk
Unity
logic_ops
intermediate
Unity тилінде 1981 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1981; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1981 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1981; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
34,215,605
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; }
46,738,611
ru
Python
array_ops
advanced
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
94,797,357
ru
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аеёиоуыэюя')
89,865,913
kk
C++
string_ops
advanced
C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
3,248,726
en
Unity
var_decl
beginner
How to declare a variable limit with value 79376 in Unity?
int limit = 79376;
### Instruction: How to declare a variable limit with value 79376 in Unity? ### Response: int limit = 79376;
4,390,508
kk
Java
var_decl
beginner
Java тілінде 368983 мәнімен value айнымалысын қалай жариялауға болады?
int value = 368983;
### Instruction: Java тілінде 368983 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 368983;
1,976,647
ru
JavaScript
var_decl
beginner
Как объявить переменную value со значением 531908 в JavaScript?
let value = 531908;
### Instruction: Как объявить переменную value со значением 531908 в JavaScript? ### Response: let value = 531908;
138,715
kk
Unity
sum_n
intermediate
Unity тілінде 1-ден 1248-ге дейінгі сандардың қосындысын есептейтін функция жаз.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1248)); }
### Instruction: Unity тілінде 1-ден 1248-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(1248)); }
1,914,255
en
Unity
var_decl
beginner
How to declare a variable total with value 210549 in Unity?
int total = 210549;
### Instruction: How to declare a variable total with value 210549 in Unity? ### Response: int total = 210549;
4,392,184
kk
C#
var_decl
beginner
C# тілінде 736869 мәнімен buffer айнымалысын қалай жариялауға болады?
int buffer = 736869;
### Instruction: C# тілінде 736869 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: int buffer = 736869;
1,949,264
ru
JavaScript
var_decl
beginner
Как объявить переменную value со значением 172959 в JavaScript?
let value = 172959;
### Instruction: Как объявить переменную value со значением 172959 в JavaScript? ### Response: let value = 172959;
1,806,057
en
JavaScript
var_decl
beginner
How to declare a variable result with value 885480 in JavaScript?
let result = 885480;
### Instruction: How to declare a variable result with value 885480 in JavaScript? ### Response: let result = 885480;
89,955,494
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
54,964,174
kk
C++
array_ops
intermediate
C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
44,998,619
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); }
3,625,703
ru
JavaScript
var_decl
beginner
Как объявить переменную y со значением 335719 в JavaScript?
let y = 335719;
### Instruction: Как объявить переменную y со значением 335719 в JavaScript? ### Response: let y = 335719;
4,027,932
ru
C++
var_decl
beginner
Как объявить переменную size со значением 441270 в C++?
int size = 441270;
### Instruction: Как объявить переменную size со значением 441270 в C++? ### Response: int size = 441270;
631,967
en
JavaScript
factorial
advanced
Write a function in JavaScript that calculates the factorial of 6639.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(6639));
### Instruction: Write a function in JavaScript that calculates the factorial of 6639. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(6639));
72,597,954
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 43 простым.
public bool IsPrime() { int n = 43; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 43 простым. ### Response: public bool IsPrime() { int n = 43; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
25,850,568
ru
C++
array_ops
advanced
Напишите на C++ функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на C++ функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
72,390,054
en
C++
logic_ops
advanced
Write a function that determines if the number 347 is prime in C++.
public bool IsPrime() { int n = 347; 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 347 is prime in C++. ### Response: public bool IsPrime() { int n = 347; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
67,348,856
kk
C#
string_ops
advanced
C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
4,447,517
en
Java
var_decl
beginner
How to declare a variable index with value 250153 in Java?
int index = 250153;
### Instruction: How to declare a variable index with value 250153 in Java? ### Response: int index = 250153;
81,138,495
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; }
2,225,289
ru
C++
var_decl
beginner
Как объявить переменную count со значением 183308 в C++?
int count = 183308;
### Instruction: Как объявить переменную count со значением 183308 в C++? ### Response: int count = 183308;
38,881,958
kk
Python
logic_ops
advanced
Python тилінде 2003 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
def is_leap(): year = 2003 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Python тилінде 2003 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: def is_leap(): year = 2003 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
33,552,644
kk
Unity
array_ops
intermediate
Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
71,850,176
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
2,124,581
kk
Java
var_decl
beginner
Java тілінде 269914 мәнімен index айнымалысын қалай жариялауға болады?
int index = 269914;
### Instruction: Java тілінде 269914 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 269914;
80,002,991
en
C#
string_ops
advanced
Write a function that converts a string to uppercase in C#.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in C#. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
10,672,814
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 2002 високосным.
public bool IsLeap() { int y = 2002; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2002 високосным. ### Response: public bool IsLeap() { int y = 2002; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
59,395,340
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); }
56,907,090
kk
Unity
logic_ops
intermediate
Unity тилінде 378 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 378; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 378 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 378; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
32,665,836
en
Unity
logic_ops
advanced
Write logic to check if the year 2004 is a leap year in Unity.
public bool IsLeap() { int y = 2004; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2004 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2004; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
13,330,964
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 471 is prime in JavaScript.
function isPrime() { let n = 471; 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 471 is prime in JavaScript. ### Response: function isPrime() { let n = 471; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
2,587,422
ru
Java
var_decl
beginner
Как объявить переменную size со значением 886799 в Java?
int size = 886799;
### Instruction: Как объявить переменную size со значением 886799 в Java? ### Response: int size = 886799;
69,285,392
kk
Unity
logic_ops
intermediate
Unity тилінде 1911 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1911; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1911 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1911; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,171,284
ru
Unity
var_decl
beginner
Как объявить переменную count со значением 374591 в Unity?
int count = 374591;
### Instruction: Как объявить переменную count со значением 374591 в Unity? ### Response: int count = 374591;
37,526,998
en
C++
string_ops
intermediate
Write a function that converts a string to uppercase in C++.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in C++. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
4,193,149
en
Python
var_decl
beginner
How to declare a variable result with value 367130 in Python?
result = 367130
### Instruction: How to declare a variable result with value 367130 in Python? ### Response: result = 367130