Ryan Syed·May 9, 2020Peak 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.
Ryan Syed·Mar 24, 2020Dynamic 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.A response icon1A response icon1
Ryan Syed·Sep 21, 2019Falsy 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…
Ryan Syed·Aug 30, 2018Dynamic 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…A response icon1A response icon1
Ryan Syed·Aug 30, 2018Hashing and Hash mapsSay you wanted to code up an implementation of a dictionary of English words, then how would you approach this problem
Ryan Syed·Aug 30, 2018Fibonacci Iterative vs. RecursiveFibonacci series:A response icon7A response icon7
Ryan Syed·Aug 29, 2018Calculating the factorial of number recursively (Time and Space analysis)The factorial of a number is defined as:A response icon2A response icon2
Ryan Syed·Aug 29, 2018How 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.A response icon2A response icon2
Ryan Syed·Aug 29, 2018Binary 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…