上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 64 下一页
摘要: Given an array of integers heights representing the histogram's bar height where the width of each bar is 1, return the area of the largest rectangle 阅读全文
posted @ 2020-05-08 11:13 CNoodle 阅读(596) 评论(0) 推荐(0)
摘要: A website domain "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com" and 阅读全文
posted @ 2020-05-08 05:55 CNoodle 阅读(191) 评论(0) 推荐(0)
摘要: Given the root of a binary tree with unique values and the values of two different nodes of the tree x and y, return true if the nodes corresponding t 阅读全文
posted @ 2020-05-08 04:58 CNoodle 阅读(252) 评论(0) 推荐(0)
摘要: Given an array of characters chars, compress it using the following algorithm: Begin with an empty string s. For each group of consecutive repeating c 阅读全文
posted @ 2020-05-08 02:19 CNoodle 阅读(271) 评论(0) 推荐(0)
摘要: Given an array nums of n integers where nums[i] is in the range [1, n], return an array of all the integers in the range [1, n] that do not appear in  阅读全文
posted @ 2020-05-08 00:29 CNoodle 阅读(182) 评论(0) 推荐(0)
摘要: Given an integer array nums of length n where all the integers of nums are in the range [1, n] and each integer appears once or twice, return an array 阅读全文
posted @ 2020-05-07 14:08 CNoodle 阅读(170) 评论(0) 推荐(0)
摘要: Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall run time complexity shou 阅读全文
posted @ 2020-05-07 02:34 CNoodle 阅读(633) 评论(0) 推荐(0)
摘要: In a country popular for train travel, you have planned some train travelling one year in advance. The days of the year that you will travel is given 阅读全文
posted @ 2020-05-06 09:37 CNoodle 阅读(213) 评论(0) 推荐(0)
摘要: You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money. Return  阅读全文
posted @ 2020-05-06 05:31 CNoodle 阅读(243) 评论(0) 推荐(0)
摘要: We can shift a string by shifting each of its letters to its successive letter. For example, "abc" can be shifted to be "bcd". We can keep shifting th 阅读全文
posted @ 2020-05-05 14:33 CNoodle 阅读(272) 评论(0) 推荐(0)
摘要: Every non-negative integer N has a binary representation. For example, 5 can be represented as "101" in binary, 11 as "1011" in binary, and so on. Not 阅读全文
posted @ 2020-05-05 13:46 CNoodle 阅读(125) 评论(0) 推荐(0)
摘要: Given a positive integer num, output its complement number. The complement strategy is to flip the bits of its binary representation. Example 1: Input 阅读全文
posted @ 2020-05-05 12:32 CNoodle 阅读(203) 评论(0) 推荐(0)
摘要: 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 value (int) an 阅读全文
posted @ 2020-05-03 11:45 CNoodle 阅读(576) 评论(0) 推荐(0)
摘要: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of ston 阅读全文
posted @ 2020-05-03 07:16 CNoodle 阅读(186) 评论(0) 推荐(0)
摘要: Given an m x n integer matrix heightMap representing the height of each unit cell in a 2D elevation map, return the volume of water it can trap after 阅读全文
posted @ 2020-05-03 06:57 CNoodle 阅读(218) 评论(0) 推荐(0)
摘要: In an infinite chess board with coordinates from -infinity to +infinity, you have a knight at square [0, 0]. A knight has 8 possible moves it can make 阅读全文
posted @ 2020-05-03 03:47 CNoodle 阅读(2116) 评论(0) 推荐(0)
摘要: You are given an m x n grid rooms initialized with these three possible values. -1 A wall or an obstacle. 0 A gate. INF Infinity means an empty room. 阅读全文
posted @ 2020-05-02 09:58 CNoodle 阅读(334) 评论(0) 推荐(0)
摘要: You are given an m x n matrix board containing letters 'X' and 'O', capture regions that are surrounded: Connect: A cell is connected to adjacent cell 阅读全文
posted @ 2020-05-02 08:15 CNoodle 阅读(459) 评论(0) 推荐(0)
摘要: Given an array of unique integers preorder, return true if it is the correct preorder traversal sequence of a binary search tree. Example 1: Input: pr 阅读全文
posted @ 2020-05-02 02:38 CNoodle 阅读(191) 评论(0) 推荐(0)
摘要: Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guaranteed there is at leas 阅读全文
posted @ 2020-05-01 13:12 CNoodle 阅读(194) 评论(0) 推荐(0)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 64 下一页