Ryan SyedPeak 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
Ryan SyedDynamic 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
Ryan SyedFalsy 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
Ryan SyedDynamic 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
Ryan SyedHashing 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
Ryan SyedCalculating the factorial of number recursively (Time and Space analysis)The factorial of a number is defined as:Aug 29, 20182Aug 29, 20182
Ryan SyedHow 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
Ryan SyedBinary 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