- 博客(6)
- 收藏
- 关注
原创 LeetCode-Binary Tree Paths -解题报告
原题链接 https://leetcode.com/problems/binary-tree-paths/ Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: 1 / \ 2 3 \ 5
2015-08-29 23:55:29 258
原创 LeetCode-Add Digits-解题报告
原题链接 https://leetcode.com/problems/add-digits/ Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the proces
2015-08-29 18:58:02 308
原创 LeetCode-Single Number-解题报告
原题链接 https://leetcode.com/problems/single-number/ Given an array of integers, every element appears twice except for one. Find that single one. 找出唯一一个只出现一次的数。 因为其他数肯定出现两次 又因为A^A = 0, 0^B = B; 所以
2015-08-28 18:55:51 263
原创 LeetCode-Ugly Number-解题报告
原链接 https://leetcode.com/problems/ugly-number/ Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5.
2015-08-28 16:41:49 294
原创 LeetCode-Ugly Number II-解题报告
原链接https://leetcode.com/problems/ugly-number-ii/ Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2,
2015-08-28 15:52:15 304
原创 LeetCode-Missing Number-解题报告
原题链接 https://leetcode.com/problems/missing-number/ Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. For example, Given n
2015-08-27 16:16:05 352
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人