leetcode.com 2026-06-30
🟡1358.number-of-substrings-containing-all-three-characters
🏷️ Tags
#hash_table #string #sliding_window
🟡1358.number-of-substrings-containing-all-three-characters
🏷️ Tags
#hash_table #string #sliding_window
Telegraph
number-of-substrings-containing-all-three-characters
Given a string s consisting only of characters a, b and c. Return the number of substrings containing at least one occurrence of all these characters a, b and c. Example 1: Input: s = "abcabc" Output: 10 Explanation: The substrings containing at least one…
leetcode.cn 2026-07-01
🟡2812.find-the-safest-path-in-a-grid
🏷️ Tags
#breadth_first_search #union_find #array #binary_search #matrix #heap_priority_queue
🟡2812.find-the-safest-path-in-a-grid
🏷️ Tags
#breadth_first_search #union_find #array #binary_search #matrix #heap_priority_queue
Telegraph
find-the-safest-path-in-a-grid
给你一个下标从 0 开始、大小为 n x n 的二维矩阵 grid ,其中 (r, c) 表示: