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 |
|---|---|---|---|---|---|---|---|
67,207,515 | kk | C++ | logic_ops | intermediate | C++ тилінде 1964 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1964;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1964 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1964;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
35,224,623 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
443,687 | ru | Java | factorial | advanced | Напиши функцию на Java, которая вычисляет факториал числа 5110. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(5110)); | ### Instruction:
Напиши функцию на Java, которая вычисляет факториал числа 5110.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(5110)); |
42,540,868 | 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();
} |
85,902,146 | ru | Java | string_ops | intermediate | Напишите на 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;
} |
3,695,065 | kk | C# | var_decl | beginner | C# тілінде 414057 мәнімен index айнымалысын қалай жариялауға болады? | int index = 414057; | ### Instruction:
C# тілінде 414057 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 414057; |
35,370,049 | kk | 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;
} |
12,621,783 | ru | Python | array_ops | intermediate | Напишите на 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] |
63,954,761 | kk | Python | array_ops | advanced | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
82,349,091 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 2026 високосным. | public bool IsLeap() {
int y = 2026;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2026 високосным.
### Response:
public bool IsLeap() {
int y = 2026;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
32,626,744 | kk | Python | array_ops | intermediate | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
4,461,827 | en | C++ | var_decl | beginner | How to declare a variable offset with value 792875 in C++? | int offset = 792875; | ### Instruction:
How to declare a variable offset with value 792875 in C++?
### Response:
int offset = 792875; |
3,435,901 | ru | JavaScript | var_decl | beginner | Как объявить переменную weight со значением 100356 в JavaScript? | let weight = 100356; | ### Instruction:
Как объявить переменную weight со значением 100356 в JavaScript?
### Response:
let weight = 100356; |
65,491,901 | ru | Java | array_ops | intermediate | Напишите на Java функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на Java функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
50,645,206 | 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();
} |
2,580,121 | ru | C# | var_decl | beginner | Как объявить переменную index со значением 88991 в C#? | int index = 88991; | ### Instruction:
Как объявить переменную index со значением 88991 в C#?
### Response:
int index = 88991; |
67,975,299 | 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); |
4,532,187 | ru | C# | var_decl | beginner | Как объявить переменную x со значением 304017 в C#? | int x = 304017; | ### Instruction:
Как объявить переменную x со значением 304017 в C#?
### Response:
int x = 304017; |
86,408,465 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 1964 високосным. | function isLeap() {
let y = 1964;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1964 високосным.
### Response:
function isLeap() {
let y = 1964;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
1,036,752 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 139909 мәнімен weight айнымалысын қалай жариялауға болады? | let weight = 139909; | ### Instruction:
JavaScript тілінде 139909 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
let weight = 139909; |
15,785,879 | en | Python | array_ops | advanced | Write a function that filters only even numbers from a list in Python. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Write a function that filters only even numbers from a list in Python.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
79,887,295 | kk | Unity | logic_ops | advanced | Unity тилінде 61 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 61;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 61 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 61;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
87,590,233 | en | Unity | logic_ops | advanced | Write a function that determines if the number 186 is prime in Unity. | public bool IsPrime() {
int n = 186;
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 186 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 186;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
31,872,988 | kk | Unity | array_ops | advanced | Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
2,291,202 | en | C++ | var_decl | beginner | How to declare a variable index with value 57516 in C++? | int index = 57516; | ### Instruction:
How to declare a variable index with value 57516 in C++?
### Response:
int index = 57516; |
4,635,219 | kk | Java | var_decl | beginner | Java тілінде 761781 мәнімен total айнымалысын қалай жариялауға болады? | int total = 761781; | ### Instruction:
Java тілінде 761781 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 761781; |
63,379,610 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 1989 високосным. | function isLeap() {
let y = 1989;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1989 високосным.
### Response:
function isLeap() {
let y = 1989;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
79,416,567 | 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;
} |
20,240,775 | ru | Unity | string_ops | intermediate | Напишите на 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;
} |
4,268,597 | en | Unity | var_decl | beginner | How to declare a variable score with value 666896 in Unity? | int score = 666896; | ### Instruction:
How to declare a variable score with value 666896 in Unity?
### Response:
int score = 666896; |
2,270,391 | kk | C# | var_decl | beginner | C# тілінде 974391 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 974391; | ### Instruction:
C# тілінде 974391 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 974391; |
90,311,477 | en | Unity | string_ops | advanced | 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;
} |
12,772,724 | kk | Python | string_ops | advanced | 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аеёиоуыэюя') |
95,924,157 | 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;
} |
51,671,743 | 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;
} |
19,389,925 | 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;
} |
467,410 | kk | C# | sum_n | intermediate | C# тілінде 1-ден 246-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(246)); | ### Instruction:
C# тілінде 1-ден 246-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(246)); |
87,002,459 | kk | JavaScript | array_ops | advanced | JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | const getMax = arr => Math.max(...arr); | ### Instruction:
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
const getMax = arr => Math.max(...arr); |
51,814,006 | kk | C# | logic_ops | intermediate | C# тилінде 2058 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2058;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 2058 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2058;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
10,120,369 | en | JavaScript | string_ops | intermediate | Write a function that converts a string to uppercase in JavaScript. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Write a function that converts a string to uppercase in JavaScript.
### Response:
const toUpper = s => s.toUpperCase(); |
3,493,829 | ru | Unity | var_decl | beginner | Как объявить переменную timer со значением 874788 в Unity? | int timer = 874788; | ### Instruction:
Как объявить переменную timer со значением 874788 в Unity?
### Response:
int timer = 874788; |
3,044,816 | en | Unity | var_decl | beginner | How to declare a variable health with value 782063 in Unity? | int health = 782063; | ### Instruction:
How to declare a variable health with value 782063 in Unity?
### Response:
int health = 782063; |
52,359,713 | kk | C++ | logic_ops | intermediate | C++ тилінде 2008 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2008;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2008 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2008;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
76,832,310 | kk | 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;
} |
91,106,192 | 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);
} |
1,585,316 | kk | C# | var_decl | beginner | C# тілінде 218472 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 218472; | ### Instruction:
C# тілінде 218472 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 218472; |
20,441,167 | 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;
} |
2,389,418 | en | JavaScript | var_decl | beginner | How to declare a variable weight with value 181554 in JavaScript? | let weight = 181554; | ### Instruction:
How to declare a variable weight with value 181554 in JavaScript?
### Response:
let weight = 181554; |
54,118,291 | 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;
} |
33,935,320 | 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();
} |
88,194,818 | ru | C++ | logic_ops | intermediate | Напишите на C++ функцию, определяющую, является ли число 138 простым. | public bool IsPrime() {
int n = 138;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 138 простым.
### Response:
public bool IsPrime() {
int n = 138;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,256,507 | ru | Java | var_decl | beginner | Как объявить переменную health со значением 962976 в Java? | int health = 962976; | ### Instruction:
Как объявить переменную health со значением 962976 в Java?
### Response:
int health = 962976; |
3,518,857 | en | Python | var_decl | beginner | How to declare a variable value with value 69746 in Python? | value = 69746 | ### Instruction:
How to declare a variable value with value 69746 in Python?
### Response:
value = 69746 |
70,557,156 | en | Python | logic_ops | intermediate | Write logic to check if the year 1994 is a leap year in Python. | def is_leap():
year = 1994
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1994 is a leap year in Python.
### Response:
def is_leap():
year = 1994
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
1,309,114 | en | Unity | var_decl | beginner | How to declare a variable buffer with value 897549 in Unity? | int buffer = 897549; | ### Instruction:
How to declare a variable buffer with value 897549 in Unity?
### Response:
int buffer = 897549; |
20,574,833 | ru | Java | logic_ops | intermediate | Напишите на Java функцию, определяющую, является ли число 8 простым. | public bool IsPrime() {
int n = 8;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 8 простым.
### Response:
public bool IsPrime() {
int n = 8;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,568,673 | ru | Python | var_decl | beginner | Как объявить переменную limit со значением 403790 в Python? | limit = 403790 | ### Instruction:
Как объявить переменную limit со значением 403790 в Python?
### Response:
limit = 403790 |
72,092,782 | 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();
} |
2,466,205 | kk | C# | var_decl | beginner | C# тілінде 177535 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 177535; | ### Instruction:
C# тілінде 177535 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 177535; |
32,747,053 | kk | C++ | array_ops | advanced | C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
49,534,064 | kk | C++ | logic_ops | intermediate | C++ тилінде 2075 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2075;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2075 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2075;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
12,422,192 | 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) |
3,185,229 | en | C# | var_decl | beginner | How to declare a variable total with value 386382 in C#? | int total = 386382; | ### Instruction:
How to declare a variable total with value 386382 in C#?
### Response:
int total = 386382; |
37,962,505 | en | Unity | logic_ops | intermediate | Write logic to check if the year 2010 is a leap year in Unity. | public bool IsLeap() {
int y = 2010;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2010 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2010;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,990,407 | kk | Unity | var_decl | beginner | Unity тілінде 732496 мәнімен result айнымалысын қалай жариялауға болады? | int result = 732496; | ### Instruction:
Unity тілінде 732496 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 732496; |
86,948,330 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 2050 високосным. | public bool IsLeap() {
int y = 2050;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2050 високосным.
### Response:
public bool IsLeap() {
int y = 2050;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
78,125,119 | en | Unity | logic_ops | advanced | Write logic to check if the year 2058 is a leap year in Unity. | public bool IsLeap() {
int y = 2058;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2058 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2058;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,384,597 | en | Unity | var_decl | beginner | How to declare a variable speed with value 915789 in Unity? | int speed = 915789; | ### Instruction:
How to declare a variable speed with value 915789 in Unity?
### Response:
int speed = 915789; |
662,160 | kk | Java | var_decl | beginner | Java тілінде 947376 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 947376; | ### Instruction:
Java тілінде 947376 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 947376; |
356,399 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 3969. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(3969));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 3969.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(3969));
} |
80,766,792 | 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;
} |
744,957 | ru | Unity | var_decl | beginner | Как объявить переменную y со значением 989151 в Unity? | int y = 989151; | ### Instruction:
Как объявить переменную y со значением 989151 в Unity?
### Response:
int y = 989151; |
26,596 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 7210. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(7210)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 7210.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(7210)); |
61,802,274 | kk | Java | logic_ops | intermediate | Java тилінде 2017 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2017;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 2017 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2017;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,305,468 | en | Java | var_decl | beginner | How to declare a variable result with value 472048 in Java? | int result = 472048; | ### Instruction:
How to declare a variable result with value 472048 in Java?
### Response:
int result = 472048; |
4,386,003 | kk | C++ | var_decl | beginner | C++ тілінде 765122 мәнімен health айнымалысын қалай жариялауға болады? | int health = 765122; | ### Instruction:
C++ тілінде 765122 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 765122; |
16,406,515 | en | Python | logic_ops | intermediate | Write logic to check if the year 1930 is a leap year in Python. | def is_leap():
year = 1930
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1930 is a leap year in Python.
### Response:
def is_leap():
year = 1930
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
36,736,270 | en | Java | array_ops | intermediate | Write a function that finds the maximum number in an array in Java. | 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 Java.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
27,661,136 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 73 простым. | public bool IsPrime() {
int n = 73;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 73 простым.
### Response:
public bool IsPrime() {
int n = 73;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
80,958,741 | kk | Unity | array_ops | advanced | Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
27,692,446 | kk | Unity | string_ops | intermediate | 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,436,655 | kk | 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] |
69,690,054 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 362 простым. | public bool IsPrime() {
int n = 362;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 362 простым.
### Response:
public bool IsPrime() {
int n = 362;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
16,684,696 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 8 is prime in C++. | public bool IsPrime() {
int n = 8;
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 8 is prime in C++.
### Response:
public bool IsPrime() {
int n = 8;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,607,088 | kk | Unity | var_decl | beginner | Unity тілінде 135452 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 135452; | ### Instruction:
Unity тілінде 135452 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 135452; |
3,482,623 | kk | Python | var_decl | beginner | Python тілінде 441554 мәнімен timer айнымалысын қалай жариялауға болады? | timer = 441554 | ### Instruction:
Python тілінде 441554 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
timer = 441554 |
83,919,554 | 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);
} |
187,959 | kk | JavaScript | sum_n | intermediate | JavaScript тілінде 1-ден 5713-ге дейінгі сандардың қосындысын есептейтін функция жаз. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(5713)); | ### Instruction:
JavaScript тілінде 1-ден 5713-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(5713)); |
25,597,427 | 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) |
500,634 | kk | C++ | var_decl | beginner | C++ тілінде 982820 мәнімен count айнымалысын қалай жариялауға болады? | int count = 982820; | ### Instruction:
C++ тілінде 982820 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 982820; |
4,936,251 | kk | Python | var_decl | beginner | Python тілінде 51022 мәнімен size айнымалысын қалай жариялауға болады? | size = 51022 | ### Instruction:
Python тілінде 51022 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
size = 51022 |
3,092,103 | kk | C# | var_decl | beginner | C# тілінде 335394 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 335394; | ### Instruction:
C# тілінде 335394 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 335394; |
1,856,468 | ru | Java | var_decl | beginner | Как объявить переменную timer со значением 168708 в Java? | int timer = 168708; | ### Instruction:
Как объявить переменную timer со значением 168708 в Java?
### Response:
int timer = 168708; |
80,697,665 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 447 is prime in JavaScript. | function isPrime() {
let n = 447;
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 447 is prime in JavaScript.
### Response:
function isPrime() {
let n = 447;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
3,375,448 | en | C++ | var_decl | beginner | How to declare a variable weight with value 189573 in C++? | int weight = 189573; | ### Instruction:
How to declare a variable weight with value 189573 in C++?
### Response:
int weight = 189573; |
82,655,204 | 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;
} |
61,790,786 | kk | 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;
} |
1,739,795 | kk | Unity | var_decl | beginner | Unity тілінде 430628 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 430628; | ### Instruction:
Unity тілінде 430628 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 430628; |
81,335,786 | 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;
} |
3,884,327 | ru | C++ | var_decl | beginner | Как объявить переменную timer со значением 757565 в C++? | int timer = 757565; | ### Instruction:
Как объявить переменную timer со значением 757565 в C++?
### Response:
int timer = 757565; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.