Programming Tasks

Solve tasks and improve your programming skills

📝 Total tasks: 23 🔍 Found: 23

🔧 Filters and Search

Binary Search

Write a function that implements the binary search algorithm to find the index of an element in a sorted array.

🟨 JavaScript 🎚️ Medium 🕐 15 min

Sum Function with Currying Support

Create a `sum` function that adds numbers passed through a chain of calls and returns the result when called without arguments.

🟨 JavaScript 🎚️ Medium 🕐 15 min

Promise.all() Implementation

Write your own version of the built-in Promise.all() static method that works exactly the same.

🟨 JavaScript 🎚️ Hard 🕐 15 min

Promise.allSettled() Implementation

Write your own version of the built-in Promise.allSettled() static method that works exactly the same.

🟨 JavaScript 🎚️ Hard 🕐 15 min

Debounce Function

Write a function that delays the execution of a passed function until a certain amount of time has passed without it being called again.

🟨 JavaScript 🎚️ Hard 🕐 15 min

Depth-First Search (DFS)

Write a function that performs a Depth-First Search on a tree-like structure represented by objects and returns an array of node values in the order they were visited.

🟨 JavaScript 🎚️ Hard 🕐 20 min

Disappearing Button

Create a button that disappears when clicked.

🟨 React 🎚️ Easy 🕐 5 min

FizzBuzz Function

Write a function that outputs numbers from 1 to 100, replacing multiples of 3 and 5 with special words

🟨 JavaScript 🎚️ Easy 🕐 5 min

Group Objects by Key

Write a function that groups an array of objects by a given key.

🟨 JavaScript 🎚️ Medium 🕐 15 min

Find a Pair with a Given Sum

Implement a function that efficiently finds a pair of numbers in an array that sum up to a given value, with a linear time complexity of O(n).

🟨 JavaScript 🎚️ Medium 🕐 15 min

Counter Function: makeCounter

Create a function that returns a counter with a customizable initial value

🟨 JavaScript 🎚️ Easy 🕐 5 min

Maximum and minimum value

Write a function that returns the minimum and maximum values from an array

🟨 JavaScript 🎚️ Easy 🕐 10 min

Custom Implementation of the filter Function

Write your own implementation of the Array.prototype.filter function without using the built-in method.

🟨 JavaScript 🎚️ Medium 🕐 10 min

Extending the Number Type for Chained Operations

Create plus, minus, multiply, and divide methods for the Number type to enable chained arithmetic operations.

🟨 JavaScript 🎚️ Hard 🕐 15 min

Palindrome Function

Write a function that returns a normalized string if it is a palindrome, otherwise — null

🟨 JavaScript 🎚️ Medium 🕐 15 min

Parse URL Parameters

Write a function that extracts all GET parameters from a URL string and returns them as an object.

🟨 JavaScript 🎚️ Medium 🕐 15 min

Group numbers into ranges

Write a function that takes an array of numbers and returns a string representing the sorted and grouped ranges of these numbers.

🟨 JavaScript 🎚️ Medium 🕐 15 min

React Counter

Create a simple React counter with increment and decrement buttons.

🟨 React 🎚️ Easy 🕐 10 min

React Timer

Create a React timer with start and stop buttons.

🟨 React 🎚️ Medium 🕐 15 min

String Reversal Function: reverseString

Create a function that reverses a given string

🟨 JavaScript 🎚️ Easy 🕐 6 min

Square Function: square

Create a function that returns the square of a given number

🟨 JavaScript 🎚️ Easy 🕐 3 min

String Compression (Run-Length Encoding)

Write a function that compresses a string by replacing sequences of repeating characters with the character and its count.

🟨 JavaScript 🎚️ Medium 🕐 15 min

Summing Bonuses by Department

Write a function to calculate the total sum of bonuses for each department.

🟨 JavaScript 🎚️ Medium 🕐 10 min