代码改变世界

随笔档案-2015年03月

]Leetcode]-[Reorder List ]-三种解法

2015-03-13 21:58 by 欧陈庚, 431 阅读, 收藏,
摘要: Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam... 阅读全文

Leetcode-Reverse Bits

2015-03-09 20:30 by 欧陈庚, 371 阅读, 收藏,
摘要: Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ... 阅读全文

Leetcode-Fraction to Recurring Decimal

2015-03-09 19:09 by 欧陈庚, 303 阅读, 收藏,
摘要: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating,... 阅读全文
点击右上角即可分享
微信分享提示