LeetCode 483:Find All Anagrams in a String(找到字符串中所有字母异位词) Q:Given a string s and a non-empty string p, find al…
分类:LeetCode
Day14.Judge Route Circle(657)
问题描述 Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes …
[LeetCode By Go 66]202. Happy Number
题目 Write an algorithm to determine if a number is “happy”. A happy number is a number defined by t…
[LeetCode By Go 12]496. Next Greater Element I
题目 You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. F…
5. Longest Palindromic Substring
5. Longest Palindromic Substring 题目 Given a string s, find the longest palindromic substring in s. You may ass…
[LeetCode] Kth Largest Element in an Array 数组中第k大的数字
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the …
[LeetCode] Intersection of Two Arrays 两个数组相交
Given two arrays, write a function to compute their intersection. Example:Given nums1 = …
[Leetcode] Reverse Linked List 反转链表
Reverse Linked List I Reverse a singly linked list. click to show more hints. Hint: A linked list can be rever…
[Leetcode] Valid Parentheses 验证有效括号对
Valid Parentheses Given a string containing just the characters ‘(‘, ‘)’, ‘{R…
LeetCode | Subsets(子集)
Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in n…
047 Permutations II[M]
1 题目描述 Given a collection of numbers that might contain duplicates, return all possible unique permutations. 难…
LeetCode算法题-Distribute Candies(Java实现)
这是悦乐书的第266次更新,第279篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第133题(顺位题号是575)。给定具有偶数长度的整数数组,其中该数组中的不同数字表示不同种类的糖果。 每个…