avatar
文章
823
标签
1101
分类
40
首页
主线
归档
标签
关于
家书
  • 父亲的与子书
  • 给女友的情书
LogoHespethornのBlog
搜索
首页
主线
归档
标签
关于
家书
  • 父亲的与子书
  • 给女友的情书

Leetcode-C++

Leetcode 0084. 柱状图中最大的矩形
发表于2023-06-27|AlgorithmsLeetcode-C++
84. 柱状图中最大的矩形给定 n 个非负整数,用来表示柱状图中各个柱子的高度。每个柱子彼此相邻,且宽度为 1 。 求在该柱状图中,能够勾勒出来的矩形的最大面积。 示例 1: 示例 2: 解题思路该解法是对单调栈思路的优化实现,通过在数组末尾添加哨兵元素和栈初始化技巧,将左右边界的计算合并到一次...
Leetcode 0082. Remove Duplicates from Sorted List II
发表于2023-06-24|AlgorithmsLeetcode-C++
82. Remove Duplicates from Sorted List IIGiven the head of a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers ...
Leetcode 0078. Subsets
发表于2023-06-22|AlgorithmsLeetcode-C++
78. SubsetsGiven an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets. ...
Leetcode 0077. Combinations
发表于2023-06-17|AlgorithmsLeetcode-C++
77. CombinationsGiven two integers n and k, return all possible combinations of k numbers chosen from the range [1, n]. You may return the answer in any orde...
Leetcode 0076. Minimum Window Substring
发表于2023-06-13|AlgorithmsLeetcode-C++
76. Minimum Window Substring题目Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). Ex...
Leetcode 0074. 搜索二维矩阵
发表于2023-06-08|AlgorithmsLeetcode-C++
74. 搜索二维矩阵给你一个满足下述两条属性的 m x n 整数矩阵: 每行中的整数从左到右按非严格递增顺序排列。 每行的第一个整数大于前一行的最后一个整数。 给你一个整数 target ,如果 target 在矩阵中,返回 true ;否则,返回 false 。 示例 1: 示例 2: 解法...
Leetcode 0073. Set Matrix Zeroes
发表于2023-06-03|AlgorithmsLeetcode-C++
73. Set Matrix Zeroes题目Given an *m* x *n* matrix. If an element is 0, set its entire row and column to 0. Do it in-place. Follow up: A straight forward solu...
Leetcode 0072. Edit Distance
发表于2023-05-30|AlgorithmsLeetcode-C++
72. Edit DistanceGiven two strings word1 and word2, return the minimum number of operations required to convert word1 to word2. You have the following three ...
Leetcode 0071. Simplify Path
发表于2023-05-27|AlgorithmsLeetcode-C++
71. Simplify PathYou are given an absolute path for a Unix-style file system, which always begins with a slash '/'. Your task is to transform this ab...
Leetcode 0070. Climbing Stairs
发表于2023-05-25|AlgorithmsLeetcode-C++
70. Climbing Stairs题目You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct w...
Leetcode 0069. Sqrt(x)
发表于2023-05-20|AlgorithmsLeetcode-C++
69. Sqrt(x)Given a non-negative integer x, return the square root of x rounded down to the nearest integer. The returned integer should be non-negative as we...
Leetcode 0059. Spiral Matrix II
发表于2023-05-17|AlgorithmsLeetcode-C++
59. Spiral Matrix IIGiven a positive integer n, generate an n x n matrix filled with elements from 1 to n2 in spiral order. Example 1: Example 2: Co...
Leetcode 0055. Jump Game
发表于2023-05-15|AlgorithmsLeetcode-C++
55. Jump GameYou are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your ...
Leetcode 0054. 螺旋矩阵
发表于2023-05-13|AlgorithmsLeetcode-C++
54. 螺旋矩阵给你一个 m 行 n 列的矩阵 matrix ,请按照 顺时针螺旋顺序 ,返回矩阵中的所有元素。 示例 1: 示例 2: 提示: m == matrix.length n == matrix[i].length 1 <= m, n <= 10 -100 <=...
Leetcode 0053. Maximum Subarray
发表于2023-05-08|AlgorithmsLeetcode-C++
53. Maximum SubarrayGiven an integer array nums, find the subarray with the largest sum, and return its sum. Example 1: Example 2: Example 3: 题目大意给定...
1…678…10
avatar
Hespethorn
文章
823
标签
1101
分类
40
GitHub
fox
ciwei
最新文章
计算机原则五讲(一):这笔投入能换回什么2026-11-20
计算机原则五讲(三):责任放在哪一层2026-11-20
计算机原则五讲(二):故障发生时还剩什么保证2026-11-20
计算机原则五讲(五):规模一上来,系数说了算2026-11-20
计算机原则五讲(六):没有免费的优化2026-11-20
分类
  • AI-ML53
    • AI-App20
    • AI-News33
  • Algorithms219
    • DSA35
    • Leetcode-C++141
    • Leetcode-Mysql6
    • Leetcode-Python37
  • CS-Fundamentals41
    • CS501
    • CS61A20
    • CS61B20
  • CS-Principles13
  • Database20
    • Mysql5
标签
CS-Principles专栏介绍分治存储垃圾回收容错引用透明封装关注点分离逃逸分析分布式事务数据一致性安全工程算法分析网络协议操作系统软件测试语言运行时工程运维版本管理
归档
  • 2026年11月 20
  • 2026年10月 10
  • 2026年09月 53
  • 2026年08月 56
  • 2026年07月 38
  • 2026年06月 47
网站信息
文章数目 :
823
运行时间 :
本站总字数 :
1885.8k
最后更新时间 :
搜索
数据加载中