Tata 1mg SDE-1 (1-2 YOE) Interview 2022 | Matrix Diagonal Traversal | Dutch Flag
Question · Posted Sep 2022
Round 1 : Questions on resume & project in-depth. Post that, the interviewer went on to ask two medium-level DSA questions. Click here to Practice Submit Problem to OJ Problem 1 - Matrix Diagonal Traversal Given a 2D Matrix of integers, print all its element if you start traverse diagonally starting from (0,0)th element. Sample Input (same as image) 3 3 1 2 3 4 5 6 7 8 9 Sample Output 1 2 4 7 5 3 6 8 ...
The full answer & interview discussion are available to premium members.
Log in Create a free account