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.
public static DoublyLinkedListNode reverse(DoublyLinkedListNode llist)
{
return llist;
}
Solution.cs(34,25): warning CS8625: Cannot convert null literal to non-nullable reference type.
Solution.cs(35,25): warning CS8625: Cannot convert null literal to non-nullable reference type.
Solution.cs(33,16): warning CS8618: Non-nullable field 'head' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
Solution.cs(33,16): warning CS8618: Non-nullable field 'tail' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
Solution.cs(24,25): warning CS8625: Cannot convert null literal to non-nullable reference type.
Solution.cs(25,25): warning CS8625: Cannot convert null literal to non-nullable reference type.
Solution.cs(22,16): warning CS8618: Non-nullable field 'next' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
Solution.cs(22,16): warning CS8618: Non-nullable field 'prev' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
Solution.cs(110,43): error CS0103: The name 'reverse' does not exist in the current context
These lines are not editable, so what the heck are you supposed to do?
Solution.cs(96,50): warning CS8604: Possible null reference argument for parameter 'path' in 'StreamWriter.StreamWriter(string path, bool append)'.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Reverse a doubly linked list
You are viewing a single comment's thread. Return to all comments →
AGAIN!?
Solution.cs(34,25): warning CS8625: Cannot convert null literal to non-nullable reference type. Solution.cs(35,25): warning CS8625: Cannot convert null literal to non-nullable reference type. Solution.cs(33,16): warning CS8618: Non-nullable field 'head' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. Solution.cs(33,16): warning CS8618: Non-nullable field 'tail' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. Solution.cs(24,25): warning CS8625: Cannot convert null literal to non-nullable reference type. Solution.cs(25,25): warning CS8625: Cannot convert null literal to non-nullable reference type. Solution.cs(22,16): warning CS8618: Non-nullable field 'next' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. Solution.cs(22,16): warning CS8618: Non-nullable field 'prev' must contain a non-null value when exiting constructor. Consider declaring the field as nullable. Solution.cs(110,43): error CS0103: The name 'reverse' does not exist in the current context
These lines are not editable, so what the heck are you supposed to do?