116.js 454 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Definition for binary tree with next pointer.
  3. * function TreeLinkNode(val) {
  4. * this.val = val;
  5. * this.left = this.right = this.next = null;
  6. * }
  7. */
  8. function TreeLinkNode(val) {
  9. this.val = val
  10. this.left = this.right = this.next = null
  11. }
  12. /**
  13. * @param {TreeLinkNode} root
  14. * @return {void} Do not return anything, modify tree in-place instead.
  15. */
  16. var connect = function(root) {
  17. }
  18. function __main__() {
  19. }
  20. __main__()