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.
Solution.cs(127,43): error CS0103: The name 'reverse' does not exist in the current context
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.
Reverse a linked list
You are viewing a single comment's thread. Return to all comments →
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.