Showing posts with label SDET. Show all posts
Showing posts with label SDET. Show all posts

Flipkart SDET Interview Experience

I have recently appeared for Flipkart Interview for SDET-1 position
Sharing my Interview experience.

There were Total 5 rounds
Round 1 ) Telephonic Round
I was asked two questions
     Q1) Find Pythagoras triplet in array (Just logic required)
          Write Testcases for that in code.
     Q2) Implement LRU Cache ( give DStructure used and why)
     Q3) SQL queries to get id of manager, and some other to where we need to use inner queries.

Test Cases for Round Function

Write the test data for the function which takes input value as floating number and precision. It returns the output by rounding the value nearest to precision value.
e.g roundOff (3.4567,2) output will be 3.46.

Find next greater number with same set of digits

Given a number n, find the smallest number that has same set of digits as n and is greater than n. If x is the greatest possible number with its set of digits, then print “not possible”.


Rectangular chocolate bar Create at least one piece which consists of exactly nTiles tiles

Rectangular chocolate bar Create at least one piece which consists of exactly nTiles tiles.

You have a rectangular chocolate bar that consists of width x height square tiles. You can split it into two rectangular pieces by creating a single vertical or horizontal break along tile edges. For example, a 2x2 chocolate bar can be divided into two 2x1 pieces, but it cannot be divided into two pieces, where one of them is 1x1. You can repeat the split operation as many times as you want, each time splitting a single rectangular piece into two rectangular pieces.