Tip 1: Practice more questions based on linked lists and arrays.
Tip 2: Do at least one industry-level project.
Tip 1: Tailor for the Role – Customize your resume for each application by highlighting relevant skills, experiences, and keywords from the job description.
Tip 2: Keep It Concise and Clear – Use bullet points, action verbs, and clean formatting to make your resume easy to scan. Ideally, keep it to one page for freshers.



A singly linked list is a type of linked list that is unidirectional, that is, it can be traversed in only one direction from head to the last node (tail).
If the number of nodes in the list or in the last group is less than 'K', just reverse the remaining nodes.
Linked list: 5 6 7 8 9 10 11 12
K: 3
Output: 7 6 5 8 9 10 12 11
We reverse the first 'K' (3) nodes and then skip the next 'K'(3) nodes. Now, since the number of nodes remaining in the list (2) is less than 'K', we just reverse the remaining nodes (11 and 12).
You need to reverse the first 'K' nodes and then skip the 'K' nodes and so on. 5 6 7 10 9 8 11 12 is not the correct answer for the given linked list.
Step 1: I first checked if there were at least k nodes remaining in the list. If not, I returned the current head, as no reversal was needed for the remaining nodes.
Step 2: If there were k nodes, I reversed the first k nodes using the standard iterative reversal logic (three-pointer approach: prev, curr, next).
Step 3: After reversing the first k nodes, I recursively called the function for the next part of the list and linked the current reversed group to the result of the next reversed segment.
Step 4: I returned the new head of the reversed segment, which is the k-th node after reversal.
Problem Name: Most Active Members
Table Definitions:
Members
| Column | Type |
|---|---|
| member_id | INT |
| name | VARCHAR |
| join_date | DATE |
Borrow
| Column | Type |
|---|---|
| borrow_id | INT |
| member_id | INT |
| book_id | INT |
| borrow_date | DATE |
Task:
Write a query to find the names of the top 3 members who borrowed the most books in the year 2024.
The output should be sorted by the number of books borrowed in descending order, and by name in ascending order in case of ties.
If there are fewer than 3 members, return all of them.
Only consider borrowings made between '2024-01-01' and '2024-12-31'.


The idea behind Kadane's Algorithm is to traverse the array from left to right and, for each element, find the maximum sum among all subarrays ending at that element. The final result will be the maximum of all these values.
To calculate the maximum sum of the subarray ending at the current element (let’s call it maxEnding), we can use the maximum sum ending at the previous element. For any element, we have two choices:
Choice 1: Extend the maximum sum subarray ending at the previous element by adding the current element to it. If the maximum subarray sum ending at the previous index is positive, it’s better to extend the subarray.
Choice 2: Start a new subarray beginning from the current element. If the maximum subarray sum ending at the previous index is negative, it’s better to start a new subarray from the current element.

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