LeetCode
tommyhill
这个作者很懒,什么都没留下…
展开
-
leetcode数组排序
对数组A按照偶数和奇数重新排序,使得偶数在前,奇数在后。可以返回任何一种满足这个条件的数组即可。 Given an arrayAof non-negative integers, return an array consisting of all the even elements ofA, followed by all the odd elements ofA. You may r...原创 2019-05-10 08:49:22 · 301 阅读 · 0 评论 -
leetcode 832. Flipping an Image
Given a binary matrixA, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means that each row of the image is reversed. For examp...原创 2019-05-10 10:53:25 · 161 阅读 · 0 评论