Round 1: It was Hackerrank test for 2 hours. Both questions were matrix based
-
- Given a matrix consisting of only zeroes and ones.Cell containing 1 is available for connection and cell with 0 is not. The task is to find how many number of unique connections that can be made with adjacent cells (on all 8 sides).
e.g.,100101111001The answer for above matrix is 8
Hint: Calculate all possible connections using BFS and the answer is half of it.In the above case, 16 such connections can be made with adjacent 1s and 8 is the result. - Given a matrix of integers, task is to find out number of positional elements. A positional element is one which is either minimum or maximum in a row or in a column. If there are multiple minimum or maximum elements in a row or a column, return -1.
e.g.,134529876The result for above matrix would be 7.
Hint: Maintain, row wise and column wise minimum and maximum in separate vectors and with a second traversal of matrix, we can find out number of positional elements.
- Given a matrix consisting of only zeroes and ones.Cell containing 1 is available for connection and cell with 0 is not. The task is to find how many number of unique connections that can be made with adjacent cells (on all 8 sides).
Recommended Posts:
- Goldman Sachs Interview Experience| Set 14 (1+ Years Experienced)
- Goldman Sachs Interview Experience | Set 16 (For 2+ Years Experienced)
- Goldman Sachs Interview Experience | Set 20 (For Experienced)
- Goldman Sachs Interview Experience | Set 33 (For Experienced)
- Goldman Sachs Interview Experience | Set 35 (For Experienced)
- Goldman Sachs Interview Experience | Set 36 (For Experienced)
- Goldman Sachs Interview Experience | Set 37 (For Experienced)
- Goldman Sachs Interview Experience | Set 46 (Experienced)
- Goldman Sachs Interview Experience | Set 42 (Less than 1 year experienced)
- Goldman Sachs Interview Experience | For 1.5+ Years Experienced
- Goldman Sachs Interview Experience (For 2 years experienced)
- Goldman Sachs Interview Experience | September 2019 | Experienced
- Goldman Sachs Interview Experience (2 years Experienced)
- Goldman Sachs Interview Experience | (1yr+ experienced) 2019
- Goldman Sachs Interview Experience ( 4 yrs Experienced )
- Goldman Sachs Interview Experience (Software Engineer - Experienced)
- Goldman Sachs Interview Experience (2+ years Experienced)
- Goldman Sachs Interview Experience | For 3 years experienced
- Goldman Sachs Interview Experience | Off-Campus (1+ yr experienced)
- Goldman Sachs Interview Experience | 1 year experienced
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


