上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 64 下一页
摘要: You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes[i] = [numberOfBoxesi, numberOfUnitsPerB 阅读全文
posted @ 2021-01-04 07:13 CNoodle 阅读(387) 评论(0) 推荐(0)
摘要: You are given an integer array nums and an integer k. In one operation, you can pick two numbers from the array whose sum equals k and remove them fro 阅读全文
posted @ 2021-01-03 16:08 CNoodle 阅读(506) 评论(0) 推荐(0)
摘要: Given an array of positive integers target and an array initial of same size with all zeros. Return the minimum number of operations to form a target  阅读全文
posted @ 2021-01-03 04:41 CNoodle 阅读(228) 评论(0) 推荐(0)
摘要: Given two binary trees original and cloned and given a reference to a node target in the original tree. The cloned tree is a copy of the original tree 阅读全文
posted @ 2021-01-03 02:39 CNoodle 阅读(199) 评论(0) 推荐(0)
摘要: You are given an integer array nums with no duplicates. A maximum binary tree can be built recursively from nums using the following algorithm: Create 阅读全文
posted @ 2021-01-02 08:03 CNoodle 阅读(141) 评论(0) 推荐(0)
摘要: You are given an array of distinct integers arr and an array of integer arrays pieces, where the integers in pieces are distinct. Your goal is to form 阅读全文
posted @ 2021-01-02 05:39 CNoodle 阅读(114) 评论(0) 推荐(0)
摘要: You are standing at position 0 on an infinite number line. There is a goal at position target. On each move, you can either go left or right. During t 阅读全文
posted @ 2020-12-31 05:52 CNoodle 阅读(123) 评论(0) 推荐(0)
摘要: Given a binary tree where node values are digits from 1 to 9. A path in the binary tree is said to be pseudo-palindromic if at least one permutation o 阅读全文
posted @ 2020-12-30 01:48 CNoodle 阅读(344) 评论(0) 推荐(0)
摘要: Implement the class ProductOfNumbers that supports two methods: 1. add(int num) Adds the number num to the back of the current list of numbers. 2. get 阅读全文
posted @ 2020-12-28 17:10 CNoodle 阅读(251) 评论(0) 推荐(0)
摘要: You have a graph of n nodes labeled from 0 to n - 1. You are given an integer n and a list of edges where edges[i] = [ai, bi] indicates that there is 阅读全文
posted @ 2020-12-28 03:21 CNoodle 阅读(703) 评论(0) 推荐(0)
摘要: You have a graph of n nodes. You are given an integer n and an array edges where edges[i] = [ai, bi] indicates that there is an edge between ai and bi 阅读全文
posted @ 2020-12-27 16:26 CNoodle 阅读(923) 评论(0) 推荐(0)
摘要: You are given two arrays rowSum and colSum of non-negative integers where rowSum[i] is the sum of the elements in the ith row and colSum[j] is the sum 阅读全文
posted @ 2020-12-26 05:18 CNoodle 阅读(447) 评论(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 @ 2020-12-26 02:50 CNoodle 阅读(187) 评论(1) 推荐(0)
摘要: Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a g 阅读全文
posted @ 2020-12-25 09:51 CNoodle 阅读(309) 评论(0) 推荐(0)
摘要: Given a string s consisting only of characters a, b and c. Return the number of substrings containing at least one occurrence of all these characters 阅读全文
posted @ 2020-12-24 03:40 CNoodle 阅读(385) 评论(2) 推荐(0)
摘要: A valid parentheses string is either empty "", "(" + A + ")", or A + B, where A and B are valid parentheses strings, and + represents string concatena 阅读全文
posted @ 2020-12-24 00:55 CNoodle 阅读(119) 评论(0) 推荐(0)
摘要: Given an array of integers nums, you start with an initial positive value startValue. In each iteration, you calculate the step by step sum of startVa 阅读全文
posted @ 2020-12-23 04:38 CNoodle 阅读(344) 评论(0) 推荐(0)
摘要: Given the root of a binary tree and a node u in the tree, return the nearest node on the same level that is to the right of u, or return null if u is 阅读全文
posted @ 2020-12-23 03:44 CNoodle 阅读(241) 评论(0) 推荐(0)
摘要: An encoded string S is given. To find and write the decoded string to a tape, the encoded string is read one character at a time and the following ste 阅读全文
posted @ 2020-12-23 01:19 CNoodle 阅读(270) 评论(0) 推荐(0)
摘要: You are given an m x n binary matrix grid, where 0 represents a sea cell and 1 represents a land cell. A move consists of walking from one land cell t 阅读全文
posted @ 2020-12-22 15:51 CNoodle 阅读(174) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 64 下一页