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.3 min read·May 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.3 min read·Mar 24, 2020--1--1
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…1 min read·Sep 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…2 min read·Aug 30, 2018--1--1
Ryan SyedHashing and Hash mapsSay you wanted to code up an implementation of a dictionary of English words, then how would you approach this problem3 min read·Aug 30, 2018----
Ryan SyedModular exponentiationSay you are required to code up: (a ^ b) % c2 min read·Aug 30, 2018----
Ryan SyedCalculating the factorial of number recursively (Time and Space analysis)The factorial of a number is defined as:3 min read·Aug 29, 2018--2--2
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.2 min read·Aug 29, 2018--2--2
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…1 min read·Aug 29, 2018----