Tip 1 : Practice coding questions daily
Tip 2 : Do good projects
Tip 1 : Do not lie on resume
Tip 2 : Have good projects on resume
2 Coding Questions were asked. They were of medium level



For 'N' = 5 and 'K' = 2
Let the cost of different candies in the store be: [9 8 2 6 4]
For the minimum amount:
Ram can buy a candy with cost 2 and take candies with costs 9 and 8 for free.
Then, he can buy a candy with cost 4 and take candy with cost 7 for free.
Thus, the minimum cost will be 6 i.e. 2 + 4.
For the maximum amount:
Ram can buy a candy with cost 9 and take candies with costs 2 and 6 for free.
Then, he can buy candy at cost 8 and take candy at cost 4 for free.
Thus, the minimum cost will be 17 i.e. 9 + 8.
Thus, Minimum = 6 and Maximum = 17.



If there are any duplicates in the given array we will count only one of them in the consecutive sequence.
For the given 'ARR' [9,5,4,9,10,10,6].
Output = 3
The longest consecutive sequence is [4,5,6].
Can you solve this in O(N) time and O(N) space complexity?
This problem can be solved in O(n) time using an Efficient Solution. The idea is to use Hashing. We first insert all elements in a Set. Then check all the possible starts of consecutive subsequences.
It was like HR round
Q1 Tell me about the projects you have done?
Q2 Weaknesses and Strengths
Tip 1 : Be confident
Tip 2 : Communication skills should be good

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which of the following is not a Constraint in SQL?