id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
4,617,881
ru
C#
var_decl
beginner
Как объявить переменную result со значением 554641 в C#?
int result = 554641;
### Instruction: Как объявить переменную result со значением 554641 в C#? ### Response: int result = 554641;
69,322,226
ru
C#
logic_ops
intermediate
Напишите на C# функцию, определяющую, является ли число 74 простым.
public bool IsPrime() { int n = 74; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 74 простым. ### Response: public bool IsPrime() { int n = 74; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,679,566
kk
Python
var_decl
beginner
Python тілінде 381937 мәнімен limit айнымалысын қалай жариялауға болады?
limit = 381937
### Instruction: Python тілінде 381937 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: limit = 381937
523,645
kk
Unity
var_decl
beginner
Unity тілінде 754337 мәнімен x айнымалысын қалай жариялауға болады?
int x = 754337;
### Instruction: Unity тілінде 754337 мәнімен x айнымалысын қалай жариялауға болады? ### Response: int x = 754337;
1,744,821
kk
Python
var_decl
beginner
Python тілінде 700018 мәнімен total айнымалысын қалай жариялауға болады?
total = 700018
### Instruction: Python тілінде 700018 мәнімен total айнымалысын қалай жариялауға болады? ### Response: total = 700018
480,504
kk
C#
var_decl
beginner
C# тілінде 106177 мәнімен index айнымалысын қалай жариялауға болады?
int index = 106177;
### Instruction: C# тілінде 106177 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 106177;
20,518,982
en
Python
logic_ops
intermediate
Write logic to check if the year 2067 is a leap year in Python.
def is_leap(): year = 2067 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2067 is a leap year in Python. ### Response: def is_leap(): year = 2067 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
62,774,349
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; }
1,255,624
en
Java
var_decl
beginner
How to declare a variable rate with value 795345 in Java?
int rate = 795345;
### Instruction: How to declare a variable rate with value 795345 in Java? ### Response: int rate = 795345;
23,808,372
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; }
396,113
kk
Unity
factorial
advanced
Unity тілінде 8925 санының факториалын есептейтін функция жаз.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(8925)); }
### Instruction: Unity тілінде 8925 санының факториалын есептейтін функция жаз. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(8925)); }
57,504,163
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 2073 високосным.
public bool IsLeap() { int y = 2073; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 2073 високосным. ### Response: public bool IsLeap() { int y = 2073; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,722,024
ru
Python
var_decl
beginner
Как объявить переменную result со значением 11161 в Python?
result = 11161
### Instruction: Как объявить переменную result со значением 11161 в Python? ### Response: result = 11161
1,529,182
ru
Python
var_decl
beginner
Как объявить переменную data со значением 711878 в Python?
data = 711878
### Instruction: Как объявить переменную data со значением 711878 в Python? ### Response: data = 711878
4,279,381
ru
Java
var_decl
beginner
Как объявить переменную value со значением 335894 в Java?
int value = 335894;
### Instruction: Как объявить переменную value со значением 335894 в Java? ### Response: int value = 335894;
48,274,106
ru
Unity
string_ops
advanced
Напишите на Unity функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на Unity функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
11,353,678
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; }
1,583,368
kk
JavaScript
var_decl
beginner
JavaScript тілінде 252248 мәнімен limit айнымалысын қалай жариялауға болады?
let limit = 252248;
### Instruction: JavaScript тілінде 252248 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: let limit = 252248;
42,735,697
kk
Python
array_ops
intermediate
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
4,070,216
kk
JavaScript
var_decl
beginner
JavaScript тілінде 616623 мәнімен level айнымалысын қалай жариялауға болады?
let level = 616623;
### Instruction: JavaScript тілінде 616623 мәнімен level айнымалысын қалай жариялауға болады? ### Response: let level = 616623;
39,611,971
en
Python
array_ops
intermediate
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]
3,387,729
kk
Java
var_decl
beginner
Java тілінде 194889 мәнімен health айнымалысын қалай жариялауға болады?
int health = 194889;
### Instruction: Java тілінде 194889 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 194889;
1,147,048
kk
Unity
var_decl
beginner
Unity тілінде 865267 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 865267;
### Instruction: Unity тілінде 865267 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 865267;
49,793,732
kk
C#
logic_ops
advanced
C# тилінде 1945 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1945; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C# тилінде 1945 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1945; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
26,776,232
en
Java
string_ops
intermediate
Write a function that converts a string to uppercase in Java.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Java. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
2,750,437
en
Java
var_decl
beginner
How to declare a variable weight with value 816124 in Java?
int weight = 816124;
### Instruction: How to declare a variable weight with value 816124 in Java? ### Response: int weight = 816124;
1,349,814
en
C++
var_decl
beginner
How to declare a variable offset with value 638667 in C++?
int offset = 638667;
### Instruction: How to declare a variable offset with value 638667 in C++? ### Response: int offset = 638667;
2,094,033
kk
C#
var_decl
beginner
C# тілінде 708962 мәнімен index айнымалысын қалай жариялауға болады?
int index = 708962;
### Instruction: C# тілінде 708962 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 708962;
43,774,881
ru
Java
string_ops
advanced
Напишите на Java функцию, которая переводит строку в верхний регистр.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Напишите на Java функцию, которая переводит строку в верхний регистр. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
75,970,800
en
Unity
array_ops
advanced
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; }
38,854,122
en
Java
array_ops
advanced
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; }
77,005,120
kk
Python
array_ops
advanced
Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
68,504,587
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(); }
47,566,316
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(); }
47,266,357
ru
Java
logic_ops
intermediate
Напишите на Java функцию, определяющую, является ли число 53 простым.
public bool IsPrime() { int n = 53; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 53 простым. ### Response: public bool IsPrime() { int n = 53; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
72,668,123
en
Unity
array_ops
advanced
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; }
93,590,853
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
2,609,808
en
Unity
var_decl
beginner
How to declare a variable speed with value 101873 in Unity?
int speed = 101873;
### Instruction: How to declare a variable speed with value 101873 in Unity? ### Response: int speed = 101873;
39,648,630
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; }
99,284
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 3722.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(3722))
### Instruction: Write a function in Python that sums numbers from 1 to 3722. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(3722))
968,249
kk
C#
var_decl
beginner
C# тілінде 899332 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 899332;
### Instruction: C# тілінде 899332 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 899332;
49,500,719
ru
Java
string_ops
intermediate
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Напишите на Java функцию, которая проверяет, является ли строка палиндромом. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
2,377,572
en
Java
var_decl
beginner
How to declare a variable size with value 311010 in Java?
int size = 311010;
### Instruction: How to declare a variable size with value 311010 in Java? ### Response: int size = 311010;
2,928,787
en
Python
var_decl
beginner
How to declare a variable value with value 13241 in Python?
value = 13241
### Instruction: How to declare a variable value with value 13241 in Python? ### Response: value = 13241
60,213,875
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 70 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 70; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 70 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 70; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
54,504,404
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; }
4,096,414
kk
Java
var_decl
beginner
Java тілінде 108721 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 108721;
### Instruction: Java тілінде 108721 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 108721;
470,738
kk
Unity
factorial
advanced
Unity тілінде 9438 санының факториалын есептейтін функция жаз.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(9438)); }
### Instruction: Unity тілінде 9438 санының факториалын есептейтін функция жаз. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(9438)); }
659,829
kk
Java
sum_n
intermediate
Java тілінде 1-ден 4654-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(4654));
### Instruction: Java тілінде 1-ден 4654-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(4654));
4,663,041
ru
JavaScript
var_decl
beginner
Как объявить переменную level со значением 735512 в JavaScript?
let level = 735512;
### Instruction: Как объявить переменную level со значением 735512 в JavaScript? ### Response: let level = 735512;
1,105,867
kk
Unity
var_decl
beginner
Unity тілінде 629647 мәнімен score айнымалысын қалай жариялауға болады?
int score = 629647;
### Instruction: Unity тілінде 629647 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 629647;
21,755,398
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; }
64,526,351
kk
Unity
logic_ops
intermediate
Unity тилінде 2026 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2026; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2026 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2026; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,851,673
kk
Python
var_decl
beginner
Python тілінде 984628 мәнімен level айнымалысын қалай жариялауға болады?
level = 984628
### Instruction: Python тілінде 984628 мәнімен level айнымалысын қалай жариялауға болады? ### Response: level = 984628
4,724,042
en
Python
var_decl
beginner
How to declare a variable size with value 309162 in Python?
size = 309162
### Instruction: How to declare a variable size with value 309162 in Python? ### Response: size = 309162
26,391,028
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 238 простым.
public bool IsPrime() { int n = 238; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 238 простым. ### Response: public bool IsPrime() { int n = 238; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
15,161,975
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; }
17,758,707
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
const getMax = arr => Math.max(...arr);
### Instruction: Напишите на JavaScript функцию, которая находит максимальное число в массиве. ### Response: const getMax = arr => Math.max(...arr);
1,895,778
ru
C++
var_decl
beginner
Как объявить переменную health со значением 895645 в C++?
int health = 895645;
### Instruction: Как объявить переменную health со значением 895645 в C++? ### Response: int health = 895645;
89,792,351
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]
26,205,864
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 248 is prime in JavaScript.
function isPrime() { let n = 248; 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 248 is prime in JavaScript. ### Response: function isPrime() { let n = 248; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
22,780,457
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая находит максимальное число в массиве.
def get_max(arr): return max(arr)
### Instruction: Напишите на Python функцию, которая находит максимальное число в массиве. ### Response: def get_max(arr): return max(arr)
92,485,552
en
Java
array_ops
advanced
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; }
30,204,275
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);
4,982,291
en
Unity
var_decl
beginner
How to declare a variable timer with value 77968 in Unity?
int timer = 77968;
### Instruction: How to declare a variable timer with value 77968 in Unity? ### Response: int timer = 77968;
95,223,649
en
C#
array_ops
intermediate
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; }
53,498,340
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; }
99,916,789
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аеёиоуыэюя')
21,654,834
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аеёиоуыэюя')
20,229,895
ru
Java
logic_ops
intermediate
Напишите на Java функцию, определяющую, является ли число 165 простым.
public bool IsPrime() { int n = 165; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 165 простым. ### Response: public bool IsPrime() { int n = 165; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
55,464,825
en
C#
array_ops
advanced
Write a function that finds the maximum number in an array in C#.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in C#. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
58,906,184
kk
C#
string_ops
advanced
C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
88,937,930
kk
C#
logic_ops
advanced
C# тилінде 323 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 323; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 323 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 323; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
40,301,389
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; }
32,562,965
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);
2,486,101
en
C#
var_decl
beginner
How to declare a variable health with value 836949 in C#?
int health = 836949;
### Instruction: How to declare a variable health with value 836949 in C#? ### Response: int health = 836949;
69,291,422
kk
Python
array_ops
intermediate
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
18,370,370
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 1908 високосным.
public bool IsLeap() { int y = 1908; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 1908 високосным. ### Response: public bool IsLeap() { int y = 1908; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
836,025
kk
JavaScript
var_decl
beginner
JavaScript тілінде 192925 мәнімен health айнымалысын қалай жариялауға болады?
let health = 192925;
### Instruction: JavaScript тілінде 192925 мәнімен health айнымалысын қалай жариялауға болады? ### Response: let health = 192925;
98,646,433
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; }
19,979,141
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; }
27,515,821
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
61,416,324
ru
Python
array_ops
advanced
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
50,105,409
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; }
4,039,987
ru
Python
var_decl
beginner
Как объявить переменную weight со значением 386543 в Python?
weight = 386543
### Instruction: Как объявить переменную weight со значением 386543 в Python? ### Response: weight = 386543
49,705,873
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; }
4,171,062
en
JavaScript
var_decl
beginner
How to declare a variable amount with value 843839 in JavaScript?
let amount = 843839;
### Instruction: How to declare a variable amount with value 843839 in JavaScript? ### Response: let amount = 843839;
13,599,191
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 364 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 364; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 364 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 364; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
591,734
kk
C#
factorial
advanced
C# тілінде 9768 санының факториалын есептейтін функция жаз.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(9768));
### Instruction: C# тілінде 9768 санының факториалын есептейтін функция жаз. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(9768));
62,694,952
en
JavaScript
array_ops
intermediate
Write a function that finds the maximum number in an array in JavaScript.
const getMax = arr => Math.max(...arr);
### Instruction: Write a function that finds the maximum number in an array in JavaScript. ### Response: const getMax = arr => Math.max(...arr);
15,471,000
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; }
23,782
ru
C#
sum_n
intermediate
Напиши функцию на C#, которая считает сумму чисел от 1 до 5695.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(5695));
### Instruction: Напиши функцию на C#, которая считает сумму чисел от 1 до 5695. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(5695));
66,217,324
ru
Unity
string_ops
advanced
Напишите на 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; }
2,328,267
en
C++
var_decl
beginner
How to declare a variable health with value 552172 in C++?
int health = 552172;
### Instruction: How to declare a variable health with value 552172 in C++? ### Response: int health = 552172;
53,140,161
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]
86,354,318
en
Unity
logic_ops
advanced
Write logic to check if the year 2099 is a leap year in Unity.
public bool IsLeap() { int y = 2099; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2099 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2099; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
42,906,671
ru
Unity
logic_ops
intermediate
Напишите на Unity функцию, определяющую, является ли число 316 простым.
public bool IsPrime() { int n = 316; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Unity функцию, определяющую, является ли число 316 простым. ### Response: public bool IsPrime() { int n = 316; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
54,428,023
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; }
39,312,337
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 440 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 440; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 440 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 440; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
89,894,369
en
C#
array_ops
intermediate
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; }