leetcode.cn 2026-08-31
🟡2058.find-the-minimum-and-maximum-number-of-nodes-between-critical-points
🏷️ Tags
#linked_list
🟡2058.find-the-minimum-and-maximum-number-of-nodes-between-critical-points
🏷️ Tags
#linked_list
Telegraph
find-the-minimum-and-maximum-number-of-nodes-between-critical-points
链表中的 临界点 定义为一个 局部极大值点 或 局部极小值点 。 如果当前节点的值 严格大于 前一个节点和后一个节点,那么这个节点就是一个 局部极大值点 。 如果当前节点的值 严格小于 前一个节点和后一个节点,那么这个节点就是一个 局部极小值点 。 注意:节点只有在同时存在前一个节点和后一个节点的情况下,才能成为一个 局部极大值点 / 极小值点 。 给你一个链表 head ,返回一个长度为 2 的数组 [minDistance, maxDistance] ,其中 minDistance 是任意两个不…
leetcode.com 2026-08-31
🟡2058.find-the-minimum-and-maximum-number-of-nodes-between-critical-points
🏷️ Tags
#linked_list
🟡2058.find-the-minimum-and-maximum-number-of-nodes-between-critical-points
🏷️ Tags
#linked_list
Telegraph
find-the-minimum-and-maximum-number-of-nodes-between-critical-points
A critical point in a linked list is defined as either a local maxima or a local minima. A node is a local maxima if the current node has a value strictly greater than the previous node and the next node. A node is a local minima if the current node has a…
leetcode.cn 2026-09-01
🟡3568.minimum-moves-to-clean-the-classroom
🏷️ Tags
#bit_manipulation #breadth_first_search #array #hash_table #matrix
🟡3568.minimum-moves-to-clean-the-classroom
🏷️ Tags
#bit_manipulation #breadth_first_search #array #hash_table #matrix
Telegraph
minimum-moves-to-clean-the-classroom
给你一个 m x n 的网格图 classroom,其中一个学生志愿者负责清理散布在教室里的垃圾。网格图中的每个单元格是以下字符之一:
leetcode.com 2026-09-01
🟡3568.minimum-moves-to-clean-the-classroom
🏷️ Tags
#bit_manipulation #breadth_first_search #array #hash_table #matrix
🟡3568.minimum-moves-to-clean-the-classroom
🏷️ Tags
#bit_manipulation #breadth_first_search #array #hash_table #matrix
Telegraph
minimum-moves-to-clean-the-classroom
You are given an m x n grid classroom where a student volunteer is tasked with cleaning up litter scattered around the room. Each cell in the grid is one of the following: