摘要: Given an array of integers nums, half of the integers in nums are odd, and the other half are even. Sort the array so that whenever nums[i] is odd, i  阅读全文
posted @ 2020-11-12 02:59 CNoodle 阅读(153) 评论(0) 推荐(0)
摘要: Given the coordinates of four points in 2D space p1, p2, p3 and p4, return true if the four points construct a square. The coordinate of a point pi is 阅读全文
posted @ 2020-11-12 02:10 CNoodle 阅读(234) 评论(0) 推荐(0)
摘要: You are given an n x n binary matrix grid where 1 represents land and 0 represents water. An island is a 4-directionally connected group of 1's not co 阅读全文
posted @ 2020-11-12 01:22 CNoodle 阅读(287) 评论(0) 推荐(0)