Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The greatest resume I've ever seen. Parent comment
It is also extremely simple:
TreeNode* invertTree(TreeNode* root) { if (root) { invertTree(root->left); invertTree(root->right); std::swap(root->left, root->right); } return root; }
There are no comments on this comment yet.
It is also extremely simple: