id int64 | language string | prog_lang string | category string | difficulty string | instruction string | output string | text string |
|---|---|---|---|---|---|---|---|
4,082,492 | ru | Python | var_decl | beginner | Как объявить переменную health со значением 167637 в Python? | health = 167637 | ### Instruction:
Как объявить переменную health со значением 167637 в Python?
### Response:
health = 167637 |
95,767,174 | 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);
} |
18,729,116 | kk | Python | logic_ops | advanced | Python тилінде 2035 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | def is_leap():
year = 2035
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Python тилінде 2035 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
def is_leap():
year = 2035
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
46,891,644 | 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();
} |
60,247,167 | kk | Unity | logic_ops | advanced | Unity тилінде 1902 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1902;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1902 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1902;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
2,540,960 | ru | JavaScript | var_decl | beginner | Как объявить переменную rate со значением 518561 в JavaScript? | let rate = 518561; | ### Instruction:
Как объявить переменную rate со значением 518561 в JavaScript?
### Response:
let rate = 518561; |
2,840,379 | kk | Python | var_decl | beginner | Python тілінде 781291 мәнімен level айнымалысын қалай жариялауға болады? | level = 781291 | ### Instruction:
Python тілінде 781291 мәнімен level айнымалысын қалай жариялауға болады?
### Response:
level = 781291 |
4,216,281 | kk | Unity | var_decl | beginner | Unity тілінде 868313 мәнімен buffer айнымалысын қалай жариялауға болады? | int buffer = 868313; | ### Instruction:
Unity тілінде 868313 мәнімен buffer айнымалысын қалай жариялауға болады?
### Response:
int buffer = 868313; |
68,244,999 | en | Java | logic_ops | advanced | Write a function that determines if the number 440 is prime in Java. | public bool IsPrime() {
int n = 440;
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 440 is prime in Java.
### Response:
public bool IsPrime() {
int n = 440;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
48,261,863 | 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;
} |
92,991,717 | en | Unity | logic_ops | advanced | Write logic to check if the year 1947 is a leap year in Unity. | public bool IsLeap() {
int y = 1947;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1947 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1947;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
12,649,208 | 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;
} |
99,363,589 | ru | Unity | logic_ops | advanced | Напишите на Unity функцию, определяющую, является ли число 69 простым. | public bool IsPrime() {
int n = 69;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Unity функцию, определяющую, является ли число 69 простым.
### Response:
public bool IsPrime() {
int n = 69;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,401,214 | en | C# | var_decl | beginner | How to declare a variable y with value 592999 in C#? | int y = 592999; | ### Instruction:
How to declare a variable y with value 592999 in C#?
### Response:
int y = 592999; |
1,502,790 | en | JavaScript | var_decl | beginner | How to declare a variable total with value 746584 in JavaScript? | let total = 746584; | ### Instruction:
How to declare a variable total with value 746584 in JavaScript?
### Response:
let total = 746584; |
68,595,062 | 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); |
1,470,958 | en | C++ | var_decl | beginner | How to declare a variable speed with value 180613 in C++? | int speed = 180613; | ### Instruction:
How to declare a variable speed with value 180613 in C++?
### Response:
int speed = 180613; |
95,460,466 | kk | Java | logic_ops | intermediate | Java тилінде 442 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 442;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Java тилінде 442 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 442;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,347,704 | en | JavaScript | var_decl | beginner | How to declare a variable data with value 308430 in JavaScript? | let data = 308430; | ### Instruction:
How to declare a variable data with value 308430 in JavaScript?
### Response:
let data = 308430; |
53,522,257 | en | Unity | logic_ops | advanced | Write a function that determines if the number 403 is prime in Unity. | public bool IsPrime() {
int n = 403;
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 403 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 403;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
24,073,173 | ru | JavaScript | array_ops | advanced | Напишите на JavaScript функцию, которая фильтрует только четные числа из списка. | const filterEven = arr => arr.filter(x => x % 2 === 0); | ### Instruction:
Напишите на JavaScript функцию, которая фильтрует только четные числа из списка.
### Response:
const filterEven = arr => arr.filter(x => x % 2 === 0); |
85,442,586 | en | C++ | logic_ops | intermediate | Write a function that determines if the number 132 is prime in C++. | public bool IsPrime() {
int n = 132;
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 132 is prime in C++.
### Response:
public bool IsPrime() {
int n = 132;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
2,723,656 | en | JavaScript | var_decl | beginner | How to declare a variable rate with value 154786 in JavaScript? | let rate = 154786; | ### Instruction:
How to declare a variable rate with value 154786 in JavaScript?
### Response:
let rate = 154786; |
1,051,889 | en | Java | var_decl | beginner | How to declare a variable offset with value 563301 in Java? | int offset = 563301; | ### Instruction:
How to declare a variable offset with value 563301 in Java?
### Response:
int offset = 563301; |
3,637,363 | en | JavaScript | var_decl | beginner | How to declare a variable amount with value 253117 in JavaScript? | let amount = 253117; | ### Instruction:
How to declare a variable amount with value 253117 in JavaScript?
### Response:
let amount = 253117; |
4,277,546 | ru | JavaScript | var_decl | beginner | Как объявить переменную health со значением 952926 в JavaScript? | let health = 952926; | ### Instruction:
Как объявить переменную health со значением 952926 в JavaScript?
### Response:
let health = 952926; |
443,071 | en | JavaScript | sum_n | intermediate | Write a function in JavaScript that sums numbers from 1 to 6287. | function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(6287)); | ### Instruction:
Write a function in JavaScript that sums numbers from 1 to 6287.
### Response:
function sumToN(n) {
let s = 0;
for (let i = 1; i <= n; i++) s += i;
return s;
}
console.log(sumToN(6287)); |
62,069,061 | en | JavaScript | array_ops | intermediate | Write a function that finds the maximum number in an array in JavaScript. | const getMax = arr => Math.max(...arr); | ### Instruction:
Write a function that finds the maximum number in an array in JavaScript.
### Response:
const getMax = arr => Math.max(...arr); |
12,839,837 | ru | Java | string_ops | intermediate | Напишите на 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;
} |
97,382,343 | kk | 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;
} |
85,552,864 | ru | 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);
} |
20,300,640 | kk | C++ | logic_ops | intermediate | C++ тилінде 365 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 365;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C++ тилінде 365 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 365;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
3,866,813 | en | Java | var_decl | beginner | How to declare a variable y with value 672006 in Java? | int y = 672006; | ### Instruction:
How to declare a variable y with value 672006 in Java?
### Response:
int y = 672006; |
32,517,774 | 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();
} |
99,991,953 | kk | C++ | logic_ops | intermediate | C++ тилінде 2064 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 2064;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C++ тилінде 2064 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 2064;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
77,563,817 | en | Java | logic_ops | advanced | Write logic to check if the year 2093 is a leap year in Java. | public bool IsLeap() {
int y = 2093;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2093 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2093;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
58,519,140 | 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;
} |
13,598,382 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 2019 високосным. | def is_leap():
year = 2019
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2019 високосным.
### Response:
def is_leap():
year = 2019
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
48,793,904 | kk | C# | logic_ops | intermediate | C# тилінде 1997 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1997;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
C# тилінде 1997 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1997;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
78,224,900 | en | C# | logic_ops | intermediate | Write a function that determines if the number 170 is prime in C#. | public bool IsPrime() {
int n = 170;
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 170 is prime in C#.
### Response:
public bool IsPrime() {
int n = 170;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
4,978,985 | ru | C# | var_decl | beginner | Как объявить переменную level со значением 288199 в C#? | int level = 288199; | ### Instruction:
Как объявить переменную level со значением 288199 в C#?
### Response:
int level = 288199; |
20,937,644 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая считает количество гласных букв в тексте. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Напишите на Python функцию, которая считает количество гласных букв в тексте.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
3,578,856 | en | JavaScript | var_decl | beginner | How to declare a variable weight with value 767338 in JavaScript? | let weight = 767338; | ### Instruction:
How to declare a variable weight with value 767338 in JavaScript?
### Response:
let weight = 767338; |
89,999,250 | kk | C# | string_ops | intermediate | C# тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} | ### Instruction:
C# тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
public int CountVowels(string s) {
int c = 0;
foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++;
return c;
} |
15,595,756 | 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); |
14,084,317 | 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);
} |
209,280 | en | Unity | sum_n | intermediate | Write a function in Unity that sums numbers from 1 to 4173. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(4173));
} | ### Instruction:
Write a function in Unity that sums numbers from 1 to 4173.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(4173));
} |
35,286,300 | 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;
} |
43,227,116 | en | Java | logic_ops | intermediate | Write a function that determines if the number 87 is prime in Java. | public bool IsPrime() {
int n = 87;
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 87 is prime in Java.
### Response:
public bool IsPrime() {
int n = 87;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
99,992,903 | en | Java | array_ops | advanced | Write a function that filters only even numbers from a list in Java. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in Java.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
99,085,842 | ru | Python | logic_ops | intermediate | Напишите на Python логику проверки, является ли год 2051 високосным. | def is_leap():
year = 2051
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) | ### Instruction:
Напишите на Python логику проверки, является ли год 2051 високосным.
### Response:
def is_leap():
year = 2051
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) |
3,864,695 | ru | Unity | var_decl | beginner | Как объявить переменную data со значением 268327 в Unity? | int data = 268327; | ### Instruction:
Как объявить переменную data со значением 268327 в Unity?
### Response:
int data = 268327; |
73,405,848 | kk | Unity | array_ops | intermediate | Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз. | public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} | ### Instruction:
Unity тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
### Response:
public void Reverse(int[] arr) {
System.Array.Reverse(arr);
} |
57,652,685 | 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);
} |
15,478,761 | ru | 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;
} |
30,485 | ru | Unity | factorial | advanced | Напиши функцию на Unity, которая вычисляет факториал числа 8832. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(8832));
} | ### Instruction:
Напиши функцию на Unity, которая вычисляет факториал числа 8832.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(8832));
} |
115,615 | ru | C# | factorial | advanced | Напиши функцию на C#, которая вычисляет факториал числа 4426. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(4426)); | ### Instruction:
Напиши функцию на C#, которая вычисляет факториал числа 4426.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(4426)); |
251,915 | ru | Unity | sum_n | intermediate | Напиши функцию на Unity, которая считает сумму чисел от 1 до 8564. | int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(8564));
} | ### Instruction:
Напиши функцию на Unity, которая считает сумму чисел от 1 до 8564.
### Response:
int SumToN(int n) {
int s = 0;
for (int i = 1; i <= n; i++) s += i;
return s;
}
void Start() {
Debug.Log(SumToN(8564));
} |
3,791,082 | en | JavaScript | var_decl | beginner | How to declare a variable health with value 979225 in JavaScript? | let health = 979225; | ### Instruction:
How to declare a variable health with value 979225 in JavaScript?
### Response:
let health = 979225; |
369,262 | kk | Unity | factorial | advanced | Unity тілінде 2427 санының факториалын есептейтін функция жаз. | long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(2427));
} | ### Instruction:
Unity тілінде 2427 санының факториалын есептейтін функция жаз.
### Response:
long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
void Start() {
Debug.Log(Factorial(2427));
} |
95,410,283 | 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;
} |
84,295,594 | en | Unity | string_ops | intermediate | 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;
} |
1,417,324 | ru | JavaScript | var_decl | beginner | Как объявить переменную rate со значением 700277 в JavaScript? | let rate = 700277; | ### Instruction:
Как объявить переменную rate со значением 700277 в JavaScript?
### Response:
let rate = 700277; |
88,641,874 | kk | Unity | logic_ops | advanced | Unity тилінде 1910 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. | public bool IsLeap() {
int y = 1910;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Unity тилінде 1910 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
### Response:
public bool IsLeap() {
int y = 1910;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
46,940,950 | en | Java | logic_ops | intermediate | Write logic to check if the year 2090 is a leap year in Java. | public bool IsLeap() {
int y = 2090;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 2090 is a leap year in Java.
### Response:
public bool IsLeap() {
int y = 2090;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
70,430,695 | 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;
} |
707,092 | en | Java | var_decl | beginner | How to declare a variable data with value 837488 in Java? | int data = 837488; | ### Instruction:
How to declare a variable data with value 837488 in Java?
### Response:
int data = 837488; |
86,818,970 | 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;
} |
1,948,842 | en | Python | var_decl | beginner | How to declare a variable timer with value 902609 in Python? | timer = 902609 | ### Instruction:
How to declare a variable timer with value 902609 in Python?
### Response:
timer = 902609 |
29,184,537 | en | C# | array_ops | advanced | Write a function that filters only even numbers from a list in C#. | public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} | ### Instruction:
Write a function that filters only even numbers from a list in C#.
### Response:
public System.Collections.Generic.List<int> Filter(int[] arr) {
var res = new System.Collections.Generic.List<int>();
foreach(int x in arr) if(x % 2 == 0) res.Add(x);
return res;
} |
4,754,430 | kk | Unity | var_decl | beginner | Unity тілінде 14670 мәнімен value айнымалысын қалай жариялауға болады? | int value = 14670; | ### Instruction:
Unity тілінде 14670 мәнімен value айнымалысын қалай жариялауға болады?
### Response:
int value = 14670; |
24,339,360 | en | Unity | logic_ops | advanced | Write logic to check if the year 1994 is a leap year in Unity. | public bool IsLeap() {
int y = 1994;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} | ### Instruction:
Write logic to check if the year 1994 is a leap year in Unity.
### Response:
public bool IsLeap() {
int y = 1994;
return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0);
} |
1,628,393 | kk | Java | var_decl | beginner | Java тілінде 880505 мәнімен result айнымалысын қалай жариялауға болады? | int result = 880505; | ### Instruction:
Java тілінде 880505 мәнімен result айнымалысын қалай жариялауға болады?
### Response:
int result = 880505; |
1,228,544 | en | C# | var_decl | beginner | How to declare a variable score with value 445190 in C#? | int score = 445190; | ### Instruction:
How to declare a variable score with value 445190 in C#?
### Response:
int score = 445190; |
4,954,438 | en | JavaScript | var_decl | beginner | How to declare a variable data with value 998017 in JavaScript? | let data = 998017; | ### Instruction:
How to declare a variable data with value 998017 in JavaScript?
### Response:
let data = 998017; |
3,383,155 | ru | Java | var_decl | beginner | Как объявить переменную amount со значением 266271 в Java? | int amount = 266271; | ### Instruction:
Как объявить переменную amount со значением 266271 в Java?
### Response:
int amount = 266271; |
77,219,393 | ru | Java | logic_ops | intermediate | Напишите на Java функцию, определяющую, является ли число 460 простым. | public bool IsPrime() {
int n = 460;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
Напишите на Java функцию, определяющую, является ли число 460 простым.
### Response:
public bool IsPrime() {
int n = 460;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
33,980,663 | ru | Python | string_ops | intermediate | Напишите на Python функцию, которая считает количество гласных букв в тексте. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Напишите на Python функцию, которая считает количество гласных букв в тексте.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
256,865 | en | C# | factorial | advanced | Write a function in C# that calculates the factorial of 4146. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(4146)); | ### Instruction:
Write a function in C# that calculates the factorial of 4146.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(4146)); |
32,584,324 | kk | Python | string_ops | intermediate | Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. | def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') | ### Instruction:
Python тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
### Response:
def count_vowels(s):
return sum(1 for c in s if c in 'aeiouAEIOUаеёиоуыэюя') |
22,522,109 | en | Unity | logic_ops | intermediate | Write a function that determines if the number 86 is prime in Unity. | public bool IsPrime() {
int n = 86;
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 86 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 86;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
28,515 | kk | Python | func_def | intermediate | Python тілінде x қабылдап, оны екі еселейтін transform функциясын жаз. | def transform(x):
return x * 2 | ### Instruction:
Python тілінде x қабылдап, оны екі еселейтін transform функциясын жаз.
### Response:
def transform(x):
return x * 2 |
3,042,648 | en | Python | var_decl | beginner | How to declare a variable value with value 470876 in Python? | value = 470876 | ### Instruction:
How to declare a variable value with value 470876 in Python?
### Response:
value = 470876 |
31,287,706 | 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;
} |
97,302,533 | kk | Java | string_ops | intermediate | Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. | public string ToUpper(string s) {
return s.ToUpper();
} | ### Instruction:
Java тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
### Response:
public string ToUpper(string s) {
return s.ToUpper();
} |
2,933,925 | kk | Unity | var_decl | beginner | Unity тілінде 662804 мәнімен count айнымалысын қалай жариялауға болады? | int count = 662804; | ### Instruction:
Unity тілінде 662804 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 662804; |
46,296,923 | 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);
} |
2,565,064 | en | Java | var_decl | beginner | How to declare a variable limit with value 402090 in Java? | int limit = 402090; | ### Instruction:
How to declare a variable limit with value 402090 in Java?
### Response:
int limit = 402090; |
27,516,046 | 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] |
610,172 | ru | C++ | var_decl | beginner | Как объявить переменную weight со значением 736784 в C++? | int weight = 736784; | ### Instruction:
Как объявить переменную weight со значением 736784 в C++?
### Response:
int weight = 736784; |
69,105,048 | kk | C# | logic_ops | intermediate | C# тилінде 419 санының жай сан екенін анықтайтын функцияны жазыңыз. | public bool IsPrime() {
int n = 419;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} | ### Instruction:
C# тилінде 419 санының жай сан екенін анықтайтын функцияны жазыңыз.
### Response:
public bool IsPrime() {
int n = 419;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
98,879 | en | C# | factorial | advanced | Write a function in C# that calculates the factorial of 1576. | static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(1576)); | ### Instruction:
Write a function in C# that calculates the factorial of 1576.
### Response:
static long Factorial(int n) {
return n <= 1 ? 1 : n * Factorial(n - 1);
}
Console.WriteLine(Factorial(1576)); |
19,156,568 | ru | Python | logic_ops | intermediate | Напишите на Python функцию, определяющую, является ли число 145 простым. | def is_prime():
n = 145
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) | ### Instruction:
Напишите на Python функцию, определяющую, является ли число 145 простым.
### Response:
def is_prime():
n = 145
return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1)) |
2,751,857 | kk | Unity | var_decl | beginner | Unity тілінде 579908 мәнімен rate айнымалысын қалай жариялауға болады? | int rate = 579908; | ### Instruction:
Unity тілінде 579908 мәнімен rate айнымалысын қалай жариялауға болады?
### Response:
int rate = 579908; |
152,535 | en | C# | var_decl | beginner | How to declare a variable health with value 50022 in C#? | int health = 50022; | ### Instruction:
How to declare a variable health with value 50022 in C#?
### Response:
int health = 50022; |
1,975,617 | en | Java | var_decl | beginner | How to declare a variable total with value 243229 in Java? | int total = 243229; | ### Instruction:
How to declare a variable total with value 243229 in Java?
### Response:
int total = 243229; |
16,998,375 | en | Unity | logic_ops | intermediate | Write a function that determines if the number 483 is prime in Unity. | public bool IsPrime() {
int n = 483;
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 483 is prime in Unity.
### Response:
public bool IsPrime() {
int n = 483;
if (n <= 1) return false;
for (int i = 2; i * i <= n; i++) if (n % i == 0) return false;
return true;
} |
167,489 | kk | Java | factorial | advanced | Java тілінде 247 санының факториалын есептейтін функция жаз. | static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(247)); | ### Instruction:
Java тілінде 247 санының факториалын есептейтін функция жаз.
### Response:
static long factorial(int n) {
return n <= 1 ? 1 : n * factorial(n - 1);
}
System.out.println(factorial(247)); |
3,085,653 | kk | Java | var_decl | beginner | Java тілінде 191419 мәнімен count айнымалысын қалай жариялауға болады? | int count = 191419; | ### Instruction:
Java тілінде 191419 мәнімен count айнымалысын қалай жариялауға болады?
### Response:
int count = 191419; |
58,145,398 | 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();
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.