Given a non-empty string check if it can be constructed by taking a substring of it and appending multi…
分类:LeetCode
LeetCode | Linked List Cycle(判断链表是否有环)
Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space?…
[array] leetcode - 41. First Missing Positive - Hard
leetcode – 41. First Missing Positive – Hard descrition Given an unsorted integer array, find the …
Leetcode152——Maximum Product Subarray
文章作者:Tyan 博客:noahsnail.com | CSDN | 简书 1. 问题描述 Find the contiguous subarray within an …
670. Maximum Swap
Medium Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. …
leetcode-149. Max Points on a Line
题目表述 Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. 分析 暴力…
[LeetCode] Find Leaves of Binary Tree 找二叉树的叶节点
Given a binary tree, collect a tree’s nodes as if you were doing this: Collect and remove all lea…
LeetCode | Single Number II
题目: Given an array of integers, every element appears three times except for one. Find that single o…
【leetcode】90. Subsets II 有重复元素集合的所有组合形式
1. 题目 Given a collection of integers that might contain duplicates, nums, return all possible subsets. Note: T…
【leetcode】31. Next Permutation 数字序列的所有组合中比给定串大的下一个最小的串
1. 题目 Implement next permutation, which rearranges numbers into the lexicographically next greater permutation…
力扣(LeetCode)922
题目地址:https://leetcode-cn.com/probl…题目描述:给定一个非负整数数组 A, A 中一半整数是奇数,一半整数是偶数。 对数组进行排序,以便当 A[i] 为奇数时,i 也是奇数;当…
157. Read N Characters Given Read4
Easy The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual nu…