Tip 1: You should have good knowledge of DSA.
Tip 2: You should have basic knowledge of the things mentioned in your resume.
Tip 3: You should have a basic understanding of OOPS, Operating Systems, and SQL.
Tip 4: Do at least 2 projects and have clarity on them.
Tip 1: Have clear information on your resume.
Tip 2: Keep it short and informative.
This was an IT Programming Test where questions covered Verbal Ability, Advanced Quantitative Aptitude, and Advanced Coding.
Given a pointer to the head node of a linked list, the task is to reverse the linked list. We need to reverse the list by changing the links between nodes.
The idea is to use three pointers curr, prev, and next to keep track of nodes to update reverse links.
1. Initialize Pointers:
Declare three pointers: previous, current, and next.
prev: Points to the previous node initially set to NULL (since it will be the end of the reversed list).
current: Points to the current node starting from the head of the original list.
next: Used to temporarily store the next node in the original list before we change the current node's next pointer.
2. Iterate Through the List:
Traverse through the linked list using the current pointer.
In each iteration:
Store the next node (next = current->next) because we are going to change current->next.
Reverse the link: current->next = prev. This step changes the direction of the pointer.
Move prev and current pointers one step forward: prev = current and current = next.
3. Completion of Reversal:
After the loop finishes, prev will be pointing to the new head of the reversed list (which was the last node of the
original list).
There were four people on the panel. They started with a brief introduction about me and then asked questions on problem-solving, React.js, project ideas, and the problems these projects would solve.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you write a single-line comment in C++?