上一页 1 2 3 4 5 6 ··· 37 下一页
摘要: Given a reference of a node in a connected undirected graph. Return a deep copy (clone) of the graph. Each node in the graph contains a val (int) and 阅读全文
posted @ 2020-10-29 13:45 fatttcat 阅读(79) 评论(0) 推荐(0) 编辑
摘要: In a row of dominoes, A[i] and B[i] represent the top and bottom halves of the ith domino. (A domino is a tile with two numbers from 1 to 6 - one on e 阅读全文
posted @ 2020-10-29 13:32 fatttcat 阅读(66) 评论(0) 推荐(0) 编辑
摘要: You are given an integer array prices where prices[i] is the price of a given stock on the ith day. Design an algorithm to find the maximum profit. Yo 阅读全文
posted @ 2020-10-18 16:54 fatttcat 阅读(94) 评论(0) 推荐(0) 编辑
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are ar 阅读全文
posted @ 2020-10-18 16:43 fatttcat 阅读(122) 评论(0) 推荐(0) 编辑
摘要: There are some spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the horizontal 阅读全文
posted @ 2020-10-18 16:31 fatttcat 阅读(129) 评论(0) 推荐(0) 编辑
摘要: You are given the root node of a binary search tree (BST) and a value to insert into the tree. Return the root node of the BST after the insertion. It 阅读全文
posted @ 2020-10-08 15:32 fatttcat 阅读(88) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers nums and an integer k, return the number of unique k-diff pairs in the array. A k-diff pair is an integer pair (nums[i], nu 阅读全文
posted @ 2020-10-05 17:13 fatttcat 阅读(99) 评论(0) 推荐(0) 编辑
摘要: You have a RecentCounter class which counts the number of recent requests within a certain time frame. Implement the RecentCounter class: RecentCounte 阅读全文
posted @ 2020-10-05 17:02 fatttcat 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequ 阅读全文
posted @ 2020-10-01 08:39 fatttcat 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Your are given an array of positive integers nums. Count and print the number of (contiguous) subarrays where the product of all the elements in the s 阅读全文
posted @ 2020-09-28 17:44 fatttcat 阅读(84) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 37 下一页