11 2021 档案

摘要:Given a binary tree with the following rules: root.val == 0 If treeNode.val == x and treeNode.left != null, then treeNode.left.val == 2 * x + 1 If tre 阅读全文
posted @ 2021-11-27 14:07 Grandyang 阅读(347) 评论(0) 推荐(0) 编辑
摘要:Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one shift operation: Element at grid[i][j] moves to grid[i][j + 阅读全文
posted @ 2021-11-23 23:58 Grandyang 阅读(1933) 评论(0) 推荐(0) 编辑
摘要:Given a list of words, list of single letters (might be repeating) and score of every character. Return the maximum score of any valid set of words fo 阅读全文
posted @ 2021-11-22 02:05 Grandyang 阅读(901) 评论(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 @ 2021-11-19 11:04 Grandyang 阅读(1083) 评论(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 @ 2021-11-14 05:38 Grandyang 阅读(438) 评论(0) 推荐(0) 编辑
摘要:There is an m x n matrix that is initialized to all 0's. There is also a 2D array indices where each indices[i] = [ri, ci] represents a 0-indexed loca 阅读全文
posted @ 2021-11-10 11:55 Grandyang 阅读(546) 评论(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 @ 2021-11-08 12:33 Grandyang 阅读(452) 评论(0) 推荐(0) 编辑
摘要:Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any position 阅读全文
posted @ 2021-11-06 09:29 Grandyang 阅读(1724) 评论(1) 推荐(0) 编辑

Fork me on GitHub