Leetcode
super speedy
没啥说的
展开
-
Remove Element
Problem (from Leetcode) [1]: Given an arraynumsand a valueval, remove all instances of that valuein-placeand return the new length. Do not allocate extra space for another array, you must do ...原创 2020-01-10 08:13:08 · 50 阅读 · 0 评论 -
Two Sum II - Input array is sorted
Problem (from Leetcode) [1]: Given an array of integers that is alreadysorted in ascending order, find two numbers such that they add up to a specific target number. The function twoSum should re...原创 2019-12-31 21:46:41 · 64 阅读 · 0 评论 -
Array Partition I
Problem (from Leetcode) [1]: Given an array of2nintegers, your task is to group these integers intonpairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for al...原创 2019-12-28 13:32:18 · 98 阅读 · 0 评论