01 2020 档案
摘要:原题链接在这里:https://leetcode.com/problems/insert-into-a-sorted-circular-linked-list/ 题目: Given a node from a Circular Linked List which is sorted in ascen
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/k-closest-points-to-origin/ 题目: We have a list of points on the plane. Find the K closest points to the origin (
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/reaching-points/ 题目: A move consists of taking a point (x, y) and transforming it to either (x, x+y) or (x+y, y)
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/asteroid-collision/ 题目: We are given an array asteroids of integers representing asteroids in a row. For each as
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/shortest-way-to-form-string/ 题目: From any string, we can form a subsequence of that string by deleting some numb
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/campus-bikes-ii/ 题目: On a campus represented as a 2D grid, there are N workers and M bikes, with N <= M. Each wo
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/campus-bikes/ 题目: On a campus represented as a 2D grid, there are N workers and M bikes, with N <= M. Each worke
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/24-game/ 题目: You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operate
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/split-array-largest-sum/ 题目: Given an array which consists of non-negative integers and an integer m, you can sp
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/ 题目: In a row of dominoes, A[i] and B[i] represent the top and bottom hal
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/design-hashmap/ 题目: Design a HashMap without using any built-in hash table libraries. To be specific, your desig
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/ 题目: You have d dice, and each die has f faces numbered 1, 2, ..., f. Retur
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/coin-change-2/ 题目: You are given coins of different denominations and a total amount of money. Write a function
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/dinner-plate-stacks/ 题目: You have an infinite number of stacks arranged in a row and numbered (left to right) fr
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/search-suggestions-system/ 题目: Given an array of strings products and a string searchWord. We want to design a s
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/prime-palindrome/ 题目: Find the smallest prime palindrome greater than or equal to N. Recall that a number is pri
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/concatenated-words/ 题目: Given a list of words (without duplicates), please write a program that returns all conc
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-cost-to-connect-sticks/ 题目: You have some sticks with positive integer lengths. You can connect any two
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/reorder-data-in-log-files/ 题目: You have an array of logs. Each log is a space delimited string of words. For eac
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/prison-cells-after-n-days/ 题目: There are 8 prison cells in a row, and each cell is either occupied or vacant. Ea
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/rotting-oranges/ 题目: In a given grid, each cell can have one of three values: the value 0 representing an empty
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/critical-connections-in-a-network/ 题目: There are n servers numbered from 0 to n-1 connected by undirected server
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/ 题目: Find the length of the longest substring T of a give
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/utf-8-validation/ 题目: A character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules: For 1
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/best-meeting-point/ 题目: Given an m x n binary grid grid where each 1 marks the home of one friend, return the mi
阅读全文
摘要:https://leetcode.com/problems/path-sum-iii/ https://leetcode.com/problems/path-sum-iv/ https://leetcode.com/problems/maximum-product-of-three-numbers/
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/guess-the-word/ 题目: This problem is an interactive problem new to the LeetCode platform. We are given a word lis
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/jewels-and-stones/ 题目: You're given strings J representing the types of stones that are jewels, and S representi
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/previous-permutation-with-one-swap/ 题目: Given an array A of positive integers (not necessarily distinct), return
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/find-the-closest-palindrome/ 题目: Given an integer n, find the closest integer (not including itself), which is a
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/stream-of-characters/ 题目: Implement the StreamChecker class as follows: StreamChecker(words): Constructor, init
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/leaf-similar-trees/ 题目: Consider all the leaves of a binary tree. From left to right order, the values of those
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/range-module/ 题目: A Range Module is a module that tracks ranges of numbers. Your task is to design and implement
阅读全文