id
int64
language
string
prog_lang
string
category
string
difficulty
string
instruction
string
output
string
text
string
56,634,122
en
C#
string_ops
intermediate
Write a function that counts vowels in a text in C#.
public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
### Instruction: Write a function that counts vowels in a text in C#. ### Response: public int CountVowels(string s) { int c = 0; foreach(char ch in s.ToLower()) if("aeiou".Contains(ch)) c++; return c; }
63,272,318
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]
3,465,646
ru
Python
var_decl
beginner
Как объявить переменную level со значением 898517 в Python?
level = 898517
### Instruction: Как объявить переменную level со значением 898517 в Python? ### Response: level = 898517
72,913,193
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
1,388,759
en
Python
var_decl
beginner
How to declare a variable size with value 978540 in Python?
size = 978540
### Instruction: How to declare a variable size with value 978540 in Python? ### Response: size = 978540
61,504,475
en
Java
array_ops
intermediate
Write a function that reverses a list in Java.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in Java. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
4,287,916
kk
Unity
var_decl
beginner
Unity тілінде 149522 мәнімен weight айнымалысын қалай жариялауға болады?
int weight = 149522;
### Instruction: Unity тілінде 149522 мәнімен weight айнымалысын қалай жариялауға болады? ### Response: int weight = 149522;
27,780,437
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; }
51,854,756
ru
C#
array_ops
intermediate
Напишите на C# функцию, которая находит максимальное число в массиве.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Напишите на C# функцию, которая находит максимальное число в массиве. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
4,642,233
kk
C++
var_decl
beginner
C++ тілінде 983054 мәнімен rate айнымалысын қалай жариялауға болады?
int rate = 983054;
### Instruction: C++ тілінде 983054 мәнімен rate айнымалысын қалай жариялауға болады? ### Response: int rate = 983054;
79,646,498
kk
Python
string_ops
advanced
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
98,198,517
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(); }
82,740,081
ru
C++
logic_ops
advanced
Напишите на C++ функцию, определяющую, является ли число 467 простым.
public bool IsPrime() { int n = 467; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 467 простым. ### Response: public bool IsPrime() { int n = 467; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
69,304,366
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; }
31,846,784
en
C#
array_ops
intermediate
Write a function that reverses a list in C#.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in C#. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
453,807
en
C#
factorial
advanced
Write a function in C# that calculates the factorial of 7648.
static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(7648));
### Instruction: Write a function in C# that calculates the factorial of 7648. ### Response: static long Factorial(int n) { return n <= 1 ? 1 : n * Factorial(n - 1); } Console.WriteLine(Factorial(7648));
62,706,858
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; }
91,549,859
en
Java
logic_ops
intermediate
Write a function that determines if the number 449 is prime in Java.
public bool IsPrime() { int n = 449; 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 449 is prime in Java. ### Response: public bool IsPrime() { int n = 449; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
3,090,018
kk
C#
var_decl
beginner
C# тілінде 851465 мәнімен result айнымалысын қалай жариялауға болады?
int result = 851465;
### Instruction: C# тілінде 851465 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 851465;
49,691,208
en
JavaScript
array_ops
advanced
Write a function that filters only even numbers from a list in JavaScript.
const filterEven = arr => arr.filter(x => x % 2 === 0);
### Instruction: Write a function that filters only even numbers from a list in JavaScript. ### Response: const filterEven = arr => arr.filter(x => x % 2 === 0);
1,115,078
kk
Java
var_decl
beginner
Java тілінде 808994 мәнімен x айнымалысын қалай жариялауға болады?
int x = 808994;
### Instruction: Java тілінде 808994 мәнімен x айнымалысын қалай жариялауға болады? ### Response: int x = 808994;
17,818,171
ru
Unity
array_ops
advanced
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Unity функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
1,680,550
ru
Java
var_decl
beginner
Как объявить переменную value со значением 204757 в Java?
int value = 204757;
### Instruction: Как объявить переменную value со значением 204757 в Java? ### Response: int value = 204757;
75,394,114
kk
Java
logic_ops
advanced
Java тилінде 1951 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1951; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 1951 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1951; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
2,871,356
en
Java
var_decl
beginner
How to declare a variable index with value 513907 in Java?
int index = 513907;
### Instruction: How to declare a variable index with value 513907 in Java? ### Response: int index = 513907;
873,046
kk
C++
sum_n
intermediate
C++ тілінде 1-ден 2182-ге дейінгі сандардың қосындысын есептейтін функция жаз.
int sum_to_n(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } std::cout << sum_to_n(2182) << std::endl;
### Instruction: C++ тілінде 1-ден 2182-ге дейінгі сандардың қосындысын есептейтін функция жаз. ### Response: int sum_to_n(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } std::cout << sum_to_n(2182) << std::endl;
4,654,093
en
Unity
var_decl
beginner
How to declare a variable size with value 217380 in Unity?
int size = 217380;
### Instruction: How to declare a variable size with value 217380 in Unity? ### Response: int size = 217380;
432,211
ru
JavaScript
sum_n
intermediate
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 3910.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(3910));
### Instruction: Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 3910. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(3910));
53,299,066
ru
Python
string_ops
intermediate
Напишите на Python функцию, которая переводит строку в верхний регистр.
def to_upper(s): return s.upper()
### Instruction: Напишите на Python функцию, которая переводит строку в верхний регистр. ### Response: def to_upper(s): return s.upper()
31,927,795
en
Unity
array_ops
intermediate
Write a function that filters only even numbers from a list in Unity.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Write a function that filters only even numbers from a list in Unity. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
20,182,543
ru
C++
logic_ops
advanced
Напишите на C++ логику проверки, является ли год 2062 високосным.
public bool IsLeap() { int y = 2062; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Напишите на C++ логику проверки, является ли год 2062 високосным. ### Response: public bool IsLeap() { int y = 2062; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
287,489
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 2250.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(2250)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 2250. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(2250)); }
116,319
ru
Unity
sum_n
intermediate
Напиши функцию на Unity, которая считает сумму чисел от 1 до 8082.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(8082)); }
### Instruction: Напиши функцию на Unity, которая считает сумму чисел от 1 до 8082. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(8082)); }
81,994,462
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 72 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 72; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 72 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 72; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
26,630,488
en
Unity
array_ops
advanced
Write a function that reverses a list in Unity.
public void Reverse(int[] arr) { System.Array.Reverse(arr); }
### Instruction: Write a function that reverses a list in Unity. ### Response: public void Reverse(int[] arr) { System.Array.Reverse(arr); }
1,321,415
en
JavaScript
var_decl
beginner
How to declare a variable x with value 605172 in JavaScript?
let x = 605172;
### Instruction: How to declare a variable x with value 605172 in JavaScript? ### Response: let x = 605172;
65,378,269
ru
Python
string_ops
advanced
Напишите на Python функцию, которая проверяет, является ли строка палиндромом.
def is_palindrome(s): return s == s[::-1]
### Instruction: Напишите на Python функцию, которая проверяет, является ли строка палиндромом. ### Response: def is_palindrome(s): return s == s[::-1]
3,481,298
kk
C#
var_decl
beginner
C# тілінде 814955 мәнімен health айнымалысын қалай жариялауға болады?
int health = 814955;
### Instruction: C# тілінде 814955 мәнімен health айнымалысын қалай жариялауға болады? ### Response: int health = 814955;
48,149,770
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(); }
29,365,479
kk
Python
string_ops
advanced
Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
def to_upper(s): return s.upper()
### Instruction: Python тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: def to_upper(s): return s.upper()
82,262,756
ru
Unity
array_ops
intermediate
Напишите на Unity функцию, которая фильтрует только четные числа из списка.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Напишите на Unity функцию, которая фильтрует только четные числа из списка. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
11,915,910
kk
Java
logic_ops
intermediate
Java тилінде 2031 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2031; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Java тилінде 2031 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2031; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
73,089,814
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]
4,130,915
kk
Java
var_decl
beginner
Java тілінде 988033 мәнімен result айнымалысын қалай жариялауға болады?
int result = 988033;
### Instruction: Java тілінде 988033 мәнімен result айнымалысын қалай жариялауға болады? ### Response: int result = 988033;
442,490
kk
Python
factorial
advanced
Python тілінде 9394 санының факториалын есептейтін функция жаз.
def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(9394))
### Instruction: Python тілінде 9394 санының факториалын есептейтін функция жаз. ### Response: def factorial(n): return 1 if n <= 1 else n * factorial(n - 1) print(factorial(9394))
2,764,568
kk
Python
var_decl
beginner
Python тілінде 766763 мәнімен level айнымалысын қалай жариялауға болады?
level = 766763
### Instruction: Python тілінде 766763 мәнімен level айнымалысын қалай жариялауға болады? ### Response: level = 766763
19,881,156
kk
Python
array_ops
advanced
Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз.
def reverse_list(arr): return arr[::-1]
### Instruction: Python тилінде тізімді керісінше айналдыратын функцияны жазыңыз. ### Response: def reverse_list(arr): return arr[::-1]
1,128,268
ru
JavaScript
var_decl
beginner
Как объявить переменную timer со значением 452032 в JavaScript?
let timer = 452032;
### Instruction: Как объявить переменную timer со значением 452032 в JavaScript? ### Response: let timer = 452032;
616,932
en
Unity
sum_n
intermediate
Write a function in Unity that sums numbers from 1 to 9638.
int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(9638)); }
### Instruction: Write a function in Unity that sums numbers from 1 to 9638. ### Response: int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } void Start() { Debug.Log(SumToN(9638)); }
2,659,452
en
Unity
var_decl
beginner
How to declare a variable value with value 798368 in Unity?
int value = 798368;
### Instruction: How to declare a variable value with value 798368 in Unity? ### Response: int value = 798368;
13,503
en
Java
sum_n
intermediate
Write a function in Java that sums numbers from 1 to 921.
static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(921));
### Instruction: Write a function in Java that sums numbers from 1 to 921. ### Response: static int sumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } System.out.println(sumToN(921));
95,316,497
kk
JavaScript
string_ops
advanced
JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз.
const isPalindrome = s => s === s.split('').reverse().join('');
### Instruction: JavaScript тилінде жолдың палиндром екенін тексеретін функцияны жазыңыз. ### Response: const isPalindrome = s => s === s.split('').reverse().join('');
63,719,888
kk
Java
string_ops
advanced
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; }
3,471,252
kk
Java
var_decl
beginner
Java тілінде 200826 мәнімен size айнымалысын қалай жариялауға болады?
int size = 200826;
### Instruction: Java тілінде 200826 мәнімен size айнымалысын қалай жариялауға болады? ### Response: int size = 200826;
2,691,332
ru
Python
var_decl
beginner
Как объявить переменную y со значением 528029 в Python?
y = 528029
### Instruction: Как объявить переменную y со значением 528029 в Python? ### Response: y = 528029
90,738,603
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(); }
2,941,713
ru
Unity
var_decl
beginner
Как объявить переменную x со значением 181440 в Unity?
int x = 181440;
### Instruction: Как объявить переменную x со значением 181440 в Unity? ### Response: int x = 181440;
24,434,689
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; }
64,324,623
ru
Java
logic_ops
advanced
Напишите на Java функцию, определяющую, является ли число 458 простым.
public bool IsPrime() { int n = 458; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на Java функцию, определяющую, является ли число 458 простым. ### Response: public bool IsPrime() { int n = 458; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
4,187,221
en
C++
var_decl
beginner
How to declare a variable speed with value 563542 in C++?
int speed = 563542;
### Instruction: How to declare a variable speed with value 563542 in C++? ### Response: int speed = 563542;
860,176
ru
JavaScript
sum_n
intermediate
Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 9459.
function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(9459));
### Instruction: Напиши функцию на JavaScript, которая считает сумму чисел от 1 до 9459. ### Response: function sumToN(n) { let s = 0; for (let i = 1; i <= n; i++) s += i; return s; } console.log(sumToN(9459));
64,246,921
kk
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; }
32,549,494
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(); }
2,499,042
en
Unity
var_decl
beginner
How to declare a variable size with value 263675 in Unity?
int size = 263675;
### Instruction: How to declare a variable size with value 263675 in Unity? ### Response: int size = 263675;
62,259,182
ru
Python
array_ops
advanced
Напишите на Python функцию, которая находит максимальное число в массиве.
def get_max(arr): return max(arr)
### Instruction: Напишите на Python функцию, которая находит максимальное число в массиве. ### Response: def get_max(arr): return max(arr)
4,234,789
ru
Unity
var_decl
beginner
Как объявить переменную level со значением 518332 в Unity?
int level = 518332;
### Instruction: Как объявить переменную level со значением 518332 в Unity? ### Response: int level = 518332;
802,945
ru
Unity
var_decl
beginner
Как объявить переменную offset со значением 501532 в Unity?
int offset = 501532;
### Instruction: Как объявить переменную offset со значением 501532 в Unity? ### Response: int offset = 501532;
44,849,265
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(); }
29,002,282
kk
JavaScript
logic_ops
advanced
JavaScript тилінде 311 санының жай сан екенін анықтайтын функцияны жазыңыз.
function isPrime() { let n = 311; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
### Instruction: JavaScript тилінде 311 санының жай сан екенін анықтайтын функцияны жазыңыз. ### Response: function isPrime() { let n = 311; if (n <= 1) return false; for (let i = 2; i * i <= n; i++) if (n % i === 0) return false; return true; }
60,467,915
en
Unity
logic_ops
intermediate
Write logic to check if the year 1901 is a leap year in Unity.
public bool IsLeap() { int y = 1901; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Write logic to check if the year 1901 is a leap year in Unity. ### Response: public bool IsLeap() { int y = 1901; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
593,910
en
C++
var_decl
beginner
How to declare a variable weight with value 81977 in C++?
int weight = 81977;
### Instruction: How to declare a variable weight with value 81977 in C++? ### Response: int weight = 81977;
70,566,514
kk
Unity
logic_ops
advanced
Unity тилінде 1915 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 1915; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: Unity тилінде 1915 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 1915; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
95,411
kk
Java
factorial
advanced
Java тілінде 5671 санының факториалын есептейтін функция жаз.
static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(5671));
### Instruction: Java тілінде 5671 санының факториалын есептейтін функция жаз. ### Response: static long factorial(int n) { return n <= 1 ? 1 : n * factorial(n - 1); } System.out.println(factorial(5671));
58,082,442
kk
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; }
73,977,470
en
Python
logic_ops
intermediate
Write a function that determines if the number 143 is prime in Python.
def is_prime(): n = 143 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
### Instruction: Write a function that determines if the number 143 is prime in Python. ### Response: def is_prime(): n = 143 return n > 1 and all(n % i != 0 for i in range(2, int(n**0.5) + 1))
39,273,352
kk
C++
logic_ops
advanced
C++ тилінде 2090 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
public bool IsLeap() { int y = 2090; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
### Instruction: C++ тилінде 2090 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: public bool IsLeap() { int y = 2090; return y % 4 == 0 && (y % 100 != 0 || y % 400 == 0); }
1,173,692
kk
JavaScript
var_decl
beginner
JavaScript тілінде 592998 мәнімен offset айнымалысын қалай жариялауға болады?
let offset = 592998;
### Instruction: JavaScript тілінде 592998 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: let offset = 592998;
77,198,450
kk
Unity
array_ops
intermediate
Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз.
public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
### Instruction: Unity тилінде тізімнен тек жұп сандарды сүзетін функцияны жазыңыз. ### Response: public System.Collections.Generic.List<int> Filter(int[] arr) { var res = new System.Collections.Generic.List<int>(); foreach(int x in arr) if(x % 2 == 0) res.Add(x); return res; }
2,298,089
ru
Java
var_decl
beginner
Как объявить переменную index со значением 181295 в Java?
int index = 181295;
### Instruction: Как объявить переменную index со значением 181295 в Java? ### Response: int index = 181295;
4,004,583
kk
Python
var_decl
beginner
Python тілінде 887083 мәнімен offset айнымалысын қалай жариялауға болады?
offset = 887083
### Instruction: Python тілінде 887083 мәнімен offset айнымалысын қалай жариялауға болады? ### Response: offset = 887083
64,524,044
en
C++
array_ops
intermediate
Write a function that finds the maximum number in an array in C++.
public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
### Instruction: Write a function that finds the maximum number in an array in C++. ### Response: public int GetMax(int[] arr) { int max = arr[0]; foreach(int x in arr) if(x > max) max = x; return max; }
23,574,157
en
JavaScript
string_ops
intermediate
Write a function that counts vowels in a text in JavaScript.
const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
### Instruction: Write a function that counts vowels in a text in JavaScript. ### Response: const countVowels = s => (s.match(/[aeiou]/gi) || []).length;
59,294,747
en
C++
logic_ops
intermediate
Write a function that determines if the number 164 is prime in C++.
public bool IsPrime() { int n = 164; 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 164 is prime in C++. ### Response: public bool IsPrime() { int n = 164; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
20,384,203
kk
JavaScript
logic_ops
intermediate
JavaScript тилінде 2033 жылы кібісе жыл екенін тексеретін логиканы жазыңыз.
function isLeap() { let y = 2033; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
### Instruction: JavaScript тилінде 2033 жылы кібісе жыл екенін тексеретін логиканы жазыңыз. ### Response: function isLeap() { let y = 2033; return y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0); }
24,789,505
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); }
60,248,162
ru
C++
logic_ops
intermediate
Напишите на C++ функцию, определяющую, является ли число 19 простым.
public bool IsPrime() { int n = 19; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C++ функцию, определяющую, является ли число 19 простым. ### Response: public bool IsPrime() { int n = 19; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
98,378,323
en
JavaScript
array_ops
advanced
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);
56,322,345
ru
C#
logic_ops
intermediate
Напишите на C# функцию, определяющую, является ли число 373 простым.
public bool IsPrime() { int n = 373; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
### Instruction: Напишите на C# функцию, определяющую, является ли число 373 простым. ### Response: public bool IsPrime() { int n = 373; if (n <= 1) return false; for (int i = 2; i * i <= n; i++) if (n % i == 0) return false; return true; }
2,348,533
ru
Unity
var_decl
beginner
Как объявить переменную health со значением 558028 в Unity?
int health = 558028;
### Instruction: Как объявить переменную health со значением 558028 в Unity? ### Response: int health = 558028;
96,760,953
ru
Python
array_ops
intermediate
Напишите на Python функцию, которая разворачивает список задом наперед.
def reverse_list(arr): return arr[::-1]
### Instruction: Напишите на Python функцию, которая разворачивает список задом наперед. ### Response: def reverse_list(arr): return arr[::-1]
464,230
en
C#
sum_n
intermediate
Write a function in C# that sums numbers from 1 to 488.
static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(488));
### Instruction: Write a function in C# that sums numbers from 1 to 488. ### Response: static int SumToN(int n) { int s = 0; for (int i = 1; i <= n; i++) s += i; return s; } Console.WriteLine(SumToN(488));
22,716,116
kk
C#
string_ops
intermediate
C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз.
public string ToUpper(string s) { return s.ToUpper(); }
### Instruction: C# тилінде жолды жоғарғы регистрге ауыстыратын функцияны жазыңыз. ### Response: public string ToUpper(string s) { return s.ToUpper(); }
975,152
kk
Java
var_decl
beginner
Java тілінде 735822 мәнімен y айнымалысын қалай жариялауға болады?
int y = 735822;
### Instruction: Java тілінде 735822 мәнімен y айнымалысын қалай жариялауға болады? ### Response: int y = 735822;
44,380,478
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; }
25,826,973
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]
92,158,815
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; }
3,823,441
en
Python
var_decl
beginner
How to declare a variable x with value 233375 in Python?
x = 233375
### Instruction: How to declare a variable x with value 233375 in Python? ### Response: x = 233375
400,865
kk
JavaScript
factorial
advanced
JavaScript тілінде 8761 санының факториалын есептейтін функция жаз.
function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(8761));
### Instruction: JavaScript тілінде 8761 санының факториалын есептейтін функция жаз. ### Response: function factorial(n) { return n <= 1 ? 1 : n * factorial(n - 1); } console.log(factorial(8761));
4,343,687
kk
Python
var_decl
beginner
Python тілінде 50678 мәнімен timer айнымалысын қалай жариялауға болады?
timer = 50678
### Instruction: Python тілінде 50678 мәнімен timer айнымалысын қалай жариялауға болады? ### Response: timer = 50678
49,374
kk
Python
func_def
intermediate
Python тілінде timer қабылдап, оны екі еселейтін getResult функциясын жаз.
def getResult(timer): return timer * 2
### Instruction: Python тілінде timer қабылдап, оны екі еселейтін getResult функциясын жаз. ### Response: def getResult(timer): return timer * 2