Array.filter() polyfill — clean JavaScript implementation with working example code for frontend engineering interviews. Read more →
Category: interview
-
Binary search
Binary search — clean JavaScript solution and code implementation for software engineering interview preparation. Read more →
-
Subsets with no duplicates
Subsets with no duplicates — clean JavaScript solution and code implementation for software engineering interview preparation. Read more →
-
Looping through Arrays and Objects in Javascript
Looping through Arrays and Objects in Javascript — clean JavaScript solution and code implementation for software engineering interview preparation. Read more →
-
Servers that communicate
Given a 2D array that has 1s & 0s where 1 denotes a server, return the count of the number of servers that communicate with other servers. A server can communicate with another server only if they are… Read more →
-
Basic Calculator
Implement a function calculate() that takes a string as an input. The string can contain +, -, (, ), 0-9 and spaces. The function should return the result like a basic calculator. Demo Read more →
-
Bloomfilter in Js
We use multiple hash functions below to evenly space out the keys in the Bloom filter. Demo Read more →
-
Network Delay Time
Calculate and return the network delay time if all "n" nodes in a network can be reached can be reached. If they cannot be reached return -1. Input times -> [source, target, weight (time)]n -> Number of nodesk… Read more →
-
Longest Consecutive Sequence
Find the longest consecutive sequence in a given array of length "n" in 0(n) time. For example, lets consider the following input: [1000, 1001, 1002, 1003, 2001, 2, 3] The longest consecutive sequence in this case would be… Read more →