Given a 2d array of zeros, there may be a rectangle (block) of 1s. Return the top left coordinates of the rectangle. ie. [[0,0,1],[0,0,1],[0,0,1]] returns (2,2) The second question was how to solve it if you had to find many rectangles.
Software Interview Questions
551,107 software interview questions shared by candidates
Q: How can you tell if a Linked List is a Palindrome?
Write a function that finds all the different ways you can split up a word into a concatenation of two other words.
Why did you decide to take X club or join X org?
How would you translate input string into sequence of movements through on screen keyboard? What if you can loop through rows and columns?
Q how would you send a 2GB file from point A to B consider any problems that may arise
Given an array of 0's and 1's convert the 0's to 1's and 1's to 0's without changing the order and without using any conditions.
Given an integer, return all sequences of numbers that sum to it. (Example: 3 -> (1, 2), (2, 1), (1, 1, 1)).
Initialize a UIAlertView
Explain access modifier in Java
Viewing 1671 - 1680 interview questions