Tip 1 : Practise core topics such as DSA, oops well.
Tip 2 : Various sources such as Leetcode, GFG, and Hackerrank come in handy for practising.
Tip 3 : Practice with friends, present your solution in front of them, and do mock interviews.
Tip 4 : Do a project and learn about the tech used and the functionalities of your project.
Tip 1 : Mention your achievement and the projects done.
Tip 2 : If there's an experience to be added, mention the tech learned and the contribution done during the internships/job.
Tip 3 : Do not put false things on the resume which you can not back up during the interview.
The time of the test was 6 PM. It was a virtual test conducted on codility platform. There were 3 questions asked.



1. The array follows 0-based indexing, so you need to return the 0-based index of the element.
2. Note that the element at the equilibrium index won’t be considered for either left sum or right sum.
3. If there are multiple indices which satisfy the given condition, then return the left-most index i.e if there are indices i,j,k…. which are equilibrium indices, return the minimum among them
4. If no such index is present in the array, return -1.
I used 2 loops. The outer loop iterates through all the elements and the inner loop find out whether the current index picked by the outer loop is the equilibrium index or not. The time complexity of this solution was O(n^2).



n = 4, A = {2, 4, 5, 1}, B = {3, 3, 10, -4}
Now in this example, if we split the array at index 1 then the sum of all the subarrays is 2 + 4 = 6, 5 + 1 = 6, 3 + 3 = 6, 10 + (-4) = 6, and no other index satisfies this condition, hence the answer is 1.
The round was a technical interview with an SDE-2 who was working at Deloitte. It was an on-call interview on zoom.
The interviewer was warm and welcoming. We started off with our introduction and then some basics of CS and OS.
Around 25 minutes were spent in discussing my resume and cross-questioning on my projects.



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

I first started off by explaining the question, and cross-questioning if there are any constraints. Explained my approach.
Used slow and fast pointer approach. Walked him through my code. Also did a dry run on an example test case. Interviewer was satisfied.
Write a query to find 3 employees with the lowest salary in the database.
Tip 1 : Practise SQL queries if SQL is mentioned in your resume
Tip 2 : Write clean queries.



We cannot use the element at a given index twice.
Try to do this problem in O(N) time complexity.
1. First sorted the array and then iterated it.
2. interviewer asked me to optimise my solution
3. I used a sliding pointer and did it in 1 iteration.
4. He gave a constraint that the array is already sorted. and asked me to solve it in O(n).
5. I used sliding window to solve the question.
6. Did a dry run of the code and explained how the code also covers the edge cases.
The interviewer was SDE-2. He was friendly and gave hints wherever I got stuck. Started off with our introduction and then proceeded to check our basic C++ knowledge.
The time was around 6 PM.



F(n) = F(n - 1) + F(n - 2),
Where, F(1) = 1, F(2) = 1
"Indexing is start from 1"
Input: 6
Output: 8
Explanation: The number is ‘6’ so we have to find the “6th” Fibonacci number.
So by using the given formula of the Fibonacci series, we get the series:
[ 1, 1, 2, 3, 5, 8, 13, 21]
So the “6th” element is “8” hence we get the output.
Used a simple recursive approach to solve the problem. Was stuck but the interviewer helped me and gave me hints.



‘N’ = 3, ‘coins’ = {1, 2, 3}, ‘freq’ = {1, 1, 3}, ‘V’ = 6
For the given example, we can make six by using the following coins:
{1, 2, 3}
{3. 3}
Hence, the answer is 2.
1. I sorted the array and then started off from the back.
2. was not able to cover the edge cases.
3. I Used recursion and DP to optimise my approach.
4. He asked me to further bring down the TC. So eliminated the need to solve the overlapping subproblems by using an array to store the result of all the subproblems.
Design Instagram database.
Tip 1 : Ask questions from the interviewer.
Tip 2 : Start off by gathering all the functional requirements.
Tip 3 : Prepare a rough strategy on pen and paper.
Tip 4 : Keep discussing with the interviewer what comes to your mind, Keep him engaged.
Tip 4 : Establish correct relationship between tables when it comes to database design.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?