Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Invert a binary tree on LeetCode. Parent comment
var invertTree = function(root) {
if (!root) { return root; } var left = root.left; var right = root.right; root.right = invertTree(left); root.left = invertTree(right); return root;
There are no comments on this comment yet.
var invertTree = function(root) {
};