PhonePe | Frontend Dev - 1 | Bangalore | Sept. 2024 [Rejected]

Anonymous User
92
Oct 15, 2024

Experience: 1 YOE
Current Position: SDE1 - Frontend
Current Location: Bangalore
Date: Sep, 2024

Round 1 (Problem Solving) (60 Mins)

  • Print snapshots of train passing through a tunnel
    Suppose a train is passing though a tunnel, then you have to print the snapshots as follows:-

    _ _ _ _ _
    1 _ _ _ _
    2 1 _ _ _
    3 2 1 _ _
    4 3 2 1 _
    5 4 3 2 1
    6 5 4 3 2
    7 6 5 4 3
    8 7 6 5 4
    9 8 7 6 5
    10 9 8 7 6
    _ 10 9 8 7
    _ _ 10 9 8
    _ _ _ 10 9
    _ _ _ _ 10
    _ _ _ _ _
  • Trim video
    Given an array of intervals, and the length of the total video, trim as follows:-

    Intervals To Be Trimmed = [ [1,2], [4,8], [10, 15] ]
    videoLength = 100
    
    Result = videoLength - 2 - 4 - 5 = 89

Round 2 (React + JavaScript) (60 Mins)
Make a date range input which will accept input of the following types:-
1. 1. T+2...T+3
2. 10/12/2023...05/06/2024
3. T+4
4. 10/12/2023

Comments (0)