id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
851,576 | ru | Java | var_decl | beginner | Как объявить переменную x со значением 360356 в Java? | int x = 360356; | ### Instruction:
Как объявить переменную x со значением 360356 в Java?
### Response:
int x = 360356; |
127,402 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 5861. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(5861)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 5861.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(5861)); |
86,214,569 | 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,070,206 | kk | Java | var_decl | beginner | Java тілінде 285638 мәнімен data айнымалысын қалай жариялауға болады? | int data = 285638; | ### Instruction:
Java тілінде 285638 мәнімен data айнымалысын қалай жариялауға болады?
### Response:
int data = 285638; |
33,610,440 | ru | Python | logic_ops | advanced | Напишите на Python функцию, определяющую, является ли число 169 простым. | def is_prime():
n = 169
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 169 простым.
### Response:
def is_prime():
n = 169
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
4,862,778 | ru | Python | var_decl | beginner | Как объявить переменную data со значением 206084 в Python? | data = 206084 | ### Instruction:
Как объявить переменную data со значением 206084 в Python?
### Response:
data = 206084 |
69,496,658 | 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;
} |
12,756,679 | ru | 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);
} |
4,576,235 | en | Unity | var_decl | beginner | How to declare a variable y with value 380365 in Unity? | int y = 380365; | ### Instruction:
How to declare a variable y with value 380365 in Unity?
### Response:
int y = 380365; |
50,386,210 | ru | 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);
} |
99,952,976 | en | Unity | array_ops | advanced | Write a function that finds the maximum number in an array in Unity. | 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 Unity.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
1,026,192 | en | Python | var_decl | beginner | How to declare a variable count with value 862910 in Python? | count = 862910 | ### Instruction:
How to declare a variable count with value 862910 in Python?
### Response:
count = 862910 |
23,291,219 | 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();
} |
32,882,111 | 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);
} |
77,035,695 | en | Unity | array_ops | advanced | Write a function that filters only even numbers from a list in Unity. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Unity.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
11,424,916 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 17 простым. | public bool IsPrime() {
int n = 17;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 17 простым.
### Response:
public bool IsPrime() {
int n = 17;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,729,083 | kk | Python | var_decl | beginner | Python тілінде 295671 мәнімен rate айнымалысын қалай жариялауға болады? | rate = 295671 | ### Instruction:
Python тілінде 295671 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
rate = 295671 |
36,711,396 | 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;
} |
42,725,807 | 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(''); |
86,731,876 | en | Python | array_ops | intermediate | Write a function that reverses a list in Python. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Write a function that reverses a list in Python.
### Response:
def reverse_list(arr):
return arr[::-1] |
53,074,952 | ru | Java | array_ops | advanced | Напишите на Java функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на Java функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
46,986,269 | 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;
} |
4,268,326 | kk | C++ | var_decl | beginner | C++ тілінде 11313 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 11313; | ### Instruction:
C++ тілінде 11313 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 11313; |
2,142,634 | ru | Java | var_decl | beginner | Как объявить переменную y со значением 193241 в Java? | int y = 193241; | ### Instruction:
Как объявить переменную y со значением 193241 в Java?
### Response:
int y = 193241; |
4,790,243 | ru | Unity | var_decl | beginner | Как объявить переменную y со значением 545035 в Unity? | int y = 545035; | ### Instruction:
Как объявить переменную y со значением 545035 в Unity?
### Response:
int y = 545035; |
20,334,965 | ru | Unity | string_ops | advanced | Напишите на Unity функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Unity функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
2,943,457 | en | Java | var_decl | beginner | How to declare a variable timer with value 254304 in Java? | int timer = 254304; | ### Instruction:
How to declare a variable timer with value 254304 in Java?
### Response:
int timer = 254304; |
91,706,341 | 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();
} |
97,349,310 | kk | Python | logic_ops | intermediate | Python тилінде 2039 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 2039
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 2039 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 2039
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
52,586,081 | 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); |
57,877,090 | kk | Python | array_ops | intermediate | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
91,985,297 | ru | Java | string_ops | advanced | Напишите на Java функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на Java функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
73,285,467 | kk | Python | array_ops | advanced | Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | def get_max(arr):
return max(arr) | ### Instruction:
Python тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
def get_max(arr):
return max(arr) |
12,383,052 | kk | Unity | string_ops | intermediate | Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
653,046 | en | C++ | var_decl | beginner | How to declare a variable rate with value 37219 in C++? | int rate = 37219; | ### Instruction:
How to declare a variable rate with value 37219 in C++?
### Response:
int rate = 37219; |
61,279,450 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript логику проверки, является ли год 1931 високосным. | function isLeap() {
let y = 1931;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1931 високосным.
### Response:
function isLeap() {
let y = 1931;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
84,340,547 | ru | Java | array_ops | advanced | Напишите на Java функцию, которая находит максимальное число в массиве. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Напишите на Java функцию, которая находит максимальное число в массиве.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
56,201,003 | 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);
} |
135,456 | en | Unity | factorial | advanced | Write a function in Unity that calculates the factorial of 780. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(780));
} | ### Instruction:
Write a function in Unity that calculates the factorial of 780.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(780));
} |
42,528,454 | 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] |
50,049,698 | en | JavaScript | string_ops | intermediate | Write a function that converts a string to uppercase in JavaScript. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Write a function that converts a string to uppercase in JavaScript.
### Response:
const toUpper = s => s.toUpperCase(); |
76,287,408 | 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();
} |
1,348,463 | ru | C++ | var_decl | beginner | Как объявить переменную x со значением 810072 в C++? | int x = 810072; | ### Instruction:
Как объявить переменную x со значением 810072 в C++?
### Response:
int x = 810072; |
44,225,855 | en | C# | logic_ops | intermediate | Write logic to check if the year 1965 is a leap year in C#. | public bool IsLeap() {
int y = 1965;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1965 is a leap year in C#.
### Response:
public bool IsLeap() {
int y = 1965;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
67,956,763 | en | Unity | string_ops | advanced | Write a function that converts a string to uppercase in Unity. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Write a function that converts a string to uppercase in Unity.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
20,927,776 | en | JavaScript | string_ops | intermediate | Write a function that counts vowels in a text in JavaScript. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Write a function that counts vowels in a text in JavaScript.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
17,158,947 | 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;
} |
13,236,597 | kk | C++ | array_ops | advanced | C++ тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
C++ тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
2,568,488 | ru | Unity | var_decl | beginner | Как объявить переменную amount со значением 377358 в Unity? | int amount = 377358; | ### Instruction:
Как объявить переменную amount со значением 377358 в Unity?
### Response:
int amount = 377358; |
33,145,772 | kk | Unity | string_ops | advanced | Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Unity тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
151,908 | ru | JavaScript | factorial | advanced | Напиши функцию на JavaScript, которая вычисляет факториал числа 4277. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(4277)); | ### Instruction:
Напиши функцию на JavaScript, которая вычисляет факториал числа 4277.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(4277)); |
15,235,722 | ru | Java | array_ops | advanced | Напишите на 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;
} |
50,673,977 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
1,559,215 | en | Unity | var_decl | beginner | How to declare a variable result with value 213852 in Unity? | int result = 213852; | ### Instruction:
How to declare a variable result with value 213852 in Unity?
### Response:
int result = 213852; |
95,146,360 | 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;
} |
14,668,354 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 489 is prime in C++. | public bool IsPrime() {
int n = 489;
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 489 is prime in C++.
### Response:
public bool IsPrime() {
int n = 489;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,666,456 | ru | C# | var_decl | beginner | Как объявить переменную y со значением 174352 в C#? | int y = 174352; | ### Instruction:
Как объявить переменную y со значением 174352 в C#?
### Response:
int y = 174352; |
4,022,666 | en | C++ | var_decl | beginner | How to declare a variable rate with value 489836 in C++? | int rate = 489836; | ### Instruction:
How to declare a variable rate with value 489836 in C++?
### Response:
int rate = 489836; |
86,194,260 | ru | JavaScript | array_ops | intermediate | Напишите на JavaScript функцию, которая находит максимальное число в массиве. | const getMax = arr => Math.max(...arr); | ### Instruction:
Напишите на JavaScript функцию, которая находит максимальное число в массиве.
### Response:
const getMax = arr => Math.max(...arr); |
4,570,745 | kk | C# | var_decl | beginner | C# тілінде 82543 мәнімен health айнымалысын қалай жариялауға болады? | int health = 82543; | ### Instruction:
C# тілінде 82543 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
int health = 82543; |
94,008,556 | en | Unity | string_ops | intermediate | 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,952,367 | en | JavaScript | var_decl | beginner | How to declare a variable limit with value 772394 in JavaScript? | let limit = 772394; | ### Instruction:
How to declare a variable limit with value 772394 in JavaScript?
### Response:
let limit = 772394; |
93,665,074 | ru | JavaScript | logic_ops | advanced | Напишите на JavaScript функцию, определяющую, является ли число 239 простым. | function isPrime() {
let n = 239;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 239 простым.
### Response:
function isPrime() {
let n = 239;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
1,462,031 | en | JavaScript | var_decl | beginner | How to declare a variable size with value 323559 in JavaScript? | let size = 323559; | ### Instruction:
How to declare a variable size with value 323559 in JavaScript?
### Response:
let size = 323559; |
207,144 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 2782. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(2782)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 2782.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(2782)); |
1,077,686 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 200383 мәнімен health айнымалысын қалай жариялауға болады? | let health = 200383; | ### Instruction:
JavaScript тілінде 200383 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
let health = 200383; |
20,120,187 | kk | Java | logic_ops | intermediate | Java тилінде 345 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 345;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 345 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 345;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,028,384 | ru | Unity | var_decl | beginner | Как объявить переменную speed со значением 713655 в Unity? | int speed = 713655; | ### Instruction:
Как объявить переменную speed со значением 713655 в Unity?
### Response:
int speed = 713655; |
23,259,471 | kk | JavaScript | logic_ops | advanced | JavaScript тилінде 149 санының жай сан екенін анықтайтын функцияны жазыңыз. | function isPrime() {
let n = 149;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
JavaScript тилінде 149 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
function isPrime() {
let n = 149;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
98,732,434 | en | Unity | array_ops | intermediate | Write a function that filters only even numbers from a list in Unity. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Unity.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
46,384,343 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 2066 високосным. | public bool IsLeap() {
int y = 2066;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 2066 високосным.
### Response:
public bool IsLeap() {
int y = 2066;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
77,578,162 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 1946 високосным. | function isLeap() {
let y = 1946;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1946 високосным.
### Response:
function isLeap() {
let y = 1946;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
3,807,006 | ru | C# | var_decl | beginner | Как объявить переменную total со значением 221551 в C#? | int total = 221551; | ### Instruction:
Как объявить переменную total со значением 221551 в C#?
### Response:
int total = 221551; |
77,593,462 | 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;
} |
260,748 | en | JavaScript | factorial | advanced | Write a function in JavaScript that calculates the factorial of 8192. | function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(8192)); | ### Instruction:
Write a function in JavaScript that calculates the factorial of 8192.
### Response:
function factorial(n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
console.log(factorial(8192)); |
13,714,386 | ru | Python | array_ops | advanced | Напишите на Python функцию, которая находит максимальное число в массиве. | def get_max(arr):
return max(arr) | ### Instruction:
Напишите на Python функцию, которая находит максимальное число в массиве.
### Response:
def get_max(arr):
return max(arr) |
45,083,866 | 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;
} |
1,044,033 | kk | C# | var_decl | beginner | C# тілінде 931109 мәнімен amount айнымалысын қалай жариялауға болады? | int amount = 931109; | ### Instruction:
C# тілінде 931109 мәнімен amount айнымалысын қалай жариялауға болады?
### Response:
int amount = 931109; |
81,208,002 | kk | Java | logic_ops | intermediate | Java тилінде 169 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 169;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 169 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 169;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
95,817,741 | kk | Java | array_ops | advanced | Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
Java тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
3,157,931 | en | C# | var_decl | beginner | How to declare a variable score with value 694220 in C#? | int score = 694220; | ### Instruction:
How to declare a variable score with value 694220 in C#?
### Response:
int score = 694220; |
85,663,683 | 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();
} |
566,700 | ru | Java | var_decl | beginner | Как объявить переменную count со значением 314226 в Java? | int count = 314226; | ### Instruction:
Как объявить переменную count со значением 314226 в Java?
### Response:
int count = 314226; |
94,837,984 | ru | Unity | logic_ops | advanced | Напишите на Unity логику проверки, является ли год 1936 високосным. | public bool IsLeap() {
int y = 1936;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на Unity логику проверки, является ли год 1936 високосным.
### Response:
public bool IsLeap() {
int y = 1936;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
69,452,465 | kk | Unity | logic_ops | intermediate | Unity тилінде 121 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 121;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 121 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 121;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
123,687 | kk | C# | factorial | advanced | C# тілінде 5718 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(5718)); | ### Instruction:
C# тілінде 5718 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(5718)); |
56,269,134 | en | Unity | logic_ops | intermediate | Write a function that determines if the number 410 is prime in Unity. | public bool IsPrime() {
int n = 410;
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 410 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 410;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
20,802,029 | 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;
} |
68,151,968 | ru | C# | string_ops | intermediate | Напишите на C# функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на C# функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
16,383,648 | kk | 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;
} |
42,514,949 | kk | 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); |
30,385,945 | kk | C++ | logic_ops | advanced | C++ тилінде 1917 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1917;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1917 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1917;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,855,887 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 86045 мәнімен count айнымалысын қалай жариялауға болады? | let count = 86045; | ### Instruction:
JavaScript тілінде 86045 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
let count = 86045; |
272,107 | ru | JavaScript | sum_n | intermediate | Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 8233. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(8233)); | ### Instruction:
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 8233.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(8233)); |
4,939,543 | en | Unity | var_decl | beginner | How to declare a variable size with value 394396 in Unity? | int size = 394396; | ### Instruction:
How to declare a variable size with value 394396 in Unity?
### Response:
int size = 394396; |
4,102,189 | ru | C# | var_decl | beginner | Как объявить переменную offset со значением 791582 в C#? | int offset = 791582; | ### Instruction:
Как объявить переменную offset со значением 791582 в C#?
### Response:
int offset = 791582; |
86,764,855 | 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();
} |
2,370,355 | en | Java | var_decl | beginner | How to declare a variable timer with value 279265 in Java? | int timer = 279265; | ### Instruction:
How to declare a variable timer with value 279265 in Java?
### Response:
int timer = 279265; |
2,267,411 | kk | C# | var_decl | beginner | C# тілінде 874381 мәнімен offset айнымалысын қалай жариялауға болады? | int offset = 874381; | ### Instruction:
C# тілінде 874381 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
int offset = 874381; |
24,572,855 | kk | C# | logic_ops | advanced | C# тилінде 1994 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1994;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1994 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1994;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.