id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
50,852,746
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; }
84,314,651
kk
C#
logic_ops
advanced
C# тилінде 2030 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2030; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C# тилінде 2030 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2030; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
471,907
kk
JavaScript
var_decl
beginner
JavaScript тілінде 172443 мәнімен x айнымалысын қалай жариялауға болады?
let x = 172443;
### Instruction: JavaScript тілінде 172443 мәнімен x айнымалысын қалай жариялауға болады? ### Response: let x = 172443;
91,705,644
en
Python
string_ops
intermediate
Write a function that converts a string to uppercase in Python.
def to_upper(s): return s.upper()
### Instruction: Write a function that converts a string to uppercase in Python. ### Response: def to_upper(s): return s.upper()
3,482,966
kk
C#
var_decl
beginner
C# тілінде 168304 мәнімен level айнымалысын қалай жариялауға болады?
int level = 168304;
### Instruction: C# тілінде 168304 мәнімен level айнымалысын қалай жариялауға болады? ### Response: int level = 168304;
96,303,658
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); }
59,252,733
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
87,321,644
kk
Java
logic_ops
intermediate
Java тилінде 199 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 199; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 199 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 199; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
84,358,253
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
91,222,667
kk
Unity
string_ops
intermediate
Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Unity тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
13,742,257
kk
Unity
logic_ops
advanced
Unity тилінде 2058 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2058; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 2058 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2058; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,923,480
en
JavaScript
var_decl
beginner
How to declare a variable weight with value 497480 in JavaScript?
let weight = 497480;
### Instruction: How to declare a variable weight with value 497480 in JavaScript? ### Response: let weight = 497480;
31,011,018
en
Java
array_ops
advanced
Write a function that finds the maximum number in an array in Java.
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 Java. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
29,084,955
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); }
2,803,330
ru
Unity
var_decl
beginner
Как объявить переменную score со значением 965555 в Unity?
int score = 965555;
### Instruction: Как объявить переменную score со значением 965555 в Unity? ### Response: int score = 965555;
86,948,712
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]
70,872,656
kk
C++
array_ops
intermediate
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; }
70,383,214
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; }
58,612,660
en
JavaScript
logic_ops
intermediate
Write logic to check if the year 2056 is a leap year in JavaScript.
function isLeap() { let y = 2056; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Write logic to check if the year 2056 is a leap year in JavaScript. ### Response: function isLeap() { let y = 2056; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
3,177,831
en
C++
var_decl
beginner
How to declare a variable x with value 590496 in C++?
int x = 590496;
### Instruction: How to declare a variable x with value 590496 in C++? ### Response: int x = 590496;
3,209,269
kk
JavaScript
var_decl
beginner
JavaScript тілінде 413213 мәнімен index айнымалысын қалай жариялауға болады?
let index = 413213;
### Instruction: JavaScript тілінде 413213 мәнімен index айнымалысын қалай жариялауға болады? ### Response: let index = 413213;
63,868
en
Java
sum_n
intermediate
Write a function in Java that sums numbers from 1 to 8656.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(8656));
### Instruction: Write a function in Java that sums numbers from 1 to 8656. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(8656));
794,632
kk
Unity
var_decl
beginner
Unity тілінде 188881 мәнімен y айнымалысын қалай жариялауға болады?
int y = 188881;
### Instruction: Unity тілінде 188881 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 188881;
30,532,221
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; }
39,679,903
kk
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; }
83,728,323
kk
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)
71,223,702
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
87,526,109
ru
C#
array_ops
intermediate
Напишите на C# функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на C# функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
3,347,960
ru
C#
var_decl
beginner
Как объявить переменную level со значением 682189 в C#?
int level = 682189;
### Instruction: Как объявить переменную level со значением 682189 в C#? ### Response: int level = 682189;
78,129,883
en
Unity
logic_ops
advanced
Write a function that determines if the number 231 is prime in Unity.
public bool IsPrime() { int n = 231; 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 231 is prime in Unity. ### Response: public bool IsPrime() { int n = 231; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
13,231,439
ru
C#
array_ops
intermediate
Напишите на C# функцию, которая разворачивает список задом наперед.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Напишите на C# функцию, которая разворачивает список задом наперед. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
32,999,428
en
Java
array_ops
intermediate
Write a function that finds the maximum number in an array in Java.
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 Java. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
12,317,904
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(); }
95,558,485
en
Python
logic_ops
advanced
Write logic to check if the year 2048 is a leap year in Python.
def is_leap(): year = 2048 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
### Instruction: Write logic to check if the year 2048 is a leap year in Python. ### Response: def is_leap(): year = 2048 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
1,226,232
en
C++
sum_n
intermediate
Write a function in C++ that sums numbers from 1 to 2709.
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(2709) << std::endl;
### Instruction: Write a function in C++ that sums numbers from 1 to 2709. ### 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(2709) << std::endl;
2,665,702
kk
Python
var_decl
beginner
Python тілінде 626383 мәнімен data айнымалысын қалай жариялауға болады?
data = 626383
### Instruction: Python тілінде 626383 мәнімен data айнымалысын қалай жариялауға болады? ### Response: data = 626383
1,987,121
kk
Python
var_decl
beginner
Python тілінде 400694 мәнімен result айнымалысын қалай жариялауға болады?
result = 400694
### Instruction: Python тілінде 400694 мәнімен result айнымалысын қалай жариялауға болады? ### Response: result = 400694
409,546
en
JavaScript
sum_n
intermediate
Write a function in JavaScript that sums numbers from 1 to 8096.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(8096));
### Instruction: Write a function in JavaScript that sums numbers from 1 to 8096. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(8096));
82,809,716
ru
C#
string_ops
intermediate
Напишите на C# функцию, которая проверяет, является ли строка палиндромом.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Напишите на C# функцию, которая проверяет, является ли строка палиндромом. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
42,276,058
kk
Python
array_ops
advanced
Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
def filter_even(arr): return [x for x in arr if x % 2 == 0]
### Instruction: Python тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: def filter_even(arr): return [x for x in arr if x % 2 == 0]
34,751,720
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; }
95,677,044
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(); }
17,987,104
kk
Java
logic_ops
intermediate
Java тилінде 116 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 116; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 116 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 116; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
13,991,462
kk
Java
logic_ops
intermediate
Java тилінде 1911 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1911; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1911 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1911; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
67,516,540
ru
Python
string_ops
advanced
Напишите на 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аеёиоуыэюя')
3,800,882
en
Java
var_decl
beginner
How to declare a variable amount with value 316555 in Java?
int amount = 316555;
### Instruction: How to declare a variable amount with value 316555 in Java? ### Response: int amount = 316555;
21,745,625
kk
Java
array_ops
intermediate
Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Java тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
1,100,499
ru
Python
sum_n
intermediate
Напиши функцию на Python, которая считает сумму чисел от 1 до 1761.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1761))
### Instruction: Напиши функцию на Python, которая считает сумму чисел от 1 до 1761. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(1761))
1,471,124
en
C#
var_decl
beginner
How to declare a variable timer with value 859794 in C#?
int timer = 859794;
### Instruction: How to declare a variable timer with value 859794 in C#? ### Response: int timer = 859794;
3,968,995
en
Python
var_decl
beginner
How to declare a variable score with value 474507 in Python?
score = 474507
### Instruction: How to declare a variable score with value 474507 in Python? ### Response: score = 474507
3,450,956
kk
Java
var_decl
beginner
Java тілінде 805011 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 805011;
### Instruction: Java тілінде 805011 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 805011;
4,178,556
ru
Java
var_decl
beginner
Как объявить переменную score со значением 46640 в Java?
int score = 46640;
### Instruction: Как объявить переменную score со значением 46640 в Java? ### Response: int score = 46640;
1,435,576
kk
Unity
var_decl
beginner
Unity тілінде 746809 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 746809;
### Instruction: Unity тілінде 746809 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 746809;
1,391,637
kk
Python
var_decl
beginner
Python тілінде 634413 мәнімен result айнымалысын қалай жариялауға болады?
result = 634413
### Instruction: Python тілінде 634413 мәнімен result айнымалысын қалай жариялауға болады? ### Response: result = 634413
1,006,089
kk
Python
var_decl
beginner
Python тілінде 53683 мәнімен health айнымалысын қалай жариялауға болады?
health = 53683
### Instruction: Python тілінде 53683 мәнімен health айнымалысын қалай жариялауға болады? ### Response: health = 53683
1,819,733
ru
Python
var_decl
beginner
Как объявить переменную data со значением 367183 в Python?
data = 367183
### Instruction: Как объявить переменную data со значением 367183 в Python? ### Response: data = 367183
17,080,315
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('');
97,305,650
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; }
3,710,165
kk
Java
var_decl
beginner
Java тілінде 366728 мәнімен score айнымалысын қалай жариялауға болады?
int score = 366728;
### Instruction: Java тілінде 366728 мәнімен score айнымалысын қалай жариялауға болады? ### Response: int score = 366728;
62,821,361
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 1949 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 1949; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 1949 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 1949; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
1,903,585
kk
Python
var_decl
beginner
Python тілінде 980967 мәнімен y айнымалысын қалай жариялауға болады?
y = 980967
### Instruction: Python тілінде 980967 мәнімен y айнымалысын қалай жариялауға болады? ### Response: y = 980967
2,539,165
en
Java
var_decl
beginner
How to declare a variable data with value 936248 in Java?
int data = 936248;
### Instruction: How to declare a variable data with value 936248 in Java? ### Response: int data = 936248;
252,971
ru
C++
sum_n
intermediate
Напиши функцию на C++, которая считает сумму чисел от 1 до 3218.
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(3218) << std::endl;
### Instruction: Напиши функцию на C++, которая считает сумму чисел от 1 до 3218. ### 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(3218) << std::endl;
61,132,541
kk
C#
string_ops
intermediate
C# тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: C# тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
1,395,142
ru
C#
var_decl
beginner
Как объявить переменную size со значением 854517 в C#?
int size = 854517;
### Instruction: Как объявить переменную size со значением 854517 в C#? ### Response: int size = 854517;
96,919,294
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript функцию, определяющую, является ли число 86 простым.
function isPrime() { let n = 86; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Напишите на JavaScript функцию, определяющую, является ли число 86 простым. ### Response: function isPrime() { let n = 86; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
11,952,473
kk
Unity
logic_ops
advanced
Unity тилінде 1927 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1927; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1927 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1927; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
59,458,794
ru
Java
string_ops
intermediate
Напишите на Java функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на Java функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
2,935,349
en
Python
var_decl
beginner
How to declare a variable x with value 941297 in Python?
x = 941297
### Instruction: How to declare a variable x with value 941297 in Python? ### Response: x = 941297
33,875,139
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); }
45,484,218
en
Python
array_ops
advanced
Write a function that finds the maximum number in an array in Python.
def get_max(arr): return max(arr)
### Instruction: Write a function that finds the maximum number in an array in Python. ### Response: def get_max(arr): return max(arr)
2,837,793
kk
JavaScript
var_decl
beginner
JavaScript тілінде 937321 мәнімен size айнымалысын қалай жариялауға болады?
let size = 937321;
### Instruction: JavaScript тілінде 937321 мәнімен size айнымалысын қалай жариялауға болады? ### Response: let size = 937321;
25,067,664
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(); }
2,370,364
kk
C#
var_decl
beginner
C# тілінде 539648 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 539648;
### Instruction: C# тілінде 539648 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 539648;
21,539,952
en
Unity
logic_ops
advanced
Write logic to check if the year 1984 is a leap year in Unity.
public bool IsLeap() { int y = 1984; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1984 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 1984; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,141,094
ru
Python
var_decl
beginner
Как объявить переменную score со значением 344063 в Python?
score = 344063
### Instruction: Как объявить переменную score со значением 344063 в Python? ### Response: score = 344063
94,231,592
ru
C++
logic_ops
intermediate
Напишите на C++ логику проверки, является ли год 2073 високосным.
public bool IsLeap() { int y = 2073; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 2073 високосным. ### Response: public bool IsLeap() { int y = 2073; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,978,983
ru
Java
var_decl
beginner
Как объявить переменную speed со значением 559916 в Java?
int speed = 559916;
### Instruction: Как объявить переменную speed со значением 559916 в Java? ### Response: int speed = 559916;
1,117,035
ru
C++
var_decl
beginner
Как объявить переменную result со значением 328100 в C++?
int result = 328100;
### Instruction: Как объявить переменную result со значением 328100 в C++? ### Response: int result = 328100;
90,038,577
ru
JavaScript
array_ops
intermediate
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
92,510,814
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 1963 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 1963; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 1963 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 1963; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
21,211,541
en
Unity
string_ops
intermediate
Write a function that converts a string to uppercase in Unity.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: Write a function that converts a string to uppercase in Unity. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
57,034,854
en
Unity
logic_ops
intermediate
Write logic to check if the year 2053 is a leap year in Unity.
public bool IsLeap() { int y = 2053; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 2053 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 2053; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
721,587
en
JavaScript
sum_n
intermediate
Write a function in JavaScript that sums numbers from 1 to 3114.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(3114));
### Instruction: Write a function in JavaScript that sums numbers from 1 to 3114. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(3114));
90,943,216
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]
1,007,161
kk
JavaScript
var_decl
beginner
JavaScript тілінде 129166 мәнімен data айнымалысын қалай жариялауға болады?
let data = 129166;
### Instruction: JavaScript тілінде 129166 мәнімен data айнымалысын қалай жариялауға болады? ### Response: let data = 129166;
44,124,706
en
Java
logic_ops
intermediate
Write a function that determines if the number 357 is prime in Java.
public bool IsPrime() { int n = 357; 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 357 is prime in Java. ### Response: public bool IsPrime() { int n = 357; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,270,763
kk
Unity
var_decl
beginner
Unity тілінде 604729 мәнімен offset айнымалысын қалай жариялауға болады?
int offset = 604729;
### Instruction: Unity тілінде 604729 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: int offset = 604729;
1,902,999
en
Java
var_decl
beginner
How to declare a variable health with value 679764 in Java?
int health = 679764;
### Instruction: How to declare a variable health with value 679764 in Java? ### Response: int health = 679764;
27,176,586
ru
JavaScript
string_ops
intermediate
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
3,042,162
en
Java
var_decl
beginner
How to declare a variable buffer with value 105174 in Java?
int buffer = 105174;
### Instruction: How to declare a variable buffer with value 105174 in Java? ### Response: int buffer = 105174;
72,124,638
ru
Unity
string_ops
intermediate
Напишите на Unity функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на Unity функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
95,645,323
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; }
29,972,226
en
Unity
string_ops
advanced
Write a function that checks if a string is a palindrome in Unity.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in Unity. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
60,877,894
en
Python
array_ops
intermediate
Write a function that finds the maximum number in an array in Python.
def get_max(arr): return max(arr)
### Instruction: Write a function that finds the maximum number in an array in Python. ### Response: def get_max(arr): return max(arr)
91,208,833
en
Unity
string_ops
advanced
Write a function that checks if a string is a palindrome in Unity.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in Unity. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
21,925,746
kk
C++
logic_ops
advanced
C++ тилінде 421 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 421; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: C++ тилінде 421 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 421; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
29,417,435
ru
Unity
array_ops
advanced
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Unity функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
84,307,279
ru
Python
string_ops
advanced
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
def is_palindrome(s): return s == s[::-1]
### Instruction: Напишите на Python функцию, которая проверяет, является ли строка палиндромом. ### Response: def is_palindrome(s): return s == s[::-1]
218,242
en
C#
factorial
advanced
Write a function in C# that calculates the factorial of 5368.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(5368));
### Instruction: Write a function in C# that calculates the factorial of 5368. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(5368));