05 2021 档案

摘要:Search Suggestions System (M) 题目 Given an array of strings products and a string searchWord. We want to design a system that suggests at most three pr 阅读全文
posted @ 2021-05-31 22:22 墨云黑 阅读(41) 评论(0) 推荐(0)
摘要:Maximum Erasure Value (M) 题目 You are given an array of positive integers nums and want to erase a subarray containing unique elements. The score you g 阅读全文
posted @ 2021-05-28 16:02 墨云黑 阅读(39) 评论(0) 推荐(0)
摘要:Maximum Product of Word Lengths (M) 题目 Given a string array words, return the maximum value of length(word[i]) * length(word[j]) where the two words d 阅读全文
posted @ 2021-05-27 22:56 墨云黑 阅读(43) 评论(0) 推荐(0)
摘要:Partitioning Into Minimum Number Of Deci-Binary Numbers (M) 题目 A decimal number is called deci-binary if each of its digits is either 0 or 1 without a 阅读全文
posted @ 2021-05-26 22:26 墨云黑 阅读(40) 评论(0) 推荐(0)
摘要:Evaluate Reverse Polish Notation (M) 题目 Evaluate the value of an arithmetic expression in Reverse Polish Notation. Valid operators are +, -, *, /. Eac 阅读全文
posted @ 2021-05-25 22:21 墨云黑 阅读(30) 评论(0) 推荐(0)
摘要:To Lower Case (E) 题目 Given a string s, return the string after replacing every uppercase letter with the same lowercase letter. Example 1: Input: s = 阅读全文
posted @ 2021-05-24 20:53 墨云黑 阅读(38) 评论(0) 推荐(0)
摘要:Find and Replace Pattern (M) 题目 Given a list of strings words and a string pattern, return a list of words[i] that match pattern. You may return the a 阅读全文
posted @ 2021-05-21 21:30 墨云黑 阅读(39) 评论(0) 推荐(0)
摘要:0102. Binary Tree Level Order Traversal (M) 题目 Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, le 阅读全文
posted @ 2021-05-20 20:55 墨云黑 阅读(27) 评论(0) 推荐(0)
摘要:Minimum Moves to Equal Array Elements II (M) 题目 Given an integer array nums of size n, return the minimum number of moves required to make all array e 阅读全文
posted @ 2021-05-19 23:13 墨云黑 阅读(25) 评论(0) 推荐(0)
摘要:Find Duplicate File in System (M) 题目 Given a list paths of directory info, including the directory path, and all the files with contents in this direc 阅读全文
posted @ 2021-05-18 22:19 墨云黑 阅读(45) 评论(0) 推荐(0)
摘要:Longest String Chain (M) 题目 Given a list of words, each word consists of English lowercase letters. Let's say word1 is a predecessor of word2 if and o 阅读全文
posted @ 2021-05-17 22:23 墨云黑 阅读(48) 评论(0) 推荐(0)
摘要:Binary Tree Cameras (H) 题目 Given a binary tree, we install cameras on the nodes of the tree. Each camera at a node can monitor its parent, itself, and 阅读全文
posted @ 2021-05-16 18:41 墨云黑 阅读(39) 评论(0) 推荐(0)
摘要:Valid Number (H) 题目 Validate if a given string can be interpreted as a decimal number. Some examples: "0" ⇒ true " 0.1 " ⇒ true "abc" ⇒ false "1 a" ⇒ 阅读全文
posted @ 2021-05-15 15:26 墨云黑 阅读(41) 评论(0) 推荐(0)
摘要:Flatten Binary Tree to Linked List (M) 题目 Given a binary tree, flatten it to a linked list in-place. For example, given the following tree: 1 / \ 2 5 阅读全文
posted @ 2021-05-15 14:40 墨云黑 阅读(42) 评论(0) 推荐(0)
摘要:Ambiguous Coordinates (M) 题目 We had some 2-dimensional coordinates, like "(1, 3)" or "(2, 0.5)". Then, we removed all commas, decimal points, and spac 阅读全文
posted @ 2021-05-14 00:12 墨云黑 阅读(42) 评论(0) 推荐(0)
摘要:Maximum Points You Can Obtain from Cards (M) 题目 There are several cards arranged in a row, and each card has an associated number of points The points 阅读全文
posted @ 2021-05-11 16:18 墨云黑 阅读(54) 评论(0) 推荐(0)
摘要:Count Primes (E) 题目 Count the number of prime numbers less than a non-negative number, n. Example: Input: 10 Output: 4 Explanation: There are 4 prime 阅读全文
posted @ 2021-05-10 23:48 墨云黑 阅读(35) 评论(0) 推荐(0)
摘要:Construct Target Array With Multiple Sums (H) 题目 Given an array of integers target. From a starting array, A consisting of all 1's, you may perform th 阅读全文
posted @ 2021-05-09 16:17 墨云黑 阅读(81) 评论(0) 推荐(0)
摘要:Super Palindromes (H) 题目 Let's say a positive integer is a super-palindrome if it is a palindrome, and it is also the square of a palindrome. Given tw 阅读全文
posted @ 2021-05-08 23:11 墨云黑 阅读(54) 评论(0) 推荐(0)
摘要:Delete Operation for Two Strings (M) 题目 Given two strings word1 and word2, return the minimum number of steps required to make word1 and word2 the sam 阅读全文
posted @ 2021-05-07 15:32 墨云黑 阅读(43) 评论(0) 推荐(0)
摘要:Convert Sorted List to Binary Search Tree (M) 题目 Given a singly linked list where elements are sorted in ascending order, convert it to a height balan 阅读全文
posted @ 2021-05-06 15:50 墨云黑 阅读(30) 评论(0) 推荐(0)
摘要:Non-decreasing Array (M) 题目 Given an array nums with n integers, your task is to check if it could become non-decreasing by modifying at most one elem 阅读全文
posted @ 2021-05-04 16:09 墨云黑 阅读(44) 评论(0) 推荐(0)
摘要:Running Sum of 1d Array (E) 题目 Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). Return the running su 阅读全文
posted @ 2021-05-03 15:05 墨云黑 阅读(37) 评论(0) 推荐(0)
摘要:Course Schedule III (H) There are n different online courses numbered from 1 to n. You are given an array courses where courses[i] = [durationi, lastD 阅读全文
posted @ 2021-05-02 16:01 墨云黑 阅读(66) 评论(0) 推荐(0)
摘要:Prefix and Suffix Search (H) 题目 Design a special dictionary which has some words and allows you to search the words in it by a prefix and a suffix. Im 阅读全文
posted @ 2021-05-01 16:01 墨云黑 阅读(70) 评论(0) 推荐(0)