id int64 0 100M | language stringclasses 3
values | prog_lang stringclasses 6
values | category stringclasses 10
values | difficulty stringclasses 3
values | instruction stringlengths 30 86 | output stringlengths 7 192 | text stringlengths 92 300 |
|---|---|---|---|---|---|---|---|
47,283,359 | en | C# | logic_ops | intermediate | Write a function that determines if the number 127 is prime in C#. | public bool IsPrime() {
int n = 127;
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 127 is prime in C#.
### Response:
public bool IsPrime() {
int n = 127;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
58,454,279 | en | JavaScript | string_ops | intermediate | Write a function that checks if a string is a palindrome in JavaScript. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Write a function that checks if a string is a palindrome in JavaScript.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
4,775,246 | ru | JavaScript | var_decl | beginner | Как объявить переменную amount со значением 367368 в JavaScript? | let amount = 367368; | ### Instruction:
Как объявить переменную amount со значением 367368 в JavaScript?
### Response:
let amount = 367368; |
2,293,203 | kk | C++ | var_decl | beginner | C++ тілінде 642377 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 642377; | ### Instruction:
C++ тілінде 642377 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 642377; |
69,402,891 | en | Java | string_ops | advanced | Write a function that checks if a string is a palindrome in Java. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Write a function that checks if a string is a palindrome in Java.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
3,532,478 | en | Java | var_decl | beginner | How to declare a variable index with value 589004 in Java? | int index = 589004; | ### Instruction:
How to declare a variable index with value 589004 in Java?
### Response:
int index = 589004; |
165,294 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 2000. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(2000));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 2000.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(2000));
} |
4,484,945 | ru | C++ | var_decl | beginner | Как объявить переменную speed со значением 258694 в C++? | int speed = 258694; | ### Instruction:
Как объявить переменную speed со значением 258694 в C++?
### Response:
int speed = 258694; |
43,047,224 | 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;
} |
807,407 | en | JavaScript | var_decl | beginner | How to declare a variable weight with value 59737 in JavaScript? | let weight = 59737; | ### Instruction:
How to declare a variable weight with value 59737 in JavaScript?
### Response:
let weight = 59737; |
135,368 | kk | JavaScript | factorial | advanced | JavaScript тілінде 5928 санының факториалын есептейтін функция жаз. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(5928)); | ### Instruction:
JavaScript тілінде 5928 санының факториалын есептейтін функция жаз.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(5928)); |
24,612,786 | kk | C# | logic_ops | intermediate | C# тилінде 2033 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2033;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 2033 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2033;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,980,430 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 147755 мәнімен weight айнымалысын қалай жариялауға болады? | let weight = 147755; | ### Instruction:
JavaScript тілінде 147755 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
let weight = 147755; |
58,768,919 | 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);
} |
57,318,290 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
30,333,559 | 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);
} |
788,609 | ru | Python | var_decl | beginner | Как объявить переменную speed со значением 581121 в Python? | speed = 581121 | ### Instruction:
Как объявить переменную speed со значением 581121 в Python?
### Response:
speed = 581121 |
2,536,467 | kk | Unity | var_decl | beginner | Unity тілінде 32017 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 32017; | ### Instruction:
Unity тілінде 32017 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 32017; |
75,080,373 | kk | Java | logic_ops | advanced | Java тилінде 1991 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1991;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1991 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1991;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
638,911 | kk | Unity | var_decl | beginner | Unity тілінде 167973 мәнімен total айнымалысын қалай жариялауға болады? | int total = 167973; | ### Instruction:
Unity тілінде 167973 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
int total = 167973; |
59,030,826 | 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;
} |
657,634 | ru | Python | sum_n | intermediate | Напиши функцию на Python, которая считает сумму чисел от 1 до 749. | def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(749)) | ### Instruction:
Напиши функцию на Python, которая считает сумму чисел от 1 до 749.
### Response:
def sum_to_n(n):
return sum(range(1, n + 1))
print(sum_to_n(749)) |
36,265,281 | kk | Unity | logic_ops | advanced | Unity тилінде 2010 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2010;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 2010 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2010;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
68,148,867 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 1958 is a leap year in JavaScript. | function isLeap() {
let y = 1958;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 1958 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 1958;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
11,844,015 | en | Python | string_ops | intermediate | Write a function that counts vowels in a text in Python. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Write a function that counts vowels in a text in Python.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
3,033,102 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 106702 мәнімен y айнымалысын қалай жариялауға болады? | let y = 106702; | ### Instruction:
JavaScript тілінде 106702 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
let y = 106702; |
52,821,195 | en | Unity | logic_ops | intermediate | Write logic to check if the year 1903 is a leap year in Unity. | public bool IsLeap() {
int y = 1903;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1903 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1903;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
92,567,034 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая фильтрует только четные числа из списка. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Напишите на Python функцию, которая фильтрует только четные числа из списка.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
50,161,315 | kk | JavaScript | string_ops | advanced | JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
JavaScript тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
83,843,772 | kk | Unity | array_ops | intermediate | Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
578,267 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 498-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(498));
} | ### Instruction:
Unity тілінде 1-ден 498-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(498));
} |
2,093,948 | ru | Python | var_decl | beginner | Как объявить переменную y со значением 103166 в Python? | y = 103166 | ### Instruction:
Как объявить переменную y со значением 103166 в Python?
### Response:
y = 103166 |
165,856 | en | C# | sum_n | intermediate | Write a function in C# that sums numbers from 1 to 501. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(501)); | ### Instruction:
Write a function in C# that sums numbers from 1 to 501.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(501)); |
3,579,995 | kk | Unity | var_decl | beginner | Unity тілінде 71934 мәнімен value айнымалысын қалай жариялауға болады? | int value = 71934; | ### Instruction:
Unity тілінде 71934 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 71934; |
173,093 | ru | C++ | factorial | advanced | Напиши функцию на C++, которая вычисляет факториал числа 513. | long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(513) << std::endl; | ### Instruction:
Напиши функцию на C++, которая вычисляет факториал числа 513.
### Response:
long long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
std::cout << factorial(513) << std::endl; |
46,108,827 | ru | Unity | logic_ops | intermediate | Напишите на Unity логику проверки, является ли год 1905 високосным. | public bool IsLeap() {
int y = 1905;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 1905 високосным.
### Response:
public bool IsLeap() {
int y = 1905;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
3,954,743 | ru | JavaScript | var_decl | beginner | Как объявить переменную speed со значением 964845 в JavaScript? | let speed = 964845; | ### Instruction:
Как объявить переменную speed со значением 964845 в JavaScript?
### Response:
let speed = 964845; |
26,592,949 | en | C# | string_ops | intermediate | 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();
} |
36,174,949 | en | C++ | string_ops | intermediate | Write a function that counts vowels in a text in C++. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in C++.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
92,010,602 | kk | JavaScript | string_ops | advanced | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
62,552,434 | 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;
} |
69,965,296 | 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;
} |
90,277,962 | kk | Java | logic_ops | advanced | Java тилінде 1908 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1908;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 1908 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1908;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
696,584 | en | Java | factorial | advanced | Write a function in Java that calculates the factorial of 2687. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(2687)); | ### Instruction:
Write a function in Java that calculates the factorial of 2687.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(2687)); |
3,641,315 | kk | Unity | var_decl | beginner | Unity тілінде 605252 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 605252; | ### Instruction:
Unity тілінде 605252 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 605252; |
59,556,559 | en | Python | array_ops | advanced | Write a function that filters only even numbers from a list in Python. | def filter_even(arr):
return [x for x in arr if x % 2 == 0] | ### Instruction:
Write a function that filters only even numbers from a list in Python.
### Response:
def filter_even(arr):
return [x for x in arr if x % 2 == 0] |
1,034,922 | ru | JavaScript | var_decl | beginner | Как объявить переменную count со значением 254738 в JavaScript? | let count = 254738; | ### Instruction:
Как объявить переменную count со значением 254738 в JavaScript?
### Response:
let count = 254738; |
73,497,561 | en | Unity | logic_ops | advanced | Write a function that determines if the number 111 is prime in Unity. | public bool IsPrime() {
int n = 111;
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 111 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 111;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
93,021,485 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая проверяет, является ли строка палиндромом. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
### Response:
def is_palindrome(s):
return s == s[::-1] |
326,226 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 4062. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(4062)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 4062.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(4062)); |
52,381,801 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
30,185,525 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
3,365,459 | en | Java | var_decl | beginner | How to declare a variable y with value 305902 in Java? | int y = 305902; | ### Instruction:
How to declare a variable y with value 305902 in Java?
### Response:
int y = 305902; |
15,627,463 | kk | Python | array_ops | intermediate | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
83,104,114 | 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;
} |
74,390,534 | en | Java | logic_ops | advanced | Write logic to check if the year 1955 is a leap year in Java. | public bool IsLeap() {
int y = 1955;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1955 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 1955;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,687,958 | kk | Java | var_decl | beginner | Java тілінде 273681 мәнімен timer айнымалысын қалай жариялауға болады? | int timer = 273681; | ### Instruction:
Java тілінде 273681 мәнімен timer айнымалысын қалай жариялауға болады?
### Response:
int timer = 273681; |
15,948,113 | en | C# | logic_ops | intermediate | Write logic to check if the year 1911 is a leap year in C#. | public bool IsLeap() {
int y = 1911;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1911 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 1911;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
18,112,949 | en | Java | array_ops | intermediate | Write a function that reverses a list in Java. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Write a function that reverses a list in Java.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
4,957,475 | kk | Python | var_decl | beginner | Python тілінде 932020 мәнімен count айнымалысын қалай жариялауға болады? | count = 932020 | ### Instruction:
Python тілінде 932020 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
count = 932020 |
55,818,676 | en | JavaScript | logic_ops | intermediate | Write a function that determines if the number 347 is prime in JavaScript. | function isPrime() {
let n = 347;
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 347 is prime in JavaScript.
### Response:
function isPrime() {
let n = 347;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
3,313,051 | kk | Java | var_decl | beginner | Java тілінде 750042 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 750042; | ### Instruction:
Java тілінде 750042 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 750042; |
68,307,268 | ru | Java | logic_ops | intermediate | Напишите на Java логику проверки, является ли год 2042 високосным. | public bool IsLeap() {
int y = 2042;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Java логику проверки, является ли год 2042 високосным.
### Response:
public bool IsLeap() {
int y = 2042;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,735,086 | en | Python | var_decl | beginner | How to declare a variable limit with value 173315 in Python? | limit = 173315 | ### Instruction:
How to declare a variable limit with value 173315 in Python?
### Response:
limit = 173315 |
59,239,335 | kk | Unity | array_ops | intermediate | Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Unity тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
2,862,893 | ru | Java | var_decl | beginner | Как объявить переменную y со значением 239675 в Java? | int y = 239675; | ### Instruction:
Как объявить переменную y со значением 239675 в Java?
### Response:
int y = 239675; |
37,267,152 | kk | JavaScript | string_ops | intermediate | JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | const toUpper = s => s.toUpperCase(); | ### Instruction:
JavaScript тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
const toUpper = s => s.toUpperCase(); |
3,543,292 | ru | Java | var_decl | beginner | Как объявить переменную weight со значением 267346 в Java? | int weight = 267346; | ### Instruction:
Как объявить переменную weight со значением 267346 в Java?
### Response:
int weight = 267346; |
51,557,384 | en | C# | string_ops | intermediate | Write a function that counts vowels in a text in C#. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in C#.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
48,529,747 | en | JavaScript | array_ops | advanced | Write a function that filters only even numbers from a list in JavaScript. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Write a function that filters only even numbers from a list in JavaScript.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
51,774 | ru | JavaScript | sum_n | intermediate | Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 4248. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(4248)); | ### Instruction:
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 4248.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(4248)); |
19,242,482 | ru | C# | logic_ops | intermediate | Напишите на C# логику проверки, является ли год 1949 високосным. | public bool IsLeap() {
int y = 1949;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C# логику проверки, является ли год 1949 високосным.
### Response:
public bool IsLeap() {
int y = 1949;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
51,938,809 | en | Unity | string_ops | advanced | Write a function that counts vowels in a text in Unity. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in Unity.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
3,178,805 | en | C# | var_decl | beginner | How to declare a variable count with value 390554 in C#? | int count = 390554; | ### Instruction:
How to declare a variable count with value 390554 in C#?
### Response:
int count = 390554; |
75,225,411 | ru | C++ | array_ops | intermediate | Напишите на C++ функцию, которая фильтрует только четные числа из списка. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Напишите на C++ функцию, которая фильтрует только четные числа из списка.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
75,434,665 | 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;
} |
1,053,192 | kk | C++ | var_decl | beginner | C++ тілінде 994456 мәнімен speed айнымалысын қалай жариялауға болады? | int speed = 994456; | ### Instruction:
C++ тілінде 994456 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
int speed = 994456; |
2,474,217 | ru | Java | var_decl | beginner | Как объявить переменную speed со значением 549172 в Java? | int speed = 549172; | ### Instruction:
Как объявить переменную speed со значением 549172 в Java?
### Response:
int speed = 549172; |
82,389,978 | en | JavaScript | array_ops | advanced | Write a function that filters only even numbers from a list in JavaScript. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Write a function that filters only even numbers from a list in JavaScript.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
4,065,989 | kk | Unity | var_decl | beginner | Unity тілінде 829161 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 829161; | ### Instruction:
Unity тілінде 829161 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 829161; |
94,194,309 | 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;
} |
10,394,528 | en | Java | string_ops | advanced | 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,018,353 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 3081. | 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(3081) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 3081.
### 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(3081) << std::endl; |
3,585,136 | en | C++ | var_decl | beginner | How to declare a variable weight with value 954024 in C++? | int weight = 954024; | ### Instruction:
How to declare a variable weight with value 954024 in C++?
### Response:
int weight = 954024; |
52,795,284 | kk | Python | array_ops | advanced | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
682,410 | ru | C++ | sum_n | intermediate | Напиши функцию на C++, которая считает сумму чисел от 1 до 2079. | 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(2079) << std::endl; | ### Instruction:
Напиши функцию на C++, которая считает сумму чисел от 1 до 2079.
### 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(2079) << std::endl; |
4,169,411 | kk | C# | var_decl | beginner | C# тілінде 794362 мәнімен score айнымалысын қалай жариялауға болады? | int score = 794362; | ### Instruction:
C# тілінде 794362 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 794362; |
1,532,048 | en | JavaScript | var_decl | beginner | How to declare a variable limit with value 406633 in JavaScript? | let limit = 406633; | ### Instruction:
How to declare a variable limit with value 406633 in JavaScript?
### Response:
let limit = 406633; |
4,205,080 | ru | C# | var_decl | beginner | Как объявить переменную value со значением 108236 в C#? | int value = 108236; | ### Instruction:
Как объявить переменную value со значением 108236 в C#?
### Response:
int value = 108236; |
83,707,410 | en | C++ | string_ops | intermediate | Write a function that counts vowels in a text in C++. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Write a function that counts vowels in a text in C++.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
2,994,229 | en | JavaScript | var_decl | beginner | How to declare a variable count with value 324497 in JavaScript? | let count = 324497; | ### Instruction:
How to declare a variable count with value 324497 in JavaScript?
### Response:
let count = 324497; |
80,286,102 | 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;
} |
2,344,005 | en | C# | var_decl | beginner | How to declare a variable buffer with value 788113 in C#? | int buffer = 788113; | ### Instruction:
How to declare a variable buffer with value 788113 in C#?
### Response:
int buffer = 788113; |
3,113,957 | en | Python | var_decl | beginner | How to declare a variable y with value 381064 in Python? | y = 381064 | ### Instruction:
How to declare a variable y with value 381064 in Python?
### Response:
y = 381064 |
96,047,748 | 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;
} |
26,809,681 | kk | C++ | logic_ops | intermediate | C++ тилінде 499 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 499;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 499 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 499;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
24,287,309 | ru | Unity | string_ops | intermediate | Напишите на Unity функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Unity функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
224,933 | ru | C++ | var_decl | beginner | Как объявить переменную timer со значением 603425 в C++? | int timer = 603425; | ### Instruction:
Как объявить переменную timer со значением 603425 в C++?
### Response:
int timer = 603425; |
63,464,999 | en | C# | logic_ops | advanced | Write logic to check if the year 1908 is a leap year in C#. | public bool IsLeap() {
int y = 1908;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1908 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 1908;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
86,632,254 | 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);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.