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.
Insert a node at a specific position in a linked list
Insert a node at a specific position in a linked list
Sort by
recency
|
1530 Discussions
|
Please Login in order to post a comment
Here is my C++ solution, you can watch the explanation here : https://youtu.be/jCPAp_UIzAs
simplest python solution:
Is the problem statement wrong? The head pointer can't be null because n >= 1. Am I right?
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.
Hackerrank fix your code in provided Solution for c#, throws error