摘要: Given an integer n, return 1 - n in lexicographical order. For example, given 13, return: [1,10,11,12,13,2,3,4,5,6,7,8,9]. Please optimize your algori 阅读全文
posted @ 2020-05-12 10:23 Schwifty 阅读(126) 评论(0) 推荐(0)
摘要: Given an array nums of 0s and 1s and an integer k, return True if all 1's are at least k places away from each other, otherwise return False. Example 阅读全文
posted @ 2020-05-12 09:11 Schwifty 阅读(202) 评论(0) 推荐(0)
摘要: An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535). Given a coordinate (sr, 阅读全文
posted @ 2020-05-12 06:05 Schwifty 阅读(156) 评论(0) 推荐(0)