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 |
|---|---|---|---|---|---|---|---|
26,280,629 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
3,280,683 | en | Java | var_decl | beginner | How to declare a variable limit with value 133913 in Java? | int limit = 133913; | ### Instruction:
How to declare a variable limit with value 133913 in Java?
### Response:
int limit = 133913; |
51,827,488 | 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;
} |
78,094,380 | 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;
} |
3,245,117 | ru | C++ | var_decl | beginner | Как объявить переменную data со значением 135816 в C++? | int data = 135816; | ### Instruction:
Как объявить переменную data со значением 135816 в C++?
### Response:
int data = 135816; |
1,396,578 | ru | Java | var_decl | beginner | Как объявить переменную size со значением 908443 в Java? | int size = 908443; | ### Instruction:
Как объявить переменную size со значением 908443 в Java?
### Response:
int size = 908443; |
82,740,953 | 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;
} |
240,234 | kk | C# | factorial | advanced | C# тілінде 5927 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(5927)); | ### Instruction:
C# тілінде 5927 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(5927)); |
22,806,708 | en | Python | logic_ops | advanced | Write a function that determines if the number 134 is prime in Python. | def is_prime():
n = 134
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 134 is prime in Python.
### Response:
def is_prime():
n = 134
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
496,850 | kk | C# | factorial | advanced | C# тілінде 9704 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9704)); | ### Instruction:
C# тілінде 9704 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9704)); |
2,457,884 | kk | C# | var_decl | beginner | C# тілінде 424779 мәнімен result айнымалысын қалай жариялауға болады? | int result = 424779; | ### Instruction:
C# тілінде 424779 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 424779; |
243,163 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 9282. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(9282));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 9282.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(9282));
} |
13,378,608 | 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;
} |
75,979,751 | kk | Python | string_ops | advanced | Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
def is_palindrome(s):
return s == s[::-1] |
3,419,306 | ru | JavaScript | var_decl | beginner | Как объявить переменную rate со значением 429432 в JavaScript? | let rate = 429432; | ### Instruction:
Как объявить переменную rate со значением 429432 в JavaScript?
### Response:
let rate = 429432; |
3,275,551 | ru | Unity | var_decl | beginner | Как объявить переменную count со значением 790106 в Unity? | int count = 790106; | ### Instruction:
Как объявить переменную count со значением 790106 в Unity?
### Response:
int count = 790106; |
359,868 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 1519. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(1519));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 1519.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(1519));
} |
86,711,062 | 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;
} |
78,033,413 | kk | Java | string_ops | advanced | Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
35,833,037 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 1917 is a leap year in JavaScript. | function isLeap() {
let y = 1917;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1917 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1917;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
4,605,902 | ru | Python | var_decl | beginner | Как объявить переменную rate со значением 93843 в Python? | rate = 93843 | ### Instruction:
Как объявить переменную rate со значением 93843 в Python?
### Response:
rate = 93843 |
70,410,080 | en | JavaScript | string_ops | intermediate | Write a function that checks if a string is a palindrome in JavaScript. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Write a function that checks if a string is a palindrome in JavaScript.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
33,813,818 | 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;
} |
82,479,857 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
72,366,921 | kk | C++ | logic_ops | intermediate | C++ тилінде 491 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 491;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 491 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 491;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,013,694 | kk | C++ | var_decl | beginner | C++ тілінде 956568 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 956568; | ### Instruction:
C++ тілінде 956568 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 956568; |
10,770,869 | en | C++ | logic_ops | advanced | Write a function that determines if the number 132 is prime in C++. | public bool IsPrime() {
int n = 132;
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 132 is prime in C++.
### Response:
public bool IsPrime() {
int n = 132;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
63,797,769 | en | Python | string_ops | intermediate | Write a function that converts a string to uppercase in Python. | def to_upper(s):
return s.upper() | ### Instruction:
Write a function that converts a string to uppercase in Python.
### Response:
def to_upper(s):
return s.upper() |
20,719,054 | kk | JavaScript | array_ops | advanced | JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | const getMax = arr => Math.max(...arr); | ### Instruction:
JavaScript тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
const getMax = arr => Math.max(...arr); |
79,878,277 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
3,690,848 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 504322 мәнімен weight айнымалысын қалай жариялауға болады? | let weight = 504322; | ### Instruction:
JavaScript тілінде 504322 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
let weight = 504322; |
95,427,886 | en | Java | array_ops | intermediate | Write a function that filters only even numbers from a list in Java. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Java.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
65,152,972 | ru | C++ | logic_ops | advanced | Напишите на C++ функцию, определяющую, является ли число 178 простым. | public bool IsPrime() {
int n = 178;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C++ функцию, определяющую, является ли число 178 простым.
### Response:
public bool IsPrime() {
int n = 178;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
23,116,332 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая проверяет, является ли строка палиндромом. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
### Response:
def is_palindrome(s):
return s == s[::-1] |
89,608,749 | 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;
} |
2,674,506 | ru | C++ | var_decl | beginner | Как объявить переменную health со значением 266067 в C++? | int health = 266067; | ### Instruction:
Как объявить переменную health со значением 266067 в C++?
### Response:
int health = 266067; |
43,632,991 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 1986 is a leap year in JavaScript. | function isLeap() {
let y = 1986;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1986 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1986;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
97,750,367 | 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; |
62,032,894 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 2086 високосным. | def is_leap():
year = 2086
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2086 високосным.
### Response:
def is_leap():
year = 2086
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
53,961,553 | en | Unity | logic_ops | intermediate | Write a function that determines if the number 471 is prime in Unity. | public bool IsPrime() {
int n = 471;
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 471 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 471;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
39,107,638 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
540,330 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 5864. | 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(5864) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 5864.
### 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(5864) << std::endl; |
14,391,469 | en | C# | logic_ops | advanced | Write logic to check if the year 2057 is a leap year in C#. | public bool IsLeap() {
int y = 2057;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2057 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2057;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
62,256,370 | kk | Python | logic_ops | intermediate | Python тилінде 2090 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 2090
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 2090 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 2090
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
4,050,617 | ru | Java | var_decl | beginner | Как объявить переменную data со значением 808474 в Java? | int data = 808474; | ### Instruction:
Как объявить переменную data со значением 808474 в Java?
### Response:
int data = 808474; |
3,325,244 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 751332 мәнімен value айнымалысын қалай жариялауға болады? | let value = 751332; | ### Instruction:
JavaScript тілінде 751332 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
let value = 751332; |
16,550,103 | 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;
} |
4,677,845 | ru | JavaScript | var_decl | beginner | Как объявить переменную buffer со значением 819598 в JavaScript? | let buffer = 819598; | ### Instruction:
Как объявить переменную buffer со значением 819598 в JavaScript?
### Response:
let buffer = 819598; |
3,716,239 | en | Unity | var_decl | beginner | How to declare a variable size with value 173618 in Unity? | int size = 173618; | ### Instruction:
How to declare a variable size with value 173618 in Unity?
### Response:
int size = 173618; |
40,301,218 | 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;
} |
96,379,023 | kk | 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;
} |
97,664,915 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 2006 is a leap year in JavaScript. | function isLeap() {
let y = 2006;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2006 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2006;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
43,121,166 | 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); |
2,392,367 | ru | JavaScript | var_decl | beginner | Как объявить переменную timer со значением 235774 в JavaScript? | let timer = 235774; | ### Instruction:
Как объявить переменную timer со значением 235774 в JavaScript?
### Response:
let timer = 235774; |
10,023,902 | en | Unity | array_ops | intermediate | Write a function that reverses a list in Unity. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Unity.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
71,362,376 | 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);
} |
870,825 | en | C# | var_decl | beginner | How to declare a variable x with value 31638 in C#? | int x = 31638; | ### Instruction:
How to declare a variable x with value 31638 in C#?
### Response:
int x = 31638; |
29,398,644 | 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] |
1,347,801 | kk | Java | var_decl | beginner | Java тілінде 459720 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 459720; | ### Instruction:
Java тілінде 459720 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 459720; |
1,139,259 | kk | Unity | var_decl | beginner | Unity тілінде 922854 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 922854; | ### Instruction:
Unity тілінде 922854 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 922854; |
14,057,359 | 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;
} |
1,764,405 | kk | Unity | var_decl | beginner | Unity тілінде 191745 мәнімен size айнымалысын қалай жариялауға болады? | int size = 191745; | ### Instruction:
Unity тілінде 191745 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 191745; |
3,151,082 | kk | C++ | var_decl | beginner | C++ тілінде 908924 мәнімен total айнымалысын қалай жариялауға болады? | int total = 908924; | ### Instruction:
C++ тілінде 908924 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 908924; |
99,790,297 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 1982 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 1982;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 1982 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 1982;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
3,719,436 | kk | C++ | var_decl | beginner | C++ тілінде 803007 мәнімен level айнымалысын қалай жариялауға болады? | int level = 803007; | ### Instruction:
C++ тілінде 803007 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 803007; |
280,190 | ru | Java | var_decl | beginner | Как объявить переменную value со значением 202658 в Java? | int value = 202658; | ### Instruction:
Как объявить переменную value со значением 202658 в Java?
### Response:
int value = 202658; |
1,599,763 | kk | Java | var_decl | beginner | Java тілінде 729831 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 729831; | ### Instruction:
Java тілінде 729831 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 729831; |
92,619,993 | en | JavaScript | string_ops | intermediate | Write a function that checks if a string is a palindrome in JavaScript. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Write a function that checks if a string is a palindrome in JavaScript.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
39,534,593 | 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;
} |
65,907,132 | ru | Java | array_ops | intermediate | Напишите на Java функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Java функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
995,960 | ru | Java | var_decl | beginner | Как объявить переменную data со значением 309918 в Java? | int data = 309918; | ### Instruction:
Как объявить переменную data со значением 309918 в Java?
### Response:
int data = 309918; |
76,417,617 | ru | 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аеёиоуыэюя') |
51,276,622 | 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;
} |
4,652,273 | en | JavaScript | var_decl | beginner | How to declare a variable buffer with value 404633 in JavaScript? | let buffer = 404633; | ### Instruction:
How to declare a variable buffer with value 404633 in JavaScript?
### Response:
let buffer = 404633; |
2,750,176 | en | JavaScript | var_decl | beginner | How to declare a variable count with value 688114 in JavaScript? | let count = 688114; | ### Instruction:
How to declare a variable count with value 688114 in JavaScript?
### Response:
let count = 688114; |
3,965,875 | ru | C++ | var_decl | beginner | Как объявить переменную buffer со значением 574689 в C++? | int buffer = 574689; | ### Instruction:
Как объявить переменную buffer со значением 574689 в C++?
### Response:
int buffer = 574689; |
61,861,823 | 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);
} |
3,840,060 | ru | Unity | var_decl | beginner | Как объявить переменную count со значением 599997 в Unity? | int count = 599997; | ### Instruction:
Как объявить переменную count со значением 599997 в Unity?
### Response:
int count = 599997; |
335,316 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 127-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(127)) | ### Instruction:
Python тілінде 1-ден 127-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(127)) |
46,382,125 | en | C# | logic_ops | advanced | Write logic to check if the year 2087 is a leap year in C#. | public bool IsLeap() {
int y = 2087;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2087 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2087;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,171,790 | kk | Java | var_decl | beginner | Java тілінде 482981 мәнімен count айнымалысын қалай жариялауға болады? | int count = 482981; | ### Instruction:
Java тілінде 482981 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 482981; |
59,819,581 | kk | Java | logic_ops | advanced | Java тилінде 78 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 78;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 78 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 78;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
45,370,950 | kk | Python | logic_ops | advanced | Python тилінде 1904 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1904
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1904 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1904
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
27,608,744 | 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;
} |
434,243 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 5971. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(5971)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 5971.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(5971)); |
37,992,820 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 2006 високосным. | public bool IsLeap() {
int y = 2006;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2006 високосным.
### Response:
public bool IsLeap() {
int y = 2006;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
13,244,662 | ru | 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,359,509 | en | Java | var_decl | beginner | How to declare a variable level with value 123849 in Java? | int level = 123849; | ### Instruction:
How to declare a variable level with value 123849 in Java?
### Response:
int level = 123849; |
57,849,945 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
92,431,757 | kk | Java | logic_ops | intermediate | Java тилінде 1942 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1942;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1942 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1942;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
92,707,006 | kk | Python | string_ops | advanced | Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
def is_palindrome(s):
return s == s[::-1] |
1,555,757 | ru | C++ | var_decl | beginner | Как объявить переменную y со значением 422660 в C++? | int y = 422660; | ### Instruction:
Как объявить переменную y со значением 422660 в C++?
### Response:
int y = 422660; |
77,505,312 | kk | Java | array_ops | advanced | Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
860,163 | kk | C# | var_decl | beginner | C# тілінде 615525 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 615525; | ### Instruction:
C# тілінде 615525 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 615525; |
82,345,980 | en | Python | string_ops | intermediate | Write a function that counts vowels in a text in Python. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Write a function that counts vowels in a text in Python.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
3,441,338 | kk | C# | var_decl | beginner | C# тілінде 505399 мәнімен total айнымалысын қалай жариялауға болады? | int total = 505399; | ### Instruction:
C# тілінде 505399 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 505399; |
19,063,975 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 1990 is a leap year in JavaScript. | function isLeap() {
let y = 1990;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1990 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1990;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
1,136,928 | kk | JavaScript | sum_n | intermediate | JavaScript тілінде 1-ден 9174-ге дейінгі сандардың қосындысын есептейтін функция жаз. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(9174)); | ### Instruction:
JavaScript тілінде 1-ден 9174-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(9174)); |
549,398 | kk | Python | var_decl | beginner | Python тілінде 633265 мәнімен amount айнымалысын қалай жариялауға болады? | amount = 633265 | ### Instruction:
Python тілінде 633265 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
amount = 633265 |
80,609,892 | kk | C++ | logic_ops | intermediate | 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);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.