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 |
|---|---|---|---|---|---|---|---|
70,214,645 | en | Java | string_ops | advanced | Write a function that checks if a string is a palindrome in Java. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in Java.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
167,329 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 9808. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9808)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 9808.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9808)); |
4,787,375 | kk | C# | var_decl | beginner | C# тілінде 998362 мәнімен total айнымалысын қалай жариялауға болады? | int total = 998362; | ### Instruction:
C# тілінде 998362 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 998362; |
4,908,247 | ru | C++ | var_decl | beginner | Как объявить переменную size со значением 152914 в C++? | int size = 152914; | ### Instruction:
Как объявить переменную size со значением 152914 в C++?
### Response:
int size = 152914; |
2,566,350 | en | Unity | var_decl | beginner | How to declare a variable result with value 247496 in Unity? | int result = 247496; | ### Instruction:
How to declare a variable result with value 247496 in Unity?
### Response:
int result = 247496; |
695,896 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 8263. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(8263)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 8263.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(8263)); |
3,774,462 | kk | Python | var_decl | beginner | Python тілінде 188228 мәнімен limit айнымалысын қалай жариялауға болады? | limit = 188228 | ### Instruction:
Python тілінде 188228 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
limit = 188228 |
12,771,993 | kk | C++ | logic_ops | advanced | C++ тилінде 2028 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2028;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2028 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2028;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
81,151,483 | ru | Python | logic_ops | advanced | Напишите на Python функцию, определяющую, является ли число 498 простым. | def is_prime():
n = 498
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 498 простым.
### Response:
def is_prime():
n = 498
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
65,508,136 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 181 простым. | public bool IsPrime() {
int n = 181;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 181 простым.
### Response:
public bool IsPrime() {
int n = 181;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
89,863,880 | 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] |
1,569,047 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 720076 мәнімен buffer айнымалысын қалай жариялауға болады? | let buffer = 720076; | ### Instruction:
JavaScript тілінде 720076 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
let buffer = 720076; |
2,585,487 | ru | C# | var_decl | beginner | Как объявить переменную size со значением 263820 в C#? | int size = 263820; | ### Instruction:
Как объявить переменную size со значением 263820 в C#?
### Response:
int size = 263820; |
375,751 | kk | Java | factorial | advanced | Java тілінде 9785 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(9785)); | ### Instruction:
Java тілінде 9785 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(9785)); |
2,388,630 | kk | C# | var_decl | beginner | C# тілінде 730970 мәнімен size айнымалысын қалай жариялауға болады? | int size = 730970; | ### Instruction:
C# тілінде 730970 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 730970; |
3,652,428 | kk | C# | var_decl | beginner | C# тілінде 609194 мәнімен result айнымалысын қалай жариялауға болады? | int result = 609194; | ### Instruction:
C# тілінде 609194 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 609194; |
60,539,568 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
48,046,783 | ru | 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;
} |
4,312,655 | en | C++ | var_decl | beginner | How to declare a variable weight with value 757442 in C++? | int weight = 757442; | ### Instruction:
How to declare a variable weight with value 757442 in C++?
### Response:
int weight = 757442; |
67,410,099 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
99,742,152 | 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,296,546 | en | Unity | var_decl | beginner | How to declare a variable score with value 803370 in Unity? | int score = 803370; | ### Instruction:
How to declare a variable score with value 803370 in Unity?
### Response:
int score = 803370; |
29,809,345 | 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();
} |
82,398,203 | 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;
} |
82,251,235 | kk | Python | string_ops | intermediate | Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
def is_palindrome(s):
return s == s[::-1] |
4,718,958 | kk | Unity | var_decl | beginner | Unity тілінде 242742 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 242742; | ### Instruction:
Unity тілінде 242742 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 242742; |
56,111,155 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
57,631,008 | ru | 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;
} |
3,625,377 | kk | Unity | var_decl | beginner | Unity тілінде 376160 мәнімен level айнымалысын қалай жариялауға болады? | int level = 376160; | ### Instruction:
Unity тілінде 376160 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
int level = 376160; |
4,641,962 | en | C++ | var_decl | beginner | How to declare a variable y with value 297223 in C++? | int y = 297223; | ### Instruction:
How to declare a variable y with value 297223 in C++?
### Response:
int y = 297223; |
92,514,399 | 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;
} |
64,467,625 | 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;
} |
52,487,026 | en | Java | logic_ops | intermediate | Write a function that determines if the number 430 is prime in Java. | public bool IsPrime() {
int n = 430;
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 430 is prime in Java.
### Response:
public bool IsPrime() {
int n = 430;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,152,711 | kk | C# | var_decl | beginner | C# тілінде 659870 мәнімен data айнымалысын қалай жариялауға болады? | int data = 659870; | ### Instruction:
C# тілінде 659870 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 659870; |
24,135,500 | kk | Python | logic_ops | advanced | Python тилінде 2096 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 2096
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 2096 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 2096
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
371,265 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 2360. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2360)) | ### Instruction:
Write a function in Python that calculates the factorial of 2360.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2360)) |
54,003,807 | kk | 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;
} |
35,025,156 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript логику проверки, является ли год 1940 високосным. | function isLeap() {
let y = 1940;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1940 високосным.
### Response:
function isLeap() {
let y = 1940;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
41,470 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 1355. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(1355));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 1355.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(1355));
} |
2,510,418 | ru | C++ | var_decl | beginner | Как объявить переменную index со значением 976 в C++? | int index = 976; | ### Instruction:
Как объявить переменную index со значением 976 в C++?
### Response:
int index = 976; |
58,404,116 | 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;
} |
343,436 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 5936. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(5936));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 5936.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(5936));
} |
53,512,848 | en | Java | logic_ops | advanced | Write a function that determines if the number 324 is prime in Java. | public bool IsPrime() {
int n = 324;
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 324 is prime in Java.
### Response:
public bool IsPrime() {
int n = 324;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
28,211,586 | ru | 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,079,043 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 910662 мәнімен timer айнымалысын қалай жариялауға болады? | let timer = 910662; | ### Instruction:
JavaScript тілінде 910662 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
let timer = 910662; |
2,050,028 | en | JavaScript | var_decl | beginner | How to declare a variable size with value 139982 in JavaScript? | let size = 139982; | ### Instruction:
How to declare a variable size with value 139982 in JavaScript?
### Response:
let size = 139982; |
874,065 | ru | C++ | factorial | advanced | Напиши функцию на C++, которая вычисляет факториал числа 6011. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(6011) << std::endl; | ### Instruction:
Напиши функцию на C++, которая вычисляет факториал числа 6011.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(6011) << std::endl; |
2,062,047 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 608179 мәнімен total айнымалысын қалай жариялауға болады? | let total = 608179; | ### Instruction:
JavaScript тілінде 608179 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
let total = 608179; |
2,623,877 | en | Java | var_decl | beginner | How to declare a variable offset with value 346403 in Java? | int offset = 346403; | ### Instruction:
How to declare a variable offset with value 346403 in Java?
### Response:
int offset = 346403; |
94,536,066 | ru | Python | string_ops | advanced | Напишите на Python функцию, которая переводит строку в верхний регистр. | def to_upper(s):
return s.upper() | ### Instruction:
Напишите на Python функцию, которая переводит строку в верхний регистр.
### Response:
def to_upper(s):
return s.upper() |
79,037,595 | 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;
} |
1,338,653 | ru | C++ | var_decl | beginner | Как объявить переменную x со значением 384483 в C++? | int x = 384483; | ### Instruction:
Как объявить переменную x со значением 384483 в C++?
### Response:
int x = 384483; |
2,541,456 | ru | Unity | var_decl | beginner | Как объявить переменную health со значением 414457 в Unity? | int health = 414457; | ### Instruction:
Как объявить переменную health со значением 414457 в Unity?
### Response:
int health = 414457; |
47,765,027 | 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();
} |
89,788,416 | en | JavaScript | array_ops | intermediate | Write a function that reverses a list in JavaScript. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Write a function that reverses a list in JavaScript.
### Response:
const reverseArr = arr => arr.reverse(); |
73,477,121 | 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;
} |
92,449,000 | 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);
} |
74,486,199 | en | C# | logic_ops | advanced | Write a function that determines if the number 470 is prime in C#. | public bool IsPrime() {
int n = 470;
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 470 is prime in C#.
### Response:
public bool IsPrime() {
int n = 470;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
39,357,542 | 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();
} |
35,304,638 | 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;
} |
41,758,268 | kk | Python | string_ops | advanced | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
16,877 | en | Python | func_def | intermediate | Write a function generate in Python that takes buffer and doubles it. | def generate(buffer):
return buffer * 2 | ### Instruction:
Write a function generate in Python that takes buffer and doubles it.
### Response:
def generate(buffer):
return buffer * 2 |
493,460 | ru | Unity | var_decl | beginner | Как объявить переменную limit со значением 93021 в Unity? | int limit = 93021; | ### Instruction:
Как объявить переменную limit со значением 93021 в Unity?
### Response:
int limit = 93021; |
4,422,081 | en | Unity | var_decl | beginner | How to declare a variable buffer with value 263441 in Unity? | int buffer = 263441; | ### Instruction:
How to declare a variable buffer with value 263441 in Unity?
### Response:
int buffer = 263441; |
44,591,194 | en | Java | logic_ops | advanced | Write logic to check if the year 1981 is a leap year in Java. | public bool IsLeap() {
int y = 1981;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1981 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1981;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
12,853,228 | 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;
} |
3,273,646 | ru | Unity | var_decl | beginner | Как объявить переменную health со значением 245686 в Unity? | int health = 245686; | ### Instruction:
Как объявить переменную health со значением 245686 в Unity?
### Response:
int health = 245686; |
2,183,000 | en | Unity | var_decl | beginner | How to declare a variable total with value 134363 in Unity? | int total = 134363; | ### Instruction:
How to declare a variable total with value 134363 in Unity?
### Response:
int total = 134363; |
3,968,587 | en | Java | var_decl | beginner | How to declare a variable data with value 139199 in Java? | int data = 139199; | ### Instruction:
How to declare a variable data with value 139199 in Java?
### Response:
int data = 139199; |
70,009,006 | kk | C# | logic_ops | advanced | C# тилінде 2041 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2041;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 2041 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2041;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,595,729 | ru | C# | var_decl | beginner | Как объявить переменную limit со значением 309028 в C#? | int limit = 309028; | ### Instruction:
Как объявить переменную limit со значением 309028 в C#?
### Response:
int limit = 309028; |
44,636,113 | 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;
} |
66,851,408 | 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] |
1,620,158 | kk | C# | var_decl | beginner | C# тілінде 28020 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 28020; | ### Instruction:
C# тілінде 28020 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 28020; |
12,675,986 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 2089 високосным. | def is_leap():
year = 2089
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2089 високосным.
### Response:
def is_leap():
year = 2089
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
99,004,792 | kk | Unity | string_ops | intermediate | Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
96,507,912 | 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;
} |
94,558,391 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая разворачивает список задом наперед. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
### Response:
const reverseArr = arr => arr.reverse(); |
71,285,953 | kk | Python | string_ops | intermediate | Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
def is_palindrome(s):
return s == s[::-1] |
27,545,099 | en | Java | logic_ops | advanced | Write a function that determines if the number 325 is prime in Java. | 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:
Write a function that determines if the number 325 is prime in Java.
### 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;
} |
1,388,879 | kk | Python | var_decl | beginner | Python тілінде 812905 мәнімен health айнымалысын қалай жариялауға болады? | health = 812905 | ### Instruction:
Python тілінде 812905 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
health = 812905 |
624,257 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 6428. | int sum_to_n(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
std::cout << sum_to_n(6428) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 6428.
### Response:
int sum_to_n(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
std::cout << sum_to_n(6428) << std::endl; |
4,245,032 | ru | C++ | var_decl | beginner | Как объявить переменную y со значением 480335 в C++? | int y = 480335; | ### Instruction:
Как объявить переменную y со значением 480335 в C++?
### Response:
int y = 480335; |
29,777,019 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 2017 високосным. | public bool IsLeap() {
int y = 2017;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 2017 високосным.
### Response:
public bool IsLeap() {
int y = 2017;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
28,199,409 | en | Java | string_ops | intermediate | 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;
} |
81,130,298 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 1994 високосным. | public bool IsLeap() {
int y = 1994;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 1994 високосным.
### Response:
public bool IsLeap() {
int y = 1994;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
26,672,131 | kk | 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;
} |
66,317,570 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
2,615,862 | en | Unity | var_decl | beginner | How to declare a variable index with value 937054 in Unity? | int index = 937054; | ### Instruction:
How to declare a variable index with value 937054 in Unity?
### Response:
int index = 937054; |
22,859,887 | kk | Python | string_ops | intermediate | Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
def is_palindrome(s):
return s == s[::-1] |
122,930 | kk | Python | factorial | advanced | Python тілінде 2668 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2668)) | ### Instruction:
Python тілінде 2668 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2668)) |
14,364,501 | 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;
} |
51,115,462 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
2,481,293 | kk | C++ | var_decl | beginner | C++ тілінде 218456 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 218456; | ### Instruction:
C++ тілінде 218456 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 218456; |
38,004,608 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript функцию, определяющую, является ли число 165 простым. | function isPrime() {
let n = 165;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 165 простым.
### Response:
function isPrime() {
let n = 165;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
16,240,625 | 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;
} |
20,558,527 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
70,465,784 | en | Python | array_ops | advanced | 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] |
41,895,291 | en | Java | logic_ops | advanced | Write logic to check if the year 2011 is a leap year in Java. | public bool IsLeap() {
int y = 2011;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2011 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2011;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,280,869 | kk | C# | var_decl | beginner | C# тілінде 862579 мәнімен count айнымалысын қалай жариялауға болады? | int count = 862579; | ### Instruction:
C# тілінде 862579 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 862579; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.