The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| """ | |
| # Definition for a Node. | |
| class Node: | |
| def __init__(self, x, next = None, prev = None): | |
| self.val = x | |
| self.next = next | |
| self.prev = prev | |
| """ | |
| # This recursive function would |