Binary Search
Write a function that implements the binary search algorithm to find the index of an element in a sorted array.
Solve tasks and improve your programming skills
Write a function that implements the binary search algorithm to find the index of an element in a sorted array.
Create a `sum` function that adds numbers passed through a chain of calls and returns the result when called without arguments.
Write your own version of the built-in Promise.all() static method that works exactly the same.
Write your own version of the built-in Promise.allSettled() static method that works exactly the same.
Write a function that delays the execution of a passed function until a certain amount of time has passed without it being called again.
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.
Write a function that outputs numbers from 1 to 100, replacing multiples of 3 and 5 with special words
Write a function that groups an array of objects by a given key.
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).
Create a function that returns a counter with a customizable initial value
Write a function that returns the minimum and maximum values from an array
Write your own implementation of the Array.prototype.filter function without using the built-in method.
Create plus, minus, multiply, and divide methods for the Number type to enable chained arithmetic operations.
Write a function that returns a normalized string if it is a palindrome, otherwise — null
Write a function that extracts all GET parameters from a URL string and returns them as an object.
Write a function that takes an array of numbers and returns a string representing the sorted and grouped ranges of these numbers.
Create a simple React counter with increment and decrement buttons.
Create a function that reverses a given string
Create a function that returns the square of a given number