Skip to content
Avio Lines
← Arrays lineD1Stop 93 of 271

Count Number of Nice Subarrays (LeetCode 1248)

MediumLeetCode 1248 · Prefix Sum · Google, Amazon +6 · 32:49Count Number of Nice Subarrays · 2 Approaches · Similar Concept · Leetcode 1248
MIK's code LeetCode ↗ YouTube ↗

My notes

Sign in to keep private notes on every station, with video timestamps.

Try it before watching

Pause here and write your approach in two lines. Compare it with MIK's when the video ends.

Sign in to write your approach →

About this video

Video solution for LeetCode 1248 Count Number of Nice Subarrays by codestorywithMIK: Arrays, Medium. Topics: Array, Hash Table, Math, Sliding Window. Watch the explanation, then check the code and solve it on LeetCode.

Difficulty
medium
Topics
Array, Hash Table, Math, Sliding Window, Prefix Sum
Patterns
Prefix Sum, Sliding Window (variable), Hashing
Chapter
Arrays
Duration
32:49