现在回过头来想想学生时代的课程,可谓是用贬义词来形容,是自己的问题还是教学本身存在的问题,还是留给自己去思考和消化吧,因为每个人的故事都很不同。...
In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the value) of...
Given a binary tree, return the preorder traversal of its nodes' values.
Given a binary tree, return the inorder traversal of its nodes' values.
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.
96. Unique Binary Search TreesGiven n, how many structurally unique BST's (binary search trees) tha
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
107. Binary Tree Level Order Traversal II
103. Binary Tree Zigzag Level Order Traversal
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).