Day 51 || LeetCode 992 || DSA live with me || good subarray with integer k
Given an integer array nums and an integer k, return the number of good subarrays of nums. A good array is an array where the number of different integers in that array is exactly k. A subarray is a contiguous part of an array. 00:00- start 00:10 - Stream Kickoff: You start the live stream and take a few minutes to share the link with your LinkedIn and WhatsApp communities. 04:46 - Problem Introduction: You introduce LeetCode 992, noting it's a difficult problem. You compare it to previous "Nice Subarray" and "Binary Subarray" problems, discussing why the "exactly K" condition makes it tricky. 07:31 - Time Complexity Discussion: You explain why nested loops don't always mean $O(n^2)$ and how to analyze time complexity by looking at how many times the inner loop runs overall ($O(n)$ or $O(2n)$ which simplifies to $O(n)$). 09:00 - Defining "Good Subarrays": You break down what the problem means by "different integers" using examples, illustrating how subarrays are counted when $k$ distinct numbers are present. 13:10 - Logic & Sliding Window: You introduce the Sliding Window approach using left and right pointers and explain why a Hash Map is necessary to keep track of the count of distinct integers. 19:10 - Java HashMap Syntax: You dive into the technical details of map.put() and map.getOrDefault(), explaining to the audience how these work to manage the frequency of elements. 30:15 - Using map.size(): You explain how map.size() helps track the number of distinct integers currently in the window. 32:10 - Shrinking the Window: You detail the while loop logic used to shrink the window from the left once the number of distinct integers exceeds $k$. 45:50 - The Math Behind Subarray Counting: You explain the formula right - left + 1 and how adding the length of the window to your answer correctly counts all ending subarrays. 48:00 - Career Advice (Java vs. C++): You take a break from coding to answer a viewer's question about which language to choose for DSA, discussing industry use vs. competitive programming. 1:04:30 - The "At Most" Strategy: You explain the core trick for "exactly K" problems: calculating "at most K" and subtracting "at most K-1" to get the final answer. 1:12:15 - Successful Submission: You resolve a small syntax error and successfully run the code, confirming it passes the test cases.

Day 41 || LeetCode 209 || DSA live with me || Sliding window || Minimum size subarray sum

Cream Yellow Screen

String programs from APC Solved (in Bengali)

Day 33 || RECURSION REVISION || DSA live with me || 6+ questions in one shot

The World's Most Important Machine

Data Analysis with Python: Part 1 of 6 (Live Course)

🔥 GOD UNLEASHES the Truth | Psalms 23, 35, 91 and 112 To Break Curses and Activate Abundance

AI Is Creating A Rare Opportunity For Investors. How Jim Roppel Is Playing It. | Investing With IBD

RESTORING THE ORDER 2026 - DAY-1 #dunsinoyekan #worship #intimacy

India Economy OK…But Danger Ahead? 5-State Polls में NDA 2-0 Lead? • Sriram Seshadri

The Unity Tutorial For Complete Beginners

How to Start Coding | Programming for Beginners | Learn Coding | Intellipaat

Day 36 ||Aggressive cow & Revision of DSA || DSA live with me || binary search , Hashmap revision

Cider Orange Screen

What is SonarQube | Introduction SonarQube | SonarQube Tutorial | SonarQube Basics | Intellipaat

RESTORING THE ORDER 2026 - DAY-4 #dunsinoyekan #worship #intimacy

🩸Phlebotomy Certification Practice Test – 50 Questions to Help You PASS!

Data Analysis with Python: Part 2 of 6 - Python Functions and Working with Files (Live Course)

The Frequency of God 963 Hz - Attract love, protection, wealth, miracles and blessings without limit

