First value of linked list in test case in swift is wrong


The first value for the test case is 24 which makes (only) the first node value wrong, the rest of the values are correct in that test case are fine. I printed it to make sure. Please advise.


I have the same problem in Swift!


I’m seeing the same problem as with Swift. I think there must be a bug in their test case. I’m on a dead line so I just re-did my implementation in JavaScript and it worked just fine. Hopefully you can try another language that works. :slight_smile:


I’m running into the same issue - the test case is saying that 95-24 = -71 instead of +71. It’s incorrect.