You are viewing a single comment's thread. Return to all comments →
For C# csharp you cannot compile as given.
class Result { public static SinglyLinkedListNode insertNodeAtPosition(...) { ... } }
You need to modify the above code by removing class Result{} block and remove the public modifer on the method.
You should be left with...
static SinglyLinkedListNode insertNodeAtPosition(...) { ... }
This should allow your code to compile.
Seems like cookies are disabled on this browser, please enable them to open this website
Insert a node at a specific position in a linked list
You are viewing a single comment's thread. Return to all comments →
For C# csharp you cannot compile as given.
You need to modify the above code by removing class Result{} block and remove the public modifer on the method.
You should be left with...
This should allow your code to compile.