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?
Software Intern Interview Questions
17,740 software intern interview questions shared by candidates
Implement a fast exponentiation function
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.
Given an array of 1..n numbers with 2 numbers missing in it find the missing ones.
what is the best way to find the duplicates within two intersecting linked list?
The technical question was: You're given an array of strings. Sort it so that the result returns an array of an array of strings sorted into its anagrams. (e.g. input: ["aa", "ad", "da"], output: [ ["aa"], ["ad", "da"] ]
Using only two pointers how can you tell if a linked-list cycles?
Fibonacci Numbers - Iteratively and Recursively
Find the center of graph(vertex, that is connected with every other vertex, but edges are directed to the center of graph).
Viewing 221 - 230 interview questions