题目描述 Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm sh…
分类:LeetCode题目解答
[Leetcode] Combination Sum 组合数之和
Combination Sum I Given a set of candidate numbers (C) and a target number (T), find all unique combinations i…
LeetCode 25. Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a posit…
[LeetCode] Kth Largest Element in a Stream 数据流中的第K大的元素
Design a class to find the kth largest element in a stream. Note that it is the kth largest e…
[LeetCode] Couples Holding Hands 两两握手
N couples sit in 2N seats arranged in a row and want to hold hands. We want to know the minimum number …
力扣(LeetCode)763
题目地址:https://leetcode-cn.com/probl…题目描述:字符串 S 由小写字母组成。我们要把这个字符串划分为尽可能多的片段,同一个字母只会出现在其中的一个片段。返回一个表示每个字符串片…
[LeetCode] Odd Even Linked List 奇偶链表
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here w…
[LeetCode] Minimum Factorization 最小因数分解
Given a positive integer a, find the smallest positive integer b whose multiplication of…
力扣(LeetCode)609
题目地址:https://leetcode-cn.com/probl…题目描述:给定一个目录信息列表,包括目录路径,以及该目录中的所有包含内容的文件,您需要找到文件系统中的所有重复文件组的路径。一组重复的文件…
[Leetcode] Word Search 单词搜索
Word Search I 更新的思路与解法请访问:https://yanjia.me/zh/2018/11/… Given a 2D board and a word, find if the word e…
[LeetCode] Power of Three 判断3的次方数
Given an integer, write a function to determine if it is a power of three. Example 1: Input: 27 Output:…
[Leetcode] Remove Element 删除数组元素
Remove Element Given an array and a value, remove all instances of that value in place and return the new leng…