https://leetcode.com/problems/boats-to-save-people/description/
Minimum total boats with at most
Minimum total boats with at most
2
people & limit
weight #medium #two_pointers #greedy👍2
https://leetcode.com/problems/find-k-th-smallest-pair-distance/description/
`k`th smallest pairs diff in array #hard #binary_search #two_pointers
`k`th smallest pairs diff in array #hard #binary_search #two_pointers
👍1
https://leetcode.com/problems/find-the-longest-substring-containing-vowels-in-even-counts/description/
Longest substring with even number of "aeiou" #medium #bit_manipulation #two_pointers
Longest substring with even number of "aeiou" #medium #bit_manipulation #two_pointers
👍2
https://leetcode.com/problems/permutation-in-string/description/
Is
Is
s2
contains permutation of s1
? #medium #two_pointers👍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/string-compression-iii/description/
Compress repeating chars in string #medium #two_pointers
Compress repeating chars in string #medium #two_pointers
👍2
https://leetcode.com/problems/count-the-number-of-fair-pairs/description/
Count pairs
Count pairs
a[i] + a[j] in lower..upper
#medium #binary_search #two_pointers👍2
https://leetcode.com/problems/shortest-subarray-to-be-removed-to-make-array-sorted/description/
Min subarray remove to make array sorted #medium #two_pointers
Min subarray remove to make array sorted #medium #two_pointers
👍3
https://leetcode.com/problems/take-k-of-each-character-from-left-and-right/description/
Min take
Min take
k
of a,b,c
from head or tail #medium #two_pointers👍3
https://leetcode.com/problems/special-array-ii/description/
Queries is all adjucents parity differ [i..j] #medium #two_pointers
Queries is all adjucents parity differ [i..j] #medium #two_pointers
👍1