Go
medium
Functions
Function for calculating the arithmetic mean and the number of elements greater than the mean
Write a function `AverageAndAbove` that takes a slice of integers and returns the arithmetic mean (type float64) and the…
✅ 0 solved
📅 2026-05-11
Python
medium
Functions
Function for compressing a list based on a condition
Write a function `compress_list` that takes a list of integers and a condition function (predicate). The function should…
✅ 0 solved
📅 2026-05-11
PHP
medium
Classes
Class for working with fractions
Create a class Fraction for working with ordinary fractions. The class must have methods for adding, subtracting, multip…
✅ 0 solved
📅 2026-05-11
Java
medium
Interfaces
Interface for processing numbers: Filtering and Transformation
Implement the NumberFilter and NumberTransformer interfaces with a single method boolean filter(int number) and int tran…
✅ 0 solved
📅 2026-05-11
C#
easy
Classes
Class Book: book description
Create a class Book with fields Title (string), Author (string), and Year (integer). Implement the PrintInfo() method, w…
✅ 0 solved
📅 2026-05-11
JavaScript
easy
Loops
Sum of numbers from A to B
Write a program that takes two integers A and B and uses a loop to calculate the sum of all integers from A to B inclusi…
✅ 0 solved
📅 2026-05-11
TypeScript
easy
Interfaces
Filtering by interface
Write a function `filterByInterface` that takes an array of objects and an interface (as a string) and returns a new arr…
✅ 0 solved
📅 2026-05-11
Python
easy
Loops
Sum of cubes
Write a program that finds the sum of cubes of all integers from 1 to N inclusive. It is guaranteed that N is positive a…
✅ 0 solved
📅 2026-05-11
Go
easy
Loops
Sum of squares of numbers from 1 to N
Write a program that reads a positive integer N and outputs the sum of squares of all integers from 1 to N inclusive. Us…
✅ 0 solved
📅 2026-05-11
PHP
easy
Functions
Sum of even numbers in a range
Write a function sumEven($start, $end) that takes two integers start and end (inclusive) and returns the sum of all even…
✅ 0 solved
📅 2026-05-11
Java
easy
Classes
Class Rectangle: area and perimeter
Create a class Rectangle with fields width and height. Implement a method for calculating the area and a method for calc…
✅ 0 solved
📅 2026-05-11
Rust
easy
Functions
Function for checking prime numbers
Write a function is_prime that takes a non-negative integer n and returns true if it is prime, and false otherwise. A pr…
✅ 0 solved
📅 2026-05-11
Swift
easy
Functions
Function for calculating the arithmetic mean
Write a function `average` that takes an array of integers and returns the arithmetic mean of these numbers (type Double…
✅ 0 solved
📅 2026-05-11
Kotlin
easy
Functions
Last digit of the square of a number
Write a function `lastDigitOfSquare(n: Int): Int` that takes a non-negative integer `n` and returns the last digit of th…
✅ 0 solved
📅 2026-05-11
C++
easy
Pointers
Sum of array elements using pointers
Write a program that reads the size of an array and its elements, and then calculates the sum of all elements using poin…
✅ 0 solved
📅 2026-05-11
JavaScript
hard
Objects
Merging and restructuring nested objects with aggregation
Write a function that takes an array of objects with fields: id (number), parentId (number or null), name (string), and …
✅ 0 solved
📅 2026-05-11
Python
hard
Dictionaries
Reconstruction of department hierarchy based on subordination pairs
Given pairs of employee subordination in the format 'boss:subordinate'. It is necessary to restore the full hierarchical…
✅ 0 solved
📅 2026-05-11
Go
hard
Strings
Here is the translation of the programming task text from Russian to English:
String compression with recovery by repetition rule
Given a string consisting of Latin alphabet letters (a-z) and digits (0-9). The string is encoded according to the follo…
✅ 0 solved
📅 2026-05-11
C#
hard
Loops
Cyclic shift and search for duplicate substrings
Given a string S consisting of lowercase Latin letters. It is necessary to perform a cyclic left shift of the string by …
✅ 0 solved
📅 2026-05-11
Java
hard
Loops
Here is the translation of the programming task text from Russian to English:
Generating a sequence of numbers with a digital root
Write a program that generates a sequence of integers, starting from a given number N, and continues to add to the last …
✅ 0 solved
📅 2026-05-11