摘要: Given a positive integer n and you can do operations as follow: What is the minimum number of replacements needed for n to become 1? Example 1: Exampl 阅读全文
posted @ 2016-11-03 22:56 Black_Knight 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文
posted @ 2016-11-03 13:51 Black_Knight 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order. Note: Example 1: Examp 阅读全文
posted @ 2016-11-03 12:14 Black_Knight 阅读(673) 评论(0) 推荐(0) 编辑