摘要: 题目如下: 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 阅读全文
posted @ 2018-01-02 10:16 安忆丶 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the t 阅读全文
posted @ 2017-08-07 21:23 安忆丶 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see 阅读全文
posted @ 2017-07-28 15:51 安忆丶 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Note:The input is assumed to be a 32-bit signed integ 阅读全文
posted @ 2017-05-22 15:26 安忆丶 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which th 阅读全文
posted @ 2017-05-19 12:15 安忆丶 阅读(139) 评论(0) 推荐(0) 编辑
摘要: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai 阅读全文
posted @ 2017-05-19 12:04 安忆丶 阅读(247) 评论(0) 推荐(0) 编辑