Tip 1: Focus on strengthening fundamentals instead of memorizing solutions.
Tip 2: Practice consistently and analyse mistakes to improve problem-solving skills.
Tip 1: Keep your resume concise and focused on strong fundamentals, projects, and problem-solving skills.
Tip 2: Highlight relevant technical skills and hands-on project experience rather than listing everything.



In the given linked list, there is a cycle, hence we return true.

Step 1: I first thought of a basic approach where I would store visited nodes and check if a node appears again while traversing the linked list.
Step 2: The interviewer asked me to optimize the solution and reduce extra space usage.
Step 3: I then applied Floyd’s Cycle Detection Algorithm using slow and fast pointers, where the slow pointer moves one step and the fast pointer moves two steps. If a cycle exists, both pointers eventually meet.
Step 4: I explained the time complexity as O(n) and space complexity as O(1), which satisfied the interviewer.



Step 1: I initially considered checking all possible substrings and verifying whether they contain unique characters, but this approach was inefficient.
Step 2: The interviewer asked me to optimize the solution.
Step 3: I used the sliding window technique with a data structure to track visited characters, expanding the window when characters are unique and shrinking it when repetition occurs.
Step 4: I explained how this approach works in linear time O(n), and the interviewer was satisfied with the optimized solution.
Timing: The second round was conducted during regular working hours and was not a late-night interview.
Environment: The environment was professional and calm, which helped in focusing on solving linked list and SQL problems effectively.
Significant Activity: This round focused on hands-on problem solving using linked list concepts along with SQL-based questions that tested both practical query writing and theoretical understanding.
Interviewer: The interviewer was knowledgeable, patient, and supportive. They encouraged a step-by-step explanation of the approach and asked follow-up questions to test depth of understanding.



Assume that the Indexing for the linked list always starts from 0.
If the position is greater than or equal to the length of the linked list, you should return the same linked list without any change.
The following images depict how the deletion has been performed.


Step 1: I first understood the problem and considered a simple approach of traversing the linked list until the Nth node and deleting it, but this required careful handling of edge cases.
Step 2: The interviewer asked me to optimize and handle cases like deleting the head node efficiently.
Step 3: I used a two-pointer approach where one pointer is moved N steps ahead, and then both pointers are moved together until the first pointer reaches the end.
Step 4: At that point, the second pointer points to the node just before the Nth node, which can be removed by updating the next pointer.
Step 5: I explained the time complexity as O(n) and space complexity as O(1), and discussed edge cases like N equal to the list length.
Given a table Employee with a column Salary, write a SQL query to find the second highest salary from the table. (Practice)
Tip 1: Focus on understanding core concepts and logic before jumping to code or queries.
Tip 2: Practice problem-solving regularly, especially linked list problems and SQL queries.
Tip 3: Analyse edge cases and explain your approach clearly while solving problems.

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