Tip 1: Practice at least 200–250 coding questions focusing on DSA and SQL queries.
Tip 2: Revise OOPS and DBMS concepts thoroughly with real-life examples for better understanding.
Tip 3: Focus on writing clean and optimized code in your preferred language.
Tip 1: Include relevant academic or personal projects that highlight your technical skills.
Tip 2: Keep your resume honest and avoid adding skills you’re not confident about.
The round was conducted during normal working hours, and the online platform was smooth and user-friendly without any technical issues. The focus was entirely on coding and multiple-choice questions, with no additional activities or group tasks. Since this was an online test, there was no interviewer present for this round.



Initial Approach: I first thought of using a temporary variable to swap the two numbers, as this is the most straightforward method. However, the interviewer specifically asked me to find a solution that does not use extra memory or variables.
Optimized Approach: I then applied arithmetic operations to swap the numbers without any extra variable. The approach used was:
a = a + b
b = a - b
a = a - b
Here, the first step sums the two numbers, the second step assigns the original value of a to b, and the third step assigns the original value of b to a. This method successfully swaps the numbers using only arithmetic operations.



Input: 'n' = 5, 'arr' = [1, 2, 3, 4, 5]
Output: 5
Explanation: From the array {1, 2, 3, 4, 5}, the largest element is 5.
Initial Approach: I started by considering a brute-force method, comparing each element with every other element in the array. However, this approach would take unnecessary extra iterations.
Optimized Approach: I implemented a single-pass iteration approach. I initialized a variable max with the first element of the array and then iterated through the remaining elements, updating max whenever I found a larger value. The logic can be summarized as:
max = arr[0]
for each element in arr:
if element > max:
max = element
return max
This approach ensures the highest number is found efficiently in O(n) time complexity.



You don’t need to print anything. Just implement the given function.
Input: n = 6, arr = [5, 7, 8, 1, 6, 3]
Output: [3, 6, 1, 8, 7, 5]
Explanation: After reversing the array, it looks like this [3, 6, 1, 8, 7, 5].
Initial Approach: I first thought of creating a new array to store reversed elements, but the interviewer asked for an in-place solution without extra memory.
Optimized Approach: I used a two-pointer technique. I placed one pointer at the start and another at the end of the array, then swapped the elements at these positions and moved the pointers toward each other until they met.
python:
start = 0
end = n-1
while start < end:
arr[start], arr[end] = arr[end], arr[start]
start += 1
end -= 1
Given two tables, Employees and Departments, write a SQL query to find the names of all employees along with the name of the department they belong to. Include employees even if they are not assigned to any department
Tables:
Employees(EmpID, EmpName, DeptID)
Departments(DeptID, DeptName)
Understand the requirement: I needed to fetch all employees with their department names, including employees who might not belong to any department. This indicates an OUTER JOIN is required.
Write the query:
SELECT e.EmpName, d.DeptName
FROM Employees e
LEFT JOIN Departments d
ON e.DeptID = d.DeptID;
Here, LEFT JOIN ensures all employees are included even if DeptID in Employees does not match any in Departments.
The interviewer was friendly, encouraging me to express my experiences and thoughts clearly. The round primarily focused on understanding my personality, communication skills, career goals, and alignment with Capgemini’s culture. There were no coding or technical tasks in this round.
Tip 1: Prepare a concise and confident introduction highlighting your academics, skills, and achievements. Keep it professional but personable.
Tip 2: Be honest and specific about strengths and weaknesses, and always mention steps you are taking to improve weaknesses.
Tip 3: For situational questions, use the STAR method (Situation, Task, Action, Result) to clearly explain challenges and outcomes.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which SQL clause is used to specify the conditions in a query?