最新 最热

Leetcode 题目解析之 Add Two Numbers

You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add...

2022-01-14
1

Leetcode 题目解析之 Word Pattern

Given a pattern and a string str, find if str follows the same pattern.

2022-01-14
1

Leetcode 题目解析之 Valid Anagram

Given two strings s and t, write a function to determine if t is an anagram of s.

2022-01-14
1

LeetCode 766. 托普利茨矩阵

给你一个 m x n 的矩阵 matrix 。如果这个矩阵是托普利茨矩阵,返回 true ;否则,返回 false 。

2022-01-13
1

Leetcode 题目解析之 Fraction to Recurring Decimal

Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.

2022-01-10
1

Leetcode 题目解析之 Bulls and Cows

You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your frie...

2022-01-10
1

Leetcode 题目解析之 Summary Ranges

Given a sorted integer array without duplicates, return the summary of its ranges.

2022-01-10
2

Leetcode 题目解析之 Subsets II

Given a collection of integers that might contain duplicates, nums, return all possible subsets.

2022-01-10
2

Leetcode 题目解析之 Subsets

Given a set of distinct integers, nums, return all possible subsets.

2022-01-10
1

Leetcode 题目解析之 Spiral Matrix II

Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.

2022-01-10
1