leetcode.com 2026-09-25
🔴1096.brace-expansion-ii
🏷️ Tags
#stack #breadth_first_search #hash_table #string #backtracking #sorting
🔴1096.brace-expansion-ii
🏷️ Tags
#stack #breadth_first_search #hash_table #string #backtracking #sorting
Telegraph
brace-expansion-ii
Under the grammar given below, strings can represent a set of lowercase words. Let R(expr) denote the set of words the expression represents. The grammar can best be understood through simple examples:
leetcode.com 2026-09-26
🟡1807.evaluate-the-bracket-pairs-of-a-string
🏷️ Tags
#array #hash_table #string
🟡1807.evaluate-the-bracket-pairs-of-a-string
🏷️ Tags
#array #hash_table #string
Telegraph
evaluate-the-bracket-pairs-of-a-string
You are given a string s that contains some bracket pairs, with each pair containing a non-empty key.
leetcode.cn 2026-09-27
🟡1190.reverse-substrings-between-each-pair-of-parentheses
🏷️ Tags
#stack #string #bracket_sequences
🟡1190.reverse-substrings-between-each-pair-of-parentheses
🏷️ Tags
#stack #string #bracket_sequences
Telegraph
reverse-substrings-between-each-pair-of-parentheses
给出一个字符串 s(仅含有小写英文字母和括号)。 请你按照从括号内到外的顺序,逐层反转每对匹配括号中的字符串,并返回最终的结果。 注意,您的结果中 不应 包含任何括号。 示例 1: 输入:s = "(abcd)" 输出:"dcba" 示例 2: 输入:s = "(u(love)i)" 输出:"iloveu" 解释:先反转子字符串 "love" ,然后反转整个字符串。 示例 3: 输入:s = "(ed(et(oc))el)" 输出:"leetcode" 解释:先反转子字符串 "oc" ,接着反转 "etco"…
leetcode.com 2026-09-27
🟡1190.reverse-substrings-between-each-pair-of-parentheses
🏷️ Tags
#stack #string #bracket_sequences
🟡1190.reverse-substrings-between-each-pair-of-parentheses
🏷️ Tags
#stack #string #bracket_sequences
Telegraph
reverse-substrings-between-each-pair-of-parentheses
You are given a string s that consists of lower case English letters and brackets. Reverse the strings in each pair of matching parentheses, starting from the innermost one. Your result should not contain any brackets. Example 1: Input: s = "(abcd)" Output:…
leetcode.cn 2026-09-28
🟢1614.maximum-nesting-depth-of-the-parentheses
🏷️ Tags
#stack #string #bracket_sequences
🟢1614.maximum-nesting-depth-of-the-parentheses
🏷️ Tags
#stack #string #bracket_sequences
Telegraph
maximum-nesting-depth-of-the-parentheses
给定 有效括号字符串 s,返回 s 的 嵌套深度。嵌套深度是嵌套括号的 最大 数量。 示例 1: 输入:s = "(1+(2*3)+((8)/4))+1" 输出:3 解释:数字 8 在嵌套的 3 层括号中。 示例 2: 输入:s = "(1)+((2))+(((3)))" 输出:3 解释:数字 3 在嵌套的 3 层括号中。 示例 3: 输入:s = "()(())((()()))" 输出:3 提示:
leetcode.com 2026-09-28
🟢1614.maximum-nesting-depth-of-the-parentheses
🏷️ Tags
#stack #string #bracket_sequences
🟢1614.maximum-nesting-depth-of-the-parentheses
🏷️ Tags
#stack #string #bracket_sequences
Telegraph
maximum-nesting-depth-of-the-parentheses
Given a valid parentheses string s, return the nesting depth of s. The nesting depth is the maximum number of nested parentheses. Example 1: Input: s = "(1+(2*3)+((8)/4))+1" Output: 3 Explanation: Digit 8 is inside of 3 nested parentheses in the string.…