id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
1,024,310
kk
C#
var_decl
beginner
C# тілінде 796843 мәнімен result айнымалысын қалай жариялауға болады?
int result = 796843;
### Instruction: C# тілінде 796843 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 796843;
1,566,363
en
C#
var_decl
beginner
How to declare a variable total with value 652879 in C#?
int total = 652879;
### Instruction: How to declare a variable total with value 652879 in C#? ### Response: int total = 652879;
75,013,330
en
JavaScript
logic_ops
intermediate
Write a function that determines if the number 314 is prime in JavaScript.
function isPrime() { let n = 314; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: Write a function that determines if the number 314 is prime in JavaScript. ### Response: function isPrime() { let n = 314; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
30,674,767
kk
C++
array_ops
advanced
C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: C++ тилінде жиымдағы ең үлкен санды табатын функцияны жазыңыз. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
79,941,451
kk
Unity
string_ops
advanced
Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Unity тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
66,658,687
en
Unity
logic_ops
advanced
Write a function that determines if the number 257 is prime in Unity.
public bool IsPrime() { int n = 257; 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 257 is prime in Unity. ### Response: public bool IsPrime() { int n = 257; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
68,525,574
ru
C#
string_ops
advanced
Напишите на 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; }
4,112,298
en
C#
var_decl
beginner
How to declare a variable count with value 500627 in C#?
int count = 500627;
### Instruction: How to declare a variable count with value 500627 in C#? ### Response: int count = 500627;
1,329,837
kk
C#
var_decl
beginner
C# тілінде 353916 мәнімен size айнымалысын қалай жариялауға болады?
int size = 353916;
### Instruction: C# тілінде 353916 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 353916;
874,347
en
Python
sum_n
intermediate
Write a function in Python that sums numbers from 1 to 5703.
def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(5703))
### Instruction: Write a function in Python that sums numbers from 1 to 5703. ### Response: def sum_to_n(n): return sum(range(1, n + 1)) print(sum_to_n(5703))
57,664,510
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; }
26,837,861
en
C#
logic_ops
advanced
Write a function that determines if the number 15 is prime in C#.
public bool IsPrime() { int n = 15; 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 15 is prime in C#. ### Response: public bool IsPrime() { int n = 15; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
451,378
en
Python
var_decl
beginner
How to declare a variable buffer with value 515917 in Python?
buffer = 515917
### Instruction: How to declare a variable buffer with value 515917 in Python? ### Response: buffer = 515917
84,259,497
kk
JavaScript
array_ops
intermediate
JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: JavaScript тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
72,460,583
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; }
72,944,782
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); }
34,771,475
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); }
42,829,388
ru
JavaScript
string_ops
advanced
Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: Напишите на JavaScript функцию, которая проверяет, является ли строка палиндромом. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
761,534
en
C#
sum_n
intermediate
Write a function in C# that sums numbers from 1 to 1838.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(1838));
### Instruction: Write a function in C# that sums numbers from 1 to 1838. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(1838));
49,047,947
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; }
2,911,903
kk
Unity
var_decl
beginner
Unity тілінде 964505 мәнімен speed айнымалысын қалай жариялауға болады?
int speed = 964505;
### Instruction: Unity тілінде 964505 мәнімен speed айнымалысын қалай жариялауға болады? ### Response: int speed = 964505;
4,890,901
ru
Python
var_decl
beginner
Как объявить переменную index со значением 256130 в Python?
index = 256130
### Instruction: Как объявить переменную index со значением 256130 в Python? ### Response: index = 256130
98,985,831
kk
C++
logic_ops
advanced
C++ тилінде 1924 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1924; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 1924 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1924; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
31,561,219
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; }
32,449,551
en
C#
logic_ops
intermediate
Write a function that determines if the number 240 is prime in C#.
public bool IsPrime() { int n = 240; 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 240 is prime in C#. ### Response: public bool IsPrime() { int n = 240; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
1,878,320
en
C#
var_decl
beginner
How to declare a variable amount with value 748490 in C#?
int amount = 748490;
### Instruction: How to declare a variable amount with value 748490 in C#? ### Response: int amount = 748490;
1,278,267
en
C++
var_decl
beginner
How to declare a variable size with value 629726 in C++?
int size = 629726;
### Instruction: How to declare a variable size with value 629726 in C++? ### Response: int size = 629726;
76,928,586
en
JavaScript
logic_ops
intermediate
Write logic to check if the year 2055 is a leap year in JavaScript.
function isLeap() { let y = 2055; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Write logic to check if the year 2055 is a leap year in JavaScript. ### Response: function isLeap() { let y = 2055; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
22,204,484
kk
C++
string_ops
intermediate
C++ тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: C++ тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
2,954,818
ru
C#
var_decl
beginner
Как объявить переменную speed со значением 102511 в C#?
int speed = 102511;
### Instruction: Как объявить переменную speed со значением 102511 в C#? ### Response: int speed = 102511;
1,463,876
en
Java
var_decl
beginner
How to declare a variable y with value 783066 in Java?
int y = 783066;
### Instruction: How to declare a variable y with value 783066 in Java? ### Response: int y = 783066;
91,746,482
en
Unity
logic_ops
advanced
Write logic to check if the year 1934 is a leap year in Unity.
public bool IsLeap() { int y = 1934; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1934 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 1934; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
51,211,826
kk
Java
logic_ops
advanced
Java тилінде 1916 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1916; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1916 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1916; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
3,795,529
ru
JavaScript
var_decl
beginner
Как объявить переменную x со значением 385106 в JavaScript?
let x = 385106;
### Instruction: Как объявить переменную x со значением 385106 в JavaScript? ### Response: let x = 385106;
3,159,391
en
Java
var_decl
beginner
How to declare a variable result with value 938107 in Java?
int result = 938107;
### Instruction: How to declare a variable result with value 938107 in Java? ### Response: int result = 938107;
31,232,793
ru
Python
string_ops
advanced
Напишите на 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аеёиоуыэюя')
40,242,050
kk
C++
string_ops
advanced
C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: C++ тилінде мәтіндегі дауысты әріптердің санын есептейтін функцияны жазыңыз. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
81,084
en
Python
var_decl
beginner
How to declare a variable timer with value 982027 in Python?
timer = 982027
### Instruction: How to declare a variable timer with value 982027 in Python? ### Response: timer = 982027
87,899,565
en
Java
string_ops
advanced
Write a function that counts vowels in a text in Java.
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 Java. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
38,113,455
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); }
73,959,652
en
Java
string_ops
advanced
Write a function that checks if a string is a palindrome in Java.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in Java. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
92,038,574
kk
Java
array_ops
intermediate
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; }
1,607,418
en
C#
var_decl
beginner
How to declare a variable timer with value 50323 in C#?
int timer = 50323;
### Instruction: How to declare a variable timer with value 50323 in C#? ### Response: int timer = 50323;
67,301,584
kk
Java
logic_ops
intermediate
Java тилінде 415 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 415; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Java тилінде 415 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 415; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
959,562
kk
JavaScript
var_decl
beginner
JavaScript тілінде 638259 мәнімен count айнымалысын қалай жариялауға болады?
let count = 638259;
### Instruction: JavaScript тілінде 638259 мәнімен count айнымалысын қалай жариялауға болады? ### Response: let count = 638259;
71,573,768
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; }
838,771
en
Python
var_decl
beginner
How to declare a variable rate with value 365085 in Python?
rate = 365085
### Instruction: How to declare a variable rate with value 365085 in Python? ### Response: rate = 365085
37,583
kk
Unity
func_def
intermediate
Unity тілінде weight қабылдап, оны екі еселейтін resolve функциясын жаз.
int resolve(int weight) { return weight * 2; }
### Instruction: Unity тілінде weight қабылдап, оны екі еселейтін resolve функциясын жаз. ### Response: int resolve(int weight) { return weight * 2; }
2,191,148
kk
C++
var_decl
beginner
C++ тілінде 613432 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 613432;
### Instruction: C++ тілінде 613432 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 613432;
25,381,713
kk
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; }
1,206,364
kk
Unity
var_decl
beginner
Unity тілінде 584817 мәнімен amount айнымалысын қалай жариялауға болады?
int amount = 584817;
### Instruction: Unity тілінде 584817 мәнімен amount айнымалысын қалай жариялауға болады? ### Response: int amount = 584817;
35,029,897
kk
Unity
logic_ops
advanced
Unity тилінде 254 санының жай сан екенін анықтайтын функцияны жазыңыз.
public bool IsPrime() { int n = 254; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Unity тилінде 254 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: public bool IsPrime() { int n = 254; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
99,342,372
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; }
3,194,066
ru
Python
var_decl
beginner
Как объявить переменную offset со значением 636797 в Python?
offset = 636797
### Instruction: Как объявить переменную offset со значением 636797 в Python? ### Response: offset = 636797
78,132,065
en
Python
string_ops
advanced
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()
4,117,277
ru
C#
var_decl
beginner
Как объявить переменную buffer со значением 614130 в C#?
int buffer = 614130;
### Instruction: Как объявить переменную buffer со значением 614130 в C#? ### Response: int buffer = 614130;
20,121,806
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); }
14,595,238
en
Python
array_ops
advanced
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]
71,865,612
ru
Python
array_ops
advanced
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
91,525,505
kk
Python
string_ops
advanced
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
3,983,926
kk
Java
var_decl
beginner
Java тілінде 337750 мәнімен y айнымалысын қалай жариялауға болады?
int y = 337750;
### Instruction: Java тілінде 337750 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 337750;
47,968,772
en
Python
array_ops
intermediate
Write a function that finds the maximum number in an array in Python.
def get_max(arr): return max(arr)
### Instruction: Write a function that finds the maximum number in an array in Python. ### Response: def get_max(arr): return max(arr)
41,707
kk
JavaScript
sum_n
intermediate
JavaScript тілінде 1-ден 7736-ге дейінгі сандардың қосындысын есептейтін функция жаз.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(7736));
### Instruction: JavaScript тілінде 1-ден 7736-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(7736));
12,148,148
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; }
93,074,307
en
C#
logic_ops
advanced
Write logic to check if the year 1904 is a leap year in C#.
public bool IsLeap() { int y = 1904; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1904 is a leap year in C#. ### Response: public bool IsLeap() { int y = 1904; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
4,015,418
kk
JavaScript
var_decl
beginner
JavaScript тілінде 195471 мәнімен index айнымалысын қалай жариялауға болады?
let index = 195471;
### Instruction: JavaScript тілінде 195471 мәнімен index айнымалысын қалай жариялауға болады? ### Response: let index = 195471;
86,581,351
en
Java
string_ops
advanced
Write a function that checks if a string is a palindrome in Java.
public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
### Instruction: Write a function that checks if a string is a palindrome in Java. ### Response: public bool IsPalindrome(string s) { int min = 0, max = s.Length - 1; while (min < max) { if (s[min] != s[max]) return false; min++; max--; } return true; }
4,829,362
en
C++
var_decl
beginner
How to declare a variable result with value 911012 in C++?
int result = 911012;
### Instruction: How to declare a variable result with value 911012 in C++? ### Response: int result = 911012;
497,896
en
C++
var_decl
beginner
How to declare a variable score with value 615095 in C++?
int score = 615095;
### Instruction: How to declare a variable score with value 615095 in C++? ### Response: int score = 615095;
3,471,657
ru
Unity
var_decl
beginner
Как объявить переменную level со значением 120579 в Unity?
int level = 120579;
### Instruction: Как объявить переменную level со значением 120579 в Unity? ### Response: int level = 120579;
168,769
ru
Java
var_decl
beginner
Как объявить переменную size со значением 595484 в Java?
int size = 595484;
### Instruction: Как объявить переменную size со значением 595484 в Java? ### Response: int size = 595484;
2,893,833
en
Java
var_decl
beginner
How to declare a variable result with value 565420 in Java?
int result = 565420;
### Instruction: How to declare a variable result with value 565420 in Java? ### Response: int result = 565420;
44,471,169
ru
C#
string_ops
intermediate
Напишите на C# функцию, которая считает количество гласных букв в тексте.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Напишите на C# функцию, которая считает количество гласных букв в тексте. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
97,696,411
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; }
80,061,126
ru
Java
logic_ops
advanced
Напишите на 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; }
74,445,567
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; }
34,259,545
ru
Unity
logic_ops
intermediate
Напишите на Unity логику проверки, является ли год 1964 високосным.
public bool IsLeap() { int y = 1964; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на Unity логику проверки, является ли год 1964 високосным. ### Response: public bool IsLeap() { int y = 1964; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
43,620,295
ru
JavaScript
logic_ops
intermediate
Напишите на JavaScript логику проверки, является ли год 2082 високосным.
function isLeap() { let y = 2082; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: Напишите на JavaScript логику проверки, является ли год 2082 високосным. ### Response: function isLeap() { let y = 2082; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
22,377,490
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(); }
73,162,744
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; }
28,655,420
en
C#
logic_ops
advanced
Write a function that determines if the number 393 is prime in C#.
public bool IsPrime() { int n = 393; 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 393 is prime in C#. ### Response: public bool IsPrime() { int n = 393; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
13,095,359
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; }
940,333
ru
Java
var_decl
beginner
Как объявить переменную timer со значением 112269 в Java?
int timer = 112269;
### Instruction: Как объявить переменную timer со значением 112269 в Java? ### Response: int timer = 112269;
4,262,520
en
Unity
var_decl
beginner
How to declare a variable timer with value 931014 in Unity?
int timer = 931014;
### Instruction: How to declare a variable timer with value 931014 in Unity? ### Response: int timer = 931014;
89,529,041
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;
942,193
kk
Java
sum_n
intermediate
Java тілінде 1-ден 2934-ге дейінгі сандардың қосындысын есептейтін функция жаз.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(2934));
### Instruction: Java тілінде 1-ден 2934-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(2934));
4,106,793
ru
Unity
var_decl
beginner
Как объявить переменную limit со значением 759284 в Unity?
int limit = 759284;
### Instruction: Как объявить переменную limit со значением 759284 в Unity? ### Response: int limit = 759284;
82,540,326
en
C++
array_ops
intermediate
Write a function that filters only even numbers from a list in C++.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Write a function that filters only even numbers from a list in C++. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
2,072,436
en
Unity
var_decl
beginner
How to declare a variable buffer with value 199156 in Unity?
int buffer = 199156;
### Instruction: How to declare a variable buffer with value 199156 in Unity? ### Response: int buffer = 199156;
477,664
ru
Java
sum_n
intermediate
Напиши функцию на Java, которая считает сумму чисел от 1 до 8910.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(8910));
### Instruction: Напиши функцию на Java, которая считает сумму чисел от 1 до 8910. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(8910));
76,160,739
ru
JavaScript
array_ops
advanced
Напишите на JavaScript функцию, которая разворачивает список задом наперед.
const reverseArr = arr => arr.reverse();
### Instruction: Напишите на JavaScript функцию, которая разворачивает список задом наперед. ### Response: const reverseArr = arr => arr.reverse();
3,443,505
kk
C++
var_decl
beginner
C++ тілінде 154883 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 154883;
### Instruction: C++ тілінде 154883 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 154883;
1,963,755
kk
Unity
var_decl
beginner
Unity тілінде 356410 мәнімен index айнымалысын қалай жариялауға болады?
int index = 356410;
### Instruction: Unity тілінде 356410 мәнімен index айнымалысын қалай жариялауға болады? ### Response: int index = 356410;
2,804,552
en
Unity
var_decl
beginner
How to declare a variable rate with value 394167 in Unity?
int rate = 394167;
### Instruction: How to declare a variable rate with value 394167 in Unity? ### Response: int rate = 394167;
3,519,195
ru
JavaScript
var_decl
beginner
Как объявить переменную total со значением 958178 в JavaScript?
let total = 958178;
### Instruction: Как объявить переменную total со значением 958178 в JavaScript? ### Response: let total = 958178;
35,993,315
en
Java
string_ops
intermediate
Write a function that counts vowels in a text in Java.
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 Java. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
4,583,820
ru
Python
var_decl
beginner
Как объявить переменную offset со значением 82571 в Python?
offset = 82571
### Instruction: Как объявить переменную offset со значением 82571 в Python? ### Response: offset = 82571
4,139,506
ru
Java
var_decl
beginner
Как объявить переменную data со значением 340932 в Java?
int data = 340932;
### Instruction: Как объявить переменную data со значением 340932 в Java? ### Response: int data = 340932;
3,711,539
ru
Python
var_decl
beginner
Как объявить переменную value со значением 497535 в Python?
value = 497535
### Instruction: Как объявить переменную value со значением 497535 в Python? ### Response: value = 497535
1,061,872
kk
JavaScript
var_decl
beginner
JavaScript тілінде 938105 мәнімен score айнымалысын қалай жариялауға болады?
let score = 938105;
### Instruction: JavaScript тілінде 938105 мәнімен score айнымалысын қалай жариялауға болады? ### Response: let score = 938105;