01 2019 档案

摘要:189. First Missing PositiveDescriptionGiven an unsorted integer array, find the first missing positive integer.ExampleGiven [1,2,... 阅读全文
posted @ 2019-01-08 15:23 siriusli 阅读(165) 评论(0) 推荐(0)
摘要:50. Product of Array Exclude ItselfDescriptionGiven an integers array A.Define B[i] = A[0] * … * A[i-1] * A[i+1] * … * A[n-1], ca... 阅读全文
posted @ 2019-01-08 14:27 siriusli 阅读(137) 评论(0) 推荐(0)
摘要:56. Two SumDescriptionTwo SumGiven an array of integers, find two numbers such that they add up to a specific target number.The f... 阅读全文
posted @ 2019-01-07 21:32 siriusli 阅读(120) 评论(0) 推荐(0)
摘要:64. Merge Sorted ArrayDescriptionGiven two sorted integer arrays A and B, merge B into A as one sorted array.ExampleA = [1, 2, 3,... 阅读全文
posted @ 2019-01-07 21:20 siriusli 阅读(95) 评论(0) 推荐(0)
摘要:100. Remove Duplicates from Sorted ArrayDescriptionGiven a sorted array, remove the duplicates in place such that each element ap... 阅读全文
posted @ 2019-01-07 21:00 siriusli 阅读(127) 评论(0) 推荐(0)
摘要:138. Subarray SumDescriptionGiven an integer array, find a subarray where the sum of numbers is zero. Your code should return the... 阅读全文
posted @ 2019-01-07 20:47 siriusli 阅读(215) 评论(0) 推荐(0)
摘要:172. Remove ElementDescriptionGiven an array and a value, remove all occurrences of that value in place and return the new length... 阅读全文
posted @ 2019-01-07 20:35 siriusli 阅读(120) 评论(0) 推荐(0)
摘要:1. 158. Valid AnagramDescriptionWrite a method anagram(s,t) to decide if two strings are anagrams or not.Have you met this questi... 阅读全文
posted @ 2019-01-04 23:56 siriusli 阅读(151) 评论(0) 推荐(0)