LeetCode
我从崖边跌落
这个作者很懒,什么都没留下…
展开
-
【LeetCode】Single Number
题目: Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using ...原创 2018-12-17 16:47:50 · 101 阅读 · 0 评论 -
【LeetCode】Same Tree
题目: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. 题意: 给出两个...原创 2018-12-17 17:31:01 · 127 阅读 · 0 评论 -
【LeetCode】Minimum Depth of Binary Tree--二叉树的最小深度
题目: Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf node. 解题思路: 这道题必须是最近的叶子距离根的深度才是最...原创 2018-12-23 18:12:36 · 144 阅读 · 0 评论