We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Reverse a linked list
- Discussions
Reverse a linked list
Reverse a linked list
Sort by
recency
|
51 Discussions
|
Please Login in order to post a comment
C# solution, check in the comments how to change the code in the editor so the solution works.
C++
C# version has an initial compiler error:
Sloppy work there, HackerRank. You have to take the reverse() function out of the Result class so that it's at the same level as the Main() function and also make it internal. Then it compiles and you can solve the coding challenge
So your initial code should look like this in order to get rid of the compiler error.