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

Algorithms

Leetcode 0570. 至少有5名直接下属的经理
发表于2024-01-28|AlgorithmsLeetcode-C++
570. 至少有5名直接下属的经理表: Employee 编写一个解决方案,找出至少有五个直接下属的经理。 以 任意顺序 返回结果表。 查询结果格式如下所示。 示例 1: 解题思路核心思路是 “先统计下属数量,再匹配经理信息”: 统计下属数量:按 managerId 分组(managerId 对应经...
Leetcode 0006. Zigzag Conversion (python)
发表于2024-01-27|AlgorithmsLeetcode-Python
6. Zigzag Conversion题目The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this...
Leetcode 0515. Find Largest Value in Each Tree Row
发表于2024-01-25|AlgorithmsLeetcode-C++
515. Find Largest Value in Each Tree RowGiven the root of a binary tree, return an array of the largest value in each row of the tree (0-indexed). Example 1...
Leetcode 0513. Find Bottom Left Tree Value
发表于2024-01-22|AlgorithmsLeetcode-C++
513. Find Bottom Left Tree ValueGiven the root of a binary tree, return the leftmost value in the last row of the tree. Example 1: Example 2: 题目大意给定...
Leetcode 0005. Longest Palindromic Substring (python)
发表于2024-01-22|AlgorithmsLeetcode-Python
5. Longest Palindromic Substring题目Given a string s, return the longest palindromic substring in s. Example 1: Example 2: Constraints: 1 <= s.length...
Leetcode 0509. Fibonacci Number
发表于2024-01-20|AlgorithmsLeetcode-C++
509. Fibonacci Number题目The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the t...
Leetcode 0004. Median of Two Sorted Arrays (python)
发表于2024-01-17|AlgorithmsLeetcode-Python
4. Median of Two Sorted Arrays题目Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays. The overall...
Leetcode 0503. 下一个更大元素 II
发表于2024-01-16|AlgorithmsLeetcode-C++
503. 下一个更大元素 II给定一个循环数组 nums ( nums[nums.length - 1] 的下一个元素是 nums[0] ),返回 nums 中每个元素的 下一个更大元素 。 数字 x 的 下一个更大的元素 是按数组遍历顺序,这个数字之后的第一个比它更大的数,这意味着你应该循环地搜索它的下一个更大...
Leetcode 0496. 下一个更大元素 I
发表于2024-01-14|AlgorithmsLeetcode-C++
496. 下一个更大元素 Inums1 中数字 x 的 下一个更大元素 是指 x 在 nums2 中对应位置 右侧 的 第一个 比 x 大的元素。 给你两个 没有重复元素 的数组 nums1 和 nums2 ,下标从 0 开始计数,其中nums1 是 nums2 的子集。 对于每个 0 <= i < ...
Leetcode 0491. Non-decreasing Subsequences
发表于2024-01-12|AlgorithmsLeetcode-C++
491. Non-decreasing SubsequencesGiven an integer array nums, return all the different possible non-decreasing subsequences of the given array with at least t...
Leetcode 0003. Longest Substring Without Repeating Characters (python)
发表于2024-01-12|AlgorithmsLeetcode-Python
3. Longest Substring Without Repeating Characters题目Given a string s, find the length of the longest substring without repeating characters. Example 1: Exa...
Leetcode 0461.hamming-distance
发表于2024-01-10|AlgorithmsLeetcode-C++
461. 汉明距离两个整数之间的 汉明距离 指的是这两个数字对应二进制位不同的位置的数目。 给你两个整数 x 和 y,计算并返回它们之间的汉明距离。 示例 1: 示例 2: 题目大意 汉明距离是指两个整数的二进制表示中,对应位置二进制位不同的数目。给定两个整数 x 和 y,计算并返回它们之间的汉明距...
Leetcode 0002. Add Two Numbers
发表于2024-01-07|AlgorithmsLeetcode-Python
2. Add Two Numbers题目You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of thei...
Leetcode 0455. Assign Cookies
发表于2024-01-05|AlgorithmsLeetcode-C++
455. Assign CookiesAssume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each chi...
Leetcode 0001.two sum(python)
发表于2024-01-02|AlgorithmsLeetcode-Python
1. Two Sum题目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 eac...
1…678…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
最后更新时间 :
搜索
数据加载中