id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
71,228,149 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
49,907,641 | en | Unity | logic_ops | advanced | Write logic to check if the year 1920 is a leap year in Unity. | public bool IsLeap() {
int y = 1920;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1920 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1920;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
4,785,916 | kk | C# | var_decl | beginner | C# тілінде 393488 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 393488; | ### Instruction:
C# тілінде 393488 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 393488; |
1,068,099 | en | C++ | sum_n | intermediate | Write a function in C++ that sums numbers from 1 to 2428. | 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(2428) << std::endl; | ### Instruction:
Write a function in C++ that sums numbers from 1 to 2428.
### 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(2428) << std::endl; |
76,680,978 | 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;
} |
66,894,321 | kk | Java | string_ops | advanced | Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Java тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
591,136 | kk | C# | var_decl | beginner | C# тілінде 493805 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 493805; | ### Instruction:
C# тілінде 493805 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 493805; |
4,521,191 | en | JavaScript | var_decl | beginner | How to declare a variable offset with value 170964 in JavaScript? | let offset = 170964; | ### Instruction:
How to declare a variable offset with value 170964 in JavaScript?
### Response:
let offset = 170964; |
2,530,218 | ru | C# | var_decl | beginner | Как объявить переменную score со значением 918716 в C#? | int score = 918716; | ### Instruction:
Как объявить переменную score со значением 918716 в C#?
### Response:
int score = 918716; |
69,863,779 | 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();
} |
313,111 | en | C# | factorial | advanced | Write a function in C# that calculates the factorial of 7240. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(7240)); | ### Instruction:
Write a function in C# that calculates the factorial of 7240.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(7240)); |
3,711,349 | en | Unity | var_decl | beginner | How to declare a variable limit with value 749400 in Unity? | int limit = 749400; | ### Instruction:
How to declare a variable limit with value 749400 in Unity?
### Response:
int limit = 749400; |
87,088,602 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
62,557,596 | en | Python | logic_ops | intermediate | Write a function that determines if the number 484 is prime in Python. | def is_prime():
n = 484
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 484 is prime in Python.
### Response:
def is_prime():
n = 484
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
16,659,134 | ru | 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;
} |
63,120,279 | 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;
} |
35,822,989 | 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;
} |
56,061,765 | en | Java | logic_ops | advanced | Write logic to check if the year 2051 is a leap year in Java. | public bool IsLeap() {
int y = 2051;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2051 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2051;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
74,007,319 | kk | C++ | logic_ops | intermediate | C++ тилінде 350 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 350;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 350 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 350;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
92,891,902 | ru | 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);
} |
3,188,422 | ru | Java | var_decl | beginner | Как объявить переменную speed со значением 169260 в Java? | int speed = 169260; | ### Instruction:
Как объявить переменную speed со значением 169260 в Java?
### Response:
int speed = 169260; |
18,604 | en | Python | func_def | intermediate | Write a function normalize in Python that takes weight and doubles it. | def normalize(weight):
return weight * 2 | ### Instruction:
Write a function normalize in Python that takes weight and doubles it.
### Response:
def normalize(weight):
return weight * 2 |
25,283,798 | 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;
} |
42,613,551 | 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) |
75,721,181 | ru | Unity | string_ops | advanced | Напишите на 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,550,480 | kk | C++ | var_decl | beginner | C++ тілінде 533904 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 533904; | ### Instruction:
C++ тілінде 533904 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 533904; |
4,360,145 | ru | C++ | var_decl | beginner | Как объявить переменную result со значением 21468 в C++? | int result = 21468; | ### Instruction:
Как объявить переменную result со значением 21468 в C++?
### Response:
int result = 21468; |
71,227,288 | 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;
} |
2,216,376 | ru | Unity | var_decl | beginner | Как объявить переменную value со значением 726505 в Unity? | int value = 726505; | ### Instruction:
Как объявить переменную value со значением 726505 в Unity?
### Response:
int value = 726505; |
36,941,286 | 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;
} |
67,869,809 | en | Java | array_ops | advanced | 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);
} |
51,106,400 | en | C++ | string_ops | advanced | 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;
} |
35,052,584 | kk | Unity | array_ops | intermediate | Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
53,203,876 | en | Python | logic_ops | intermediate | Write a function that determines if the number 159 is prime in Python. | def is_prime():
n = 159
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 159 is prime in Python.
### Response:
def is_prime():
n = 159
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
87,577,733 | ru | C# | logic_ops | advanced | Напишите на C# логику проверки, является ли год 2011 високосным. | public bool IsLeap() {
int y = 2011;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 2011 високосным.
### Response:
public bool IsLeap() {
int y = 2011;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,850,113 | kk | Java | var_decl | beginner | Java тілінде 743881 мәнімен value айнымалысын қалай жариялауға болады? | int value = 743881; | ### Instruction:
Java тілінде 743881 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 743881; |
35,712,589 | en | Unity | logic_ops | intermediate | Write a function that determines if the number 322 is prime in Unity. | public bool IsPrime() {
int n = 322;
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 322 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 322;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
382,666 | ru | C# | var_decl | beginner | Как объявить переменную size со значением 184590 в C#? | int size = 184590; | ### Instruction:
Как объявить переменную size со значением 184590 в C#?
### Response:
int size = 184590; |
51,964,276 | kk | Python | logic_ops | intermediate | Python тилінде 1971 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 1971
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 1971 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 1971
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
24,152,258 | 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;
} |
46,293,127 | en | JavaScript | array_ops | intermediate | Write a function that finds the maximum number in an array in JavaScript. | const getMax = arr => Math.max(...arr); | ### Instruction:
Write a function that finds the maximum number in an array in JavaScript.
### Response:
const getMax = arr => Math.max(...arr); |
1,021,356 | ru | Java | var_decl | beginner | Как объявить переменную score со значением 923297 в Java? | int score = 923297; | ### Instruction:
Как объявить переменную score со значением 923297 в Java?
### Response:
int score = 923297; |
2,697,351 | en | JavaScript | var_decl | beginner | How to declare a variable level with value 828133 in JavaScript? | let level = 828133; | ### Instruction:
How to declare a variable level with value 828133 in JavaScript?
### Response:
let level = 828133; |
3,953,661 | en | Python | var_decl | beginner | How to declare a variable value with value 248760 in Python? | value = 248760 | ### Instruction:
How to declare a variable value with value 248760 in Python?
### Response:
value = 248760 |
1,659,747 | ru | Python | var_decl | beginner | Как объявить переменную amount со значением 645925 в Python? | amount = 645925 | ### Instruction:
Как объявить переменную amount со значением 645925 в Python?
### Response:
amount = 645925 |
1,543,333 | ru | C++ | var_decl | beginner | Как объявить переменную limit со значением 949632 в C++? | int limit = 949632; | ### Instruction:
Как объявить переменную limit со значением 949632 в C++?
### Response:
int limit = 949632; |
2,726 | ru | C++ | func_def | intermediate | Напиши функцию update в C++, которая принимает rate и удваивает его. | int update(int rate) {
return rate * 2;
} | ### Instruction:
Напиши функцию update в C++, которая принимает rate и удваивает его.
### Response:
int update(int rate) {
return rate * 2;
} |
46,359,328 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая переводит строку в верхний регистр. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
### Response:
const toUpper = s => s.toUpperCase(); |
570,032 | kk | C# | sum_n | intermediate | C# тілінде 1-ден 4223-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(4223)); | ### Instruction:
C# тілінде 1-ден 4223-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(4223)); |
47,530,635 | 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;
} |
51,407,138 | 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();
} |
84,215,208 | en | C++ | array_ops | intermediate | Write a function that filters only even numbers from a list in C++. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in C++.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
778,975 | ru | Python | var_decl | beginner | Как объявить переменную score со значением 206799 в Python? | score = 206799 | ### Instruction:
Как объявить переменную score со значением 206799 в Python?
### Response:
score = 206799 |
47,999,684 | kk | C# | logic_ops | intermediate | C# тилінде 1986 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1986;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1986 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1986;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
70,614,585 | 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,569,066 | en | C++ | var_decl | beginner | How to declare a variable score with value 396552 in C++? | int score = 396552; | ### Instruction:
How to declare a variable score with value 396552 in C++?
### Response:
int score = 396552; |
37,451,339 | kk | C++ | logic_ops | advanced | C++ тилінде 2062 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2062;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2062 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2062;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
66,917,345 | 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;
} |
96,072,170 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 341 простым. | def is_prime():
n = 341
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 341 простым.
### Response:
def is_prime():
n = 341
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
80,214,371 | kk | Unity | string_ops | intermediate | Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
3,649,598 | en | Python | var_decl | beginner | How to declare a variable health with value 404721 in Python? | health = 404721 | ### Instruction:
How to declare a variable health with value 404721 in Python?
### Response:
health = 404721 |
82,682,327 | en | C# | string_ops | advanced | Write a function that counts vowels in a text in C#. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in C#.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
28,312,414 | en | JavaScript | array_ops | intermediate | Write a function that reverses a list in JavaScript. | const reverseArr = arr => arr.reverse(); | ### Instruction:
Write a function that reverses a list in JavaScript.
### Response:
const reverseArr = arr => arr.reverse(); |
45,231,448 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 2095 високосным. | def is_leap():
year = 2095
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2095 високосным.
### Response:
def is_leap():
year = 2095
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
2,870,909 | ru | C# | var_decl | beginner | Как объявить переменную index со значением 733761 в C#? | int index = 733761; | ### Instruction:
Как объявить переменную index со значением 733761 в C#?
### Response:
int index = 733761; |
1,916,146 | en | C# | var_decl | beginner | How to declare a variable result with value 112088 in C#? | int result = 112088; | ### Instruction:
How to declare a variable result with value 112088 in C#?
### Response:
int result = 112088; |
89,175,749 | en | Java | string_ops | intermediate | Write a function that converts a string to uppercase in Java. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in Java.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
1,292,182 | en | Unity | var_decl | beginner | How to declare a variable amount with value 852343 in Unity? | int amount = 852343; | ### Instruction:
How to declare a variable amount with value 852343 in Unity?
### Response:
int amount = 852343; |
29,263,879 | kk | C# | logic_ops | intermediate | C# тилінде 1993 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1993;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1993 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1993;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
42,606,209 | 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,090,507 | kk | Python | var_decl | beginner | Python тілінде 324377 мәнімен health айнымалысын қалай жариялауға болады? | health = 324377 | ### Instruction:
Python тілінде 324377 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
health = 324377 |
2,507,790 | kk | Java | var_decl | beginner | Java тілінде 191532 мәнімен score айнымалысын қалай жариялауға болады? | int score = 191532; | ### Instruction:
Java тілінде 191532 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 191532; |
863,624 | ru | Python | var_decl | beginner | Как объявить переменную rate со значением 264840 в Python? | rate = 264840 | ### Instruction:
Как объявить переменную rate со значением 264840 в Python?
### Response:
rate = 264840 |
719,808 | kk | JavaScript | factorial | advanced | JavaScript тілінде 1057 санының факториалын есептейтін функция жаз. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1057)); | ### Instruction:
JavaScript тілінде 1057 санының факториалын есептейтін функция жаз.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(1057)); |
99,039,049 | en | JavaScript | array_ops | intermediate | Write a function that filters only even numbers from a list in JavaScript. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Write a function that filters only even numbers from a list in JavaScript.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
72,382,976 | 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();
} |
71,157,510 | en | C# | logic_ops | advanced | Write logic to check if the year 2093 is a leap year in C#. | public bool IsLeap() {
int y = 2093;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2093 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 2093;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
460,073 | ru | Python | factorial | advanced | Напиши функцию на Python, которая вычисляет факториал числа 6066. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(6066)) | ### Instruction:
Напиши функцию на Python, которая вычисляет факториал числа 6066.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(6066)) |
77,486,386 | kk | Python | logic_ops | advanced | Python тилінде 2054 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 2054
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 2054 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 2054
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
30,145 | en | C# | var_decl | beginner | How to declare a variable speed with value 49338 in C#? | int speed = 49338; | ### Instruction:
How to declare a variable speed with value 49338 in C#?
### Response:
int speed = 49338; |
89,221,285 | kk | Java | string_ops | intermediate | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
43,935,430 | ru | C# | logic_ops | advanced | Напишите на C# логику проверки, является ли год 1925 високосным. | public bool IsLeap() {
int y = 1925;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1925 високосным.
### Response:
public bool IsLeap() {
int y = 1925;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
86,122,873 | kk | 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;
} |
56,423,819 | kk | Python | string_ops | advanced | Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Python тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
def is_palindrome(s):
return s == s[::-1] |
4,587,026 | en | JavaScript | var_decl | beginner | How to declare a variable limit with value 829458 in JavaScript? | let limit = 829458; | ### Instruction:
How to declare a variable limit with value 829458 in JavaScript?
### Response:
let limit = 829458; |
77,493,668 | kk | JavaScript | logic_ops | intermediate | JavaScript тилінде 127 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 127;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 127 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 127;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
52,415,366 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
793,906 | ru | Unity | var_decl | beginner | Как объявить переменную count со значением 456541 в Unity? | int count = 456541; | ### Instruction:
Как объявить переменную count со значением 456541 в Unity?
### Response:
int count = 456541; |
65,469,828 | 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;
} |
44,755,427 | 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();
} |
28,508,156 | ru | Python | logic_ops | advanced | Напишите на Python функцию, определяющую, является ли число 312 простым. | def is_prime():
n = 312
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 312 простым.
### Response:
def is_prime():
n = 312
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
19,609 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 5238. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(5238));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 5238.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(5238));
} |
93,625,598 | kk | Java | string_ops | intermediate | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
2,255,409 | en | Unity | var_decl | beginner | How to declare a variable result with value 523178 in Unity? | int result = 523178; | ### Instruction:
How to declare a variable result with value 523178 in Unity?
### Response:
int result = 523178; |
11,683,662 | ru | Python | logic_ops | advanced | Напишите на Python логику проверки, является ли год 1931 високосным. | def is_leap():
year = 1931
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1931 високосным.
### Response:
def is_leap():
year = 1931
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
57,733,309 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
54,502,152 | kk | C# | logic_ops | advanced | C# тилінде 27 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 27;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 27 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 27;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
1,211,201 | ru | JavaScript | var_decl | beginner | Как объявить переменную amount со значением 338840 в JavaScript? | let amount = 338840; | ### Instruction:
Как объявить переменную amount со значением 338840 в JavaScript?
### Response:
let amount = 338840; |
4,768,911 | ru | Unity | var_decl | beginner | Как объявить переменную y со значением 217453 в Unity? | int y = 217453; | ### Instruction:
Как объявить переменную y со значением 217453 в Unity?
### Response:
int y = 217453; |
30,934,635 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.