Software Engineers Interview Questions

419,495 software engineers interview questions shared by candidates

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.
avatar

Software Engineer

Interviewed at Two Sigma

3.9
Nov 27, 2013

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.

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.
avatar

Software Engineer In Test

Interviewed at Google

4.4
Jun 4, 2013

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 1621 - 1630 interview questions

Glassdoor has 419,495 interview questions and reports from Software engineers interviews. Prepare for your interview. Get hired. Love your job.