id
int64
0
100M
language
stringclasses
3 values
prog_lang
stringclasses
6 values
category
stringclasses
10 values
difficulty
stringclasses
3 values
instruction
stringlengths
30
86
output
stringlengths
7
192
text
stringlengths
92
300
80,376,930
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; }
50,116,962
en
Java
logic_ops
advanced
Write a function that determines if the number 179 is prime in Java.
public bool IsPrime() { int n = 179; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Write a function that determines if the number 179 is prime in Java. ### Response: public bool IsPrime() { int n = 179; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
89,412,406
en
Unity
string_ops
intermediate
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; }
41,035,400
kk
Python
string_ops
advanced
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
def is_palindrome(s): return s == s[::-1]
### Instruction: Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: def is_palindrome(s): return s == s[::-1]
2,225,023
kk
C#
var_decl
beginner
C# тілінде 299414 мәнімен timer айнымалысын қалай жариялауға болады?
int timer = 299414;
### Instruction: C# тілінде 299414 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: int timer = 299414;
14,284,405
ru
C#
logic_ops
advanced
Напишите на C# функцию, определяющую, является ли число 409 простым.
public bool IsPrime() { int n = 409; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 409 простым. ### Response: public bool IsPrime() { int n = 409; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
40,111,479
ru
C#
array_ops
intermediate
Напишите на 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; }
3,418,667
kk
Java
var_decl
beginner
Java тілінде 278468 мәнімен size айнымалысын қалай жариялауға болады?
int size = 278468;
### Instruction: Java тілінде 278468 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 278468;
1,877,843
ru
C++
var_decl
beginner
Как объявить переменную rate со значением 706672 в C++?
int rate = 706672;
### Instruction: Как объявить переменную rate со значением 706672 в C++? ### Response: int rate = 706672;
3,090,028
kk
Python
var_decl
beginner
Python тілінде 951842 мәнімен count айнымалысын қалай жариялауға болады?
count = 951842
### Instruction: Python тілінде 951842 мәнімен count айнымалысын қалай жариялауға болады? ### Response: count = 951842
43,425,888
en
C#
string_ops
advanced
Write a function that converts a string to uppercase in C#.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in C#. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
55,448,710
kk
Unity
logic_ops
advanced
Unity тилінде 2040 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2040; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2040 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2040; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,834,942
en
JavaScript
var_decl
beginner
How to declare a variable speed with value 327226 in JavaScript?
let speed = 327226;
### Instruction: How to declare a variable speed with value 327226 in JavaScript? ### Response: let speed = 327226;
16,748,161
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; }
1,520,978
kk
C#
var_decl
beginner
C# тілінде 567099 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 567099;
### Instruction: C# тілінде 567099 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 567099;
38,559,623
en
C#
logic_ops
advanced
Write logic to check if the year 1969 is a leap year in C#.
public bool IsLeap() { int y = 1969; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1969 is a leap year in C#. ### Response: public bool IsLeap() { int y = 1969; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
95,989,998
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; }
3,601,447
en
Python
var_decl
beginner
How to declare a variable amount with value 448499 in Python?
amount = 448499
### Instruction: How to declare a variable amount with value 448499 in Python? ### Response: amount = 448499
57,042,567
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]
70,758,435
ru
Java
array_ops
advanced
Напишите на 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; }
62,203,064
ru
Java
logic_ops
advanced
Напишите на Java функцию, определяющую, является ли число 325 простым.
public bool IsPrime() { int n = 325; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 325 простым. ### Response: public bool IsPrime() { int n = 325; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
51,771,255
kk
Java
logic_ops
advanced
Java тилінде 86 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 86; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 86 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 86; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
30,922,699
kk
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; }
81,163,749
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; }
33,647,645
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); }
1,814,872
ru
Python
var_decl
beginner
Как объявить переменную amount со значением 799432 в Python?
amount = 799432
### Instruction: Как объявить переменную amount со значением 799432 в Python? ### Response: amount = 799432
81,141,314
kk
Unity
logic_ops
intermediate
Unity тилінде 1918 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1918; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1918 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1918; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
70,053,420
en
JavaScript
string_ops
advanced
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('');
3,235,346
kk
Java
var_decl
beginner
Java тілінде 433415 мәнімен buffer айнымалысын қалай жариялауға болады?
int buffer = 433415;
### Instruction: Java тілінде 433415 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: int buffer = 433415;
166,028
en
C#
var_decl
beginner
How to declare a variable x with value 645035 in C#?
int x = 645035;
### Instruction: How to declare a variable x with value 645035 in C#? ### Response: int x = 645035;
14,253,190
kk
Java
logic_ops
advanced
Java тилінде 159 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 159; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 159 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 159; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,529,310
kk
Java
var_decl
beginner
Java тілінде 94329 мәнімен buffer айнымалысын қалай жариялауға болады?
int buffer = 94329;
### Instruction: Java тілінде 94329 мәнімен buffer айнымалысын қалай жариялауға болады? ### Response: int buffer = 94329;
1,490,993
kk
JavaScript
var_decl
beginner
JavaScript тілінде 39238 мәнімен timer айнымалысын қалай жариялауға болады?
let timer = 39238;
### Instruction: JavaScript тілінде 39238 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: let timer = 39238;
14,849,522
en
Python
array_ops
advanced
Write a function that finds the maximum number in an array in Python.
def get_max(arr): return max(arr)
### Instruction: Write a function that finds the maximum number in an array in Python. ### Response: def get_max(arr): return max(arr)
46,151,061
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); }
76,154,853
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]
50,128,740
en
C#
array_ops
intermediate
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); }
62,156,344
en
C#
array_ops
intermediate
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; }
57,011,362
ru
Java
logic_ops
advanced
Напишите на Java логику проверки, является ли год 1965 високосным.
public bool IsLeap() { int y = 1965; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Java логику проверки, является ли год 1965 високосным. ### Response: public bool IsLeap() { int y = 1965; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,736,218
kk
JavaScript
var_decl
beginner
JavaScript тілінде 342034 мәнімен result айнымалысын қалай жариялауға болады?
let result = 342034;
### Instruction: JavaScript тілінде 342034 мәнімен result айнымалысын қалай жариялауға болады? ### Response: let result = 342034;
38,526,129
kk
C#
logic_ops
advanced
C# тилінде 457 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 457; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 457 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 457; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
95,266,030
en
JavaScript
string_ops
intermediate
Write a function that converts a string to uppercase in JavaScript.
const toUpper = s => s.toUpperCase();
### Instruction: Write a function that converts a string to uppercase in JavaScript. ### Response: const toUpper = s => s.toUpperCase();
75,461,745
kk
Java
logic_ops
advanced
Java тилінде 2000 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2000; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 2000 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2000; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
48,575,678
en
C#
logic_ops
advanced
Write a function that determines if the number 499 is prime in C#.
public bool IsPrime() { int n = 499; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Write a function that determines if the number 499 is prime in C#. ### Response: public bool IsPrime() { int n = 499; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
26,619,831
en
Python
logic_ops
intermediate
Write a function that determines if the number 265 is prime in Python.
def is_prime(): n = 265 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 265 is prime in Python. ### Response: def is_prime(): n = 265 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
51,214,101
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; }
1,369,364
en
C#
var_decl
beginner
How to declare a variable health with value 148544 in C#?
int health = 148544;
### Instruction: How to declare a variable health with value 148544 in C#? ### Response: int health = 148544;
2,265,532
ru
JavaScript
var_decl
beginner
Как объявить переменную total со значением 211240 в JavaScript?
let total = 211240;
### Instruction: Как объявить переменную total со значением 211240 в JavaScript? ### Response: let total = 211240;
22,113,868
en
JavaScript
logic_ops
intermediate
Write logic to check if the year 1949 is a leap year in JavaScript.
function isLeap() { let y = 1949; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Write logic to check if the year 1949 is a leap year in JavaScript. ### Response: function isLeap() { let y = 1949; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
57,429,065
en
C#
logic_ops
advanced
Write logic to check if the year 1915 is a leap year in C#.
public bool IsLeap() { int y = 1915; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1915 is a leap year in C#. ### Response: public bool IsLeap() { int y = 1915; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
20,767,190
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(); }
21,405,611
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
2,504,986
ru
C++
var_decl
beginner
Как объявить переменную amount со значением 508835 в C++?
int amount = 508835;
### Instruction: Как объявить переменную amount со значением 508835 в C++? ### Response: int amount = 508835;
57,542,212
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 2033 високосным.
public bool IsLeap() { int y = 2033; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 2033 високосным. ### Response: public bool IsLeap() { int y = 2033; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
23,315,399
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; }
17,977,098
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); }
1,942,417
ru
Unity
var_decl
beginner
Как объявить переменную count со значением 693386 в Unity?
int count = 693386;
### Instruction: Как объявить переменную count со значением 693386 в Unity? ### Response: int count = 693386;
87,414,623
kk
Python
logic_ops
intermediate
Python тилінде 218 санының жай сан екенін анықтайтын функцияны жазыңыз.
def is_prime(): n = 218 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Python тилінде 218 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: def is_prime(): n = 218 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
3,393,194
en
JavaScript
var_decl
beginner
How to declare a variable total with value 156921 in JavaScript?
let total = 156921;
### Instruction: How to declare a variable total with value 156921 in JavaScript? ### Response: let total = 156921;
22,045,529
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('');
64,689,980
en
Python
logic_ops
intermediate
Write a function that determines if the number 493 is prime in Python.
def is_prime(): n = 493 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 493 is prime in Python. ### Response: def is_prime(): n = 493 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
22,865,034
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; }
421,121
kk
JavaScript
var_decl
beginner
JavaScript тілінде 927462 мәнімен size айнымалысын қалай жариялауға болады?
let size = 927462;
### Instruction: JavaScript тілінде 927462 мәнімен size айнымалысын қалай жариялауға болады? ### Response: let size = 927462;
71,662,575
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аеёиоуыэюя')
1,168,895
kk
Python
var_decl
beginner
Python тілінде 30843 мәнімен size айнымалысын қалай жариялауға болады?
size = 30843
### Instruction: Python тілінде 30843 мәнімен size айнымалысын қалай жариялауға болады? ### Response: size = 30843
66,411,939
ru
C#
logic_ops
advanced
Напишите на C# логику проверки, является ли год 1939 високосным.
public bool IsLeap() { int y = 1939; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C# логику проверки, является ли год 1939 високосным. ### Response: public bool IsLeap() { int y = 1939; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,526,084
kk
JavaScript
var_decl
beginner
JavaScript тілінде 667851 мәнімен limit айнымалысын қалай жариялауға болады?
let limit = 667851;
### Instruction: JavaScript тілінде 667851 мәнімен limit айнымалысын қалай жариялауға болады? ### Response: let limit = 667851;
56,891
ru
Unity
factorial
advanced
Напиши функцию на Unity, которая вычисляет факториал числа 2658.
long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(2658)); }
### Instruction: Напиши функцию на Unity, которая вычисляет факториал числа 2658. ### Response: long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } void Start() { Debug.Log(Factorial(2658)); }
850,826
ru
Unity
var_decl
beginner
Как объявить переменную rate со значением 441252 в Unity?
int rate = 441252;
### Instruction: Как объявить переменную rate со значением 441252 в Unity? ### Response: int rate = 441252;
16,629,797
en
Unity
array_ops
advanced
Write a function that finds the maximum number in an array in Unity.
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 Unity. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
81,094,271
en
Unity
array_ops
advanced
Write a function that finds the maximum number in an array in Unity.
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 Unity. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
1,077,002
kk
JavaScript
var_decl
beginner
JavaScript тілінде 55337 мәнімен health айнымалысын қалай жариялауға болады?
let health = 55337;
### Instruction: JavaScript тілінде 55337 мәнімен health айнымалысын қалай жариялауға болады? ### Response: let health = 55337;
47,716,314
kk
Unity
logic_ops
intermediate
Unity тилінде 401 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 401; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 401 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 401; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,767,193
en
JavaScript
var_decl
beginner
How to declare a variable result with value 62753 in JavaScript?
let result = 62753;
### Instruction: How to declare a variable result with value 62753 in JavaScript? ### Response: let result = 62753;
44,659,872
kk
C#
logic_ops
advanced
C# тилінде 188 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 188; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 188 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 188; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
682,727
en
Python
var_decl
beginner
How to declare a variable x with value 496933 in Python?
x = 496933
### Instruction: How to declare a variable x with value 496933 in Python? ### Response: x = 496933
840,871
kk
Unity
var_decl
beginner
Unity тілінде 636475 мәнімен y айнымалысын қалай жариялауға болады?
int y = 636475;
### Instruction: Unity тілінде 636475 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 636475;
44,016
en
Java
factorial
advanced
Write a function in Java that calculates the factorial of 8715.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(8715));
### Instruction: Write a function in Java that calculates the factorial of 8715. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(8715));
4,544,298
kk
C++
var_decl
beginner
C++ тілінде 114621 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 114621;
### Instruction: C++ тілінде 114621 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 114621;
67,853,551
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(); }
1,450,913
ru
C++
var_decl
beginner
Как объявить переменную count со значением 74216 в C++?
int count = 74216;
### Instruction: Как объявить переменную count со значением 74216 в C++? ### Response: int count = 74216;
43,175,620
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; }
74,662,003
kk
Unity
array_ops
intermediate
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,925,504
ru
Java
var_decl
beginner
Как объявить переменную speed со значением 762212 в Java?
int speed = 762212;
### Instruction: Как объявить переменную speed со значением 762212 в Java? ### Response: int speed = 762212;
1,824,455
kk
JavaScript
var_decl
beginner
JavaScript тілінде 995939 мәнімен total айнымалысын қалай жариялауға болады?
let total = 995939;
### Instruction: JavaScript тілінде 995939 мәнімен total айнымалысын қалай жариялауға болады? ### Response: let total = 995939;
69,958,816
en
Unity
string_ops
intermediate
Write a function that converts a string to uppercase in Unity.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Unity. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
20,298,583
en
C#
array_ops
intermediate
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; }
65,074,337
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); }
85,448,134
en
Python
string_ops
advanced
Write a function that checks if a string is a palindrome in Python.
def is_palindrome(s): return s == s[::-1]
### Instruction: Write a function that checks if a string is a palindrome in Python. ### Response: def is_palindrome(s): return s == s[::-1]
717,321
kk
C#
var_decl
beginner
C# тілінде 359705 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 359705;
### Instruction: C# тілінде 359705 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 359705;
18,346,912
kk
Python
array_ops
intermediate
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
def get_max(arr): return max(arr)
### Instruction: Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: def get_max(arr): return max(arr)
27,614,047
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 180 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 180; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 180 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 180; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
13,860,308
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; }
34,943,740
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; }
1,099,880
ru
Java
var_decl
beginner
Как объявить переменную y со значением 338865 в Java?
int y = 338865;
### Instruction: Как объявить переменную y со значением 338865 в Java? ### Response: int y = 338865;
36,946,520
en
C#
logic_ops
advanced
Write logic to check if the year 1904 is a leap year in C#.
public bool IsLeap() { int y = 1904; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1904 is a leap year in C#. ### Response: public bool IsLeap() { int y = 1904; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
51,256,223
en
JavaScript
array_ops
advanced
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();
89,190,911
kk
C#
logic_ops
intermediate
C# тилінде 35 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 35; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C# тилінде 35 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 35; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,513,468
kk
C++
var_decl
beginner
C++ тілінде 224122 мәнімен score айнымалысын қалай жариялауға болады?
int score = 224122;
### Instruction: C++ тілінде 224122 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 224122;
12,453,619
ru
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; }