abc_begin

导航

2017年10月3日 #

121. Best Time to Buy and Sell Stock【easy】

摘要: 121. Best Time to Buy and Sell Stock【easy】 Say you have an array for which the ith element is the price of a given stock on day i. If you were only pe 阅读全文

posted @ 2017-10-03 16:27 LastBattle 阅读(317) 评论(0) 推荐(0) 编辑

167. Two Sum II - Input array is sorted【easy】

摘要: 167. Two Sum II - Input array is sorted【easy】 Given an array of integers that is already sorted in ascending order, find two numbers such that they ad 阅读全文

posted @ 2017-10-03 15:18 LastBattle 阅读(161) 评论(0) 推荐(0) 编辑

283. Move Zeroes【easy】

摘要: 283. Move Zeroes【easy】 Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero ele 阅读全文

posted @ 2017-10-03 13:06 LastBattle 阅读(290) 评论(0) 推荐(0) 编辑

561. Array Partition I【easy】

摘要: 561. Array Partition I【easy】 Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., 阅读全文

posted @ 2017-10-03 11:47 LastBattle 阅读(107) 评论(0) 推荐(0) 编辑

219. Contains Duplicate II【easy】

摘要: 219. Contains Duplicate II【easy】 Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array suc 阅读全文

posted @ 2017-10-03 11:34 LastBattle 阅读(139) 评论(0) 推荐(0) 编辑

217. Contains Duplicate【easy】

摘要: 217. Contains Duplicate【easy】 Given an array of integers, find if the array contains any duplicates. Your function should return true if any value app 阅读全文

posted @ 2017-10-03 11:15 LastBattle 阅读(190) 评论(0) 推荐(0) 编辑