Tip 1 : Study DSA deeply, you can ignore AVL tree and tries.
Tip 2 : Solve a few questions daily from leetcode and pick a sheet don't pick questions randomly.
Tip 3 : Prepare for a real-life example for each OOPs concept.
Tip 1 : Don't mention anything that you don't know.
Tip 2 : Add at least 2 projects and be prepared for questions on those projects.



If a string has 'x' repeated 5 times, replace this "xxxxx" with "x5".
The string is compressed only when the repeated character count is more than 1.
The consecutive count of every character in the input string is less than or equal to 9.



1. You can return the list of values in any order. For example, if a valid triplet is {1, 2, -3}, then {2, -3, 1}, {-3, 2, 1} etc is also valid triplet. Also, the ordering of different triplets can be random i.e if there are more than one valid triplets, you can return them in any order.
2. The elements in the array need not be distinct.
3. If no such triplet is present in the array, then return an empty list, and the output printed for such a test case will be "-1".
After looking at this problem I figured if I can get two sum then this will be very easy. So I applied two pointer approach and fixed one element and did 2 sum for remaining. As the ans is unique it returned the array of three sum elements.
It was technical interview round where I was questioned about DSA, DBMS, my resume and some problems related to DSA. Interviewer was very friendly he made me comfortable first then started with the questions.



'S' = "{}()".
There is always an opening brace before a closing brace i.e. '{' before '}', '(' before ').
So the 'S' is Balanced.
I used stack to solve this problem. I pushed into stack whenever I got opening brackets, if I got closing brackets I compared stack top. If top was not matching the required condition I returned false.
What are joins? Explain different type of joins.
Write a SQL query to find employee with second maximum salary.
Design a database for e-commerce website.
What will you do if there is conflict with you and your manager?
What are your strengths and weaknesses?
Questions on resume like- why this is your hobby? Tell me something about yourself which is not mentioned on resume.
Asked what core values are at sapient.

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?