leetcode.com 2026-08-14
🟢3090.maximum-length-substring-with-two-occurrences
🏷️ Tags
#hash_table #string #sliding_window
🟢3090.maximum-length-substring-with-two-occurrences
🏷️ Tags
#hash_table #string #sliding_window
Telegraph
maximum-length-substring-with-two-occurrences
Example 1: Input: s = "bcbbbcba" Output: 4 Explanation:
leetcode.cn 2026-08-19
🟡1386.cinema-seat-allocation
🏷️ Tags
#greedy #bit_manipulation #array #hash_table
🟡1386.cinema-seat-allocation
🏷️ Tags
#greedy #bit_manipulation #array #hash_table
Telegraph
cinema-seat-allocation
如上图所示,电影院的观影厅中有 n 行座位,行编号从 1 到 n ,且每一行内总共有 10 个座位,列编号从 1 到 10 。 给定一个二维数组 reservedSeats ,其中 reservedSeats[i] = [rowi, seati] 表示第 rowi 行的座位 seati 已经被预定。 四人小组必须被安排在同一排的四个座位上。该小组可以坐在以下座位块之一:
leetcode.com 2026-08-19
🟡1386.cinema-seat-allocation
🏷️ Tags
#greedy #bit_manipulation #array #hash_table
🟡1386.cinema-seat-allocation
🏷️ Tags
#greedy #bit_manipulation #array #hash_table
Telegraph
cinema-seat-allocation
A cinema has n rows of seats, numbered from 1 to n. Each row has 10 seats, numbered from 1 to 10. You are given a 2D integer array reservedSeats, where reservedSeats[i] = [rowi, seati] means that seat seati in row rowi is already reserved. A four-person group…
leetcode.cn 2026-08-27
🟡3720.lexicographically-smallest-permutation-greater-than-target
🏷️ Tags
#greedy #hash_table #string #counting #enumeration
🟡3720.lexicographically-smallest-permutation-greater-than-target
🏷️ Tags
#greedy #hash_table #string #counting #enumeration
Telegraph
lexicographically-smallest-permutation-greater-than-target
给你两个长度均为 n 且仅由小写英文字母组成的字符串 s 和 target。
leetcode.com 2026-08-27
🟡3720.lexicographically-smallest-permutation-greater-than-target
🏷️ Tags
#greedy #hash_table #string #counting #enumeration
🟡3720.lexicographically-smallest-permutation-greater-than-target
🏷️ Tags
#greedy #hash_table #string #counting #enumeration
Telegraph
lexicographically-smallest-permutation-greater-than-target
You are given two strings s and target, both having length n, consisting of lowercase English letters. Return the lexicographically smallest permutation of s that is strictly greater than target. If no permutation of s is lexicographically strictly greater…
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,其中一个学生志愿者负责清理散布在教室里的垃圾。网格图中的每个单元格是以下字符之一: