数字
文章平均质量分 71
jmspan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode 247. Strobogrammatic Number II
原题网址:https://leetcode.com/problems/strobogrammatic-number-ii/ A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Find all strobogrammati原创 2016-04-07 06:34:57 · 1061 阅读 · 0 评论 -
LeetCode 7. Reverse Integer(反转整数)
原题网址:https://leetcode.com/problems/reverse-integer/ Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Have you thought原创 2016-05-19 03:54:03 · 4224 阅读 · 0 评论 -
LeetCode 12. Integer to Roman(阿拉伯转罗马数字)
原题网址:https://leetcode.com/problems/integer-to-roman/ Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 方法:理解罗马数字的规律。二分法。 public clas原创 2016-05-19 05:27:37 · 515 阅读 · 0 评论 -
LeetCode 13. Roman to Integer(罗马数字转阿拉伯数字)
原题网址:https://leetcode.com/problems/roman-to-integer/ Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 方法:理解罗马数字。 public class Solut原创 2016-05-19 05:33:26 · 735 阅读 · 0 评论 -
LeetCode 38. Count and Say(点数)
原题网址:https://leetcode.com/problems/count-and-say/ The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11.原创 2016-05-20 10:40:38 · 373 阅读 · 0 评论 -
LeetCode 43. Multiply Strings(乘法)
原题网址:https://leetcode.com/problems/multiply-strings/ Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large原创 2016-05-20 10:46:06 · 603 阅读 · 0 评论 -
LeetCode 93. Restore IP Addresses(恢复IP地址)
原题网址:https://leetcode.com/problems/restore-ip-addresses/ Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example: Given "2552551原创 2016-05-23 00:34:59 · 1252 阅读 · 0 评论 -
LeetCode 233. Number of Digit One
原题网址:https://leetcode.com/problems/number-of-digit-one/ Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. For example: Give原创 2016-04-06 04:10:12 · 793 阅读 · 0 评论 -
LeetCode 65. Valid Number(校验数字)
原题网址:https://leetcode.com/problems/valid-number/ Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note:原创 2016-05-22 00:04:48 · 916 阅读 · 0 评论 -
LeetCode 204. Count Primes(统计素数)
原题网址:https://leetcode.com/problems/count-primes/ Description: Count the number of prime numbers less than a non-negative number, n. Credits: Special thanks to @mithmatt for adding this pro原创 2016-05-04 07:47:09 · 528 阅读 · 0 评论 -
LeetCode 202. Happy Number(快乐数字)
原题网址:https://leetcode.com/problems/happy-number/ Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive原创 2016-05-04 05:56:13 · 1344 阅读 · 0 评论 -
LeetCode 306. Additive Number(加法的数字)
原题网址:https://leetcode.com/problems/additive-number/ Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except原创 2016-04-20 01:13:12 · 943 阅读 · 0 评论 -
LeetCode 283. Move Zeroes(移动数字0)
原题网址:https://leetcode.com/problems/move-zeroes/ Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For exam原创 2016-04-14 10:21:19 · 492 阅读 · 0 评论 -
LeetCode 258. 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原创 2016-04-09 05:47:27 · 1644 阅读 · 0 评论 -
LeetCode 179. Largest Number(最大数)
原题网址:https://leetcode.com/problems/largest-number/ Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest原创 2016-05-25 01:36:20 · 2004 阅读 · 0 评论 -
LeetCode 172. Factorial Trailing Zeroes(0结尾)
原题网址:https://leetcode.com/problems/factorial-trailing-zeroes/ Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 方法:原创 2016-05-25 01:36:42 · 512 阅读 · 0 评论 -
LeetCode 273. Integer to English Words
原题网址:https://leetcode.com/problems/integer-to-english-words/ Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. For example,原创 2016-04-13 08:05:49 · 808 阅读 · 0 评论 -
LeetCode 299. Bulls and Cows(公牛和母牛)
原题网址:https://leetcode.com/problems/bulls-and-cows/ You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. E原创 2016-04-17 00:36:08 · 451 阅读 · 0 评论 -
LeetCode 129. Sum Root to Leaf Numbers(节点求和)
原题网址:https://leetcode.com/problems/sum-root-to-leaf-numbers/ Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-l原创 2016-05-27 00:26:01 · 548 阅读 · 0 评论 -
LeetCode 128. Longest Consecutive Sequence(最长连续序列)
原题网址:https://leetcode.com/problems/longest-consecutive-sequence/ Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4,原创 2016-05-27 00:26:15 · 904 阅读 · 0 评论 -
LeetCode 313. Super Ugly Number(超级丑的数字)
原题网址:https://leetcode.com/problems/super-ugly-number/ Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime原创 2016-04-22 01:41:57 · 1609 阅读 · 0 评论
分享