The test was conducted in an office cabin with comfortable chairs provided by the TPO.
The interviewer was nice and started with an introduction followed by a few related questions.
1. Spiral Matrix
Easy
15m average time
80% success
0/40
Asked in companies
You are given a 2-D array 'MATRIX' of dimensions N x M, of integers. You need to return the spiral path of the matrix.
Example Of Spiral Path:
Preguntas de entrevista [1]
Pregunta 1
Ninja has given two numbers ‘X’ and ‘Y’. He has to find the LCM of these two numbers.
LCM (Least Common Multiple) of two numbers is the smallest number that can be divisible by both numbers.
As you are his big brother. So help Ninja in calculating the LCM.