Tip 1: Focus on consistency in DSA—solve problems daily and revise important patterns like DP, graphs, and trees regularly.
Tip 2: Don’t just code, practice explaining your approach clearly as communication plays a crucial role in interviews.
Tip 3: Build real-world projects and understand them deeply (APIs, database design, scalability) as interviewers often ask in-depth questions from your resume.
Tip 1: Ensure your resume highlights strong projects and internships with clear impact (use metrics like performance improvement or efficiency gains).
Tip 2: Be thorough with everything mentioned on your resume, as interviewers often ask deep questions from your projects and experience.
The online assessment was conducted on 27th September 2025 at around 6 PM in a proctored environment during the on-campus placement process at MNNIT Allahabad. The platform was smooth and the environment was well-structured. The round consisted of both MCQs and coding questions. The MCQs tested core CS fundamentals like OS, OOPS, DBMS, and basic data structures. After that, there were 3 coding questions with a higher level of difficulty, focusing on problem-solving ability and optimization. Overall, the round was moderately difficult and required strong DSA fundamentals along with good time management.

All the nodes are zero-based.
Input:
N=5, M=5, edges=[(0, 1), (1, 4), (2, 3), (2, 4), (3, 4)], src=1
Output: 1 0 2 2 1

Explanation: The path from vertices are:-
(1->0) = 1 -> 0, path length is 1.
(1->1) = 1 -> 1, path length is 0.
(1->2) = 1 -> 4 -> 2, the path length is 2.
(1->3) = 1 -> 4 -> 3, path length is 2.
(1->4) = 1 -> 4, the path length is 1.
Hence we return [1, 0, 2, 2, 1]
Step 1: I identified this as a shortest path problem in a graph.
Step 2: Since all edges had equal weight, I used BFS instead of Dijkstra.
Step 3: Created an adjacency list to represent the graph.
Step 4: Used a queue to traverse nodes level by level and stored distances.
Step 5: Updated distances for each neighbour if not visited.
Step 6: Returned the final distance array.


Input: ‘N’ = 1, ‘TASKS = [ [1, 20] ]
Output: 19
For the first task, the given range consists of 20 numbers present out of which ‘11’ is the only number that has repeated occurrences of ‘1’ in its decimal representation.
Step 1: Recognized it as a Digit DP problem due to constraints on digits.
Step 2: Converted the number into a string to process digit by digit.
Step 3: Used recursion with memoization (DP) with states like position, tight constraint, previous digit.
Step 4: At each step, tried all possible digits while maintaining constraints.
Step 5: Avoided choosing the same digit as the previous one.
Step 6: Stored intermediate results to optimize.


1. get(key) - Return the value of the key if the key exists in the cache, otherwise return -1.
2. put(key, value), Insert the value in the cache if the key is not already present or update the value of the given key if the key is already present. When the cache reaches its capacity, it should invalidate the least recently used item before inserting the new item.
Type 0: for get(key) operation.
Type 1: for put(key, value) operation.
1. The cache is initialized with a capacity (the maximum number of unique keys it can hold at a time).
2. Access to an item or key is defined as a get or a put operation on the key. The least recently used key is the one with the oldest access time.
Step 1: Understood that both operations need constant time.
Step 2: Used a combination of HashMap + Doubly Linked List.
Step 3: HashMap stores key → node reference.
Step 4: Doubly Linked List maintains order of usage (most recent at front).
Step 5: On get(): move node to front.
Step 6: On put(): insert/update node and move to front; if capacity exceeded, remove least recently used node (tail).
Which scheduling algorithm may cause starvation?
a) FCFS
b) Round Robin
c) Priority Scheduling
d) FIFO
Answer: c) Priority Scheduling
Tip 1: Understand core OS concepts like process synchronization (semaphores, mutex), scheduling, and memory management clearly.
Tip 2: Focus on concepts rather than rote learning—questions are often conceptual and scenario-based.
Tip 3: Revise standard topics like paging, deadlocks, and CPU scheduling before interviews.
It was around 9:30 AM in college, and it was a mix of technical and HR rounds.


Step 1: I first identified this as a classic DP problem involving grid traversal with constraints on movement (right and down).
Step 2: I started with a recursive approach where from each cell I tried moving right and down, but it resulted in overlapping subproblems.
Step 3: To optimize, I used Dynamic Programming and created a 2D DP array where dp[i][j] represents the number of ways to reach cell (i, j).
Step 4: Initialized the first row and first column with 1, since there is only one way to reach those cells.
Step 5: For the rest of the cells, I used the relation:
dp[i][j] = dp[i-1][j] + dp[i][j-1]
Step 6: Finally, the answer is stored in dp[m-1][n-1].
Step 7: I also mentioned space optimization using a 1D array to reduce space complexity.
There was a detailed discussion around my URL Shortener project, focusing on High-Level Design (HLD) and real-world scalability. The interviewer asked me to explain the system architecture, including how I generate unique short URLs, handle collisions, and design the database schema.
They also explored how the system would scale with increasing traffic, how redirection latency can be minimized, and how caching mechanisms can be used for optimization. Questions were asked around trade-offs in design decisions, such as choosing between different encoding techniques or database strategies.
Additionally, there was an HR discussion covering questions like:
Challenges faced during project development
Reasons for choosing this project
Key learnings and improvements
The discussion was interactive and focused on understanding both technical depth and clarity of thought.
Tip 1: Be thorough with your projects, especially system design aspects like scalability, database design, and API structure, as interviewers often ask in-depth questions from them.
Tip 2: Prepare to clearly explain your design decisions—why you chose a particular approach, tech stack, and how your system handles real-world challenges.
Tip 3: Practice common HR questions such as challenges faced, key learnings, and motivation behind choosing a project, and answer them in a structured and honest way.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Providing input/output examples in your prompt is a technique called: