id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
46,151,528
ru
C++
string_ops
intermediate
Напишите на C++ функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на C++ функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
3,540,654
ru
Java
var_decl
beginner
Как объявить переменную amount со значением 659916 в Java?
int amount = 659916;
### Instruction: Как объявить переменную amount со значением 659916 в Java? ### Response: int amount = 659916;
21,329,160
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аеёиоуыэюя')
45,803,405
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; }
29,061,296
en
JavaScript
string_ops
intermediate
Write a function that counts vowels in a text in JavaScript.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Write a function that counts vowels in a text in JavaScript. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
2,262,336
ru
Unity
var_decl
beginner
Как объявить переменную health со значением 435803 в Unity?
int health = 435803;
### Instruction: Как объявить переменную health со значением 435803 в Unity? ### Response: int health = 435803;
42,082,363
kk
Java
logic_ops
advanced
Java тилінде 357 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 357; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 357 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 357; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
66,516,267
ru
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; }
3,103
ru
C++
factorial
advanced
Напиши функцию на C++, которая вычисляет факториал числа 1067.
long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(1067) << std::endl;
### Instruction: Напиши функцию на C++, которая вычисляет факториал числа 1067. ### Response: long long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } std::cout << factorial(1067) << std::endl;
4,998,810
kk
Java
var_decl
beginner
Java тілінде 559336 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 559336;
### Instruction: Java тілінде 559336 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 559336;
62,620,449
kk
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); }
447,992
ru
C#
var_decl
beginner
Как объявить переменную result со значением 838253 в C#?
int result = 838253;
### Instruction: Как объявить переменную result со значением 838253 в C#? ### Response: int result = 838253;
868,127
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 8399.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(8399))
### Instruction: Write a function in Python that sums numbers from 1 to 8399. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(8399))
1,177,502
ru
JavaScript
var_decl
beginner
Как объявить переменную buffer со значением 245277 в JavaScript?
let buffer = 245277;
### Instruction: Как объявить переменную buffer со значением 245277 в JavaScript? ### Response: let buffer = 245277;
84,101,916
en
JavaScript
logic_ops
advanced
Write a function that determines if the number 237 is prime in JavaScript.
function isPrime() { let n = 237; 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 237 is prime in JavaScript. ### Response: function isPrime() { let n = 237; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
35,359,372
kk
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,140,112
ru
C++
var_decl
beginner
Как объявить переменную score со значением 366667 в C++?
int score = 366667;
### Instruction: Как объявить переменную score со значением 366667 в C++? ### Response: int score = 366667;
3,429,342
en
Python
var_decl
beginner
How to declare a variable speed with value 785059 in Python?
speed = 785059
### Instruction: How to declare a variable speed with value 785059 in Python? ### Response: speed = 785059
630,527
kk
Java
factorial
advanced
Java тілінде 2066 санының факториалын есептейтін функция жаз.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(2066));
### Instruction: Java тілінде 2066 санының факториалын есептейтін функция жаз. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(2066));
1,623,644
en
Unity
var_decl
beginner
How to declare a variable count with value 673581 in Unity?
int count = 673581;
### Instruction: How to declare a variable count with value 673581 in Unity? ### Response: int count = 673581;
35,001,134
en
Unity
array_ops
advanced
Write a function that reverses a list in Unity.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in Unity. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
53,124,766
kk
Java
logic_ops
intermediate
Java тилінде 2044 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2044; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 2044 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2044; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,824,829
ru
Python
var_decl
beginner
Как объявить переменную size со значением 199746 в Python?
size = 199746
### Instruction: Как объявить переменную size со значением 199746 в Python? ### Response: size = 199746
47,128,581
kk
JavaScript
array_ops
intermediate
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
const reverseArr = arr => arr.reverse();
### Instruction: JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: const reverseArr = arr => arr.reverse();
55,934,911
kk
C++
array_ops
intermediate
C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: C++ тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
18,723,888
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; }
62,589,232
kk
C#
array_ops
advanced
C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: C# тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
27,181,475
ru
Java
logic_ops
intermediate
Напишите на Java функцию, определяющую, является ли число 468 простым.
public bool IsPrime() { int n = 468; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 468 простым. ### Response: public bool IsPrime() { int n = 468; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
14,358,857
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(); }
30,487,734
en
Python
logic_ops
intermediate
Write a function that determines if the number 410 is prime in Python.
def is_prime(): n = 410 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 410 is prime in Python. ### Response: def is_prime(): n = 410 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
29,632,641
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 2003 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 2003; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 2003 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 2003; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
1,762,646
en
Unity
var_decl
beginner
How to declare a variable amount with value 939959 in Unity?
int amount = 939959;
### Instruction: How to declare a variable amount with value 939959 in Unity? ### Response: int amount = 939959;
4,384,330
kk
C#
var_decl
beginner
C# тілінде 319998 мәнімен x айнымалысын қалай жариялауға болады?
int x = 319998;
### Instruction: C# тілінде 319998 мәнімен x айнымалысын қалай жариялауға болады? ### Response: int x = 319998;
21,106,232
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);
139,493
ru
C++
var_decl
beginner
Как объявить переменную offset со значением 4262 в C++?
int offset = 4262;
### Instruction: Как объявить переменную offset со значением 4262 в C++? ### Response: int offset = 4262;
4,139,968
en
Java
var_decl
beginner
How to declare a variable count with value 983852 in Java?
int count = 983852;
### Instruction: How to declare a variable count with value 983852 in Java? ### Response: int count = 983852;
242,227
en
Unity
var_decl
beginner
How to declare a variable value with value 77019 in Unity?
int value = 77019;
### Instruction: How to declare a variable value with value 77019 in Unity? ### Response: int value = 77019;
54,515,998
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; }
10,307,199
ru
Unity
array_ops
advanced
Напишите на 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; }
62,569,987
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); }
66,995,150
kk
Java
logic_ops
intermediate
Java тилінде 340 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 340; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 340 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 340; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
11,555,135
en
JavaScript
array_ops
advanced
Write a function that filters only even numbers from a list in JavaScript.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Write a function that filters only even numbers from a list in JavaScript. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
4,067,068
kk
JavaScript
var_decl
beginner
JavaScript тілінде 399352 мәнімен x айнымалысын қалай жариялауға болады?
let x = 399352;
### Instruction: JavaScript тілінде 399352 мәнімен x айнымалысын қалай жариялауға болады? ### Response: let x = 399352;
3,724,070
ru
Java
var_decl
beginner
Как объявить переменную total со значением 146286 в Java?
int total = 146286;
### Instruction: Как объявить переменную total со значением 146286 в Java? ### Response: int total = 146286;
38,511,296
kk
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; }
48,883,835
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; }
68,428,574
en
Python
string_ops
advanced
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аеёиоуыэюя')
21,195,640
kk
Unity
string_ops
intermediate
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
59,782,537
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('');
15,262,620
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
2,695,539
kk
JavaScript
var_decl
beginner
JavaScript тілінде 965904 мәнімен buffer айнымалысын қалай жариялауға болады?
let buffer = 965904;
### Instruction: JavaScript тілінде 965904 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: let buffer = 965904;
3,623,729
en
C#
var_decl
beginner
How to declare a variable result with value 308933 in C#?
int result = 308933;
### Instruction: How to declare a variable result with value 308933 in C#? ### Response: int result = 308933;
109,180
en
Java
factorial
advanced
Write a function in Java that calculates the factorial of 3784.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(3784));
### Instruction: Write a function in Java that calculates the factorial of 3784. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(3784));
4,599,162
en
JavaScript
var_decl
beginner
How to declare a variable limit with value 452410 in JavaScript?
let limit = 452410;
### Instruction: How to declare a variable limit with value 452410 in JavaScript? ### Response: let limit = 452410;
29,367,024
en
C#
string_ops
intermediate
Write a function that counts vowels in a text in C#.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in C#. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
34,597,604
kk
C++
string_ops
intermediate
C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C++ тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
10,304,738
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; }
884,217
en
C++
var_decl
beginner
How to declare a variable amount with value 743368 in C++?
int amount = 743368;
### Instruction: How to declare a variable amount with value 743368 in C++? ### Response: int amount = 743368;
745,405
en
C++
var_decl
beginner
How to declare a variable amount with value 681433 in C++?
int amount = 681433;
### Instruction: How to declare a variable amount with value 681433 in C++? ### Response: int amount = 681433;
1,952,225
en
Java
var_decl
beginner
How to declare a variable score with value 290910 in Java?
int score = 290910;
### Instruction: How to declare a variable score with value 290910 in Java? ### Response: int score = 290910;
4,845,336
kk
Unity
var_decl
beginner
Unity тілінде 116440 мәнімен value айнымалысын қалай жариялауға болады?
int value = 116440;
### Instruction: Unity тілінде 116440 мәнімен value айнымалысын қалай жариялауға болады? ### Response: int value = 116440;
96,427,371
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); }
3,263,045
ru
C++
var_decl
beginner
Как объявить переменную total со значением 544661 в C++?
int total = 544661;
### Instruction: Как объявить переменную total со значением 544661 в C++? ### Response: int total = 544661;
72,055,502
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); }
923,999
kk
JavaScript
var_decl
beginner
JavaScript тілінде 554419 мәнімен count айнымалысын қалай жариялауға болады?
let count = 554419;
### Instruction: JavaScript тілінде 554419 мәнімен count айнымалысын қалай жариялауға болады? ### Response: let count = 554419;
18,404,754
kk
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]
444,837
kk
Python
factorial
advanced
Python тілінде 378 санының факториалын есептейтін функция жаз.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(378))
### Instruction: Python тілінде 378 санының факториалын есептейтін функция жаз. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(378))
3,092,999
en
C#
var_decl
beginner
How to declare a variable size with value 104728 in C#?
int size = 104728;
### Instruction: How to declare a variable size with value 104728 in C#? ### Response: int size = 104728;
511,624
ru
Java
factorial
advanced
Напиши функцию на Java, которая вычисляет факториал числа 1346.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1346));
### Instruction: Напиши функцию на Java, которая вычисляет факториал числа 1346. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(1346));
4,986,774
ru
JavaScript
var_decl
beginner
Как объявить переменную rate со значением 917173 в JavaScript?
let rate = 917173;
### Instruction: Как объявить переменную rate со значением 917173 в JavaScript? ### Response: let rate = 917173;
731,874
kk
Python
var_decl
beginner
Python тілінде 171221 мәнімен value айнымалысын қалай жариялауға болады?
value = 171221
### Instruction: Python тілінде 171221 мәнімен value айнымалысын қалай жариялауға болады? ### Response: value = 171221
3,785,118
kk
Java
var_decl
beginner
Java тілінде 603429 мәнімен total айнымалысын қалай жариялауға болады?
int total = 603429;
### Instruction: Java тілінде 603429 мәнімен total айнымалысын қалай жариялауға болады? ### Response: int total = 603429;
23,584,226
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; }
76,977,900
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; }
29,657,132
ru
Unity
array_ops
advanced
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Unity функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
2,333,268
kk
Java
var_decl
beginner
Java тілінде 947673 мәнімен health айнымалысын қалай жариялауға болады?
int health = 947673;
### Instruction: Java тілінде 947673 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 947673;
12,353,181
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; }
36,652,942
ru
C#
logic_ops
intermediate
Напишите на C# функцию, определяющую, является ли число 9 простым.
public bool IsPrime() { int n = 9; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 9 простым. ### Response: public bool IsPrime() { int n = 9; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
90,586,238
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 24 простым.
public bool IsPrime() { int n = 24; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 24 простым. ### Response: public bool IsPrime() { int n = 24; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
551,098
kk
C#
sum_n
intermediate
C# тілінде 1-ден 5488-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(5488));
### Instruction: C# тілінде 1-ден 5488-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(5488));
14,348,606
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; }
29,582,299
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
18,894,866
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
78,662,306
en
JavaScript
string_ops
advanced
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();
514,931
ru
C#
sum_n
intermediate
Напиши функцию на C#, которая считает сумму чисел от 1 до 1009.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(1009));
### Instruction: Напиши функцию на C#, которая считает сумму чисел от 1 до 1009. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(1009));
3,966,712
kk
Python
var_decl
beginner
Python тілінде 767101 мәнімен level айнымалысын қалай жариялауға болады?
level = 767101
### Instruction: Python тілінде 767101 мәнімен level айнымалысын қалай жариялауға болады? ### Response: level = 767101
59,757,858
en
Python
array_ops
intermediate
Write a function that reverses a list in Python.
def reverse_list(arr): return arr[::-1]
### Instruction: Write a function that reverses a list in Python. ### Response: def reverse_list(arr): return arr[::-1]
43,039,668
kk
Java
logic_ops
advanced
Java тилінде 63 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 63; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 63 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 63; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
70,982,095
kk
JavaScript
logic_ops
advanced
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); }
55,905,440
ru
C++
string_ops
intermediate
Напишите на C++ функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на C++ функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
2,763,822
kk
JavaScript
var_decl
beginner
JavaScript тілінде 997663 мәнімен count айнымалысын қалай жариялауға болады?
let count = 997663;
### Instruction: JavaScript тілінде 997663 мәнімен count айнымалысын қалай жариялауға болады? ### Response: let count = 997663;
78,725,159
kk
C++
logic_ops
intermediate
C++ тилінде 2010 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2010; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 2010 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2010; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,335,321
ru
Unity
var_decl
beginner
Как объявить переменную offset со значением 492474 в Unity?
int offset = 492474;
### Instruction: Как объявить переменную offset со значением 492474 в Unity? ### Response: int offset = 492474;
45,122,696
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аеёиоуыэюя')
82,330,950
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; }
11,415,413
kk
Python
string_ops
advanced
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
82,541,926
kk
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,227,623
ru
Unity
var_decl
beginner
Как объявить переменную limit со значением 463042 в Unity?
int limit = 463042;
### Instruction: Как объявить переменную limit со значением 463042 в Unity? ### Response: int limit = 463042;
13,578,851
kk
C++
string_ops
advanced
C++ тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: C++ тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
1,422,980
kk
JavaScript
var_decl
beginner
JavaScript тілінде 664494 мәнімен timer айнымалысын қалай жариялауға болады?
let timer = 664494;
### Instruction: JavaScript тілінде 664494 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: let timer = 664494;