09 2019 档案
摘要:原题链接在这里:https://leetcode.com/problems/minimum-score-triangulation-of-polygon/ 题目: Given N, consider a convex N-sided polygon with vertices labelled A[
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/video-stitching/ 题目: You are given a series of video clips from a sporting event that lasted T seconds. These vi
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/race-car/ 题目: Your car starts at position 0 and speed +1 on an infinite number line. (Your car can go into negat
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/ 题目: We have two integer sequences A and B of the same non-zero lengt
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/domino-and-tromino-tiling/ 题目: We have two types of tiles: a 2x1 domino shape, and an "L" tromino shape. These s
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/letter-case-permutation/ 题目: Given a string S, we can transform every letter individually to be lowercase or upp
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/new-21-game/ 题目: Alice plays the following game, loosely based on the card game "21". Alice starts with 0 points
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/cheapest-flights-within-k-stops/ 题目: There are n cities connected by m flights. Each fight starts from city u an
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/longest-turbulent-subarray/ 题目: A subarray A[i], A[i+1], ..., A[j] of A is said to be turbulent if and only if:
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/knight-dialer/ 题目: A chess knight can move as indicated in the chess diagram below: . This time, we place our ch
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-cost-to-merge-stones/ 题目: There are N piles of stones arranged in a row. The i-th pile has stones[i] sto
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/ 题目: Given an array arr of positive integers, consider all binary trees such
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/largest-sum-of-averages/ 题目: We partition a row of numbers A into at most K adjacent (non-empty) groups, then ou
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/delete-and-earn/ 题目: Given an array nums of integers, you can perform operations on the array. In each operation
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/maximum-length-of-repeated-subarray/ 题目: Given two integer arrays A and B, return the maximum length of an subar
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-ascii-delete-sum-for-two-strings/ 题目: Given two strings s1, s2, find the lowest ASCII sum of deleted cha
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/longest-common-subsequence/ 题目: Given two strings text1 and text2, return the length of their longest common sub
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/increasing-triplet-subsequence/ 题目: Given an unsorted array return whether an increasing subsequence of length 3
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-cost-for-tickets/ 题目: In a country popular for train travel, you have planned some train travelling one
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/arithmetic-slices-ii-subsequence/ 题目: A sequence of numbers is called arithmetic if it consists of at least thre
阅读全文