Education: B.Tech in Computer Science and Engineering from a Tier-1 College
YOE: 0 (Campus Placement)
There was a DSA round followed by 3 interviews:
3 Questions:
Question 1 (50 points)
You are given an integer array of size n, where the i-th element represents the capacity of the i-th room.
You are also given an array of queries. Initially, you are at the first element. There are 3 types of queries:
Return the final array after performing all operations.
Constraints: n ≤ 10^5 , q≤ 10^5
Topics Involved: Arrays, Doubly Linked List
Question 2 (50 points)
Minimum Time for K Connected Components – a slightly modified version.
We had to find the minimum time when all components become connected.
Constraints: Graph size ≤ 10^5
Topics Involved: Binary Search, DSU
Question 3 (100 points)
You are given a string of length 10^4 representing a large numberand another number X(in the range [1,100]), and Q queries (Q ≤ 10^6). Each query contains a number K (0,99). For each query, determine whether there exists a subsequence such that the number formed by the subsequence modulo X equals K.
Topics Involved: Digit DP
Performance: Solved all 3/3; shortlisted for the next round.
You are given a tree-like structure where each node represents a category, and its children represent subcategories, for example:
Fashion
|
|-------Mens
| |--->Shirts
| |--->Round Neck
| |--->V Neck
|
|-------Womens
|--Dresses
|--JeansConstraints:
There will be Q queries (Q ≤ 10^5) of 2 types:
IngestOrder(Date, Quantity, Category) – An order with quantity Q of category C placed on date D.Query(Category, StartDate, EndDate) – Returns the number of orders of that category within the date range [StartDate, EndDate].Only Pseudocode was expected
Topics Involved: DFS, Segment Tree/Fenwick Tree (BIT)
Performance: Solved in ~25 minutes.
Problem: Design a carpooling system.
Details and sample solution: Link here
Performance: Slightly over-engineered a few classes and couldn’t run the code due to time constraints, but the interviewer appreciated the approach and thought process. Cleared this round.
Performance: Cleared this round as well.