摘要: Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. Example: Input: 2 Output: 91 Explanation: The answer shoul 阅读全文
posted @ 2019-11-16 10:50 Schwifty 阅读(103) 评论(0) 推荐(0)
摘要: Given a 2D grid consists of 0s (land) and 1s (water). An island is a maximal 4-directionally connected group of 0s and a closed island is an island to 阅读全文
posted @ 2019-11-16 09:33 Schwifty 阅读(175) 评论(0) 推荐(0)
摘要: Given the following details of a matrix with n columns and 2 rows : The matrix is a binary matrix, which means each element in the matrix can be 0 or  阅读全文
posted @ 2019-11-16 09:04 Schwifty 阅读(178) 评论(0) 推荐(0)
摘要: Given n and m which are the dimensions of a matrix initialized by zeros and given an array indices where indices[i] = [ri, ci]. For each pair of [ri, 阅读全文
posted @ 2019-11-16 05:51 Schwifty 阅读(221) 评论(0) 推荐(0)
摘要: Given an array nums of positive integers. Your task is to select some subset of nums, multiply each element by an integer and add all these numbers. T 阅读全文
posted @ 2019-11-16 05:33 Schwifty 阅读(243) 评论(0) 推荐(0)