1. Given two strings, determine whether they are anagrams. 2. Given a list of strings, return a list of lists of strings, which represents the list grouping strings by whether they are anagrams of one another.
Engineer Intern Interview Questions
24,105 engineer intern interview questions shared by candidates
Write an algorithm that does an in-order traversal of a tree recursively. Now, write the same algorithm iteratively.
Write a minPeak function for a stack (function that returns the minimum element in the stack).
From a tree, get a List of a List of Integers where each List of Integers corresponds to all ints at depth i from the root.
Implement java's pow function
Write a function that takes in an integer N and returns the sum for all numbers between 1 to N excluding multiples of 3 and 5.
Logic Puzzle : How would you measure exactly 9mins using a 4 minutes and a 7 minutes hourglass
Common interview problems like string processing. Remove repeated chars in a string.
Implement a fast exponentiation function
There is a museum organized as NxN room. Some rooms are locked and inaccessible. Other rooms are open and some rooms have guards. Guards can only move north, south, east and west, only through open rooms and only within the museum. For each room, find the shortest distance to a guard. What is the time complexity of your algorithm?
Viewing 211 - 220 interview questions