倪春恩的博客
07
29
lc-69 lc-69
//Given a non-negative integer x, compute and return the square root of x. // // Since the return type is an integer, t
2022-07-29
28
lc-66 lc-66
//You are given a large integer represented as an integer array digits, where ea //ch digits[i] is the ith digit of the
2022-07-28
27
lc-62 lc-62
//There is a robot on an m x n grid. The robot is initially located at the top-l //eft corner (i.e., grid[0][0]). The ro
2022-07-27
26
lc-56 lc-56
//Given an array of intervals where intervals[i] = [starti, endi], merge all ove //rlapping intervals, and return an arr
2022-07-26
22
lc-55 lc-55
//You are given an integer array nums. You are initially positioned at the array //'s first index, and each element in t
2022-07-22
21
lc-54 lc-54
//Given an m x n matrix, return all elements of the matrix in spiral order. // // // Example 1: // // //Input: matrix =
2022-07-21
20
lc-53 lc-53
//Given an integer array nums, find the contiguous subarray (containing at least // one number) which has the largest su
2022-07-20
19
lc-50 lc-50
//Implement pow(x, n), which calculates x raised to the power n (i.e., xn). // // // Example 1: // // //Input: x = 2
2022-07-19
18
lc-49 lc-49
//Given an array of strings strs, group the anagrams together. You can return th //e answer in any order. // // An Anag
2022-07-18
13
lc-48 lc-48
//You are given an n x n 2D matrix representing an image, rotate the image by 90 // degrees (clockwise). // // You have
2022-07-13
12
lc-46 lc-46
//Given an array nums of distinct integers, return all the possible permutations //. You can return the answer in any or
2022-07-12
11
lc-44 lc-44
//Given an input string (s) and a pattern (p), implement wildcard pattern matchi //ng with support for '?' and '*' where
2022-07-11
1 / 2