News for hackers. Stuff that matters.
Re:Invert a binary tree on LeetCode by adnanh on Saturday June 13, 2015 @07:39AM (#9710718)
My JS

  var invertTree = function(root) {
      if (!root) return null;

      root.right = [invertTree(root.left), root.left = invertTree(root.right)][0];

      return root;
  };

There are no comments on this comment yet.