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

Leetcode-C++

Leetcode 0162. Find Peak Element
发表于2023-10-09|AlgorithmsLeetcode-C++
162. Find Peak Element题目A peak element is an element that is greater than its neighbors. Given an input array nums, where nums[i] ≠ nums[i+1], find a peak el...
Leetcode 0155. Min Stack
发表于2023-10-05|AlgorithmsLeetcode-C++
155. Min StackDesign a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: MinStack() ini...
Leetcode 0151. Reverse Words in a String
发表于2023-10-01|AlgorithmsLeetcode-C++
151. Reverse Words in a StringGiven an input string s, reverse the order of the words. A word is defined as a sequence of non-space characters. The words in ...
Leetcode 0150. Evaluate Reverse Polish Notation
发表于2023-09-28|AlgorithmsLeetcode-C++
150. Evaluate Reverse Polish NotationYou are given an array of strings tokens that represents an arithmetic expression in a Reverse Polish Notation. Evaluate...
Leetcode 0148. 排序链表
发表于2023-09-26|AlgorithmsLeetcode-C++
148. 排序链表给你链表的头结点 head ,请将其按 升序 排列并返回 排序后的链表 。 示例 1: 示例 2: 示例 3: 题目大意给定链表的头节点 head,要求将链表按升序排列并返回排序后的链表头节点。 解题思路对于链表排序,最适合的高效算法是归并排序,原因如下: 归并排序的时...
Leetcode 0146. LRU Cache
发表于2023-09-22|AlgorithmsLeetcode-C++
146. LRU CacheDesign a data structure that follows the constraints of a Least Recently Used (LRU) cache. Implement the LRUCache class: LRUCache(int capacity...
Leetcode 0145. Binary Tree Postorder Traversal
发表于2023-09-18|AlgorithmsLeetcode-C++
145. Binary Tree Postorder TraversalGiven the root of a binary tree, return the postorder traversal of its nodes' values. Example 1: Input: root = ...
Leetcode 0144. Binary Tree Preorder Traversal
发表于2023-09-15|AlgorithmsLeetcode-C++
144. Binary Tree Preorder TraversalGiven the root of a binary tree, return the preorder traversal of its nodes' values. Example 1: Input: root = [1...
Leetcode 0142. Linked List Cycle II
发表于2023-09-13|AlgorithmsLeetcode-C++
142. Linked List Cycle IIGiven the head of a linked list, return the node where the cycle begins. If there is no cycle, return null. There is a cycle in a li...
Leetcode 0131. Palindrome Partitioning
发表于2023-09-09|AlgorithmsLeetcode-C++
131. Palindrome PartitioningGiven a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitio...
Leetcode 0116. Populating Next Right Pointers in Each Node
发表于2023-09-07|AlgorithmsLeetcode-C++
116. Populating Next Right Pointers in Each NodeYou are given a perfect binary tree where all leaves are on the same level, and every parent has two children...
Leetcode 0112. Path Sum
发表于2023-09-05|AlgorithmsLeetcode-C++
112. Path SumGiven the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values alo...
Leetcode 0110. Balanced Binary Tree
发表于2023-09-01|AlgorithmsLeetcode-C++
110. Balanced Binary TreeGiven a binary tree, determine if it is height-balanced. Example 1: Example 2: Example 3: 题目大意给定一棵二叉树,判断它是否是高度平衡的。高度平衡平衡...
Leetcode 0108. Convert Sorted Array to Binary Search Tree
发表于2023-08-30|AlgorithmsLeetcode-C++
108. Convert Sorted Array to Binary Search TreeGiven an integer array nums where the elements are sorted in ascending order, convert it to a *height-balanced...
Leetcode 0107. Binary Tree Level Order Traversal II
发表于2023-08-26|AlgorithmsLeetcode-C++
107. Binary Tree Level Order Traversal IIGiven the root of a binary tree, return the bottom-up level order traversal of its nodes' values. (i.e., from le...
1…456…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
最后更新时间 :
搜索
数据加载中