摘要:
A:Find K-th Smallest Pair Distance Hard 题目:Given an integer array, return the k-th smallest distance among all the pairs. The distance of a pair (A, B 阅读全文
摘要:
A:Maximum Sum of 3 Non-Overlapping Subarrays 题目:In a given array nums of positive integers, find three non-overlapping subarrays with maximum sum. Eac 阅读全文
摘要:
A:Beautiful Arrangement II Medium 题目:Given two integers n and k, you need to construct a list which contains n different positive integers ranging fro 阅读全文
摘要:
A:Circular Array Loop Medium 题目: You are given a circular array nums of positive and negative integers. If a number k at an index is positive, then mo 阅读全文
摘要:
A:Product of Array Except Self Medium 题目:Given an array nums of n integers where n > 1, return an array output such that output[i] is equal to the pro 阅读全文
摘要:
A:Find Peak Element Medium 题目:A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], f 阅读全文
摘要:
A:Longest Consecutive Sequence Hard 题目: Given an unsorted array of integers, find the length of the longest consecutive elements sequence. Your algori 阅读全文
摘要:
A: Word Ladder II Hard 题目: 给定两个字符串,和一个字符串字典,这些字符串都是长度相等,并且字典中的字符串都不同,起始字符串通过字典进行转换,两个字符串要转换, 需要满足,只有一个字符不同其他均相同,每个字符串只能使用一次,得到所有的从起始字符串转换成目标字符串的最短的转换路 阅读全文