胡闹的日子
归档 分类 标签 系列 关于
归档 分类 标签 系列 关于
L
LeetCode
2016-08-09

LeetCode 258: Add Digits

Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.

L
LeetCode
2016-08-09

LeetCode 69: Sqrt(x)

Implement int sqrt(int x). Compute and return the square root of x.

L
LeetCode
2016-08-09

LeetCode 50: Pow(x, n)

Implement pow(x, n).

L
LeetCode
2016-08-09

LeetCode 7: Reverse integer

Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321.

L
LeetCode
2016-08-09

LeetCode 12: Integer to Roman

Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999.

L
LeetCode
2016-08-08

LeetCode 319: Bulb Switcher

There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb.

L
LeetCode
2016-08-08

LeetCode 9: Palindrome Number

Determine whether an integer is a palindrome. Do this without extra space.

L
LeetCode
2016-08-08

LeetCode 231: Power of Two

这个题跟Power of Three的思路基本一模一样,解法也差不多。但是因为是2啊,毕竟是计算机的进制数,所以&,|这些位操作总能出奇迹。

« 上一页12345…11下一页 »

xcc

Web Developer & Designer

GuangDong, China 关注我
86 文章
38 标签

标签

全部 51NOD Android Array Bit Manipulation Bit Manupulation Chrome C语言 Dynamic Programming GET Git HTTP KMP算法 LaTex LeetCode Linked List
优雅的Sublime
LeetCode题解
有趣的算法

最近文章

  • LeetCode 162: Find Peak Element

    LeetCode

  • LeetCode 48: Rotate Image

    LeetCode

  • LeetCode 53: Maximum Subarray

    LeetCode

  • LeetCode 35: Search Insert Position

    LeetCode

  • LeetCode 11: Container With Most Water

    LeetCode

链接

  • Hexo
  • 个人V2EX主页
© 2016 XCC
Powered by Hexo. Theme by xcc 本站总访问人数次