Recently I gave a flipkart OA they asked 3 coding questions
- It was really easy just implement what was asked
- Given points in cartesian 2D plane and we have to check if we can make a square or not and if we can make then what is the
minimum length square can be formed.(Similar to Leetcode 939 Minimum Area Rectangle)
Given :
- a natural number
n and there is a round track with n stops
curr and final stops 1≤curr,final≤n
- array of digits
digits. 0≤digits[i]≤9
Target:
- Minimum number of moves to reach
final from curr
Moves:
- Moving forward or backward count as 1 move
- We can teleport from current stop to any stop that can be formed using given digits in
k+1 moves where k is the number of digits in teleported stop.