Tip 1: Stay consistent with your preparation and practice coding regularly on online platforms.
Tip 2: Revise core concepts of Data Structures and OOPS thoroughly before interviews.
Tip 3: Don’t get discouraged by rejections — learn from each experience and keep improving.
Tip 1: Highlight your key projects and clearly mention your role and impact in each.
Tip 2: Keep your resume concise and ensure every point is backed by real experience or skill.
The assessment had a 1-day window to complete and was conducted on the HackerRank platform. The timing was flexible, allowing candidates to attempt it anytime within the given window. The environment was smooth and stable, with no technical issues during the test. The platform’s interface was user-friendly, and the problem statements were clearly described.
If a digit's position k is a prime number (2, 3, 5, 7, ...), the digit at that position must be one of {2, 3, 5, 7}.
If a digit's position k is not a prime number (1, 4, 6, 8, ...), the digit at that position must be one of {0, 1, 4, 6, 8, 9}.
The condition to satisfy is that when the special d-digit number is taken modulo e, the remainder must be exactly f.
Tip 1: Carefully handle leading zeros — they can invalidate early DP transitions.
Tip 2: Precompute primes efficiently (using Sieve of Eratosthenes) to optimize checks.
Tip 3: Think in terms of states and transitions for DP; every digit position adds a new state dimension.
The server at index i + sendTime[i], if this index is within the bounds [0, n-1].
The server at index i - sendTime[i], if this index is within the bounds [0, n-1].
Tip 1: Visualize the problem as a graph — it simplifies the logic drastically.
Tip 2: Use a queue for BFS and maintain a visited array to avoid re-processing nodes.
Tip 3: Always check boundary conditions (i + x and i - x must stay within range).
Tip 1: Sorting is crucial — adjacency only makes sense in sorted order.
Tip 2: Binary search over the answer space (not array values) — a powerful DSA concept.
Tip 3: Test with edge cases (like K=0 or all cubes equally spaced) to validate logic.
For the interview round, the interviewer was very polite and encouraging. He created a comfortable environment, gave hints when required, and focused more on understanding my thought process rather than just the final answer. Overall, the experience was positive and well-organized.



For 'arr' = [ 1, 2, 3, 1, 2]. you need to return 1.
Tip 1: Always store both frequency and first occurrence index to handle tie-breaking easily.
Tip 2: For such problems, focus on how to efficiently track additional information (like first index) while counting.
Tip 3: Dry run your approach on a small example to ensure tie conditions are correctly handled.



The order in which the groups and members of the groups are printed does not matter.
inputStr = {"eat","tea","tan","ate","nat","bat"}
Here {“tea”, “ate”,” eat”} and {“nat”, “tan”} are grouped as anagrams. Since there is no such string in “inputStr” which can be an anagram of “bat”, thus, “bat” will be the only member in its group.
Tip 1: Sorting each string is the simplest way to form a unique key for anagrams.
Tip 2: Alternatively, for optimization, you can use a character frequency vector as the key instead of sorting.
Tip 3: Make sure to understand the trade-off between readability and optimization — sorted-key approach is easier and efficient enough for interviews.
The second interview was a technical discussion round, conducted during normal working hours. The environment was calm and professional, and the interviewer made me feel very comfortable throughout the conversation. It was a purely conceptual round focusing on core CS fundamentals like OOPS, DBMS, and Operating Systems.
Explain the four primary HTTP methods — GET, POST, PUT, and DELETE — and their purposes in REST APIs. (Learn)
Tip 1: Remember the CRUD analogy — Create (POST), Read (GET), Update (PUT), Delete (DELETE).
Tip 2: Be clear about idempotency — GET and PUT are idempotent, while POST is not.
Tip 3: Give small examples (e.g., “GET /users” retrieves data, “POST /users” adds a new one) for better clarity.
Tip 1: Use a simple real-life example (like two processes holding different resources) to explain clearly.
Tip 2: Mention that paging and segmentation are techniques used to implement virtual memory.
Tip 3: Paging divides memory into fixed-size blocks, segmentation divides it into logical variable-size units.
Explain what indexing is, its types (primary, secondary, clustered, non-clustered), and how it improves query performance. (Learn)
Tip 1: Describe indexing as a “shortcut” that reduces the number of disk accesses for data retrieval.
Tip 2: Mention the trade-off — faster reads but slower writes due to index maintenance.
Tip 3: Give a quick SQL example like CREATE INDEX idx_name ON table(column); to show practical understanding.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?