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

Algorithms

Leetcode 0454. 4Sum II
发表于2024-01-01|AlgorithmsLeetcode-C++
454. 4Sum IIGiven four integer arrays nums1, nums2, nums3, and nums4 all of length n, return the number of tuples (i, j, k, l) such that: 0 <= i, j, k, l...
Leetcode 0445. Add Two Numbers II
发表于2023-12-27|AlgorithmsLeetcode-C++
445. Add Two Numbers IIYou are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of th...
Leetcode 0429. N-ary Tree Level Order Traversal
发表于2023-12-22|AlgorithmsLeetcode-C++
429. N-ary Tree Level Order TraversalGiven an n-ary tree, return the level order traversal of its nodes' values. Nary-Tree input serialization is represe...
Leetcode 0409. 最长回文串
发表于2023-12-20|AlgorithmsLeetcode-C++
409. 最长回文串给定一个包含大写字母和小写字母的字符串 s ,返回 通过这些字母构造成的 最长的 回文串 的长度。 在构造过程中,请注意 区分大小写 。比如 "Aa" 不能当做一个回文字符串。 示例 1: 示例 2: 解题思路核心思路是统计字符频率,利用回文串的特性计算最大长...
Leetcode 0404. Sum of Left Leaves
发表于2023-12-15|AlgorithmsLeetcode-C++
404. Sum of Left LeavesGiven the root of a binary tree, return the sum of all left leaves. A leaf is a node with no children. A left leaf is a leaf that is t...
Leetcode 0402. 移掉 K 位数字
发表于2023-12-13|AlgorithmsLeetcode-C++
402. 移掉 K 位数字给你一个以字符串表示的非负整数 num 和一个整数 k ,移除这个数中的 k 位数字,使得剩下的数字最小。请你以字符串形式返回这个最小的数字。 示例 1 : 示例 2 : 示例 3 : 解题思路核心思路是单调栈 + 贪心算法,通过维护一个递增的栈来确保剩余数字最小,同时...
Leetcode 0367. Valid Perfect Square
发表于2023-12-09|AlgorithmsLeetcode-C++
367. Valid Perfect Square题目Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any buil...
Leetcode 0349. Intersection of Two Arrays
发表于2023-12-06|AlgorithmsLeetcode-C++
349. Intersection of Two ArraysGiven two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must be unique and...
Leetcode 0316. 去除重复字母
发表于2023-12-03|AlgorithmsLeetcode-C++
316. 去除重复字母给你一个字符串 s ,请你去除字符串中重复的字母,使得每个字母只出现一次。需保证 返回结果的字典序最小(要求不能打乱其他字符的相对位置)。 示例 1: 示例 2: 核心思路是单调栈 + 贪心算法,通过维护一个单调递增的栈来确保字典序最小,同时利用计数数组判断字符是否还有剩余,确...
Leetcode 0287. Find the Duplicate Number
发表于2023-11-29|AlgorithmsLeetcode-C++
287. Find the Duplicate NumberGiven an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. There is only on...
Leetcode 0283. Move Zeroes
发表于2023-11-26|AlgorithmsLeetcode-C++
283. Move Zeroes题目Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. E...
Leetcode 0257. Binary Tree Paths
发表于2023-11-23|AlgorithmsLeetcode-C++
257. Binary Tree PathsGiven the root of a binary tree, return all root-to-leaf paths in any order. A leaf is a node with no children. Example 1: Example...
Leetcode 0239. Sliding Window Maximum
发表于2023-11-19|AlgorithmsLeetcode-C++
239. Sliding Window MaximumYou are given an array of integers nums, there is a sliding window of size k which is moving from the very left of the array to th...
Leetcode 0232. Implement Queue using Stacks
发表于2023-11-15|AlgorithmsLeetcode-C++
232. Implement Queue using StacksImplement a first in first out (FIFO) queue using only two Stacks. The implemented queue should support all the functions of...
Leetcode 0227. Basic Calculator II
发表于2023-11-12|AlgorithmsLeetcode-C++
227. Basic Calculator IIGiven a string s which represents an expression, evaluate this expression and return its value. The integer division should truncate...
1…789…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
最后更新时间 :
搜索
数据加载中