Runtime Complexity: O(n*log(n)) Python Javascript Demo Read more →
Category: interview
-
Coin Change II
The following solution uses "Bottom up dynamic programming" approach. Demo Read more →
-
Reorganize String (Js)
Reorganize String (Js) — clean JavaScript solution and code implementation for software engineering interview preparation. Read more →
-
Decode String (Js)
Given an encoded string 3[abc]2[bc] the decoded output should be of the form "abcabcabcbcbc". Assume that all the brackets are well formed and that all strings are encoded correctly. Demo Read more →
-
Meeting Rooms II
Given a list of meetings, that may or may not overlap, calculate the total number of rooms that are required to conduct all the meetings according to the schedule. Runtime Complexity: O(nlog(n)) Space Complexity: O(n) Javascript (ES6) Demo Read more →
-
Word Break
Given a non-empty string "word" can it be broken into a list of non-empty words contained in a dictionary ? The words can be repeated. JavaScript (ES6) Demo Read more →
-
Throttling function calls with a Queue in Javascript (ES6)
The following ES6 Javascript code, helps to throttle function calls without discarding them. It uses a queue to keep track of all the function calls. We can use the reset method to reset the queue and the setTimeout()… Read more →
-
Longest Palindromic Substring
Longest Palindromic Substring — clean JavaScript solution and code implementation for software engineering interview preparation. Read more →
-
Smooth Animation
The following is a method to perform smooth animation of an element from left to right given the duration and distance. In this example, the element is being animated from left to right at 60 fps for a… Read more →