Tip 1 : Prepare basics of any language
Tip 2 : Practice at least 5 questions on every topic
Tip 1 : Resume should be updated.
Tip 2 : Should have 1 or 2 projects
I have set 2 variables largest and secondLargest .Then iterated list with for loop and compare ith element with largest and secondLargest and changed them accordingly. Finally returned secondLargest.
I took a dictionary and stored occurence of every elements from list. Then took a list as ans and iterated given list and checked if its occurence is 1 with dictionary if occurence is 1, then add that element in ans. Finally return ans list.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the result of 4 % 2?