上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 题目 Given an array of intervals intervals where intervals[i] = [starti, endi], return the minimum number of intervals you need to remove to make the re 阅读全文
posted @ 2022-06-21 17:04 frankming 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 题目 Write an efficient algorithm that searches for a value target in an m x n integer matrix matrix. This matrix has the following properties: Integers 阅读全文
posted @ 2022-06-14 19:54 frankming 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order. Example 1: Input: n = 3 Output: [[1,2,3],[8 阅读全文
posted @ 2022-06-14 19:47 frankming 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 题目 You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, which me 阅读全文
posted @ 2022-06-13 20:32 frankming 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pascal's triangle. In Pascal's triangle, each number is the sum of the two 阅读全文
posted @ 2022-06-10 16:25 frankming 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 题目 Design a HashMap without using any built-in hash table libraries. Implement the MyHashMap class: MyHashMap() initializes the object with an empty m 阅读全文
posted @ 2022-06-10 16:07 frankming 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping interv 阅读全文
posted @ 2022-06-06 17:15 frankming 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors 阅读全文
posted @ 2022-06-02 15:59 frankming 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an array nums of size n, return the majority element. The majority element is the element that appears more than ⌊n / 2⌋ times. You may assum 阅读全文
posted @ 2022-06-01 22:02 frankming 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each 阅读全文
posted @ 2022-05-17 19:52 frankming 阅读(23) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页