11 2020 档案

摘要:Jump Game III (M) 题目 Given an array of non-negative integers arr, you are initially positioned at start index of the array. When you are at index i, y 阅读全文
posted @ 2020-11-29 22:38 墨云黑 阅读(157) 评论(0) 推荐(0)
摘要:Sliding Window Maximum (H) 题目 You are given an array of integers nums, there is a sliding window of size k which is moving from the very left of the a 阅读全文
posted @ 2020-11-28 21:03 墨云黑 阅读(108) 评论(0) 推荐(0)
摘要:Partition Equal Subset Sum (M) 题目 Given a non-empty array nums containing only positive integers, find if the array can be partitioned into two subset 阅读全文
posted @ 2020-11-27 20:37 墨云黑 阅读(110) 评论(0) 推荐(0)
摘要:Longest Substring with At Least K Repeating Characters (M) 题目 Given a string s and an integer k, return the length of the longest substring of s such 阅读全文
posted @ 2020-11-26 17:14 墨云黑 阅读(116) 评论(0) 推荐(0)
摘要:Smallest Integer Divisible by K (M) 题目 Given a positive integer K, you need to find the length of the smallest positive integer N such that N is divis 阅读全文
posted @ 2020-11-25 20:13 墨云黑 阅读(237) 评论(0) 推荐(0)
摘要:Basic Calculator II (M) 题目 Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integ 阅读全文
posted @ 2020-11-24 17:37 墨云黑 阅读(180) 评论(0) 推荐(0)
摘要:House Robber III (M) 题目 The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Be 阅读全文
posted @ 2020-11-23 16:59 墨云黑 阅读(117) 评论(0) 推荐(0)
摘要:Unique Morse Code Words (E) 题目 International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as fol 阅读全文
posted @ 2020-11-22 19:04 墨云黑 阅读(113) 评论(0) 推荐(0)
摘要:Numbers At Most N Given Digit Set (H) 题目 Given an array of digits, you can write numbers using each digits[i] as many times as we want. For example, i 阅读全文
posted @ 2020-11-21 23:32 墨云黑 阅读(171) 评论(0) 推荐(0)
摘要:Search in Rotated Sorted Array II (M) 题目 Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,0,1, 阅读全文
posted @ 2020-11-20 18:55 墨云黑 阅读(109) 评论(0) 推荐(0)
摘要:Decode String (M) 题目 Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the 阅读全文
posted @ 2020-11-19 21:59 墨云黑 阅读(187) 评论(0) 推荐(0)
摘要:Mirror Reflection (M) 题目 There is a special square room with mirrors on each of the four walls. Except for the southwest corner, there are receptors o 阅读全文
posted @ 2020-11-17 19:35 墨云黑 阅读(153) 评论(0) 推荐(0)
摘要:Longest Mountain in Array (M) 题目 Let's call any (contiguous) subarray B (of A) a mountain if the following properties hold: B.length >= 3 There exists 阅读全文
posted @ 2020-11-16 16:48 墨云黑 阅读(104) 评论(0) 推荐(0)
摘要:Range Sum of BST (E) 题目 Given the root node of a binary search tree, return the sum of values of all nodes with a value in the range [low, high]. Exam 阅读全文
posted @ 2020-11-15 17:04 墨云黑 阅读(92) 评论(0) 推荐(0)
摘要:Poor Pigs (H) 题目 There are 1000 buckets, one and only one of them is poisonous, while the rest are filled with water. They all look identical. If a pi 阅读全文
posted @ 2020-11-14 17:14 墨云黑 阅读(221) 评论(0) 推荐(0)
摘要:Populating Next Right Pointers in Each Node (M) 题目 You are given a perfect binary tree where all leaves are on the same level, and every parent has tw 阅读全文
posted @ 2020-11-13 19:27 墨云黑 阅读(84) 评论(0) 推荐(0)
摘要:Valid Square (M) 题目 Given the coordinates of four points in 2D space, return whether the four points could construct a square. The coordinate (x,y) of 阅读全文
posted @ 2020-11-11 23:11 墨云黑 阅读(118) 评论(0) 推荐(0)
摘要:Flipping an Image (E) 题目 Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an i 阅读全文
posted @ 2020-11-10 21:30 墨云黑 阅读(85) 评论(0) 推荐(0)
摘要:Maximum Difference Between Node and Ancestor (M) 题目 Given the root of a binary tree, find the maximum value V for which there exist different nodes A 阅读全文
posted @ 2020-11-10 09:30 墨云黑 阅读(156) 评论(0) 推荐(0)
摘要:Binary Tree Tilt (E) 题目 Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference 阅读全文
posted @ 2020-11-08 16:27 墨云黑 阅读(114) 评论(0) 推荐(0)
摘要:Add Two Numbers II (M) 题目 You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and 阅读全文
posted @ 2020-11-07 20:06 墨云黑 阅读(128) 评论(0) 推荐(0)
摘要:Find the Smallest Divisor Given a Threshold (M) 题目 Given an array of integers nums and an integer threshold, we will choose a positive integer divisor 阅读全文
posted @ 2020-11-06 19:25 墨云黑 阅读(188) 评论(0) 推荐(0)
摘要:Minimum Cost to Move Chips to The Same Position (E) 题目 We have n chips, where the position of the ith chip is position[i]. We need to move all the chi 阅读全文
posted @ 2020-11-05 16:42 墨云黑 阅读(233) 评论(0) 推荐(0)
摘要:Minimum Height Trees (M) 题目 A tree is an undirected graph in which any two vertices are connected by exactly one path. In other words, any connected g 阅读全文
posted @ 2020-11-04 23:47 墨云黑 阅读(112) 评论(0) 推荐(0)
摘要:Consecutive Characters (E) 题目 Given a string s, the power of the string is the maximum length of a non-empty substring that contains only one unique c 阅读全文
posted @ 2020-11-03 19:23 墨云黑 阅读(140) 评论(0) 推荐(0)
摘要:Insertion Sort List (M) 题目 Sort a linked list using insertion sort. A graphical example of insertion sort. The partial sorted list (black) initially c 阅读全文
posted @ 2020-11-02 16:01 墨云黑 阅读(148) 评论(0) 推荐(0)
摘要:Convert Binary Number in a Linked List to Integer (E) 题目 Given head which is a reference node to a singly-linked list. The value of each node in the l 阅读全文
posted @ 2020-11-01 15:34 墨云黑 阅读(124) 评论(0) 推荐(0)
摘要:Recover Binary Search Tree (H) 题目 You are given the root of a binary search tree (BST), where exactly two nodes of the tree were swapped by mistake. R 阅读全文
posted @ 2020-11-01 15:26 墨云黑 阅读(89) 评论(0) 推荐(0)