id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
28,914,611 | en | C++ | logic_ops | intermediate | Write logic to check if the year 2090 is a leap year in C++. | public bool IsLeap() {
int y = 2090;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2090 is a leap year in C++.
### Response:
public bool IsLeap() {
int y = 2090;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,457,149 | en | C# | var_decl | beginner | How to declare a variable limit with value 833572 in C#? | int limit = 833572; | ### Instruction:
How to declare a variable limit with value 833572 in C#?
### Response:
int limit = 833572; |
126,358 | ru | JavaScript | sum_n | intermediate | Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 7779. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(7779)); | ### Instruction:
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 7779.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(7779)); |
1,598,213 | en | Python | var_decl | beginner | How to declare a variable count with value 79356 in Python? | count = 79356 | ### Instruction:
How to declare a variable count with value 79356 in Python?
### Response:
count = 79356 |
13,457,765 | kk | Unity | logic_ops | advanced | Unity тилінде 1946 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1946;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1946 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1946;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
56,365,840 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 430 is prime in JavaScript. | function isPrime() {
let n = 430;
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 430 is prime in JavaScript.
### Response:
function isPrime() {
let n = 430;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
3,144,899 | en | Python | var_decl | beginner | How to declare a variable y with value 181079 in Python? | y = 181079 | ### Instruction:
How to declare a variable y with value 181079 in Python?
### Response:
y = 181079 |
16,397,526 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 466 is prime in JavaScript. | function isPrime() {
let n = 466;
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 466 is prime in JavaScript.
### Response:
function isPrime() {
let n = 466;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
2,434,829 | kk | C++ | var_decl | beginner | C++ тілінде 682108 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 682108; | ### Instruction:
C++ тілінде 682108 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 682108; |
20,993,698 | 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;
} |
72,314,606 | ru | 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;
} |
28,843,097 | 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;
} |
3,080,839 | kk | Java | var_decl | beginner | Java тілінде 655182 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 655182; | ### Instruction:
Java тілінде 655182 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 655182; |
4,881,855 | kk | Java | var_decl | beginner | Java тілінде 731337 мәнімен score айнымалысын қалай жариялауға болады? | int score = 731337; | ### Instruction:
Java тілінде 731337 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 731337; |
198,258 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 8922-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(8922));
} | ### Instruction:
Unity тілінде 1-ден 8922-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(8922));
} |
61,901,204 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
3,415,352 | en | C++ | var_decl | beginner | How to declare a variable result with value 222935 in C++? | int result = 222935; | ### Instruction:
How to declare a variable result with value 222935 in C++?
### Response:
int result = 222935; |
10,597,754 | 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] |
3,503,592 | ru | JavaScript | var_decl | beginner | Как объявить переменную rate со значением 477560 в JavaScript? | let rate = 477560; | ### Instruction:
Как объявить переменную rate со значением 477560 в JavaScript?
### Response:
let rate = 477560; |
71,536,321 | ru | Java | array_ops | intermediate | Напишите на Java функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на Java функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
76,910,623 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая фильтрует только четные числа из списка. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Напишите на Python функцию, которая фильтрует только четные числа из списка.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
501,211 | en | Python | var_decl | beginner | How to declare a variable total with value 82042 in Python? | total = 82042 | ### Instruction:
How to declare a variable total with value 82042 in Python?
### Response:
total = 82042 |
72,918,752 | kk | Python | string_ops | intermediate | Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
66,323,227 | 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;
} |
873,096 | kk | Python | var_decl | beginner | Python тілінде 81236 мәнімен y айнымалысын қалай жариялауға болады? | y = 81236 | ### Instruction:
Python тілінде 81236 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
y = 81236 |
53,083,305 | 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;
} |
2,606,171 | en | C# | var_decl | beginner | How to declare a variable offset with value 76014 in C#? | int offset = 76014; | ### Instruction:
How to declare a variable offset with value 76014 in C#?
### Response:
int offset = 76014; |
2,068,007 | en | Java | var_decl | beginner | How to declare a variable rate with value 490227 in Java? | int rate = 490227; | ### Instruction:
How to declare a variable rate with value 490227 in Java?
### Response:
int rate = 490227; |
80,671,807 | 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] |
56,244,779 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая фильтрует только четные числа из списка. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Напишите на Python функцию, которая фильтрует только четные числа из списка.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
2,307,492 | ru | Java | var_decl | beginner | Как объявить переменную score со значением 368869 в Java? | int score = 368869; | ### Instruction:
Как объявить переменную score со значением 368869 в Java?
### Response:
int score = 368869; |
3,738,134 | kk | Python | var_decl | beginner | Python тілінде 362157 мәнімен rate айнымалысын қалай жариялауға болады? | rate = 362157 | ### Instruction:
Python тілінде 362157 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
rate = 362157 |
1,249,291 | kk | Unity | var_decl | beginner | Unity тілінде 948257 мәнімен value айнымалысын қалай жариялауға болады? | int value = 948257; | ### Instruction:
Unity тілінде 948257 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 948257; |
1,418,220 | ru | Unity | var_decl | beginner | Как объявить переменную y со значением 27193 в Unity? | int y = 27193; | ### Instruction:
Как объявить переменную y со значением 27193 в Unity?
### Response:
int y = 27193; |
24,495,422 | kk | Python | string_ops | intermediate | Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
370,503 | kk | Java | sum_n | intermediate | Java тілінде 1-ден 5944-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(5944)); | ### Instruction:
Java тілінде 1-ден 5944-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(5944)); |
76,020,504 | 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;
} |
55,207,652 | ru | C++ | string_ops | advanced | Напишите на C++ функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на C++ функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
11,665,376 | kk | C++ | logic_ops | advanced | C++ тилінде 1936 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1936;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1936 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1936;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
80,133,546 | en | Python | logic_ops | advanced | Write a function that determines if the number 219 is prime in Python. | def is_prime():
n = 219
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 219 is prime in Python.
### Response:
def is_prime():
n = 219
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
386,108 | ru | Unity | sum_n | intermediate | Напиши функцию на Unity, которая считает сумму чисел от 1 до 8994. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(8994));
} | ### Instruction:
Напиши функцию на Unity, которая считает сумму чисел от 1 до 8994.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(8994));
} |
46,821,350 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 1975 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 1975;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 1975 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 1975;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
4,679,727 | kk | Unity | var_decl | beginner | Unity тілінде 233547 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 233547; | ### Instruction:
Unity тілінде 233547 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 233547; |
3,790,523 | ru | Python | var_decl | beginner | Как объявить переменную buffer со значением 321920 в Python? | buffer = 321920 | ### Instruction:
Как объявить переменную buffer со значением 321920 в Python?
### Response:
buffer = 321920 |
145,077 | ru | JavaScript | var_decl | beginner | Как объявить переменную score со значением 517798 в JavaScript? | let score = 517798; | ### Instruction:
Как объявить переменную score со значением 517798 в JavaScript?
### Response:
let score = 517798; |
54,953,084 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
1,764,889 | en | Java | var_decl | beginner | How to declare a variable buffer with value 127233 in Java? | int buffer = 127233; | ### Instruction:
How to declare a variable buffer with value 127233 in Java?
### Response:
int buffer = 127233; |
22,099,995 | 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] |
114,733 | kk | C# | factorial | advanced | C# тілінде 8200 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(8200)); | ### Instruction:
C# тілінде 8200 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(8200)); |
13,823,495 | ru | C++ | logic_ops | advanced | Напишите на C++ логику проверки, является ли год 1943 високосным. | public bool IsLeap() {
int y = 1943;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 1943 високосным.
### Response:
public bool IsLeap() {
int y = 1943;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,879,028 | ru | C# | var_decl | beginner | Как объявить переменную score со значением 810108 в C#? | int score = 810108; | ### Instruction:
Как объявить переменную score со значением 810108 в C#?
### Response:
int score = 810108; |
312,157 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 8451. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(8451)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 8451.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(8451)); |
425,527 | en | JavaScript | var_decl | beginner | How to declare a variable score with value 881400 in JavaScript? | let score = 881400; | ### Instruction:
How to declare a variable score with value 881400 in JavaScript?
### Response:
let score = 881400; |
3,321,644 | ru | Java | var_decl | beginner | Как объявить переменную x со значением 139984 в Java? | int x = 139984; | ### Instruction:
Как объявить переменную x со значением 139984 в Java?
### Response:
int x = 139984; |
4,861,500 | en | Python | var_decl | beginner | How to declare a variable score with value 324207 in Python? | score = 324207 | ### Instruction:
How to declare a variable score with value 324207 in Python?
### Response:
score = 324207 |
4,767,288 | en | Unity | var_decl | beginner | How to declare a variable buffer with value 862231 in Unity? | int buffer = 862231; | ### Instruction:
How to declare a variable buffer with value 862231 in Unity?
### Response:
int buffer = 862231; |
19,430,439 | kk | Unity | logic_ops | advanced | Unity тилінде 2100 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2100;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2100 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2100;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
78,555,275 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript функцию, определяющую, является ли число 375 простым. | function isPrime() {
let n = 375;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 375 простым.
### Response:
function isPrime() {
let n = 375;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
74,529,011 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 35 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 35;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 35 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 35;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
21,475,903 | 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] |
71,796,939 | kk | Python | array_ops | intermediate | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
4,436,436 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 956995 мәнімен data айнымалысын қалай жариялауға болады? | let data = 956995; | ### Instruction:
JavaScript тілінде 956995 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
let data = 956995; |
65,955,397 | ru | Java | array_ops | advanced | Напишите на Java функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Java функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
15,341,782 | 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] |
3,679,048 | ru | Python | var_decl | beginner | Как объявить переменную result со значением 43178 в Python? | result = 43178 | ### Instruction:
Как объявить переменную result со значением 43178 в Python?
### Response:
result = 43178 |
10,247,596 | en | Unity | string_ops | advanced | 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();
} |
84,734,082 | en | C++ | logic_ops | advanced | Write a function that determines if the number 61 is prime in C++. | public bool IsPrime() {
int n = 61;
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 61 is prime in C++.
### Response:
public bool IsPrime() {
int n = 61;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
53,021 | kk | Python | factorial | advanced | Python тілінде 9777 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(9777)) | ### Instruction:
Python тілінде 9777 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(9777)) |
3,662,726 | ru | Python | var_decl | beginner | Как объявить переменную y со значением 250615 в Python? | y = 250615 | ### Instruction:
Как объявить переменную y со значением 250615 в Python?
### Response:
y = 250615 |
11,966,353 | en | Python | logic_ops | advanced | Write logic to check if the year 1997 is a leap year in Python. | def is_leap():
year = 1997
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Write logic to check if the year 1997 is a leap year in Python.
### Response:
def is_leap():
year = 1997
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
52,242,801 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая считает количество гласных букв в тексте. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Напишите на Python функцию, которая считает количество гласных букв в тексте.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
27,743,177 | en | Unity | array_ops | intermediate | 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);
} |
50,191,638 | en | Python | string_ops | intermediate | 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] |
3,320,893 | en | Python | var_decl | beginner | How to declare a variable score with value 111178 in Python? | score = 111178 | ### Instruction:
How to declare a variable score with value 111178 in Python?
### Response:
score = 111178 |
2,550,197 | en | C# | var_decl | beginner | How to declare a variable index with value 205217 in C#? | int index = 205217; | ### Instruction:
How to declare a variable index with value 205217 in C#?
### Response:
int index = 205217; |
49,304,957 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 2004 високосным. | function isLeap() {
let y = 2004;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 2004 високосным.
### Response:
function isLeap() {
let y = 2004;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
56,871,945 | kk | C++ | logic_ops | intermediate | C++ тилінде 2013 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2013;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2013 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2013;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,777,487 | kk | Java | var_decl | beginner | Java тілінде 798247 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 798247; | ### Instruction:
Java тілінде 798247 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 798247; |
1,351,713 | ru | JavaScript | var_decl | beginner | Как объявить переменную size со значением 23408 в JavaScript? | let size = 23408; | ### Instruction:
Как объявить переменную size со значением 23408 в JavaScript?
### Response:
let size = 23408; |
4,061,740 | ru | Unity | var_decl | beginner | Как объявить переменную amount со значением 51255 в Unity? | int amount = 51255; | ### Instruction:
Как объявить переменную amount со значением 51255 в Unity?
### Response:
int amount = 51255; |
3,702,667 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 510148 мәнімен timer айнымалысын қалай жариялауға болады? | let timer = 510148; | ### Instruction:
JavaScript тілінде 510148 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
let timer = 510148; |
57,253,369 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 229 простым. | public bool IsPrime() {
int n = 229;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 229 простым.
### Response:
public bool IsPrime() {
int n = 229;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,882,584 | en | C++ | var_decl | beginner | How to declare a variable count with value 208403 in C++? | int count = 208403; | ### Instruction:
How to declare a variable count with value 208403 in C++?
### Response:
int count = 208403; |
41,042,818 | en | C# | logic_ops | advanced | Write logic to check if the year 1931 is a leap year in C#. | public bool IsLeap() {
int y = 1931;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1931 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 1931;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
74,253,513 | kk | Python | array_ops | intermediate | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
2,637,774 | en | Unity | var_decl | beginner | How to declare a variable total with value 170910 in Unity? | int total = 170910; | ### Instruction:
How to declare a variable total with value 170910 in Unity?
### Response:
int total = 170910; |
43,190,522 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 47 is prime in C++. | public bool IsPrime() {
int n = 47;
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 47 is prime in C++.
### Response:
public bool IsPrime() {
int n = 47;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,698,341 | ru | JavaScript | var_decl | beginner | Как объявить переменную offset со значением 712904 в JavaScript? | let offset = 712904; | ### Instruction:
Как объявить переменную offset со значением 712904 в JavaScript?
### Response:
let offset = 712904; |
87,338,190 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 2052 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | function isLeap() {
let y = 2052;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
JavaScript тилінде 2052 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
function isLeap() {
let y = 2052;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
4,941,803 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 523152 мәнімен data айнымалысын қалай жариялауға болады? | let data = 523152; | ### Instruction:
JavaScript тілінде 523152 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
let data = 523152; |
3,805,280 | kk | Python | var_decl | beginner | Python тілінде 739635 мәнімен result айнымалысын қалай жариялауға болады? | result = 739635 | ### Instruction:
Python тілінде 739635 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
result = 739635 |
53,181 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 2905. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2905)) | ### Instruction:
Write a function in Python that calculates the factorial of 2905.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2905)) |
4,245,791 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 88150 мәнімен weight айнымалысын қалай жариялауға болады? | let weight = 88150; | ### Instruction:
JavaScript тілінде 88150 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
let weight = 88150; |
1,307,506 | kk | C++ | var_decl | beginner | C++ тілінде 725847 мәнімен size айнымалысын қалай жариялауға болады? | int size = 725847; | ### Instruction:
C++ тілінде 725847 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 725847; |
1,011,582 | en | Java | var_decl | beginner | How to declare a variable limit with value 113882 in Java? | int limit = 113882; | ### Instruction:
How to declare a variable limit with value 113882 in Java?
### Response:
int limit = 113882; |
74,991,508 | 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;
} |
2,682,122 | en | JavaScript | var_decl | beginner | How to declare a variable buffer with value 270472 in JavaScript? | let buffer = 270472; | ### Instruction:
How to declare a variable buffer with value 270472 in JavaScript?
### Response:
let buffer = 270472; |
195,190 | en | Python | factorial | advanced | Write a function in Python that calculates the factorial of 2321. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2321)) | ### Instruction:
Write a function in Python that calculates the factorial of 2321.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(2321)) |
361,024 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 4460. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(4460)); | ### Instruction:
Write a function in Java that calculates the factorial of 4460.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(4460)); |
3,433,621 | ru | Unity | var_decl | beginner | Как объявить переменную result со значением 448171 в Unity? | int result = 448171; | ### Instruction:
Как объявить переменную result со значением 448171 в Unity?
### Response:
int result = 448171; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.