У нас вы можете посмотреть бесплатно Number of People Aware of a Secret | Recursion Memo | Bottom Up | Leetcode 2327 | codestorywithMIK или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
iPad PDF Link - https://github.com/MAZHARMIK/Intervie... Whatsapp Community Link : https://www.whatsapp.com/channel/0029... This is the 118th Video of our Playlist "Dynamic Programming : Popular Interview Problems" by codestorywithMIK Today we will be solving a good problem based on DP - Number of People Aware of a Secret | Recursion Memo | Bottom Up | Leetcode 2327 | codestorywithMIK I will explain the intuition so easily that you will never forget and start seeing this as cakewalk EASYYY. We will do live coding after explanation and see if we are able to pass all the test cases. Also, please note that my Github solution link below contains both C++ as well as JAVA code. Problem Name : Number of People Aware of a Secret | Recursion Memo | Bottom Up | Leetcode 2327 | codestorywithMIK Company Tags : Will update later My solutions on Github(C++ & JAVA) : https://github.com/MAZHARMIK/Intervie... Leetcode Link : https://leetcode.com/problems/number-... My DP Concepts Playlist : • Roadmap for DP | How to Start DP ? | Topic... My Graph Concepts Playlist : • Graph Concepts & Qns - 1 : Graph will no m... My Segment Tree Concepts Playlist : • Segment Tree | Introduction | Basics | Bui... My Recursion Concepts Playlist : • Introduction | Recursion Concepts And Ques... Trie Playlist - • Word Search II | Leetcode 212 | Detailed |... Difference Array Technique: Concepts & Qns : • Introduction | What | How | Difference Arr... My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Intervie... Instagram : / codestorywithmik Facebook : / 100090524295846 Twitter : / cswithmik Subscribe to my channel : / @codestorywithmik ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝ Video Summary : Approach-1: Recursion + Memoization We define a recursive function f(day) = number of people who first learn the secret on day. Using the range [day - forget + 1, day - delay], we check all previous valid sharers. Memoization avoids recomputation, giving O(n * (forget - delay)) time and O(n) space. Approach-2: Bottom-Up DP We iteratively compute t[day], the number of new learners each day. A sliding window tracks sharers: add when someone becomes eligible, subtract when they forget. This reduces complexity to O(n) time and O(n) space. Approach-2: Bottom-Up Optimized Instead of recomputing the sum of sharers for each day, we maintain a running count that adds the new sharer entering the window (day - delay) and removes the one leaving it (day - forget). This reduces the complexity from O(n·(forget−delay)) to O(n) while still using O(n) space. ✨ Timelines✨ 00:00 Introduction 00:12 Motivation 00:23 Problem Explanation 04:53 Thought Process + Why Recursion 25:31 Coding Recursion Memoization 29:40 Understanding Bottom Up 35:33 Coding Bottom Up 37:18 Optimized Bottom Up 43:38 Coding Optimal Bottom Up #MIK #mik #Mik #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview#interviewtips #interviewpreparation #interview_ds_algo #hinglish #github #design #data #google #video #instagram #facebook #leetcode #computerscience #leetcodesolutions #leetcodequestionandanswers #code #learning #dsalgo #dsa #coding #programming #100daysofcode #developers #techjobs #datastructures #algorithms #webdevelopment #softwareengineering #computerscience #pythoncoding #codinglife #coderlife #javascript #datascience #leetcode #leetcodesolutions #leetcodedailychallenge #codinginterview #interviewprep #technicalinterview #interviewtips #interviewquestions #codingchallenges #interviewready #dsa #hindi #india #hindicoding #hindiprogramming #hindiexplanation #hindidevelopers #hinditech #hindilearning #helpajobseeker #jobseekers #jobsearchtips #careergoals #careerdevelopment #jobhunt #jobinterview #github #designthinking #learningtogether #growthmindset #digitalcontent #techcontent #socialmediagrowth #contentcreation #instagramreels #videomarketing #codestorywithmik #codestorywithmick #codestorywithmikc #codestorywitmik #codestorywthmik #codstorywithmik #codestorywihmik #codestorywithmiik #codeistorywithmik #codestorywithmk #codestorywitmick #codestorymik #codestorwithmik