Given an NXN array, filled with battleships that can only be horizontal or vertical, count how many battleships are there in the board. The battleships will always have at least one horizontal/vertical space between them. Solution should be with no extra memory, one pass, and without changing the board.
Student Engineer Interview Questions
37,288 student engineer interview questions shared by candidates
If I had any previous experience working with customer interaction
Given a linked list with its size unknown, return the element of index m from the end.
What's 20 in hex?
You have 9 rocks and scales. One of the rocks is slightly heavier than others. You can only use the scales twice. How do you know which of the rocks is the heaviest?
what is overloading and overriding
Suggest ways to correct an incorrectly taken digital photograph (with bad lighting, over or under exposure, etc) using a one-click intelligent program.
what the maximum number of char a you can insert to a string without being more than 3 consecutive of the char a .
Hello, can you cook a burger.
Do you like to work here
Viewing 1331 - 1340 interview questions