employer cover photo
employer logo
employer logo

Samsung R&D Institute India - Noida

Is this your company?

Samsung R&D Institute India - Noida Interview Question

Arrange a linked list with some integer value, in such order so that adjacent nodes are swapped

Interview Answer

Anonymous

Feb 19, 2024

There are two things: Either only swap values or swap pointers but swapping next pointers is more reliable as there can be more than one value element.