id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
450,305 | ru | Python | var_decl | beginner | Как объявить переменную offset со значением 234023 в Python? | offset = 234023 | ### Instruction:
Как объявить переменную offset со значением 234023 в Python?
### Response:
offset = 234023 |
83,346,395 | en | Java | array_ops | intermediate | Write a function that reverses a list in Java. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Java.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
3,718,402 | kk | Unity | var_decl | beginner | Unity тілінде 684508 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 684508; | ### Instruction:
Unity тілінде 684508 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 684508; |
68,500,782 | kk | 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;
} |
3,446,552 | kk | Java | var_decl | beginner | Java тілінде 648208 мәнімен score айнымалысын қалай жариялауға болады? | int score = 648208; | ### Instruction:
Java тілінде 648208 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 648208; |
3,789,548 | ru | Java | var_decl | beginner | Как объявить переменную size со значением 880856 в Java? | int size = 880856; | ### Instruction:
Как объявить переменную size со значением 880856 в Java?
### Response:
int size = 880856; |
4,728,409 | en | Python | var_decl | beginner | How to declare a variable level with value 263194 in Python? | level = 263194 | ### Instruction:
How to declare a variable level with value 263194 in Python?
### Response:
level = 263194 |
4,435,242 | kk | Java | var_decl | beginner | Java тілінде 785947 мәнімен x айнымалысын қалай жариялауға болады? | int x = 785947; | ### Instruction:
Java тілінде 785947 мәнімен x айнымалысын қалай жариялауға болады?
### Response:
int x = 785947; |
161,470 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 629. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(629));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 629.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(629));
} |
97,616,320 | 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(''); |
52,563,519 | 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;
} |
750,658 | en | Python | sum_n | intermediate | Write a function in Python that sums numbers from 1 to 6076. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6076)) | ### Instruction:
Write a function in Python that sums numbers from 1 to 6076.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(6076)) |
4,006,004 | kk | C# | var_decl | beginner | C# тілінде 865525 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 865525; | ### Instruction:
C# тілінде 865525 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 865525; |
82,971,928 | 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();
} |
26,714,785 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 1904 високосным. | def is_leap():
year = 1904
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1904 високосным.
### Response:
def is_leap():
year = 1904
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
2,164,022 | kk | Python | var_decl | beginner | Python тілінде 75741 мәнімен index айнымалысын қалай жариялауға болады? | index = 75741 | ### Instruction:
Python тілінде 75741 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
index = 75741 |
47,627,154 | en | C# | array_ops | advanced | Write a function that filters only even numbers from a list in C#. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in C#.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
912,187 | ru | C++ | var_decl | beginner | Как объявить переменную timer со значением 32871 в C++? | int timer = 32871; | ### Instruction:
Как объявить переменную timer со значением 32871 в C++?
### Response:
int timer = 32871; |
71,799 | en | JavaScript | var_decl | beginner | How to declare a variable amount with value 686498 in JavaScript? | let amount = 686498; | ### Instruction:
How to declare a variable amount with value 686498 in JavaScript?
### Response:
let amount = 686498; |
71,010,184 | en | JavaScript | logic_ops | advanced | Write a function that determines if the number 267 is prime in JavaScript. | function isPrime() {
let n = 267;
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 267 is prime in JavaScript.
### Response:
function isPrime() {
let n = 267;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
898,072 | en | Java | var_decl | beginner | How to declare a variable buffer with value 97537 in Java? | int buffer = 97537; | ### Instruction:
How to declare a variable buffer with value 97537 in Java?
### Response:
int buffer = 97537; |
70,955,629 | 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;
} |
68,417,647 | ru | Unity | logic_ops | advanced | Напишите на Unity функцию, определяющую, является ли число 58 простым. | public bool IsPrime() {
int n = 58;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 58 простым.
### Response:
public bool IsPrime() {
int n = 58;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
939,603 | kk | Java | var_decl | beginner | Java тілінде 982260 мәнімен index айнымалысын қалай жариялауға болады? | int index = 982260; | ### Instruction:
Java тілінде 982260 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 982260; |
252,131 | kk | Python | sum_n | intermediate | Python тілінде 1-ден 9570-ге дейінгі сандардың қосындысын есептейтін функция жаз. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(9570)) | ### Instruction:
Python тілінде 1-ден 9570-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(9570)) |
2,446,050 | en | C++ | var_decl | beginner | How to declare a variable total with value 255366 in C++? | int total = 255366; | ### Instruction:
How to declare a variable total with value 255366 in C++?
### Response:
int total = 255366; |
4,566,869 | kk | Unity | var_decl | beginner | Unity тілінде 902682 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 902682; | ### Instruction:
Unity тілінде 902682 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 902682; |
1,227,472 | ru | Java | var_decl | beginner | Как объявить переменную count со значением 531862 в Java? | int count = 531862; | ### Instruction:
Как объявить переменную count со значением 531862 в Java?
### Response:
int count = 531862; |
4,098,527 | en | C# | var_decl | beginner | How to declare a variable index with value 955427 in C#? | int index = 955427; | ### Instruction:
How to declare a variable index with value 955427 in C#?
### Response:
int index = 955427; |
49,413,577 | kk | Java | string_ops | advanced | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
2,313,397 | ru | C# | var_decl | beginner | Как объявить переменную total со значением 468818 в C#? | int total = 468818; | ### Instruction:
Как объявить переменную total со значением 468818 в C#?
### Response:
int total = 468818; |
95,479,332 | kk | 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;
} |
4,127,299 | ru | Unity | var_decl | beginner | Как объявить переменную data со значением 844337 в Unity? | int data = 844337; | ### Instruction:
Как объявить переменную data со значением 844337 в Unity?
### Response:
int data = 844337; |
71,154,419 | 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();
} |
53,226,374 | en | Java | string_ops | intermediate | Write a function that checks if a string is a palindrome in Java. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in Java.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
64,540,358 | en | C# | array_ops | advanced | Write a function that reverses a list in C#. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in C#.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
59,537,571 | 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;
} |
198,094 | ru | Unity | sum_n | intermediate | Напиши функцию на Unity, которая считает сумму чисел от 1 до 622. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(622));
} | ### Instruction:
Напиши функцию на Unity, которая считает сумму чисел от 1 до 622.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(622));
} |
24,108,033 | 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;
} |
41,286,804 | 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;
} |
2,070,835 | ru | Java | var_decl | beginner | Как объявить переменную speed со значением 109183 в Java? | int speed = 109183; | ### Instruction:
Как объявить переменную speed со значением 109183 в Java?
### Response:
int speed = 109183; |
53,050,740 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 2024 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 2024;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 2024 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 2024;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
34,721,981 | ru | Java | string_ops | advanced | Напишите на Java функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
56,601,297 | en | Python | array_ops | advanced | Write a function that filters only even numbers from a list in Python. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Write a function that filters only even numbers from a list in Python.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
86,656,098 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
34,534,435 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
23,459,560 | kk | Java | array_ops | intermediate | Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Java тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
46,217,772 | en | Java | logic_ops | advanced | Write logic to check if the year 2029 is a leap year in Java. | public bool IsLeap() {
int y = 2029;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2029 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2029;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
31,079,334 | ru | C++ | logic_ops | advanced | Напишите на C++ логику проверки, является ли год 1918 високосным. | public bool IsLeap() {
int y = 1918;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 1918 високосным.
### Response:
public bool IsLeap() {
int y = 1918;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
95,301,311 | en | C++ | logic_ops | intermediate | Write logic to check if the year 1917 is a leap year in C++. | public bool IsLeap() {
int y = 1917;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1917 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 1917;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
83,719,149 | 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();
} |
40,192,004 | 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;
} |
3,997,369 | ru | Java | var_decl | beginner | Как объявить переменную score со значением 190329 в Java? | int score = 190329; | ### Instruction:
Как объявить переменную score со значением 190329 в Java?
### Response:
int score = 190329; |
1,832,194 | ru | Python | var_decl | beginner | Как объявить переменную buffer со значением 929091 в Python? | buffer = 929091 | ### Instruction:
Как объявить переменную buffer со значением 929091 в Python?
### Response:
buffer = 929091 |
20,683,746 | en | JavaScript | logic_ops | advanced | Write logic to check if the year 1977 is a leap year in JavaScript. | function isLeap() {
let y = 1977;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1977 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1977;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
1,179,250 | kk | C++ | sum_n | intermediate | C++ тілінде 1-ден 407-ге дейінгі сандардың қосындысын есептейтін функция жаз. | 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(407) << std::endl; | ### Instruction:
C++ тілінде 1-ден 407-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### 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(407) << std::endl; |
971,572 | kk | C# | factorial | advanced | C# тілінде 183 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(183)); | ### Instruction:
C# тілінде 183 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(183)); |
88,200,146 | kk | Unity | logic_ops | advanced | Unity тилінде 1983 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1983;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1983 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1983;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
112,727 | kk | C# | factorial | advanced | C# тілінде 8513 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(8513)); | ### Instruction:
C# тілінде 8513 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(8513)); |
27,803,098 | en | Java | array_ops | intermediate | Write a function that reverses a list in Java. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Java.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
85,061,274 | 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] |
4,036,929 | ru | Unity | var_decl | beginner | Как объявить переменную value со значением 372759 в Unity? | int value = 372759; | ### Instruction:
Как объявить переменную value со значением 372759 в Unity?
### Response:
int value = 372759; |
42,901,616 | 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;
} |
25,944,047 | kk | 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;
} |
48,710,638 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 1960 високосным. | public bool IsLeap() {
int y = 1960;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 1960 високосным.
### Response:
public bool IsLeap() {
int y = 1960;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
51,123,278 | 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;
} |
2,709,070 | en | Python | var_decl | beginner | How to declare a variable size with value 223428 in Python? | size = 223428 | ### Instruction:
How to declare a variable size with value 223428 in Python?
### Response:
size = 223428 |
2,099,690 | kk | Java | var_decl | beginner | Java тілінде 655853 мәнімен index айнымалысын қалай жариялауға болады? | int index = 655853; | ### Instruction:
Java тілінде 655853 мәнімен index айнымалысын қалай жариялауға болады?
### Response:
int index = 655853; |
66,836,677 | en | C++ | string_ops | intermediate | Write a function that checks if a string is a palindrome in C++. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in C++.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
56,893 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 823. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(823));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 823.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(823));
} |
97,758,529 | en | Java | array_ops | intermediate | 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;
} |
12,550,366 | kk | C++ | logic_ops | intermediate | C++ тилінде 259 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 259;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 259 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 259;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
25,662,743 | en | Java | logic_ops | intermediate | Write logic to check if the year 1928 is a leap year in Java. | public bool IsLeap() {
int y = 1928;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1928 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1928;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
395,254 | kk | Unity | var_decl | beginner | Unity тілінде 411552 мәнімен score айнымалысын қалай жариялауға болады? | int score = 411552; | ### Instruction:
Unity тілінде 411552 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 411552; |
1,358,253 | en | JavaScript | var_decl | beginner | How to declare a variable value with value 889049 in JavaScript? | let value = 889049; | ### Instruction:
How to declare a variable value with value 889049 in JavaScript?
### Response:
let value = 889049; |
91,315,100 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
3,754,384 | ru | C# | var_decl | beginner | Как объявить переменную weight со значением 914833 в C#? | int weight = 914833; | ### Instruction:
Как объявить переменную weight со значением 914833 в C#?
### Response:
int weight = 914833; |
61,603 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 7069. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(7069));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 7069.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(7069));
} |
82,714,641 | kk | C++ | logic_ops | advanced | C++ тилінде 144 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 144;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 144 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 144;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
846,831 | kk | Java | var_decl | beginner | Java тілінде 470490 мәнімен count айнымалысын қалай жариялауға болады? | int count = 470490; | ### Instruction:
Java тілінде 470490 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 470490; |
16,229,598 | 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);
} |
295,197 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 9971. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(9971));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 9971.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(9971));
} |
76,735,144 | en | JavaScript | string_ops | intermediate | Write a function that checks if a string is a palindrome in JavaScript. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Write a function that checks if a string is a palindrome in JavaScript.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
206,623 | en | Python | sum_n | intermediate | Write a function in Python that sums numbers from 1 to 3048. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(3048)) | ### Instruction:
Write a function in Python that sums numbers from 1 to 3048.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(3048)) |
88,412,463 | en | Python | logic_ops | intermediate | Write a function that determines if the number 59 is prime in Python. | def is_prime():
n = 59
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 59 is prime in Python.
### Response:
def is_prime():
n = 59
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
26,168,924 | ru | Java | logic_ops | advanced | Напишите на Java логику проверки, является ли год 2021 високосным. | public bool IsLeap() {
int y = 2021;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 2021 високосным.
### Response:
public bool IsLeap() {
int y = 2021;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,075,197 | ru | Java | var_decl | beginner | Как объявить переменную y со значением 384878 в Java? | int y = 384878; | ### Instruction:
Как объявить переменную y со значением 384878 в Java?
### Response:
int y = 384878; |
3,460,239 | en | Python | var_decl | beginner | How to declare a variable total with value 457837 in Python? | total = 457837 | ### Instruction:
How to declare a variable total with value 457837 in Python?
### Response:
total = 457837 |
4,307,100 | kk | Python | var_decl | beginner | Python тілінде 969905 мәнімен buffer айнымалысын қалай жариялауға болады? | buffer = 969905 | ### Instruction:
Python тілінде 969905 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
buffer = 969905 |
4,181,645 | en | Python | var_decl | beginner | How to declare a variable offset with value 114019 in Python? | offset = 114019 | ### Instruction:
How to declare a variable offset with value 114019 in Python?
### Response:
offset = 114019 |
27,536,723 | 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;
} |
1,631,035 | ru | Python | var_decl | beginner | Как объявить переменную offset со значением 250318 в Python? | offset = 250318 | ### Instruction:
Как объявить переменную offset со значением 250318 в Python?
### Response:
offset = 250318 |
84,573,611 | kk | Python | logic_ops | advanced | Python тилінде 448 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 448
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 448 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 448
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
63,077,432 | en | Unity | array_ops | intermediate | 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;
} |
82,975,990 | ru | C# | logic_ops | advanced | Напишите на C# функцию, определяющую, является ли число 62 простым. | public bool IsPrime() {
int n = 62;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на C# функцию, определяющую, является ли число 62 простым.
### Response:
public bool IsPrime() {
int n = 62;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,937,267 | kk | Java | var_decl | beginner | Java тілінде 208088 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 208088; | ### Instruction:
Java тілінде 208088 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 208088; |
32,071,082 | 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();
} |
3,544,605 | en | JavaScript | var_decl | beginner | How to declare a variable total with value 614872 in JavaScript? | let total = 614872; | ### Instruction:
How to declare a variable total with value 614872 in JavaScript?
### Response:
let total = 614872; |
91,700,250 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 2086 високосным. | function isLeap() {
let y = 2086;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 2086 високосным.
### Response:
function isLeap() {
let y = 2086;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
41,689,684 | en | Java | logic_ops | advanced | Write logic to check if the year 1982 is a leap year in Java. | public bool IsLeap() {
int y = 1982;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1982 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1982;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.