Flipkart - OA Questions

Recently I gave a flipkart OA they asked 3 coding questions

  1. It was really easy just implement what was asked
  2. 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
  • array of digits digits.

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.
Comments (2)