上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 40 下一页
摘要: 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 墨云黑 阅读(75) 评论(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 墨云黑 阅读(55) 评论(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 墨云黑 阅读(57) 评论(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 墨云黑 阅读(103) 评论(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 墨云黑 阅读(59) 评论(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 墨云黑 阅读(54) 评论(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 墨云黑 阅读(102) 评论(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 墨云黑 阅读(52) 评论(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 墨云黑 阅读(53) 评论(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 墨云黑 阅读(71) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 40 下一页