Tip 1 : Must learn the basic DS and algos
Tip 2 : Prepare some projects which should be in presentable form
Tip 3 : Try to divert interview on your strong side.
Tip 1 : List down minimum 2 presentable projects
Tip 2 : Try to align your skills to the requirements of the company.
The coding round involved three medium-level questions that had to be completed within an hour. Despite the challenging time limit, I was able to solve two out of the three questions - one on binary search, which is my area of expertise, and another related to the DFS algorithm. Both of these questions were closely tied to my strengths, which gave me the confidence to tackle them with ease. Overall, I found the coding round to be a great test of my abilities and an exciting start to the interview process.



Input: 'n' = 3, 'k' = 2 and 'arr' = {1, 2, 3}
Output: 2
Explanation: The maximum possible minimum distance will be 2 when 2 cows are placed at positions {1, 3}. Here distance between cows is 2.
First tried with brute force. It gave TLE. Then tried to think about optimization. Tried with binary search. It worked.



If ‘N’ = 5 and ‘Party’ = { {1, 1}, {2, 2}, {1, 3}, {4, 4}, {3, 3}, }
You can attend a maximum of 4 different parties, you can attend the 1’st party on the 1’st day, 2’nd party on the 2’nd day, 3’rd party on the 3’rd day and 4’th party on the 4’th day. But it is impossible to attend the 5’th (last) party, as if we were to attend this party then we would have to attend it instead of the 3’rd party (3’rd day), there may be many other combinations possible, but no combination will result in a maximum number of different parties attend greater than four.
First tried with BFS. Some corner cases were neglected. Then tried with DFS. It worked.



Moving on to the second round of the hiring process, I found myself facing an online technical interview. In preparation for the interview, I always try to think about what I would do if I were tasked with taking the company to the top, and I answer accordingly. I was confident in my strengths, which included having many working projects under my belt - some of which were live - as well as making contributions to open source. However, I was also aware of my weaknesses, which included only having basic knowledge of DS and algorithms.
During the interview, the interviewer began with the classic question of "tell me about yourself", to which I provided a brief overview of my background and experience. I also took the opportunity to mention my projects, which caught the interviewer's attention and led to a discussion that lasted for about half an hour. Following that, the interviewer asked me about my knowledge of DS and algorithms, to which I responded honestly, explaining that while I had some basic knowledge, it was not my strong point. The interviewer then proceeded to ask me a question about Trie DS, which is an advanced data structure that I was unfamiliar with. Despite this setback, I managed to redeem myself by demonstrating my knowledge of multithreading concepts and answering some DBMS-related questions accurately. Towards the end of the interview, I asked the interviewer about the work at Samsung, and we had a fruitful discussion about the possible tasks that a candidate might be assigned. Overall, I found the technical interview to be a challenging but rewarding experience that helped me learn more about myself and my capabilities.
Explain multithreading.
Explain Trie Data structure
Tip 1 : Read about programming of threads in C++ and cores.
2 tables were given which share a key. Remove entries of a given value for that key.
Tip 1 : First inner join the data
Tip 2 : Delete from the inner joined data.



1. enqueue(x) : Adds an item x to rear of the queue
2. dequeue() : Removes an item from front of the queue
3. size() : Returns number of elements in the queue.
4. front() : Finds the front element.
Let the given queue be { 1, 2, 3, 4, 5 } and K be 3.
You need to reverse the first K integers of Queue which are 1, 2, and 3.
Thus, the final response will be { 3, 2, 1, 4, 5 }.
Although I was jit able to give answer to that, now I have learned about it. It is a DS used for storing strings over an alphabet. Used to implement Autocomplete functionality.
HR called me and informed me that this is your on call HR interview. To be frank, I wasn't prepared at all. she asked me to rate my proficiency in programming languages such as C, C++, and Java. Additionally, she asked me simple questions about my motivation for pursuing engineering (as both my parents are doctors). Despite my lack of preparation, the interviewer seemed satisfied, and the call concluded on a positive note.
Tell me about yourself
What are your hobbies?
Why should we hire you?
Rate your programming language skills.

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?