## Binary to Decimal and Decimal to Binary in JavaScript

Decimal to Binary: /* Convert 13 to binary: Division by 2 Quotient Remainder Bit # ---------------------------------------- 13/2 6 1 0 6/2 3 0 1 3/2 1 1 2 1/2 0…

## Coding Challenge – Celebrity Problem.

Celebrity is the person to whom everyone know but he do not know any person. This problem one of the programing problem that asked in companies Problem Statement: You are…

## Write program to check Array is a permutation of numbers from 1 to N

Problem statement: You have an array of number like [1,3,4,6,8] we need to find that these numbers are permutation of number or not, considering all numbers in an array. example:…

## The nearest greatest element of an array from right in python

Stack implementation: class Stack: def pop(self): return self.items.pop() def __init__(self): self.items = [] def push(self, item): return self.items.append(item) def size(self): return len(self.items) def peek(self): return self.items[len(self.items)-1] def isEmpty(self): return len(self.items)…