果果1020

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2017年1月2日

摘要: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. 阅读全文
posted @ 2017-01-02 22:24 果果1020 阅读(101) 评论(0) 推荐(0)

摘要: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of 阅读全文
posted @ 2017-01-02 21:29 果果1020 阅读(103) 评论(0) 推荐(0)

摘要: Write a function to find the longest common prefix string amongst an array of strings. 阅读全文
posted @ 2017-01-02 18:29 果果1020 阅读(72) 评论(0) 推荐(0)

摘要: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 阅读全文
posted @ 2017-01-02 18:18 果果1020 阅读(111) 评论(0) 推荐(0)

摘要: Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 阅读全文
posted @ 2017-01-02 17:46 果果1020 阅读(85) 评论(0) 推荐(0)

摘要: 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 @ 2017-01-02 17:32 果果1020 阅读(98) 评论(0) 推荐(0)

摘要: Implement regular expression matching with support for '.' and '*'. DP: 阅读全文
posted @ 2017-01-02 17:16 果果1020 阅读(78) 评论(0) 推荐(0)

摘要: Determine whether an integer is a palindrome. Do this without extra space. 阅读全文
posted @ 2017-01-02 15:12 果果1020 阅读(87) 评论(0) 推荐(0)

摘要: Implement atoi to convert a string to an integer. 阅读全文
posted @ 2017-01-02 14:50 果果1020 阅读(72) 评论(0) 推荐(0)

摘要: Reverse digits of an integer. 阅读全文
posted @ 2017-01-02 12:29 果果1020 阅读(104) 评论(0) 推荐(0)