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
61,939,743
kk
C#
logic_ops
advanced
C# тилінде 259 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 259; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 259 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 259; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,509,870
en
JavaScript
var_decl
beginner
How to declare a variable amount with value 974064 in JavaScript?
let amount = 974064;
### Instruction: How to declare a variable amount with value 974064 in JavaScript? ### Response: let amount = 974064;
91,123,787
ru
C#
logic_ops
advanced
Напишите на C# функцию, определяющую, является ли число 336 простым.
public bool IsPrime() { int n = 336; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 336 простым. ### Response: public bool IsPrime() { int n = 336; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
53,142,712
ru
Python
string_ops
advanced
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
3,188,447
ru
Java
var_decl
beginner
Как объявить переменную level со значением 949143 в Java?
int level = 949143;
### Instruction: Как объявить переменную level со значением 949143 в Java? ### Response: int level = 949143;
1,190,969
ru
JavaScript
var_decl
beginner
Как объявить переменную level со значением 945676 в JavaScript?
let level = 945676;
### Instruction: Как объявить переменную level со значением 945676 в JavaScript? ### Response: let level = 945676;
29,127,222
ru
Unity
string_ops
advanced
Напишите на Unity функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на Unity функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
59,462,122
en
Unity
logic_ops
advanced
Write a function that determines if the number 465 is prime in Unity.
public bool IsPrime() { int n = 465; 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 465 is prime in Unity. ### Response: public bool IsPrime() { int n = 465; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
35,497,478
en
C++
logic_ops
intermediate
Write a function that determines if the number 329 is prime in C++.
public bool IsPrime() { int n = 329; 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 329 is prime in C++. ### Response: public bool IsPrime() { int n = 329; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
81,491,600
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(); }
87,927,656
kk
C#
logic_ops
intermediate
C# тилінде 175 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 175; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 175 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 175; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,159,870
kk
Java
var_decl
beginner
Java тілінде 892967 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 892967;
### Instruction: Java тілінде 892967 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 892967;
89,804,539
kk
Unity
logic_ops
advanced
Unity тилінде 127 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 127; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 127 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 127; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
28,630,424
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]
96,168,191
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); }
19,576,233
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 149 простым.
public bool IsPrime() { int n = 149; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 149 простым. ### Response: public bool IsPrime() { int n = 149; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
34,714,894
kk
Unity
logic_ops
advanced
Unity тилінде 2071 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2071; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2071 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2071; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
99,693,091
kk
C#
logic_ops
intermediate
C# тилінде 500 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 500; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 500 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 500; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,919,349
ru
Unity
var_decl
beginner
Как объявить переменную amount со значением 357507 в Unity?
int amount = 357507;
### Instruction: Как объявить переменную amount со значением 357507 в Unity? ### Response: int amount = 357507;
3,838,673
ru
Unity
var_decl
beginner
Как объявить переменную count со значением 572442 в Unity?
int count = 572442;
### Instruction: Как объявить переменную count со значением 572442 в Unity? ### Response: int count = 572442;
299,400
ru
Python
sum_n
intermediate
Напиши функцию на Python, которая считает сумму чисел от 1 до 1158.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1158))
### Instruction: Напиши функцию на Python, которая считает сумму чисел от 1 до 1158. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1158))
17,103,531
en
Java
logic_ops
advanced
Write logic to check if the year 1959 is a leap year in Java.
public bool IsLeap() { int y = 1959; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1959 is a leap year in Java. ### Response: public bool IsLeap() { int y = 1959; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
457,226
en
Java
sum_n
intermediate
Write a function in Java that sums numbers from 1 to 8511.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(8511));
### Instruction: Write a function in Java that sums numbers from 1 to 8511. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(8511));
15,230,410
kk
Unity
logic_ops
advanced
Unity тилінде 1913 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1913; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1913 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1913; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
73,183,182
ru
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); }
52,639,491
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(); }
13,416,140
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(); }
56,634,615
ru
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);
2,191,786
en
Unity
var_decl
beginner
How to declare a variable limit with value 242623 in Unity?
int limit = 242623;
### Instruction: How to declare a variable limit with value 242623 in Unity? ### Response: int limit = 242623;
4,591,079
ru
Java
var_decl
beginner
Как объявить переменную timer со значением 861255 в Java?
int timer = 861255;
### Instruction: Как объявить переменную timer со значением 861255 в Java? ### Response: int timer = 861255;
39,068,111
kk
Unity
array_ops
intermediate
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: 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; }
76,191,506
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); }
53,753,574
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; }
2,730,429
ru
Python
var_decl
beginner
Как объявить переменную total со значением 144487 в Python?
total = 144487
### Instruction: Как объявить переменную total со значением 144487 в Python? ### Response: total = 144487
1,578,574
en
Python
var_decl
beginner
How to declare a variable count with value 951827 in Python?
count = 951827
### Instruction: How to declare a variable count with value 951827 in Python? ### Response: count = 951827
35,489,145
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; }
37,333,653
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(); }
68,350,146
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; }
859,980
ru
C++
var_decl
beginner
Как объявить переменную limit со значением 651832 в C++?
int limit = 651832;
### Instruction: Как объявить переменную limit со значением 651832 в C++? ### Response: int limit = 651832;
17,451,476
en
Unity
logic_ops
advanced
Write logic to check if the year 1987 is a leap year in Unity.
public bool IsLeap() { int y = 1987; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1987 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 1987; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
88,528,176
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; }
157,524
ru
Java
factorial
advanced
Напиши функцию на Java, которая вычисляет факториал числа 5127.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(5127));
### Instruction: Напиши функцию на Java, которая вычисляет факториал числа 5127. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(5127));
60,629,637
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); }
4,846,904
kk
Python
var_decl
beginner
Python тілінде 255247 мәнімен buffer айнымалысын қалай жариялауға болады?
buffer = 255247
### Instruction: Python тілінде 255247 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: buffer = 255247
98,433,449
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(); }
520,075
kk
Unity
sum_n
intermediate
Unity тілінде 1-ден 713-ге дейінгі сандардың қосындысын есептейтін функция жаз.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(713)); }
### Instruction: Unity тілінде 1-ден 713-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(713)); }
3,327,929
en
C++
var_decl
beginner
How to declare a variable y with value 16746 in C++?
int y = 16746;
### Instruction: How to declare a variable y with value 16746 in C++? ### Response: int y = 16746;
1,260,734
en
Java
var_decl
beginner
How to declare a variable buffer with value 711853 in Java?
int buffer = 711853;
### Instruction: How to declare a variable buffer with value 711853 in Java? ### Response: int buffer = 711853;
1,051,035
en
Java
factorial
advanced
Write a function in Java that calculates the factorial of 4450.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(4450));
### Instruction: Write a function in Java that calculates the factorial of 4450. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(4450));
34,959,014
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(); }
439,414
kk
Unity
sum_n
intermediate
Unity тілінде 1-ден 7263-ге дейінгі сандардың қосындысын есептейтін функция жаз.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7263)); }
### Instruction: Unity тілінде 1-ден 7263-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(7263)); }
69,772,292
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); }
25,367,348
ru
C++
logic_ops
intermediate
Напишите на C++ функцию, определяющую, является ли число 80 простым.
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: Напишите на C++ функцию, определяющую, является ли число 80 простым. ### 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; }
2,821,881
kk
Unity
var_decl
beginner
Unity тілінде 316055 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 316055;
### Instruction: Unity тілінде 316055 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 316055;
87,543,871
en
Unity
string_ops
advanced
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; }
11,253,773
kk
C++
logic_ops
intermediate
C++ тилінде 417 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 417; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C++ тилінде 417 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 417; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
90,381,459
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аеёиоуыэюя')
20,429,311
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; }
2,999,909
kk
Python
var_decl
beginner
Python тілінде 250630 мәнімен buffer айнымалысын қалай жариялауға болады?
buffer = 250630
### Instruction: Python тілінде 250630 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: buffer = 250630
76,662,378
en
C#
logic_ops
intermediate
Write logic to check if the year 2054 is a leap year in C#.
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 C#. ### Response: public bool IsLeap() { int y = 2054; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,632,454
ru
JavaScript
var_decl
beginner
Как объявить переменную value со значением 909789 в JavaScript?
let value = 909789;
### Instruction: Как объявить переменную value со значением 909789 в JavaScript? ### Response: let value = 909789;
1,979,011
kk
Python
var_decl
beginner
Python тілінде 315803 мәнімен value айнымалысын қалай жариялауға болады?
value = 315803
### Instruction: Python тілінде 315803 мәнімен value айнымалысын қалай жариялауға болады? ### Response: value = 315803
58,815,891
ru
Python
string_ops
advanced
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
45,247,248
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; }
32,889,680
kk
JavaScript
string_ops
intermediate
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
const toUpper = s => s.toUpperCase();
### Instruction: JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: const toUpper = s => s.toUpperCase();
589,998
en
JavaScript
sum_n
intermediate
Write a function in JavaScript that sums numbers from 1 to 7408.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(7408));
### Instruction: Write a function in JavaScript that sums numbers from 1 to 7408. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(7408));
49,890,124
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; }
49,974,847
en
Python
logic_ops
intermediate
Write logic to check if the year 1928 is a leap year in Python.
def is_leap(): year = 1928 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 1928 is a leap year in Python. ### Response: def is_leap(): year = 1928 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
63,996,196
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; }
49,603,980
ru
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; }
2,233,033
kk
C++
var_decl
beginner
C++ тілінде 523214 мәнімен count айнымалысын қалай жариялауға болады?
int count = 523214;
### Instruction: C++ тілінде 523214 мәнімен count айнымалысын қалай жариялауға болады? ### Response: int count = 523214;
4,744,750
kk
JavaScript
var_decl
beginner
JavaScript тілінде 314095 мәнімен rate айнымалысын қалай жариялауға болады?
let rate = 314095;
### Instruction: JavaScript тілінде 314095 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: let rate = 314095;
77,936,572
en
C++
logic_ops
intermediate
Write logic to check if the year 2083 is a leap year in C++.
public bool IsLeap() { int y = 2083; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2083 is a leap year in C++. ### Response: public bool IsLeap() { int y = 2083; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,054,047
kk
Unity
var_decl
beginner
Unity тілінде 348878 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 348878;
### Instruction: Unity тілінде 348878 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 348878;
49,920,383
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; }
4,586,923
en
Unity
var_decl
beginner
How to declare a variable total with value 310797 in Unity?
int total = 310797;
### Instruction: How to declare a variable total with value 310797 in Unity? ### Response: int total = 310797;
2,879,827
en
Python
var_decl
beginner
How to declare a variable amount with value 515999 in Python?
amount = 515999
### Instruction: How to declare a variable amount with value 515999 in Python? ### Response: amount = 515999
3,460,563
kk
Python
var_decl
beginner
Python тілінде 187544 мәнімен speed айнымалысын қалай жариялауға болады?
speed = 187544
### Instruction: Python тілінде 187544 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: speed = 187544
21,869,471
ru
C#
logic_ops
intermediate
Напишите на C# логику проверки, является ли год 2081 високосным.
public bool IsLeap() { int y = 2081; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 2081 високосным. ### Response: public bool IsLeap() { int y = 2081; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,735,624
kk
Python
var_decl
beginner
Python тілінде 520461 мәнімен weight айнымалысын қалай жариялауға болады?
weight = 520461
### Instruction: Python тілінде 520461 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: weight = 520461
4,711,286
ru
C#
var_decl
beginner
Как объявить переменную score со значением 303171 в C#?
int score = 303171;
### Instruction: Как объявить переменную score со значением 303171 в C#? ### Response: int score = 303171;
31,595,524
ru
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); }
71,324,762
ru
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); }
2,055,533
ru
C++
var_decl
beginner
Как объявить переменную score со значением 304804 в C++?
int score = 304804;
### Instruction: Как объявить переменную score со значением 304804 в C++? ### Response: int score = 304804;
35,474,244
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);
68,680,636
kk
JavaScript
array_ops
intermediate
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
3,982,973
kk
JavaScript
var_decl
beginner
JavaScript тілінде 939079 мәнімен offset айнымалысын қалай жариялауға болады?
let offset = 939079;
### Instruction: JavaScript тілінде 939079 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: let offset = 939079;
41,565,378
en
C++
array_ops
intermediate
Write a function that filters only even numbers from a list in C++.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Write a function that filters only even numbers from a list in C++. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
342,302
en
Java
sum_n
intermediate
Write a function in Java that sums numbers from 1 to 8649.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(8649));
### Instruction: Write a function in Java that sums numbers from 1 to 8649. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(8649));
576,427
ru
Java
factorial
advanced
Напиши функцию на Java, которая вычисляет факториал числа 1072.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1072));
### Instruction: Напиши функцию на Java, которая вычисляет факториал числа 1072. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1072));
341,747
en
Java
factorial
advanced
Write a function in Java that calculates the factorial of 812.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(812));
### Instruction: Write a function in Java that calculates the factorial of 812. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(812));
375,702
kk
JavaScript
var_decl
beginner
JavaScript тілінде 832161 мәнімен index айнымалысын қалай жариялауға болады?
let index = 832161;
### Instruction: JavaScript тілінде 832161 мәнімен index айнымалысын қалай жариялауға болады? ### Response: let index = 832161;
621,289
en
Unity
var_decl
beginner
How to declare a variable amount with value 69688 in Unity?
int amount = 69688;
### Instruction: How to declare a variable amount with value 69688 in Unity? ### Response: int amount = 69688;
11,731,277
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; }
34,689,473
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 353 простым.
public bool IsPrime() { int n = 353; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 353 простым. ### Response: public bool IsPrime() { int n = 353; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,472,288
kk
C#
var_decl
beginner
C# тілінде 798 мәнімен value айнымалысын қалай жариялауға болады?
int value = 798;
### Instruction: C# тілінде 798 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 798;
1,128,788
kk
Python
var_decl
beginner
Python тілінде 623729 мәнімен health айнымалысын қалай жариялауға болады?
health = 623729
### Instruction: Python тілінде 623729 мәнімен health айнымалысын қалай жариялауға болады? ### Response: health = 623729
35,740,097
kk
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; }
28,871,229
kk
C++
string_ops
intermediate
C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
3,548,606
en
JavaScript
var_decl
beginner
How to declare a variable buffer with value 214260 in JavaScript?
let buffer = 214260;
### Instruction: How to declare a variable buffer with value 214260 in JavaScript? ### Response: let buffer = 214260;