随笔分类 -  LeetCode每日一题

摘要:给定一个非负整数数组 A,返回一个由 A 的所有偶数元素组成的数组,后面跟 A 的所有奇数元素。 你可以返回满足此条件的任何数组作为答案。 示例: 输入:[3,1,2,4] 输入:[3,1,2,4] 输出:[2,4,3,1] 输出:[2,4,3,1] 输出 [4,2,3,1],[2,4,1,3] 和 阅读全文
posted @ 2019-02-15 18:51 LiXinx学习笔记 阅读(91) 评论(0) 推荐(0)
摘要: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 ex 阅读全文
posted @ 2019-02-13 22:18 LiXinx学习笔记 阅读(83) 评论(0) 推荐(0)