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

Algorithms

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: 题目大意给定...
Leetcode 0048. Rotate Image
发表于2023-05-04|AlgorithmsLeetcode-C++
48. Rotate ImageYou 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, wh...
Leetcode 0046. Permutations
发表于2023-05-01|AlgorithmsLeetcode-C++
46. PermutationsGiven an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. Example 1: Example...
Leetcode 0045. 跳跃游戏 II
发表于2023-04-26|AlgorithmsLeetcode-C++
45. 跳跃游戏 II给定一个长度为 n 的 0 索引整数数组 nums。初始位置为 nums[0]。 每个元素 nums[i] 表示从索引 i 向后跳转的最大长度。换句话说,如果你在索引 i 处,你可以跳转到任意 (i + j) 处: 0 <= j <= nums[i] 且 i + j < ...
Leetcode 0042. 接雨水
发表于2023-04-24|AlgorithmsLeetcode-C++
42. 接雨水给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。 示例 1: 示例 2: 解题思路核心思路是双指针边界,通过每个柱子能接住的雨水量取决于其左右两侧的最高柱子中较矮的那个(短板效应): 边界定义: 对于位置 i,左侧最高柱子高度为 le...
Leetcode 0040. Combination Sum II
发表于2023-04-19|AlgorithmsLeetcode-C++
40. Combination Sum IIGiven a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the...
Leetcode 0039. Combination Sum
发表于2023-04-15|AlgorithmsLeetcode-C++
39. Combination SumGiven an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where t...
1…111213…15
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
最后更新时间 :
搜索
数据加载中