LeetCode
Hunter_kai
机器学习、大数据
展开
-
Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe原创 2015-10-13 21:11:33 · 244 阅读 · 0 评论 -
Move Zeroes
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 elements. For example, given nums = [0, 1, 0, 3, 12], after calling you原创 2015-10-13 20:44:44 · 241 阅读 · 0 评论