HCLTech Interview Question

How would you insert values into your linked list and keep it sorted lowest to highest value?

Interview Answer

Anonymous

Jan 28, 2019

I wrote up a semi-messy insertion function. Interviewer wasn’t looking for any specific function, he just wanted to see that I could do it.