Cognizant interview question

Q. Sorting a list and finding the 2nd highest value

Interview Answer

Anonymous

11 Oct 2022

With python i coded it with inbuilt sort. I was then asked to sort it without inbuilt function so I choose bubble sort and solved the question. They asked time complexity and other stuff