随笔分类 -  LeetCode

15. 3Sum
摘要:1. 问题描述 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 阅读全文

posted @ 2016-06-12 21:29 whl-hl 阅读(120) 评论(0) 推荐(0)

1. Two Sum
摘要:1. 问题描述 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would 阅读全文

posted @ 2016-06-11 11:43 whl-hl 阅读(140) 评论(0) 推荐(0)

227. Basic Calculator
摘要:1. 问题描述 Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / ope 阅读全文

posted @ 2016-06-10 10:49 whl-hl 阅读(205) 评论(0) 推荐(0)

7. Reverse Integer
摘要:1. 问题描述 Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321 click to show spoilers. Have you thought about this? 阅读全文

posted @ 2016-06-10 10:16 whl-hl 阅读(143) 评论(0) 推荐(0)

导航