id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
4,523,020 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 804268 мәнімен x айнымалысын қалай жариялауға болады? | let x = 804268; | ### Instruction:
JavaScript тілінде 804268 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
let x = 804268; |
3,200,582 | ru | Unity | var_decl | beginner | Как объявить переменную amount со значением 500367 в Unity? | int amount = 500367; | ### Instruction:
Как объявить переменную amount со значением 500367 в Unity?
### Response:
int amount = 500367; |
27,730,886 | en | Java | string_ops | intermediate | Write a function that checks if a string is a palindrome in 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:
Write a function that checks if a string is a palindrome in 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,443,876 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 1996 високосным. | public bool IsLeap() {
int y = 1996;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 1996 високосным.
### Response:
public bool IsLeap() {
int y = 1996;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
77,288,256 | en | Java | logic_ops | advanced | Write logic to check if the year 2045 is a leap year in Java. | public bool IsLeap() {
int y = 2045;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2045 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2045;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
287,671 | kk | JavaScript | sum_n | intermediate | JavaScript тілінде 1-ден 3498-ге дейінгі сандардың қосындысын есептейтін функция жаз. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(3498)); | ### Instruction:
JavaScript тілінде 1-ден 3498-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(3498)); |
27,007,320 | 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;
} |
122,646 | en | C++ | var_decl | beginner | How to declare a variable y with value 203096 in C++? | int y = 203096; | ### Instruction:
How to declare a variable y with value 203096 in C++?
### Response:
int y = 203096; |
2,503,233 | kk | C++ | var_decl | beginner | C++ тілінде 293352 мәнімен total айнымалысын қалай жариялауға болады? | int total = 293352; | ### Instruction:
C++ тілінде 293352 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 293352; |
1,217,585 | kk | Java | var_decl | beginner | Java тілінде 106300 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 106300; | ### Instruction:
Java тілінде 106300 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 106300; |
61,004,896 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
23,440,324 | 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);
} |
77,141,983 | kk | 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;
} |
24,612,269 | ru | 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;
} |
80,435,574 | ru | C# | logic_ops | advanced | Напишите на C# логику проверки, является ли год 1914 високосным. | public bool IsLeap() {
int y = 1914;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1914 високосным.
### Response:
public bool IsLeap() {
int y = 1914;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,766,617 | ru | Java | var_decl | beginner | Как объявить переменную result со значением 477589 в Java? | int result = 477589; | ### Instruction:
Как объявить переменную result со значением 477589 в Java?
### Response:
int result = 477589; |
404,635 | ru | C++ | var_decl | beginner | Как объявить переменную count со значением 481017 в C++? | int count = 481017; | ### Instruction:
Как объявить переменную count со значением 481017 в C++?
### Response:
int count = 481017; |
44,597,424 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript функцию, определяющую, является ли число 26 простым. | function isPrime() {
let n = 26;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 26 простым.
### Response:
function isPrime() {
let n = 26;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
92,453,103 | ru | Python | logic_ops | advanced | Напишите на Python функцию, определяющую, является ли число 269 простым. | def is_prime():
n = 269
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 269 простым.
### Response:
def is_prime():
n = 269
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
848,087 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 3743-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(3743)) | ### Instruction:
Python тілінде 1-ден 3743-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(3743)) |
2,363,241 | ru | Java | var_decl | beginner | Как объявить переменную health со значением 435394 в Java? | int health = 435394; | ### Instruction:
Как объявить переменную health со значением 435394 в Java?
### Response:
int health = 435394; |
78,071,343 | kk | Unity | logic_ops | intermediate | Unity тилінде 1921 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1921;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1921 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1921;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
46,804,282 | 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();
} |
47,215,329 | 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;
} |
2,305,202 | ru | C++ | var_decl | beginner | Как объявить переменную x со значением 675896 в C++? | int x = 675896; | ### Instruction:
Как объявить переменную x со значением 675896 в C++?
### Response:
int x = 675896; |
2,759,133 | ru | Unity | var_decl | beginner | Как объявить переменную value со значением 358814 в Unity? | int value = 358814; | ### Instruction:
Как объявить переменную value со значением 358814 в Unity?
### Response:
int value = 358814; |
46,979,530 | kk | 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;
} |
76,380,810 | 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;
} |
69,621,883 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
44,962,716 | ru | Java | array_ops | intermediate | Напишите на Java функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Java функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
97,384,077 | kk | 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;
} |
584,243 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 204-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(204)) | ### Instruction:
Python тілінде 1-ден 204-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(204)) |
74,378,717 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 1954 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 1954;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 1954 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 1954;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
3,336,227 | en | Python | var_decl | beginner | How to declare a variable total with value 320868 in Python? | total = 320868 | ### Instruction:
How to declare a variable total with value 320868 in Python?
### Response:
total = 320868 |
2,291,154 | ru | Python | var_decl | beginner | Как объявить переменную timer со значением 532161 в Python? | timer = 532161 | ### Instruction:
Как объявить переменную timer со значением 532161 в Python?
### Response:
timer = 532161 |
330,520 | ru | C++ | var_decl | beginner | Как объявить переменную index со значением 438442 в C++? | int index = 438442; | ### Instruction:
Как объявить переменную index со значением 438442 в C++?
### Response:
int index = 438442; |
3,485,844 | ru | C# | var_decl | beginner | Как объявить переменную buffer со значением 905690 в C#? | int buffer = 905690; | ### Instruction:
Как объявить переменную buffer со значением 905690 в C#?
### Response:
int buffer = 905690; |
1,417,860 | ru | Java | var_decl | beginner | Как объявить переменную value со значением 614209 в Java? | int value = 614209; | ### Instruction:
Как объявить переменную value со значением 614209 в Java?
### Response:
int value = 614209; |
597,173 | en | C++ | factorial | advanced | Write a function in C++ that calculates the factorial of 4646. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(4646) << std::endl; | ### Instruction:
Write a function in C++ that calculates the factorial of 4646.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(4646) << std::endl; |
83,568,559 | 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] |
52,125,141 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
97,898,275 | en | Python | array_ops | intermediate | 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) |
872,012 | kk | Java | var_decl | beginner | Java тілінде 769382 мәнімен total айнымалысын қалай жариялауға болады? | int total = 769382; | ### Instruction:
Java тілінде 769382 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 769382; |
1,289,829 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 816420 мәнімен level айнымалысын қалай жариялауға болады? | let level = 816420; | ### Instruction:
JavaScript тілінде 816420 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
let level = 816420; |
1,015,197 | en | Java | var_decl | beginner | How to declare a variable x with value 462671 in Java? | int x = 462671; | ### Instruction:
How to declare a variable x with value 462671 in Java?
### Response:
int x = 462671; |
11,351,145 | 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;
} |
4,124,915 | ru | Python | var_decl | beginner | Как объявить переменную result со значением 181764 в Python? | result = 181764 | ### Instruction:
Как объявить переменную result со значением 181764 в Python?
### Response:
result = 181764 |
29,271,097 | kk | Java | logic_ops | advanced | Java тилінде 145 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 145;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 145 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 145;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
86,419,047 | en | Java | array_ops | advanced | 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;
} |
147,505 | kk | C++ | var_decl | beginner | C++ тілінде 100056 мәнімен result айнымалысын қалай жариялауға болады? | int result = 100056; | ### Instruction:
C++ тілінде 100056 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 100056; |
78,897,084 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
2,298,969 | ru | Unity | var_decl | beginner | Как объявить переменную value со значением 267781 в Unity? | int value = 267781; | ### Instruction:
Как объявить переменную value со значением 267781 в Unity?
### Response:
int value = 267781; |
56,878,906 | 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;
} |
83,274,636 | 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;
} |
2,138,609 | en | Unity | var_decl | beginner | How to declare a variable health with value 461491 in Unity? | int health = 461491; | ### Instruction:
How to declare a variable health with value 461491 in Unity?
### Response:
int health = 461491; |
1,171,521 | ru | JavaScript | var_decl | beginner | Как объявить переменную result со значением 125156 в JavaScript? | let result = 125156; | ### Instruction:
Как объявить переменную result со значением 125156 в JavaScript?
### Response:
let result = 125156; |
72,612,726 | kk | Java | logic_ops | intermediate | Java тилінде 1976 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1976;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1976 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1976;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
64,476,985 | en | C++ | logic_ops | advanced | Write logic to check if the year 2042 is a leap year in C++. | public bool IsLeap() {
int y = 2042;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2042 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2042;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
91,176,859 | en | Unity | logic_ops | advanced | Write logic to check if the year 2081 is a leap year in Unity. | public bool IsLeap() {
int y = 2081;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2081 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 2081;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
92,665,270 | 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();
} |
38,696,356 | 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;
} |
42,195,967 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
68,450,844 | en | JavaScript | string_ops | advanced | 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; |
518,443 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 783219 мәнімен score айнымалысын қалай жариялауға болады? | let score = 783219; | ### Instruction:
JavaScript тілінде 783219 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
let score = 783219; |
77,693,058 | ru | 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;
} |
2,868,771 | ru | Java | var_decl | beginner | Как объявить переменную y со значением 646661 в Java? | int y = 646661; | ### Instruction:
Как объявить переменную y со значением 646661 в Java?
### Response:
int y = 646661; |
1,019,307 | ru | JavaScript | var_decl | beginner | Как объявить переменную weight со значением 357373 в JavaScript? | let weight = 357373; | ### Instruction:
Как объявить переменную weight со значением 357373 в JavaScript?
### Response:
let weight = 357373; |
3,264,281 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 664817 мәнімен health айнымалысын қалай жариялауға болады? | let health = 664817; | ### Instruction:
JavaScript тілінде 664817 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
let health = 664817; |
14,853,042 | kk | Python | string_ops | intermediate | Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
19,321,431 | en | JavaScript | array_ops | intermediate | Write a function that reverses a list in JavaScript. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Write a function that reverses a list in JavaScript.
### Response:
const reverseArr = arr => arr.reverse(); |
79,315,418 | en | JavaScript | array_ops | intermediate | 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); |
10,451,836 | 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] |
98,906,436 | en | C++ | string_ops | advanced | Write a function that checks if a string is a palindrome in C++. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in C++.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
91,106,655 | 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] |
1,652,880 | ru | JavaScript | var_decl | beginner | Как объявить переменную value со значением 500405 в JavaScript? | let value = 500405; | ### Instruction:
Как объявить переменную value со значением 500405 в JavaScript?
### Response:
let value = 500405; |
1,309,884 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 302268 мәнімен index айнымалысын қалай жариялауға болады? | let index = 302268; | ### Instruction:
JavaScript тілінде 302268 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
let index = 302268; |
2,943,437 | kk | C# | var_decl | beginner | C# тілінде 197925 мәнімен y айнымалысын қалай жариялауға болады? | int y = 197925; | ### Instruction:
C# тілінде 197925 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
int y = 197925; |
295,487 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 3097. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(3097)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 3097.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(3097)); |
48,406,164 | 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);
} |
87,879,789 | 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;
} |
751,199 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 3615. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(3615)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 3615.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(3615)); |
141,110 | ru | Java | sum_n | intermediate | Напиши функцию на Java, которая считает сумму чисел от 1 до 9980. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(9980)); | ### Instruction:
Напиши функцию на Java, которая считает сумму чисел от 1 до 9980.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(9980)); |
2,216,610 | kk | Unity | var_decl | beginner | Unity тілінде 202463 мәнімен count айнымалысын қалай жариялауға болады? | int count = 202463; | ### Instruction:
Unity тілінде 202463 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 202463; |
1,028,913 | ru | Java | var_decl | beginner | Как объявить переменную x со значением 546785 в Java? | int x = 546785; | ### Instruction:
Как объявить переменную x со значением 546785 в Java?
### Response:
int x = 546785; |
3,034,314 | kk | C# | var_decl | beginner | C# тілінде 159051 мәнімен health айнымалысын қалай жариялауға болады? | int health = 159051; | ### Instruction:
C# тілінде 159051 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 159051; |
4,368,879 | ru | JavaScript | var_decl | beginner | Как объявить переменную limit со значением 254369 в JavaScript? | let limit = 254369; | ### Instruction:
Как объявить переменную limit со значением 254369 в JavaScript?
### Response:
let limit = 254369; |
34,488,305 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 1993 високосным. | function isLeap() {
let y = 1993;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1993 високосным.
### Response:
function isLeap() {
let y = 1993;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
3,419,850 | kk | Java | var_decl | beginner | Java тілінде 904892 мәнімен data айнымалысын қалай жариялауға болады? | int data = 904892; | ### Instruction:
Java тілінде 904892 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 904892; |
11,068,690 | 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(''); |
49,308,103 | en | C++ | logic_ops | intermediate | Write logic to check if the year 2029 is a leap year in C++. | public bool IsLeap() {
int y = 2029;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2029 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2029;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
98,395,121 | en | Unity | string_ops | advanced | Write a function that checks if a string is a palindrome in Unity. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in Unity.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
22,835,595 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
1,784,407 | ru | Unity | var_decl | beginner | Как объявить переменную y со значением 639236 в Unity? | int y = 639236; | ### Instruction:
Как объявить переменную y со значением 639236 в Unity?
### Response:
int y = 639236; |
26,712,715 | 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,289,334 | kk | C# | var_decl | beginner | C# тілінде 801613 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 801613; | ### Instruction:
C# тілінде 801613 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 801613; |
3,979,305 | en | Unity | var_decl | beginner | How to declare a variable buffer with value 561398 in Unity? | int buffer = 561398; | ### Instruction:
How to declare a variable buffer with value 561398 in Unity?
### Response:
int buffer = 561398; |
2,096,763 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 77230 мәнімен timer айнымалысын қалай жариялауға болады? | let timer = 77230; | ### Instruction:
JavaScript тілінде 77230 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
let timer = 77230; |
36,745,018 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript логику проверки, является ли год 1928 високосным. | function isLeap() {
let y = 1928;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1928 високосным.
### Response:
function isLeap() {
let y = 1928;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
688,721 | ru | Python | var_decl | beginner | Как объявить переменную x со значением 552520 в Python? | x = 552520 | ### Instruction:
Как объявить переменную x со значением 552520 в Python?
### Response:
x = 552520 |
86,469,563 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.