摘要: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo 阅读全文
posted @ 2016-03-15 10:04 翎飞蝶舞 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 9. Palindrome Number Total Accepted: 111012 Total Submissions: 357341 Difficulty: Easy Determine whether an integer is a palindrome. Do this without e 阅读全文
posted @ 2016-03-11 10:33 翎飞蝶舞 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 8. String to Integer (atoi) Total Accepted: 91403 Total Submissions: 683692 Difficulty: Easy Implement atoi to convert a string to an integer. Hint: C 阅读全文
posted @ 2016-03-10 21:05 翎飞蝶舞 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 7. Reverse Integer Total Accepted: 126996 Total Submissions: 538523 Difficulty: Easy Reverse digits of an integer. Example1: x = 123, return 321 Examp 阅读全文
posted @ 2016-03-09 10:59 翎飞蝶舞 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 6. ZigZag Conversion Total Accepted: 78774 Total Submissions: 335842 Difficulty: Easy The string "PAYPALISHIRING" is written in a zigzag pattern on a 阅读全文
posted @ 2016-03-08 21:19 翎飞蝶舞 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 3. Longest Substring Without Repeating Characters Total Accepted: 130742 Total Submissions: 605248 Difficulty: Medium Given a string, find the length 阅读全文
posted @ 2016-03-04 09:53 翎飞蝶舞 阅读(135) 评论(0) 推荐(0) 编辑