标签: 算法
-
PAT A1086
和刚刚之前的那道题类似,只不过多考察了一个四大遍历输出中的一个;自己跟个智障一样检查了一个小时,结果发现少了一…
-
988-从叶结点开始的最小字符串
给定一颗根结点为 root 的二叉树,书中的每个结点都有一个从 0 到 25 的值,分别代表字母 ‘a’ 到 …
-
100. Same Tree
Given two binary trees, write a function to check if th…
-
88. Merge Sorted Array
Given two sorted integer arrays nums1 and nums2, merge …
-
104. Maximum Depth of Binary Tree
The maximum depth is the number of nodes along the long…
-
101. Symmetric Tree
Given a binary tree, check whether it is a mirror of it…
-
107. Binary Tree Level Order Traversal II
Given a binary tree, return the bottom-up level order t…
-
70. Climbing Stairs
You are climbing a stair case. It takes n steps to reac…
-
28. Implement strStr()
Return the index of the first occurrence of needle in h…
-
66. Plus One
Given a non-empty array of digits representing a non-ne…