https://leetcode.com/problems/lexicographical-numbers/description/
Lexicographical ordered numbers
Lexicographical ordered numbers
1..n
#medium #dfs👍3
https://leetcode.com/problems/k-th-smallest-in-lexicographical-order/description/
k
lexicographically smallest value from 1..n
#hard #math👍3
https://leetcode.com/problems/extra-characters-in-a-string/description/
Min extra chars to form an
Min extra chars to form an
s
from dictionary
#medium #dynamic_programming👍3
https://leetcode.com/problems/find-the-length-of-the-longest-common-prefix/description/
Common digit prefix between all pairs of two num arrays #medium #trie
Common digit prefix between all pairs of two num arrays #medium #trie
👍3
https://leetcode.com/problems/sum-of-prefix-scores-of-strings/description/
Counts of words with same prefixes #hard #trie
Counts of words with same prefixes #hard #trie
👍4
https://leetcode.com/problems/my-calendar-i/description/
Insert non-intersection interval #medium #binary_search
Insert non-intersection interval #medium #binary_search
👍3
https://leetcode.com/problems/my-calendar-ii/description/
Add intervals intersecting less than two times #medium #line_sweep
Add intervals intersecting less than two times #medium #line_sweep
👍3
https://leetcode.com/problems/all-oone-data-structure/description/
Count usage frequencies in O(1) #hard #hashmap #linked_list
Count usage frequencies in O(1) #hard #hashmap #linked_list
👍3
https://leetcode.com/problems/design-a-stack-with-increment-operation/description/
Stack with range increment operation #medium #design
Stack with range increment operation #medium #design
👍3
https://leetcode.com/problems/check-if-array-pairs-are-divisible-by-k/description/
Can all pairs sums be
Can all pairs sums be
k
-even? #medium #modulo👍5
https://leetcode.com/problems/rank-transform-of-an-array/description/
Array values to their sorted set positions #easy
Array values to their sorted set positions #easy
👍2
https://leetcode.com/problems/make-sum-divisible-by-p/description/
Min removed subarray length to make
Min removed subarray length to make
remainder % p = 0
#medium #modulo👍3
https://leetcode.com/problems/divide-players-into-teams-of-equal-skill/description/
Sum of products of pairs with equal sums #medium #math
Sum of products of pairs with equal sums #medium #math
👍3
https://leetcode.com/problems/permutation-in-string/description/
Is
Is
s2
contains permutation of s1
? #medium #two_pointers👍3
https://leetcode.com/problems/sentence-similarity-iii/description/
Are strings equal after inserting substring? #medium
Are strings equal after inserting substring? #medium
👍3
https://leetcode.com/problems/minimum-string-length-after-removing-substrings/description/
Remove 'AB' and 'CD' from the string #easy #stack
Remove 'AB' and 'CD' from the string #easy #stack
👍3
https://leetcode.com/problems/minimum-number-of-swaps-to-make-the-string-balanced/description/
Min swaps to balance brackets #medium #two_pointers #stack
Min swaps to balance brackets #medium #two_pointers #stack
👍3
https://leetcode.com/problems/minimum-add-to-make-parentheses-valid/description/
Minimum inserts to balance brackets #medium #stack
Minimum inserts to balance brackets #medium #stack
👍3
https://leetcode.com/problems/maximum-width-ramp/description/
Max
Max
j-i
between a[i] <= a[j]
in array #medium #monotonic_stack #sorting👍3