Tip 1: Practice at least 20 main Java questions.
Tip 2: Focus more on DSA.
Tip 1: Be concise but thorough.
Tip 2: Do not include false information.



1. The array consists of only 3 distinct integers 0, 1, 2.
2. The array is non-empty.
I first applied basic sort

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?