最新 最热

Leetcode 题目解析之 Factorial Trailing Zeroes

Given an integer n, return the number of trailing zeroes in n!.

2022-01-15
0

Leetcode 题目解析之 Excel Sheet Column Title

Given a positive integer, return its corresponding column title as appear in an Excel sheet.

2022-01-15
0

Leetcode 题目解析之 Add Digits

Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.

2022-01-15
1

Leetcode 题目解析之 H-Index

Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.

2022-01-10
1

Leetcode 题目解析之 Summary Ranges

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

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
0

怎样去掉list里重复的数据(多种方法)

去掉list重复的数据,目前总结的以下三种方法,分别是采用set集合来做、两层循环不用任何方法来做,以及一层循环采用contains()方法来做,如下:

2022-01-10
0

Leetcode 题目解析之 Search a 2D Matrix

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:

2022-01-09
1

Leetcode 题目解析之 Minimum Size Subarray Sum

Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 0 instead...

2022-01-09
1

Leetcode 题目解析之 Merge Sorted Array

Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.

2022-01-09
0