How does recursion work in this “flatten doubly linked list” code?

前端 未结 0 570
情歌与酒
情歌与酒 2020-12-10 10:31

The problem is from leetcode #430 Flatten a Multilevel doubly Linked List. So basically, each node has three fields: next, prev, and child. And the problem asks to flatten t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题