Tag: javascript
Design a HashSet without using any built-in hash table libraries. To be specific, your design should include these functions: add(value): Insert a value into the HashSet. contains(value) : Return …
Given an array of numbers arr. A sequence of numbers is called an arithmetic progression if the difference between any two consecutive elements is the same. Return true if …
What is On-Call? You know many Software Engineers at Big Companies need to do On-Call Duties to fix service related issues when they arise. Here is a utility to …
A number chain is created by continuously adding the square of the digits in a number to form a new number until it has been seen before. For example, …
Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows: 21 22 23 24 25 20 …