1590. Make Sum Divisible by P

```python class Solution: def minSubarray(self, A: List[int], p: int) -> int: “”” tc O(N) sc O(N) case1 no need to remove sum(A) % p == 0 case2 there is a min length subarray A[i:j], => [total - sum(A[i:j])] % p == 0 ==> total%p == sum(A[i:j])%p = rem ==> 1.... [Read More]

1542. Find Longest Awesome Substring

```python class Solution: def longestAwesome(self, s: str) -> int: “”” tc O(KN) sc O(2^K), K: unique characters in string, here K = 10 Note, since palindrom allow up to one number with odd count , check all masks different from current one by one bit => if two masks are... [Read More]