当前位置 : 主页 > 手机开发 > harmonyos >

leetcode-114-Flatten Binary Tree to Linked List

来源:互联网 收集:自由互联 发布时间:2023-08-26
error: cannot slove it. recursive call flatten(root-left), flatten(root-right) get the rightmost of root-left append root-right to rightmost of root-left assign root-left = nullptr


error:
cannot slove it.

  1. recursive call flatten(root->left), flatten(root->right)
  2. get the rightmost of root->left
  3. append root->right to rightmost of root->left
  4. assign root->left = nullptr


网友评论