01 2021 档案

摘要:Minimize Deviation in Array (H) 题目 You are given an array nums of n positive integers. You can perform two types of operations on any element of the a 阅读全文
posted @ 2021-01-30 21:49 墨云黑 阅读(196) 评论(0) 推荐(0)
摘要:Smallest String With A Given Numeric Value (M) 题目 The numeric value of a lowercase character is defined as its position (1-indexed) in the alphabet, s 阅读全文
posted @ 2021-01-28 20:22 墨云黑 阅读(159) 评论(0) 推荐(0)
摘要:Concatenation of Consecutive Binary Numbers (M) 题目 Given an integer n, return the decimal value of the binary string formed by concatenating the binar 阅读全文
posted @ 2021-01-27 19:54 墨云黑 阅读(79) 评论(0) 推荐(0)
摘要:Path With Minimum Effort (M) 题目 You are a hiker preparing for an upcoming hike. You are given heights, a 2D array of size rows x columns, where height 阅读全文
posted @ 2021-01-27 10:26 墨云黑 阅读(76) 评论(0) 推荐(0)
摘要:Check If All 1's Are at Least Length K Places Away (E) 题目 Given an array nums of 0s and 1s and an integer k, return True if all 1's are at least k pla 阅读全文
posted @ 2021-01-25 16:37 墨云黑 阅读(66) 评论(0) 推荐(0)
摘要:Sort the Matrix Diagonally (M) 题目 A matrix diagonal is a diagonal line of cells starting from some cell in either the topmost row or leftmost column a 阅读全文
posted @ 2021-01-23 17:19 墨云黑 阅读(111) 评论(0) 推荐(0)
摘要:Determine if Two Strings Are Close (M) 题目 Two strings are considered close if you can attain one from the other using the following operations: Operat 阅读全文
posted @ 2021-01-23 10:53 墨云黑 阅读(81) 评论(0) 推荐(0)
摘要:Find the Most Competitive Subsequence (M) 题目 Given an integer array nums and a positive integer k, return the most competitive subsequence of nums of 阅读全文
posted @ 2021-01-21 21:02 墨云黑 阅读(119) 评论(0) 推荐(0)
摘要:Count Sorted Vowel Strings (M) 题目 Given an integer n, return the number of strings of length n that consist only of vowels (a, e, i, o, u) and are lex 阅读全文
posted @ 2021-01-18 20:13 墨云黑 阅读(216) 评论(0) 推荐(0)
摘要:Max Number of K-Sum Pairs (M) 题目 You are given an integer array nums and an integer k. In one operation, you can pick two numbers from the array whose 阅读全文
posted @ 2021-01-18 17:10 墨云黑 阅读(88) 评论(0) 推荐(0)
摘要:Kth Largest Element in an Array (M) 题目 Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, 阅读全文
posted @ 2021-01-16 19:09 墨云黑 阅读(63) 评论(0) 推荐(0)
摘要:Get Maximum in Generated Array (E) 题目 You are given an integer n. An array nums of length n + 1 is generated in the following way: nums[0] = 0 nums[1] 阅读全文
posted @ 2021-01-15 17:18 墨云黑 阅读(66) 评论(0) 推荐(0)
摘要:Minimum Operations to Reduce X to Zero (M) 题目 You are given an integer array nums and an integer x. In one operation, you can either remove the leftmo 阅读全文
posted @ 2021-01-14 21:24 墨云黑 阅读(131) 评论(0) 推荐(0)
摘要:Boats to Save People (M) 题目 The i-th person has weight people[i], and each boat can carry a maximum weight of limit. Each boat carries at most 2 peopl 阅读全文
posted @ 2021-01-13 19:24 墨云黑 阅读(68) 评论(0) 推荐(0)
摘要:Merge Sorted Array (E) 题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements in 阅读全文
posted @ 2021-01-11 20:53 墨云黑 阅读(60) 评论(0) 推荐(0)
摘要:Create Sorted Array through Instructions (H) 题目 Given an integer array instructions, you are asked to create a sorted array from the elements in instr 阅读全文
posted @ 2021-01-11 11:03 墨云黑 阅读(111) 评论(0) 推荐(0)
摘要:Word Ladder (H) 题目 Given two words beginWord and endWord, and a dictionary wordList, return the length of the shortest transformation sequence from be 阅读全文
posted @ 2021-01-09 22:02 墨云黑 阅读(57) 评论(0) 推荐(0)
摘要:Check If Two String Arrays are Equivalent (E) 题目 Given two string arrays word1 and word2, return true if the two arrays represent the same string, and 阅读全文
posted @ 2021-01-08 16:19 墨云黑 阅读(61) 评论(0) 推荐(0)
摘要:Kth Missing Positive Number (E) 题目 Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Find the kth posit 阅读全文
posted @ 2021-01-06 16:31 墨云黑 阅读(79) 评论(0) 推荐(0)
摘要:Remove Duplicates from Sorted List II (M) 题目 Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers f 阅读全文
posted @ 2021-01-05 16:24 墨云黑 阅读(61) 评论(0) 推荐(0)
摘要:Beautiful Arrangement (M) 题目 Suppose you have n integers from 1 to n. We define a beautiful arrangement as an array that is constructed by these n num 阅读全文
posted @ 2021-01-03 21:26 墨云黑 阅读(72) 评论(0) 推荐(0)
摘要:Find a Corresponding Node of a Binary Tree in a Clone of That Tree (M) 题目 Given two binary trees original and cloned and given a reference to a node t 阅读全文
posted @ 2021-01-02 18:41 墨云黑 阅读(85) 评论(0) 推荐(0)
摘要:Check Array Formation Through Concatenation (E) 题目 You are given an array of distinct integers arr and an array of integer arrays pieces, where the in 阅读全文
posted @ 2021-01-01 20:16 墨云黑 阅读(130) 评论(0) 推荐(0)