Tip 1 : practice regularly in kickstart rounds
Tip 2 : solve previous year problems
Tip 3 : coding ninjas also has google asked problems
Tip 1 : Do not fake any skills, projects or achievements. The interviewer gets to know about it by asking questions to you.
Tip 2 : Have at-least one good project on resume with all the details like technologies used and purpose.
Tip 3 : Don't write achievements which doesn't relate to your role. Write achievements which shows communication skills, leadership or teamwork.
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.
[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which operator is used for exponentiation in Python?