I am working with LinkedList here, and for the line current.next = current.next.next , I am getting an invalid syntax error for the RHS of the equation- any idea why? Also, a general question about …
Tag: linked-list
Covert Binary Tree to Doubly Linked List (Microsoft Interview)
We are converting a binary tree into a DLL, in place also we are using in order traversalto do so. Read more here – Link My Code: My problem: The head is always None and hence I cannot print the converted list. What is wrong with this code or my logic? Answer Your code has many Pitfalls, the main reason