Given two strings; boston and obtons how can you determine that they, and any other set of strings, are anagrams of each other. Try and make it as efficient as possible.
Engineer Software Interview Questions
512,339 engineer software interview questions shared by candidates
How would you find if a number if a power of 4?
The code test, they give you 4 test case, which is regular format. But there is a button for additional 20 test case. They are hidden the content of test case. I always failed two of them. and didn't know why. So I cannot improve my code.
Last of the three coding questions in the first interview: It was an inventory based question. Apple Sold in the farm 214 out of 250 on April 1 179 out of 250 on April 2 230 out of 250 on April 3 Orange Sold in the farm 0 out of 200 on April 1 180 out of 250 on April 2 200 out of 250 on April 3 Mango Sold in the farm 100 out of 100 on April 1 0 out of 200 on April 2 50 out of 250 on April 3 Output all the sold merchandise in a datewise inventory. (E.g. On April 1, Apple, Orange, and Grapes were sold in x,y, and z amount)
General whiteboard exercise and code challenge
If you have eight objects that all weigh the same except for one (which is heavier) and a two-sided scale, what is the minimal number of times you can use the scale to determine the odd item out?
on a grid find the minimal meeting point for different people.
LCA of 'k' given nodes in an arbitrary tree having N nodes?
Write a program print the outsides nodes in a binary tree.
Given a 2D rectangular matrix of boolean values, write a function which returns whether or not the matrix is the same when rotated 180 degrees. Additionally verify that every boolean true is accessible from every other boolean true if a traversal can be made to an adjacent cell in the matrix, excluding diagonal cells. That is , (x , y ) can access the set [ ( x + 1 , y ) , ( x - 1 , y ) , (x , y - 1 ) , (x , y + 1 ) ] For example, the matrix { { true , false } , { false , true } } should not pass this test.
Viewing 1891 - 1900 interview questions