Tip 1: Maintain a good CGPA throughout college.
Tip 2: Build projects and work on DSA in parallel.
Tip 3: Focus on computer fundamentals such as OS, DBMS, CN, and OOPS.
Tip 1: Mention only those skills and projects that you have worked on and have sufficient knowledge to explain to the interviewer.
Tip 2: Mentioning your experience is mandatory. If you are a fresher, include your college events and club experiences, such as being a member of the programming club.
It was at 11:00 AM, and there were two interviewers: one SDE-1 and another SDE-2.



Input: ARR[] = {3, 5, 10, 15, 17, 12, 9}, K = 4
Output: 62
Then disjoint pairs with the absolute difference less than K are
(3, 5), (10, 12), (15, 17)
So maximum sum which we can get is 3 + 5 + 12 + 10 + 15 + 17 = 62
Note that an alternate way to form disjoint pairs is, (3, 5), (9, 12), (15, 17), but this pairing produces a lesser sum.
I used the fact that each array is already sorted, so the minimum element of an array is at index 0 and the maximum element is at the last index. My initial approach was to find the global minimum and global maximum across all arrays to maximize the absolute sum, but I quickly noticed an edge case where both values could come from the same array, which violates the condition of choosing elements from two different arrays. To handle this, I tracked not only the minimum and maximum along with their array indices, but also the second minimum and second maximum. If the global minimum and maximum came from different arrays, I used them directly; otherwise, I compared the absolute sums of the global minimum with the second maximum and the global maximum with the second minimum, and returned the larger valid result.
It was at 11:00 AM, and there were two interviewers: one SDE-1 and another SDE-2.
Find the employee with the second-largest salary from the given Employee table.
I was asked to find the second-highest salary from an employee database, so I first clarified whether duplicate salaries should be considered. To handle this correctly, I used a subquery to filter distinct salary values and exclude the highest salary, and then selected the maximum from the remaining results. This approach ensured accuracy even when multiple employees shared the same salary and avoided relying on brute-force logic.
You are given an orders table and a customers table. You need to display the details of customers whose order cost is above 500.
In this problem, there were two tables: customers and orders, and the requirement was to display customer details for orders with a cost above 500. I approached this by joining the customers table with the orders table using the customer ID as the common key, and then applying a filter condition on the order cost. This ensured that only customers with qualifying orders were selected while still returning complete and relevant customer information.
It was at 11:00 AM, and there was one HR interviewer.
I was asked very basic questions about behaviour and cultural fit.
Tip 1: Be honest.
Tip 2: Be confident.
Tip 3: Read some standard HR questions beforehand.

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?