PhonePe | Software Engineer | Pune, India | Jun 2022 [Offer]

Anonymous User
1888
Jun 29, 2022

YOE: 5

Maching Coding Round (problem statement shared 24 hrs earlier)

  • Cricket ScoreBoard Application (can be found in other leetcode posts)
    Write a cricket scorecard that will show the score for a team along with score of each player.
    You will be given the number of players in each team, the number of overs and their batting
    order as input. Then, we can input overs ball by ball with the runs scored on that ball (could be
    wide, no ball or a wicket as well).
    You are expected to print individual scores, number of balls faced, number of 4s, number of 6s
    for all the players from the batting side at the end of every over. You also need to print total
    score, total wickets. Essentially, you need to keep a track of all the players, strike changes (at
    the end of the over or after taking singles or 3s) and maintain their scores, also keep track of
    extra bowls that are being bowled (like wides or no balls). You also need to print which team
    won the match at the end

Problem Solving & DS

  1. Given an array, find all pairs with given sum. Find all triplets with given sum
  2. Given a binary tree, return true if there exists duplicate sub-tree
  3. Given a matrix, a position in the matrix and k, return sum of the the element at the position and all the neighboring elements within the distance k (neighbors can be horizontally, vertically or diagonally adjacent)

Design Round - HLD
Design Alert Monitor system
Problem statement:
Consider a microservice env where several systems use 1 central system for all their alert use cases: Design and implement a system which can capture events generated by any system or user triggered (for simplicity), and raise an alert according to alert configuration.
Type of configurations:

  • SIMPLE_COUNT (which consists of count)
  • BUCKETED_WINDOW (which consists of count and windowSizeInSecs, Eg: 10 events in 1 hour bucket, you can assume that the bucket starts at 00:00 hour of the day)
  • MOVING_WINDOW (which consists of count and windowSizeInSecs)

HM Round
about the projects, day to day work, behavioral little bit
HLD for design tiny url like application (ran out of time in between)

Was asked to take another design round to see if next level can be offered.

Design Round - HLD 2
Design stack overflow like system

Got an offer within 2 days. After lot of consideration decided to go with another competing offer.

Comments (1)