Peak element IntuitionYour goal is to find the peak element in a given collection of elements. In other words, you have to find a local maxima.May 9, 2020May 9, 2020
Dynamic Programming: Climb to the top of the staircase with minimum costFrankly speaking, I would rather take the elevator, except when an interviewer forces you to take the stairs.Mar 24, 20201Mar 24, 20201
Falsy club of JavaScript: Cheat SheetYou may know about the Avengers, the A-team, the Expendables, the Fantastic Five or the X-men. However, none of these mighty heroes can…Sep 21, 2019Sep 21, 2019
Dynamic ProgrammingNot an interview from the tech giants goes by without a question from Dynamic Programming. It is kind of a fancy name for memorization or…Aug 30, 20181Aug 30, 20181
Hashing and Hash mapsSay you wanted to code up an implementation of a dictionary of English words, then how would you approach this problemAug 30, 2018Aug 30, 2018
Calculating the factorial of number recursively (Time and Space analysis)The factorial of a number is defined as:Aug 29, 20182Aug 29, 20182
How to find the index of the next and previous element of a circular arrayIf you have an array that is circular, i.e. the next element of the last element is the first element.Aug 29, 20182Aug 29, 20182
Binary Search and finding count in a sorted arrayIf you had the find an element in a sorted array, the first thing that should pop in your mind is binary search. Now a simple algorithm for…Aug 29, 2018Aug 29, 2018