id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
35,538 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 3241-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(3241));
} | ### Instruction:
Unity тілінде 1-ден 3241-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(3241));
} |
3,669,182 | ru | JavaScript | var_decl | beginner | Как объявить переменную rate со значением 662899 в JavaScript? | let rate = 662899; | ### Instruction:
Как объявить переменную rate со значением 662899 в JavaScript?
### Response:
let rate = 662899; |
86,007,864 | 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); |
48,324,827 | kk | Unity | logic_ops | intermediate | Unity тилінде 102 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 102;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Unity тилінде 102 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 102;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
54,616,650 | kk | C++ | logic_ops | intermediate | C++ тилінде 484 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 484;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 484 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 484;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
45,977,354 | en | Java | logic_ops | advanced | Write logic to check if the year 2045 is a leap year in Java. | public bool IsLeap() {
int y = 2045;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2045 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2045;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
42,222,231 | 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;
} |
65,633,121 | 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;
} |
15,568,522 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript логику проверки, является ли год 1941 високосным. | function isLeap() {
let y = 1941;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Напишите на JavaScript логику проверки, является ли год 1941 високосным.
### Response:
function isLeap() {
let y = 1941;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
3,826,107 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 861554 мәнімен health айнымалысын қалай жариялауға болады? | let health = 861554; | ### Instruction:
JavaScript тілінде 861554 мәнімен health айнымалысын қалай жариялауға болады?
### Response:
let health = 861554; |
2,160,030 | en | Unity | var_decl | beginner | How to declare a variable health with value 444422 in Unity? | int health = 444422; | ### Instruction:
How to declare a variable health with value 444422 in Unity?
### Response:
int health = 444422; |
20,043,938 | 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;
} |
88,366,475 | ru | JavaScript | string_ops | advanced | Напишите на JavaScript функцию, которая переводит строку в верхний регистр. | const toUpper = s => s.toUpperCase(); | ### Instruction:
Напишите на JavaScript функцию, которая переводит строку в верхний регистр.
### Response:
const toUpper = s => s.toUpperCase(); |
73,961,861 | ru | C++ | logic_ops | intermediate | Напишите на C++ логику проверки, является ли год 2057 високосным. | public bool IsLeap() {
int y = 2057;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Напишите на C++ логику проверки, является ли год 2057 високосным.
### Response:
public bool IsLeap() {
int y = 2057;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
16,115,446 | en | Unity | logic_ops | advanced | Write a function that determines if the number 300 is prime in Unity. | public bool IsPrime() {
int n = 300;
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 300 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 300;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
79,004,217 | 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;
} |
20,992,679 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
638,965 | ru | C# | var_decl | beginner | Как объявить переменную rate со значением 419 в C#? | int rate = 419; | ### Instruction:
Как объявить переменную rate со значением 419 в C#?
### Response:
int rate = 419; |
64,784,239 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 1958 високосным. | def is_leap():
year = 1958
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 1958 високосным.
### Response:
def is_leap():
year = 1958
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
1,596,443 | en | Java | var_decl | beginner | How to declare a variable rate with value 152154 in Java? | int rate = 152154; | ### Instruction:
How to declare a variable rate with value 152154 in Java?
### Response:
int rate = 152154; |
33,647,931 | en | C# | array_ops | advanced | 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);
} |
1,523,416 | ru | Java | var_decl | beginner | Как объявить переменную level со значением 111355 в Java? | int level = 111355; | ### Instruction:
Как объявить переменную level со значением 111355 в Java?
### Response:
int level = 111355; |
18,129,769 | kk | C# | logic_ops | intermediate | C# тилінде 402 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 402;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 402 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 402;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
58,470,387 | kk | 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);
} |
498,479 | en | C# | factorial | advanced | Write a function in C# that calculates the factorial of 7797. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(7797)); | ### Instruction:
Write a function in C# that calculates the factorial of 7797.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(7797)); |
296,945 | en | C++ | var_decl | beginner | How to declare a variable timer with value 949164 in C++? | int timer = 949164; | ### Instruction:
How to declare a variable timer with value 949164 in C++?
### Response:
int timer = 949164; |
565,544 | kk | C# | factorial | advanced | C# тілінде 4605 санының факториалын есептейтін функция жаз. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(4605)); | ### Instruction:
C# тілінде 4605 санының факториалын есептейтін функция жаз.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(4605)); |
99,096,043 | ru | Java | logic_ops | advanced | Напишите на Java функцию, определяющую, является ли число 217 простым. | public bool IsPrime() {
int n = 217;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 217 простым.
### Response:
public bool IsPrime() {
int n = 217;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
66,817,371 | kk | JavaScript | array_ops | intermediate | JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | const reverseArr = arr => arr.reverse(); | ### Instruction:
JavaScript тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
const reverseArr = arr => arr.reverse(); |
396,128 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 9728. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(9728)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 9728.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(9728)); |
2,810,646 | kk | Java | var_decl | beginner | Java тілінде 998011 мәнімен weight айнымалысын қалай жариялауға болады? | int weight = 998011; | ### Instruction:
Java тілінде 998011 мәнімен weight айнымалысын қалай жариялауға болады?
### Response:
int weight = 998011; |
33,289,693 | ru | JavaScript | string_ops | intermediate | Напишите на JavaScript функцию, которая считает количество гласных букв в тексте. | const countVowels = s => (s.match(/[aeiou]/gi) || []).length; | ### Instruction:
Напишите на JavaScript функцию, которая считает количество гласных букв в тексте.
### Response:
const countVowels = s => (s.match(/[aeiou]/gi) || []).length; |
69,170,182 | ru | Java | string_ops | intermediate | Напишите на Java функцию, которая переводит строку в верхний регистр. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Напишите на Java функцию, которая переводит строку в верхний регистр.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
61,286,886 | ru | JavaScript | logic_ops | intermediate | Напишите на JavaScript функцию, определяющую, является ли число 189 простым. | function isPrime() {
let n = 189;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} | ### Instruction:
Напишите на JavaScript функцию, определяющую, является ли число 189 простым.
### Response:
function isPrime() {
let n = 189;
if (n <= 1) return false;
for (let i = 2; i * i <= n; i++) if (n % i === 0) return false;
return true;
} |
3,711,778 | ru | Java | var_decl | beginner | Как объявить переменную score со значением 292510 в Java? | int score = 292510; | ### Instruction:
Как объявить переменную score со значением 292510 в Java?
### Response:
int score = 292510; |
21,062,510 | ru | Java | logic_ops | intermediate | Напишите на Java функцию, определяющую, является ли число 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:
Напишите на Java функцию, определяющую, является ли число 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;
} |
97,141,843 | 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);
} |
59,940,622 | kk | Python | logic_ops | advanced | Python тилінде 330 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 330
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 330 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 330
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
4,248,918 | kk | Unity | var_decl | beginner | Unity тілінде 360547 мәнімен score айнымалысын қалай жариялауға болады? | int score = 360547; | ### Instruction:
Unity тілінде 360547 мәнімен score айнымалысын қалай жариялауға болады?
### Response:
int score = 360547; |
2,951,280 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 702283 мәнімен size айнымалысын қалай жариялауға болады? | let size = 702283; | ### Instruction:
JavaScript тілінде 702283 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
let size = 702283; |
621,701 | en | C# | sum_n | intermediate | Write a function in C# that sums numbers from 1 to 3417. | static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(3417)); | ### Instruction:
Write a function in C# that sums numbers from 1 to 3417.
### Response:
static int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
Console.WriteLine(SumToN(3417)); |
3,183,514 | ru | C# | var_decl | beginner | Как объявить переменную health со значением 994141 в C#? | int health = 994141; | ### Instruction:
Как объявить переменную health со значением 994141 в C#?
### Response:
int health = 994141; |
85,377,504 | 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] |
34,313,809 | en | C# | logic_ops | advanced | 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,237,062 | en | Java | var_decl | beginner | How to declare a variable index with value 535222 in Java? | int index = 535222; | ### Instruction:
How to declare a variable index with value 535222 in Java?
### Response:
int index = 535222; |
32,480,258 | kk | C++ | logic_ops | advanced | C++ тилінде 1908 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1908;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 1908 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1908;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,988,003 | ru | C# | var_decl | beginner | Как объявить переменную timer со значением 498505 в C#? | int timer = 498505; | ### Instruction:
Как объявить переменную timer со значением 498505 в C#?
### Response:
int timer = 498505; |
369,689 | kk | Java | sum_n | intermediate | Java тілінде 1-ден 8187-ге дейінгі сандардың қосындысын есептейтін функция жаз. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8187)); | ### Instruction:
Java тілінде 1-ден 8187-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(8187)); |
81,770,876 | en | JavaScript | string_ops | advanced | Write a function that checks if a string is a palindrome in JavaScript. | const isPalindrome = s => s === s.split('').reverse().join(''); | ### Instruction:
Write a function that checks if a string is a palindrome in JavaScript.
### Response:
const isPalindrome = s => s === s.split('').reverse().join(''); |
97,756,109 | kk | C++ | array_ops | intermediate | C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. | public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} | ### Instruction:
C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
### Response:
public int GetMax(int[] arr) {
int max = arr[0];
foreach(int x in arr) if(x > max) max = x;
return max;
} |
3,116,347 | ru | C# | var_decl | beginner | Как объявить переменную index со значением 216401 в C#? | int index = 216401; | ### Instruction:
Как объявить переменную index со значением 216401 в C#?
### Response:
int index = 216401; |
81,635,712 | kk | Java | string_ops | advanced | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
32,919,002 | kk | 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;
} |
3,045,210 | ru | Unity | var_decl | beginner | Как объявить переменную speed со значением 357062 в Unity? | int speed = 357062; | ### Instruction:
Как объявить переменную speed со значением 357062 в Unity?
### Response:
int speed = 357062; |
51,788,880 | 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;
} |
347,791 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 9179. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9179)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 9179.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(9179)); |
4,319,456 | en | C# | var_decl | beginner | How to declare a variable result with value 724431 in C#? | int result = 724431; | ### Instruction:
How to declare a variable result with value 724431 in C#?
### Response:
int result = 724431; |
97,338,321 | ru | Python | array_ops | intermediate | Напишите на Python функцию, которая разворачивает список задом наперед. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Напишите на Python функцию, которая разворачивает список задом наперед.
### Response:
def reverse_list(arr):
return arr[::-1] |
90,915,425 | 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();
} |
89,127,511 | ru | 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;
} |
4,491,051 | ru | Unity | var_decl | beginner | Как объявить переменную total со значением 194868 в Unity? | int total = 194868; | ### Instruction:
Как объявить переменную total со значением 194868 в Unity?
### Response:
int total = 194868; |
46,328,941 | 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);
} |
4,826,832 | ru | C++ | var_decl | beginner | Как объявить переменную x со значением 196398 в C++? | int x = 196398; | ### Instruction:
Как объявить переменную x со значением 196398 в C++?
### Response:
int x = 196398; |
2,455,165 | ru | C++ | var_decl | beginner | Как объявить переменную total со значением 168094 в C++? | int total = 168094; | ### Instruction:
Как объявить переменную total со значением 168094 в C++?
### Response:
int total = 168094; |
62,321,674 | 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);
} |
3,716,188 | ru | C++ | var_decl | beginner | Как объявить переменную y со значением 801095 в C++? | int y = 801095; | ### Instruction:
Как объявить переменную y со значением 801095 в C++?
### Response:
int y = 801095; |
74,618,181 | en | Python | string_ops | intermediate | Write a function that checks if a string is a palindrome in Python. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Write a function that checks if a string is a palindrome in Python.
### Response:
def is_palindrome(s):
return s == s[::-1] |
13,704,769 | 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;
} |
381,279 | kk | Unity | sum_n | intermediate | Unity тілінде 1-ден 9193-ге дейінгі сандардың қосындысын есептейтін функция жаз. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(9193));
} | ### Instruction:
Unity тілінде 1-ден 9193-ге дейінгі сандардың қосындысын есептейтін функция жаз.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(9193));
} |
22,936,560 | 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;
} |
13,780,417 | 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;
} |
2,792,362 | en | Java | var_decl | beginner | How to declare a variable score with value 323574 in Java? | int score = 323574; | ### Instruction:
How to declare a variable score with value 323574 in Java?
### Response:
int score = 323574; |
28,594,251 | 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;
} |
3,000,351 | kk | Java | var_decl | beginner | Java тілінде 428560 мәнімен limit айнымалысын қалай жариялауға болады? | int limit = 428560; | ### Instruction:
Java тілінде 428560 мәнімен limit айнымалысын қалай жариялауға болады?
### Response:
int limit = 428560; |
353,721 | kk | Python | factorial | advanced | Python тілінде 4127 санының факториалын есептейтін функция жаз. | def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(4127)) | ### Instruction:
Python тілінде 4127 санының факториалын есептейтін функция жаз.
### Response:
def factorial(n):
return 1 if n <= 1 else n * factorial(n - 1)
print(factorial(4127)) |
193,410 | en | Java | sum_n | intermediate | Write a function in Java that sums numbers from 1 to 7417. | static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(7417)); | ### Instruction:
Write a function in Java that sums numbers from 1 to 7417.
### Response:
static int sumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
System.out.println(sumToN(7417)); |
915,844 | ru | Java | var_decl | beginner | Как объявить переменную rate со значением 543677 в Java? | int rate = 543677; | ### Instruction:
Как объявить переменную rate со значением 543677 в Java?
### Response:
int rate = 543677; |
4,850,798 | en | C++ | var_decl | beginner | How to declare a variable size with value 782050 in C++? | int size = 782050; | ### Instruction:
How to declare a variable size with value 782050 in C++?
### Response:
int size = 782050; |
92,821,670 | kk | Python | string_ops | intermediate | Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | def to_upper(s):
return s.upper() | ### Instruction:
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
def to_upper(s):
return s.upper() |
12,795,069 | en | Python | string_ops | intermediate | Write a function that converts a string to uppercase in Python. | def to_upper(s):
return s.upper() | ### Instruction:
Write a function that converts a string to uppercase in Python.
### Response:
def to_upper(s):
return s.upper() |
1,061,560 | ru | JavaScript | var_decl | beginner | Как объявить переменную x со значением 368157 в JavaScript? | let x = 368157; | ### Instruction:
Как объявить переменную x со значением 368157 в JavaScript?
### Response:
let x = 368157; |
78,859,068 | 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] |
3,110,077 | kk | Python | var_decl | beginner | Python тілінде 547796 мәнімен offset айнымалысын қалай жариялауға болады? | offset = 547796 | ### Instruction:
Python тілінде 547796 мәнімен offset айнымалысын қалай жариялауға болады?
### Response:
offset = 547796 |
49,818,394 | kk | Unity | logic_ops | intermediate | Unity тилінде 1941 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1941;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1941 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1941;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
37,534,799 | ru | Unity | logic_ops | intermediate | Напишите на Unity функцию, определяющую, является ли число 360 простым. | public bool IsPrime() {
int n = 360;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 360 простым.
### Response:
public bool IsPrime() {
int n = 360;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
19,900,826 | ru | Java | array_ops | advanced | Напишите на Java функцию, которая разворачивает список задом наперед. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Напишите на Java функцию, которая разворачивает список задом наперед.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
2,870,824 | ru | C++ | var_decl | beginner | Как объявить переменную health со значением 488114 в C++? | int health = 488114; | ### Instruction:
Как объявить переменную health со значением 488114 в C++?
### Response:
int health = 488114; |
70,410,539 | ru | C++ | string_ops | intermediate | Напишите на C++ функцию, которая проверяет, является ли строка палиндромом. | public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} | ### Instruction:
Напишите на C++ функцию, которая проверяет, является ли строка палиндромом.
### Response:
public bool IsPalindrome(string s) {
int min = 0, max = s.Length - 1;
while (min < max) {
if (s[min] != s[max]) return false;
min++; max--;
}
return true;
} |
1,364,251 | en | Java | var_decl | beginner | How to declare a variable timer with value 352982 in Java? | int timer = 352982; | ### Instruction:
How to declare a variable timer with value 352982 in Java?
### Response:
int timer = 352982; |
14,278,299 | en | JavaScript | logic_ops | intermediate | Write logic to check if the year 2071 is a leap year in JavaScript. | function isLeap() {
let y = 2071;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} | ### Instruction:
Write logic to check if the year 2071 is a leap year in JavaScript.
### Response:
function isLeap() {
let y = 2071;
return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
} |
2,985,966 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 253020 мәнімен y айнымалысын қалай жариялауға болады? | let y = 253020; | ### Instruction:
JavaScript тілінде 253020 мәнімен y айнымалысын қалай жариялауға болады?
### Response:
let y = 253020; |
77,953,366 | 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; |
1,749,588 | kk | Python | var_decl | beginner | Python тілінде 547037 мәнімен total айнымалысын қалай жариялауға болады? | total = 547037 | ### Instruction:
Python тілінде 547037 мәнімен total айнымалысын қалай жариялауға болады?
### Response:
total = 547037 |
2,765,982 | kk | JavaScript | var_decl | beginner | JavaScript тілінде 693366 мәнімен speed айнымалысын қалай жариялауға болады? | let speed = 693366; | ### Instruction:
JavaScript тілінде 693366 мәнімен speed айнымалысын қалай жариялауға болады?
### Response:
let speed = 693366; |
1,584,163 | kk | Unity | var_decl | beginner | Unity тілінде 841578 мәнімен size айнымалысын қалай жариялауға болады? | int size = 841578; | ### Instruction:
Unity тілінде 841578 мәнімен size айнымалысын қалай жариялауға болады?
### Response:
int size = 841578; |
28,547,869 | kk | Python | array_ops | advanced | Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | def reverse_list(arr):
return arr[::-1] | ### Instruction:
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
def reverse_list(arr):
return arr[::-1] |
83,739,513 | kk | Java | logic_ops | intermediate | Java тилінде 2054 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2054;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Java тилінде 2054 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2054;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
86,682,779 | en | Python | string_ops | advanced | Write a function that checks if a string is a palindrome in Python. | def is_palindrome(s):
return s == s[::-1] | ### Instruction:
Write a function that checks if a string is a palindrome in Python.
### Response:
def is_palindrome(s):
return s == s[::-1] |
80,354,396 | kk | Python | logic_ops | intermediate | Python тилінде 239 санының жай сан екенін анықтайтын функцияны жазыңыз. | def is_prime():
n = 239
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Python тилінде 239 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
def is_prime():
n = 239
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
29,590,656 | 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();
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.