Skip to main content
DevHives

Remove the Loop From a Linked List

Loading editor…

3 examples run when you press Run. Submit checks every hidden test too.

Case 1
Input:
[[5,8,2,7],1]
Expected:
[5,8,2,7]
Case 2
Input:
[[4],0]
Expected:
[4]
Case 3
Input:
[[1,6,9],-1]
Expected:
[1,6,9]
Ready

Run checks your code against the 3 examples. Submit checks it against all 153 tests and needs a free account. You can also try ideas in the free JavaScript or Python compiler.