employer cover photo
employer logo

VMware interview question

merge two unsorted lists while deleting duplicates Sort a linked list with bubble sort algorithm

Interview Answer

Anonymous

Aug 22, 2017

when i said that i can bring an array out of a linkedlist in a recursive call & then sort it ,The interviewer said sorting on an array will be costlier than doing it bubble sort on the linkedlist ! Kudos !

1