Using a nested for() loop is inefficient, can you do it more efficient than the native String.indexOf() method? Without nesting for loops or recursion.
Software Engineer Front End Interview Questions
852 software engineer front end interview questions shared by candidates
Serialize and deserialize a binary tree.
What is a closure?
Given a singly linked list (a list which can only be traversed in one direction), find the item that is located at 'k' items from the end. So if the list is a, b, c, d and k is 2 then the answer is 'c'. The solution should not search the list twice.
How do you make sure you can reduce network calls as much as possible and overall enhance the performance of your app?
String manipulation. Write a jquery method in pure JS. Pragmatic UI.
Given two strings of words create an algorithm to return all the words that occur in only one of the two strings. A word can be in one string many times and still pass as long as it's not in the other.
What is the average look-up time for a good hash-function
Create a basic implementation of a streams API. The user should be able to push values to a stream, and subscribe to values that are pushed to that stream. For example, const z = new Stream(); z.subscribe((value) => console.log(value)); z.subscribe((value) => console.log(value * 2)); z.subscribe((value) => console.log(value * 3)); z.push(2); Should return 2 4 6
The technical question they asked was to reverse a string without using a temporary char buffer (i.e. reversing the string "in place").
Viewing 11 - 20 interview questions