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
2,856,857
en
Unity
var_decl
beginner
How to declare a variable level with value 634304 in Unity?
int level = 634304;
### Instruction: How to declare a variable level with value 634304 in Unity? ### Response: int level = 634304;
43,768,998
kk
Python
logic_ops
advanced
Python тилінде 394 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 394 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 394 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 394 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
79,617,977
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 1923 високосным.
public bool IsLeap() { int y = 1923; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 1923 високосным. ### Response: public bool IsLeap() { int y = 1923; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
162,190
kk
Java
factorial
advanced
Java тілінде 4622 санының факториалын есептейтін функция жаз.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(4622));
### Instruction: Java тілінде 4622 санының факториалын есептейтін функция жаз. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(4622));
1,293,435
kk
C#
var_decl
beginner
C# тілінде 669901 мәнімен value айнымалысын қалай жариялауға болады?
int value = 669901;
### Instruction: C# тілінде 669901 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 669901;
2,933,715
kk
Python
var_decl
beginner
Python тілінде 944414 мәнімен offset айнымалысын қалай жариялауға болады?
offset = 944414
### Instruction: Python тілінде 944414 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: offset = 944414
93,614,414
kk
C++
string_ops
intermediate
C++ тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: C++ тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
27,119,041
en
Python
array_ops
advanced
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)
70,902,429
en
Java
string_ops
intermediate
Write a function that counts vowels in a text in Java.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in Java. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
67,752,942
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 42 is prime in JavaScript.
function isPrime() { let n = 42; 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 42 is prime in JavaScript. ### Response: function isPrime() { let n = 42; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
86,880
ru
Python
sum_n
intermediate
Напиши функцию на Python, которая считает сумму чисел от 1 до 4153.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(4153))
### Instruction: Напиши функцию на Python, которая считает сумму чисел от 1 до 4153. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(4153))
1,143,008
ru
Java
var_decl
beginner
Как объявить переменную data со значением 299861 в Java?
int data = 299861;
### Instruction: Как объявить переменную data со значением 299861 в Java? ### Response: int data = 299861;
591,803
ru
C#
var_decl
beginner
Как объявить переменную result со значением 875388 в C#?
int result = 875388;
### Instruction: Как объявить переменную result со значением 875388 в C#? ### Response: int result = 875388;
3,100,959
kk
Unity
var_decl
beginner
Unity тілінде 695409 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 695409;
### Instruction: Unity тілінде 695409 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 695409;
223,302
kk
Java
sum_n
intermediate
Java тілінде 1-ден 7360-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(7360));
### Instruction: Java тілінде 1-ден 7360-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(7360));
290,334
ru
Java
sum_n
intermediate
Напиши функцию на Java, которая считает сумму чисел от 1 до 820.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(820));
### Instruction: Напиши функцию на Java, которая считает сумму чисел от 1 до 820. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(820));
622,739
en
C++
sum_n
intermediate
Write a function in C++ that sums numbers from 1 to 7935.
int sum_to_n(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } std::cout << sum_to_n(7935) << std::endl;
### Instruction: Write a function in C++ that sums numbers from 1 to 7935. ### Response: int sum_to_n(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } std::cout << sum_to_n(7935) << std::endl;
1,952,845
en
Unity
var_decl
beginner
How to declare a variable index with value 353803 in Unity?
int index = 353803;
### Instruction: How to declare a variable index with value 353803 in Unity? ### Response: int index = 353803;
28,509,541
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; }
26,245,764
ru
C++
array_ops
intermediate
Напишите на C++ функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на C++ функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
84,202,888
ru
Python
string_ops
advanced
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
62,359,721
ru
Java
logic_ops
intermediate
Напишите на Java логику проверки, является ли год 2070 високосным.
public bool IsLeap() { int y = 2070; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 2070 високосным. ### Response: public bool IsLeap() { int y = 2070; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
357,719
kk
JavaScript
sum_n
intermediate
JavaScript тілінде 1-ден 5982-ге дейінгі сандардың қосындысын есептейтін функция жаз.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(5982));
### Instruction: JavaScript тілінде 1-ден 5982-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(5982));
2,167,608
ru
C++
var_decl
beginner
Как объявить переменную level со значением 32656 в C++?
int level = 32656;
### Instruction: Как объявить переменную level со значением 32656 в C++? ### Response: int level = 32656;
578,757
ru
Python
var_decl
beginner
Как объявить переменную data со значением 463348 в Python?
data = 463348
### Instruction: Как объявить переменную data со значением 463348 в Python? ### Response: data = 463348
3,912,721
en
C++
var_decl
beginner
How to declare a variable offset with value 180839 in C++?
int offset = 180839;
### Instruction: How to declare a variable offset with value 180839 in C++? ### Response: int offset = 180839;
459,142
ru
JavaScript
var_decl
beginner
Как объявить переменную data со значением 621676 в JavaScript?
let data = 621676;
### Instruction: Как объявить переменную data со значением 621676 в JavaScript? ### Response: let data = 621676;
60,558,081
kk
C++
logic_ops
intermediate
C++ тилінде 1929 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1929; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 1929 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1929; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
32,319,166
kk
C#
string_ops
advanced
C# тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: C# тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
3,329
kk
C#
func_def
intermediate
C# тілінде index қабылдап, оны екі еселейтін resolve функциясын жаз.
static int resolve(int index) { return index * 2; }
### Instruction: C# тілінде index қабылдап, оны екі еселейтін resolve функциясын жаз. ### Response: static int resolve(int index) { return index * 2; }
52,400,246
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(); }
146,895
en
JavaScript
sum_n
intermediate
Write a function in JavaScript that sums numbers from 1 to 2940.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(2940));
### Instruction: Write a function in JavaScript that sums numbers from 1 to 2940. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(2940));
61,237,296
en
JavaScript
string_ops
intermediate
Write a function that counts vowels in a text in JavaScript.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Write a function that counts vowels in a text in JavaScript. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
55,143,247
kk
C#
logic_ops
advanced
C# тилінде 86 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 86; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 86 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 86; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
33,943,934
ru
Unity
logic_ops
advanced
Напишите на Unity логику проверки, является ли год 1957 високосным.
public bool IsLeap() { int y = 1957; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1957 високосным. ### Response: public bool IsLeap() { int y = 1957; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,633,738
ru
Python
var_decl
beginner
Как объявить переменную y со значением 861535 в Python?
y = 861535
### Instruction: Как объявить переменную y со значением 861535 в Python? ### Response: y = 861535
1,835,818
ru
JavaScript
var_decl
beginner
Как объявить переменную limit со значением 666494 в JavaScript?
let limit = 666494;
### Instruction: Как объявить переменную limit со значением 666494 в JavaScript? ### Response: let limit = 666494;
1,747,901
kk
C#
var_decl
beginner
C# тілінде 482105 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 482105;
### Instruction: C# тілінде 482105 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 482105;
4,696,642
en
Java
var_decl
beginner
How to declare a variable speed with value 326019 in Java?
int speed = 326019;
### Instruction: How to declare a variable speed with value 326019 in Java? ### Response: int speed = 326019;
852,826
kk
Java
factorial
advanced
Java тілінде 6202 санының факториалын есептейтін функция жаз.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(6202));
### Instruction: Java тілінде 6202 санының факториалын есептейтін функция жаз. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(6202));
54,355,466
en
Unity
array_ops
intermediate
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; }
39,848,003
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; }
77,302
kk
Java
sum_n
intermediate
Java тілінде 1-ден 1836-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(1836));
### Instruction: Java тілінде 1-ден 1836-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(1836));
80,518,133
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(); }
38,439,748
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]
3,218,578
kk
Unity
var_decl
beginner
Unity тілінде 781486 мәнімен score айнымалысын қалай жариялауға болады?
int score = 781486;
### Instruction: Unity тілінде 781486 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 781486;
2,649,093
kk
C++
var_decl
beginner
C++ тілінде 562507 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 562507;
### Instruction: C++ тілінде 562507 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 562507;
62,714,093
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); }
2,541,969
ru
C#
var_decl
beginner
Как объявить переменную amount со значением 252643 в C#?
int amount = 252643;
### Instruction: Как объявить переменную amount со значением 252643 в C#? ### Response: int amount = 252643;
2,507,405
ru
Java
var_decl
beginner
Как объявить переменную y со значением 623770 в Java?
int y = 623770;
### Instruction: Как объявить переменную y со значением 623770 в Java? ### Response: int y = 623770;
3,346,673
en
Unity
var_decl
beginner
How to declare a variable weight with value 458592 in Unity?
int weight = 458592;
### Instruction: How to declare a variable weight with value 458592 in Unity? ### Response: int weight = 458592;
3,288,985
kk
JavaScript
var_decl
beginner
JavaScript тілінде 100998 мәнімен score айнымалысын қалай жариялауға болады?
let score = 100998;
### Instruction: JavaScript тілінде 100998 мәнімен score айнымалысын қалай жариялауға болады? ### Response: let score = 100998;
60,191,267
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); }
69,874,663
ru
Unity
logic_ops
advanced
Напишите на Unity функцию, определяющую, является ли число 391 простым.
public bool IsPrime() { int n = 391; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 391 простым. ### Response: public bool IsPrime() { int n = 391; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
29,887,756
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; }
40,038,836
kk
Unity
logic_ops
advanced
Unity тилінде 2027 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2027; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2027 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2027; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
55,079,104
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая находит максимальное число в массиве.
def get_max(arr): return max(arr)
### Instruction: Напишите на Python функцию, которая находит максимальное число в массиве. ### Response: def get_max(arr): return max(arr)
495,026
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 5059.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(5059)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 5059. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(5059)); }
31,961,845
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); }
12,652,142
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(); }
10,074,539
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(); }
63,742,352
en
JavaScript
array_ops
advanced
Write a function that filters only even numbers from a list in JavaScript.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Write a function that filters only even numbers from a list in JavaScript. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
75,516,488
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); }
60,652,698
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); }
68,912,730
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 1994 високосным.
public bool IsLeap() { int y = 1994; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 1994 високосным. ### Response: public bool IsLeap() { int y = 1994; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
15,815,720
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(); }
20,432,062
en
Python
logic_ops
intermediate
Write a function that determines if the number 7 is prime in Python.
def is_prime(): n = 7 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 7 is prime in Python. ### Response: def is_prime(): n = 7 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
1,983,330
kk
Java
var_decl
beginner
Java тілінде 392454 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 392454;
### Instruction: Java тілінде 392454 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 392454;
17,873,232
kk
Java
logic_ops
advanced
Java тилінде 1944 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1944; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1944 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1944; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
23,332,663
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
const getMax = arr => Math.max(...arr);
### Instruction: Напишите на JavaScript функцию, которая находит максимальное число в массиве. ### Response: const getMax = arr => Math.max(...arr);
2,897,882
kk
JavaScript
var_decl
beginner
JavaScript тілінде 454240 мәнімен result айнымалысын қалай жариялауға болады?
let result = 454240;
### Instruction: JavaScript тілінде 454240 мәнімен result айнымалысын қалай жариялауға болады? ### Response: let result = 454240;
930,621
kk
Java
var_decl
beginner
Java тілінде 824423 мәнімен index айнымалысын қалай жариялауға болады?
int index = 824423;
### Instruction: Java тілінде 824423 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 824423;
31,918,668
ru
C++
array_ops
intermediate
Напишите на C++ функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на C++ функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
4,571,040
ru
Python
var_decl
beginner
Как объявить переменную timer со значением 847837 в Python?
timer = 847837
### Instruction: Как объявить переменную timer со значением 847837 в Python? ### Response: timer = 847837
25,098,539
en
Java
string_ops
advanced
Write a function that converts a string to uppercase in Java.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Java. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
472,259
kk
Unity
var_decl
beginner
Unity тілінде 288500 мәнімен timer айнымалысын қалай жариялауға болады?
int timer = 288500;
### Instruction: Unity тілінде 288500 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: int timer = 288500;
686,904
ru
C++
factorial
advanced
Напиши функцию на C++, которая вычисляет факториал числа 7255.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(7255) << std::endl;
### Instruction: Напиши функцию на C++, которая вычисляет факториал числа 7255. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(7255) << std::endl;
4,152,362
kk
C++
var_decl
beginner
C++ тілінде 195295 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 195295;
### Instruction: C++ тілінде 195295 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 195295;
2,560,045
kk
Java
var_decl
beginner
Java тілінде 608222 мәнімен data айнымалысын қалай жариялауға болады?
int data = 608222;
### Instruction: Java тілінде 608222 мәнімен data айнымалысын қалай жариялауға болады? ### Response: int data = 608222;
4,795,585
kk
JavaScript
var_decl
beginner
JavaScript тілінде 614336 мәнімен y айнымалысын қалай жариялауға болады?
let y = 614336;
### Instruction: JavaScript тілінде 614336 мәнімен y айнымалысын қалай жариялауға болады? ### Response: let y = 614336;
73,074,093
en
JavaScript
array_ops
advanced
Write a function that filters only even numbers from a list in JavaScript.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Write a function that filters only even numbers from a list in JavaScript. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
3,268,553
kk
C#
var_decl
beginner
C# тілінде 250854 мәнімен size айнымалысын қалай жариялауға болады?
int size = 250854;
### Instruction: C# тілінде 250854 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 250854;
21,213,029
kk
Java
string_ops
intermediate
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
27,974,715
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); }
3,956,587
en
C++
var_decl
beginner
How to declare a variable offset with value 855939 in C++?
int offset = 855939;
### Instruction: How to declare a variable offset with value 855939 in C++? ### Response: int offset = 855939;
25,158,377
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; }
56,961,078
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; }
52,944,466
kk
JavaScript
array_ops
intermediate
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
const getMax = arr => Math.max(...arr);
### Instruction: JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: const getMax = arr => Math.max(...arr);
4,796,702
ru
Java
var_decl
beginner
Как объявить переменную speed со значением 27392 в Java?
int speed = 27392;
### Instruction: Как объявить переменную speed со значением 27392 в Java? ### Response: int speed = 27392;
88,649,925
en
Python
logic_ops
advanced
Write logic to check if the year 1991 is a leap year in Python.
def is_leap(): year = 1991 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 1991 is a leap year in Python. ### Response: def is_leap(): year = 1991 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
14,318,381
kk
C#
array_ops
intermediate
C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: C# тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
65,406,141
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); }
12,133,029
ru
Unity
array_ops
advanced
Напишите на 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; }
2,036,329
en
JavaScript
var_decl
beginner
How to declare a variable value with value 501543 in JavaScript?
let value = 501543;
### Instruction: How to declare a variable value with value 501543 in JavaScript? ### Response: let value = 501543;
2,882,612
kk
JavaScript
var_decl
beginner
JavaScript тілінде 644822 мәнімен weight айнымалысын қалай жариялауға болады?
let weight = 644822;
### Instruction: JavaScript тілінде 644822 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: let weight = 644822;
22,778,077
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; }
97,266,552
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 2029 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 2029; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 2029 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 2029; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
52,760,396
en
C#
logic_ops
advanced
Write a function that determines if the number 433 is prime in C#.
public bool IsPrime() { int n = 433; 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 433 is prime in C#. ### Response: public bool IsPrime() { int n = 433; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
10,899,074
en
Unity
array_ops
advanced
Write a function that finds the maximum number in an array in Unity.
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 Unity. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
4,475,214
ru
Java
var_decl
beginner
Как объявить переменную speed со значением 194237 в Java?
int speed = 194237;
### Instruction: Как объявить переменную speed со значением 194237 в Java? ### Response: int speed = 194237;