Рет қаралды 1,235
Watch at 1.25x or 1.5x
In this Video, I explained the solution for Number of Wonderful Substrings problem. Here, i explain why sliding window will not work and how to think bit manipulation approach for any problem. I also give a gist of how to use XOR properties in this problem and also taking analog to the number of subarray with given sum problem.
Solution and Explaination of Leetcode POTD:
Question: leetcode.com/problems/number-...
Solution: leetcode.com/problems/number-...
0:00 Understanding the Question
2:30 Why Sliding Window does not work ?
5:20 Intution
18:45 Approach
20:20 Implementation
22:35 Time and Space Complexity
#dsa #leetcodemedium #leetcode #array #leetcodepotd #leetcode #leetcodetoday #potd #NumberOfWonderfulSubstrings #leetcodesolutions #LeetCode2997 #bits #bitmanipulation #thinkinbits #bit #dpwithbits @CodeWithARB