Get User Device Screen Information using React Js Hook. Hello Readers… In this article, we will learn how to create our own hook for react […]
Find and return the sum of missing and duplicate number – Easy Code
The input “nums” is supposed to be an array of unique integers ranging from 1 to nums.length. However there is a mistake: one of the […]
Write a function to take a positive integer and return the largest power of two less than or equal to this integer – JavaScript Program
Write a function to take a positive integer and return the largest power of two less than or equal to this integer – JavaScript Program. […]
Fibonacci Series In JavaScript – Easy Way
The Fibonacci sequence/series is a set of numbers that starts with a one (1) or a zero (0), followed by a one, and proceeds based on the rule that each number is equal to the sum of the preceding two numbers. If the Fibonacci sequence is denoted F (n), where n is the first term in the sequence, the following equation obtains for n = 0, where the first two terms are defined as 0 and 1 by convention:
Find out if you can reach the last tile – Program Code
There are a number of tiles on the floor, each numbered with a different non-negative integer. Treat this set of tiles as an array. You […]