算法题汇总

news/2025/1/15 8:25:15/

算法汇总

    1. 环形链表 https://leetcode.cn/problems/linked-list-cycle/
    1. 反转链表 https://leetcode.cn/problems/reverse-linked-list/28
    1. 环形链表 II https://leetcode.cn/problems/linked-list-cycle-ii/
    1. 快乐数 https://leetcode.cn/problems/happy-number/
    1. 反转链表 II https://leetcode.cn/problems/reverse-linked-list-ii/
    1. K 个一组翻转链表 https://leetcode.cn/problems/reverse-nodes-in-k-group/
  1. 1.两数之和 https://leetcode.cn/problems/two-sum/
    1. 搜索插入位置 https://leetcode.cn/problems/search-insert-position/
    1. 二分查找 https://leetcode.cn/problems/binary-search/
    1. 寻找旋转排序数组中的最小值 https://leetcode.cn/problems/find-minimum-in-rotated-sorted-array/
    1. 搜索旋转排序数组 https://leetcode.cn/problems/search-in-rotated-sorted-array/
    1. x 的平方根 https://leetcode.cn/problems/sqrtx/
    1. 在排序数组中查找元素的第一个和最后一个位置 https://leetcode.cn/problems/find-first-and-last-position-of-element-in-sorted-array/
    1. 在 D 天内送达包裹的能力 https://leetcode.cn/problems/capacity-to-ship-packages-within-d-days/
    1. 相同的树 https://leetcode.cn/problems/same-tree/
    1. 对称二叉树 https://leetcode.cn/problems/symmetric-tree/
    1. 合并二叉树 https://leetcode.cn/problems/merge-two-binary-trees/
    1. 二叉树的前序遍历 https://leetcode.cn/problems/binary-tree-preorder-traversal/
    1. 二叉树的最小深度 https://leetcode.cn/problems/minimum-depth-of-binary-tree/
    1. 二叉树展开为链表 https://leetcode.cn/problems/flatten-binary-tree-to-linked-list/
    1. 二叉树的最近公共祖先 https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-tree/
    1. 二叉树的直径 https://leetcode.cn/problems/diameter-of-binary-tree/
    1. 另一棵树的子树 https://leetcode.cn/problems/subtree-of-another-tree/
    1. 完全二叉树的节点个数 https://leetcode.cn/problems/count-complete-tree-nodes/
    1. 二叉树的所有路径 https://leetcode.cn/problems/binary-tree-paths/
    1. 二叉树的层序遍历 https://leetcode.cn/problems/binary-tree-level-order-traversal/
    1. 二叉树的层序遍历 II https://leetcode.cn/problems/binary-tree-level-order-traversal-ii/
    1. 二叉树的右视图 https://leetcode.cn/problems/binary-tree-right-side-view/
    1. 二叉树的层平均值 https://leetcode.cn/problems/average-of-levels-in-binary-tree/
    1. 填充每个节点的下一个右侧节点指针 https://leetcode.cn/problems/populating-next-right-pointers-in-each-node/
    1. N 叉树的层序遍历 https://leetcode.cn/problems/n-ary-tree-level-order-traversal/
    1. 路径总和 https://leetcode.cn/problems/path-sum/
    1. 左叶子之和 https://leetcode.cn/problems/sum-of-left-leaves/
    1. 验证二叉搜索树 https://leetcode.cn/problems/validate-binary-search-tree/
    1. 恢复二叉搜索树 https://leetcode.cn/problems/recover-binary-search-tree/
    1. 用队列实现栈 https://leetcode.cn/problems/implement-stack-using-queues/
    1. 用栈实现队列 https://leetcode.cn/problems/implement-queue-using-stacks/
    1. 逆波兰表达式求值 https://leetcode.cn/problems/evaluate-reverse-polish-notation/
    1. 删除字符串中的所有相邻重复项 https://leetcode.cn/problems/remove-all-adjacent-duplicates-in-string/
    1. 反转字符串中的单词 https://leetcode.cn/problems/reverse-words-in-a-string/description/
    1. 电话号码的字母组合 https://leetcode.cn/problems/letter-combinations-of-a-phone-number/
    1. 组合总和 https://leetcode.cn/problems/combination-sum/
    1. N 皇后 https://leetcode.cn/problems/n-queens/
    1. 解数独 https://leetcode.cn/problems/sudoku-solver/
    1. 组合 https://leetcode.cn/problems/combinations/
    1. 子集 https://leetcode.cn/problems/subsets/
    1. 分割回文串 https://leetcode.cn/problems/palindrome-partitioning/
    1. 复原 IP 地址 https://leetcode.cn/problems/restore-ip-addresses/
    1. 跳跃游戏 https://leetcode.cn/problems/jump-game/
    1. 跳跃游戏 II https://leetcode.cn/problems/jump-game-ii/
    1. 用最少数量的箭引爆气球 https://leetcode.cn/problems/minimum-number-of-arrows-to-burst-balloons/
    1. 无重叠区间 https://leetcode.cn/problems/non-overlapping-intervals/
    1. Dota2 参议院 https://leetcode.cn/problems/dota2-senate/
    1. 爬楼梯 https://leetcode.cn/problems/climbing-stairs/
    1. 使用最小花费爬楼梯 https://leetcode.cn/problems/min-cost-climbing-stairs/
    1. 不同路径 https://leetcode.cn/problems/unique-paths/
    1. 不同路径 II https://leetcode.cn/problems/unique-paths-ii/
    1. 打家劫舍 https://leetcode.cn/problems/house-robber/
    1. 打家劫舍 II https://leetcode.cn/problems/house-robber-ii/
    1. 打家劫舍 III https://leetcode.cn/problems/house-robber-iii/
    1. 买卖股票的最佳时机 https://leetcode.cn/problems/best-time-to-buy-and-sell-stock/
    1. 买卖股票的最佳时机 II https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii/
    1. 买卖股票的最佳时机 III https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-iii/
    1. 买卖股票的最佳时机含手续费 https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/
    1. 最大子数组和 https://leetcode.cn/problems/maximum-subarray/
    1. 最长连续递增序列 https://leetcode.cn/problems/longest-continuous-increasing-subsequence/
    1. 零钱兑换 II https://leetcode.cn/problems/coin-change-ii/
    1. 判断子序列 https://leetcode.cn/problems/is-subsequence/
    1. 最长公共子序列 https://leetcode.cn/problems/longest-common-subsequence/
    1. 不同的子序列 https://leetcode.cn/problems/distinct-subsequences/
    1. 两个字符串的删除操作 https://leetcode.cn/problems/delete-operation-for-two-strings/
    1. 简化路径 https://leetcode.cn/problems/simplify-path/
    1. 赎金信 https://leetcode.cn/problems/ransom-note/
    1. 有效的字母异位词 https://leetcode.cn/problems/valid-anagram/
    1. 三数之和 https://leetcode.cn/problems/3sum/
    1. 四数之和 https://leetcode.cn/problems/4sum/
    1. Nim 游戏 https://leetcode.cn/problems/nim-game/
    1. 石子游戏 https://leetcode.cn/problems/stone-game/
    1. 3 的幂 https://leetcode.cn/problems/power-of-three/description/
    1. 数组中的第K个最大元素 https://leetcode.cn/problems/kth-largest-element-in-an-array/
    1. 数据流的中位数 https://leetcode.cn/problems/find-median-from-data-stream/
    1. 前 K 个高频元素 https://leetcode.cn/problems/top-k-frequent-elements/
    1. 最小栈 https://leetcode.cn/problems/min-stack/
    1. 整数反转 https://leetcode.cn/problems/reverse-integer/description/
  2. 61.旋转链表 https://leetcode.cn/problems/rotate-list/
  3. 24.两两交换链表的节点 https://leetcode.cn/problems/swap-nodes-in-pairs/
    1. 删除链表的倒数第 N 个结点 https://leetcode.cn/problems/remove-nth-node-from-end-of-list/
    1. 删除排序链表中的重复元素 https://leetcode.cn/problems/remove-duplicates-from-sorted-list/
    1. 删除排序链表中的重复元素 II https://leetcode.cn/problems/remove-duplicates-from-sorted-list-ii/
    1. 设计循环队列 https://leetcode.cn/problems/design-circular-queue/
    1. 设计循环双端队列 https://leetcode.cn/problems/design-circular-deque/
    1. 设计前中后队列 https://leetcode.cn/problems/design-front-middle-back-queue/
    1. 最近的请求次数 https://leetcode.cn/problems/number-of-recent-calls
  4. 面试题 17.09. 第 k 个数 https://leetcode.cn/problems/get-kth-magic-number-lcci/
    1. 亲密字符串 https://leetcode.cn/problems/buddy-strings/
    1. 柠檬水找零 https://leetcode.cn/problems/lemonade-change
    1. 煎饼排序 https://leetcode.cn/problems/pancake-sorting/
    1. 任务调度器 https://leetcode.cn/problems/task-scheduler/
  5. 面试题 03.04. 化栈为队 https://leetcode.cn/problems/implement-queue-using-stacks-lcci/
    1. 棒球比赛 https://leetcode.cn/problems/baseball-game
    1. 比较含退格的字符串 https://leetcode.cn/problems/backspace-string-compare/
    1. 验证栈序列 https://leetcode.cn/problems/validate-stack-sequences/
    1. 有效的括号 https://leetcode.cn/problems/valid-parentheses
    1. 删除最外层的括号 https://leetcode.cn/problems/remove-outermost-parentheses
    1. 移除无效的括号 https://leetcode.cn/problems/minimum-remove-to-make-valid-parentheses
    1. 验证二叉树的前序序列化 https://leetcode.cn/problems/verify-preorder-serialization-of-a-binary-tree/
    1. 基本计算器 II https://leetcode.cn/problems/basic-calculator-ii/

http://www.ppmy.cn/news/1520654.html

相关文章

掌握SQL的“删除艺术”:如何使用DROP TABLE命令

掌握SQL的“删除艺术”:如何使用DROP TABLE命令 在数据库管理中,有时候我们需要彻底删除一个表,这可能是为了重新设计数据库结构,或者因为某些表不再需要。SQL 提供了 DROP TABLE 语句来实现这一功能。本文将详细介绍 DROP TABLE…

react 中three.js 模型渲染

npm install three import * as THREE from "three"; import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js"; const mountRef useRef(null); useEffect(() > {// 创建渲染器 const renderer new THREE.WebGLRenderer(); const wi…

“解决MySQL容器启动后无法编辑文件的问题:实用指南“

前段时间拉取了个MySQL的容器节点,但是拉起之后发现居然编辑不了MySQL的配置文件,这是我的启动命令 docker run -itd -p 3310:3306 -e MYSQL_ROOT_PASSWORD12345678 --name slave2 f5f171121fa3 bash 下面总结下解决方法: 编辑docker file…

MES基于C#开发计划管理组件集成WinCC中使用

MES系统通常都会与SCADA系统集成使用,尤其具备中控管理需求的工厂,集控SCADA需要集成MES系统的计划工单数据实现工单数据、工艺配方数据、SN数据、打码数据等下发,执行状态、关键参数反馈等上传。本文介绍在WinCC画面集成基于C#开发的计划管理…

[论文笔记] LLM模型剪枝

Attention Is All You Need But You Don’t Need All Of It For Inference of Large Language Models LLaMA2在剪枝时,跳过ffn和跳过full layer的效果差不多。相比跳过ffn/full layer,跳过attention layer的影响会更小。 跳过attention layer:7B/13B从100%参…

iOS 收集打印日志

可以将要在Xcode 控制台打印的日志写在沙盒,最后导出分享,进行问题分析。 正式版本不建议使用,避免增加用户内存。配合解决顽固 Bug 可以通过该方法收集打印日志 .h头文件 interface LogManager : NSObject(FSLogManager *)shareInstance; -…

冲刺蓝桥杯第三章字符串

ASCII码值、字母大小写转换、‘0’~‘9’ //数字转字符:A(65)a(97)0(48) char A=char(65); char a=char(97); char c

终极解决 docker 拉取镜像失败的问题,其他类似场景也适用

国内的网络环境,想必大家都是知道的,虽说技术无罪,但奈何政策不允许啊,以下内容我在 CSDN 上发不了,请大家移步我的个人公 * 号:新质程序猿,查看更多原创内容,这里只介绍相关背景和需…