数据结构
文章平均质量分 79
omenkk7
28届在校生 目标是进腾讯
记录学习笔记和个人感悟
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
剪枝的应用-BFS剪枝-poj3278-可行性剪枝
DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K (0 ≤ K ≤ 100,000) on the same number line. Farmer John has原创 2025-03-09 15:50:51 · 739 阅读 · 0 评论 -
单调队列应用—滑动窗口-acwing154
给定一个大小为 n≤106n≤106 的数组。有一个大小为 kk 的滑动窗口,它从数组的最左边移动到最右边。你只能在窗口中看到 kk 个数字。每次滑动窗口向右移动一个位置。以下是一个例子:该数组为,kk 为 33。你的任务是确定滑动窗口位于每个位置时,窗口中的最大值和最小值。原创 2025-03-06 15:20:23 · 372 阅读 · 0 评论
分享