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
https://leetcode.com/problems/the-number-of-the-smallest-unoccupied-chair/description/
target's
chair number when chairs reused by multiple [arrival, leave]
times #medium #sorting #heap👍3
https://leetcode.com/problems/divide-intervals-into-minimum-number-of-groups/description/
Count non-intersecting groups of intervals #medium #heap #sorting
Count non-intersecting groups of intervals #medium #heap #sorting
👍3
https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/description/
Smallest intersection of
Smallest intersection of
k
sorted lists #medium #heap #tree_set👍3❤1
https://leetcode.com/problems/maximal-score-after-applying-k-operations/description/
Replace
Replace
max(arr)
with ceil(max/3)
k
times #medium #heap👍3
https://leetcode.com/problems/separate-black-and-white-balls/description/
Min moves to sort
Min moves to sort
01
string #medium #greedy👍4
https://leetcode.com/problems/longest-happy-string/description/
Longest string of
Longest string of
a
, b
, c
not repeating 3 times #medium #greedy👍3
https://leetcode.com/problems/maximum-swap/description/
Max number after a single digits swap #medium #greedy
Max number after a single digits swap #medium #greedy
👍3
https://leetcode.com/problems/count-number-of-maximum-bitwise-or-subsets/description/
Count subsequences with max bitwise
Count subsequences with max bitwise
or
#medium #backtracking👍4