刷题
文章平均质量分 79
阿泽的学习笔记
微信公众号:阿泽的学习笔记
展开
-
【Leetcode】Array | 26. Remove Duplicates from Sorted Array
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this by modifying...原创 2018-07-04 10:34:12 · 122 阅读 · 0 评论 -
【Leetcode】Array | 33. Search in Rotated Sorted Array
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).You are given a target value to search. If found in t...原创 2018-07-04 15:23:09 · 93 阅读 · 0 评论 -
【Leetcode】Array | 81. Search in Rotated Sorted Array II
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,0,1,2,2,5,6] might become [2,5,6,0,0,1,2]).You are given a target value to search. If found in t...原创 2018-07-05 10:40:47 · 93 阅读 · 0 评论 -
【Leetcode】Array | 1. Two Sum
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 have exactly one solution, and you may not use the same el...原创 2018-07-05 15:17:44 · 87 阅读 · 0 评论 -
【Leetcode】Array | 15. 3Sum
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note:The solution set must not contain ...原创 2018-07-05 15:53:22 · 115 阅读 · 0 评论