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

Leetcode-C++

Leetcode 0922. Sort Array By Parity II
发表于2024-03-15|AlgorithmsLeetcode-C++
922. Sort Array By Parity IIGiven an array of integers nums, half of the integers in nums are odd, and the other half are even. Sort the array so that whenev...
Leetcode 0905. Sort Array By Parity
发表于2024-03-11|AlgorithmsLeetcode-C++
905. Sort Array By ParityGiven an integer array nums, move all the even integers at the beginning of the array followed by all the odd integers. Return any a...
Leetcode 0904. Fruit Into Baskets
发表于2024-03-06|AlgorithmsLeetcode-C++
904. Fruit Into Baskets题目In a row of trees, the i-th tree produces fruit with type tree[i]. You start at any tree of your choice, then repeatedly perform the...
Leetcode 0844. Backspace String Compare
发表于2024-03-01|AlgorithmsLeetcode-C++
844. Backspace String Compare题目Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character...
Leetcode 0826. Most Profit Assigning Work
发表于2024-02-27|AlgorithmsLeetcode-C++
826. Most Profit Assigning WorkYou have n jobs and m workers. You are given three arrays: difficulty, profit, and worker where: difficulty[i] and profit[i] ...
Leetcode 0825. Friends Of Appropriate Ages
发表于2024-02-25|AlgorithmsLeetcode-C++
825. Friends Of Appropriate AgesThere are n persons on a social media website. You are given an integer array ages where ages[i] is the age of the ith person...
Leetcode 0707. Design Linked List
发表于2024-02-20|AlgorithmsLeetcode-C++
707. Design Linked ListDesign your implementation of the linked list. You can choose to use a singly or doubly linked list.A node in a singly linked list sho...
Leetcode 0704. Binary Search
发表于2024-02-18|AlgorithmsLeetcode-C++
704. Binary Search题目Given a sorted (in ascending order) integer array nums of n elements and a target value, write a function to search target in nums. If ta...
Leetcode 0637. Average of Levels in Binary Tree
发表于2024-02-14|AlgorithmsLeetcode-C++
637. Average of Levels in Binary TreeGiven the root of a binary tree, return the average value of the nodes on each level in the form of an array. Answers wi...
Leetcode 0626. 换座位
发表于2024-02-09|AlgorithmsLeetcode-C++
626. 换座位表: Seat 编写解决方案来交换每两个连续的学生的座位号。如果学生的数量是奇数,则最后一个学生的id不交换。 按 id 升序 返回结果表。 查询结果格式如下所示。 示例 1: 解题思路通过 IF 嵌套函数实现座位交换的逻辑判断: 对于偶数 ID(id%2=0):将其 ID 减 1(...
Leetcode 0611. Valid Triangle Number
发表于2024-02-06|AlgorithmsLeetcode-C++
611. Valid Triangle NumberGiven an integer array nums, return the number of triplets chosen from the array that can make triangles if we take them as side le...
Leetcode 0572. Subtree of Another Tree
发表于2024-02-01|AlgorithmsLeetcode-C++
572. Subtree of Another TreeGiven the roots of two binary trees root and subRoot, return true if there is a subtree of root with the same structure and node ...
Leetcode 0570. 至少有5名直接下属的经理
发表于2024-01-28|AlgorithmsLeetcode-C++
570. 至少有5名直接下属的经理表: Employee 编写一个解决方案,找出至少有五个直接下属的经理。 以 任意顺序 返回结果表。 查询结果格式如下所示。 示例 1: 解题思路核心思路是 “先统计下属数量,再匹配经理信息”: 统计下属数量:按 managerId 分组(managerId 对应经...
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: 题目大意给定...
123…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
最后更新时间 :
搜索
数据加载中