Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Minimum Cost to Acquire Required Items | Simple Intuition | Leetcode 3789 | @codestorywithMIK

Video information, playback and saved actions.

Minimum Cost to Acquire Required Items | Simple Intuition | Leetcode 3789 | @codestorywithMIK

Description: ☕ Support codestorywithMIK (No Pressure)
Education here is 100% free and always will be.
If the content helped you and you'd like to support the channel with a coffee:

UPI: imammazhar4@ybl
--------------------------------------------------

Whatsapp Community Link : https://www.whatsapp.com/channel/0029Va6kVSjICVfiVdsHgi1A

Hi Everyone, this is 73rd video of our Playlist "Greedy Technique : Popular Interview Problems" by codestorywithMIK"
Today we will be solving a good problem based on Greedy : Minimum Cost to Acquire Required Items | Simple Intuition | Dry Run | Leetcode 3789 | codestorywithMIK

Problem Name : Climbing Stairs II | Simple Approaches | Dry Run | Leetcode 3693 | codestorywithMIK
Company Tags : will update later
My solutions on Github(C++ & JAVA) :
Leetcode Link : https://leetcode.com/problems/minimum-cost-to-acquire-required-items/description/


My DP Concepts Playlist : https://youtu.be/7eLMOE1jnls
My Graph Concepts Playlist : https://youtu.be/5JGiZnr6B5w
My Segment Tree Concepts Playlist : https://www.youtube.com/watch?v=k99r1A7krcY&list=PLpIkg8OmuX-K1qUIQToCllUO0UIKXt8dB
My Recursion Concepts Playlist : https://www.youtube.com/watch?v=pfb1Zduesi8&list=PLpIkg8OmuX-IBcXsfITH5ql0Lqci1MYPM
Trie Playlist - https://www.youtube.com/watch?v=DMP2bqW6URA&list=PLpIkg8OmuX-I99uuP2BZOz4mI_lms4gVG
Difference Array Technique: Concepts & Qns : https://www.youtube.com/watch?v=ZHNVmtm08WY&list=PLpIkg8OmuX-Kqkb8DqDe_4-Tiav6ilS_L
My Line Sweep Technique Playlist : https://www.youtube.com/watch?v=-FxkJiCyg5g&list=PLpIkg8OmuX-IOG_-Bv92l-EhuBQX28LOm
Meet In The Middle : Concepts & Qns : https://www.youtube.com/watch?v=NCr27WYjCH4&list=PLDdmvvl73yuo
Binary Lifting : Concepts & Questions : https://www.youtube.com/watch?v=WTtuOj6FXE8&list=PLpIkg8OmuX-IzZj8UNhVsiWKqTdDcHnP1
Top K from Sorted Structures Pattern : Concepts & Questions : https://www.youtube.com/watch?v=TZwPVMyG8-M&list=PLpIkg8OmuX-KFG7Ku_R-DEN5tk1EAy-8o
Small Java Dopamine Videos : https://www.youtube.com/playlist?list=PLpIkg8OmuX-KxhK6iSmDZeisqw3PEOEU5
My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Interview_DS_Algo
Instagram : https://www.instagram.com/codestorywithmik/
Facebook : https://www.facebook.com/people/codestorywithmik/100090524295846/
Twitter : https://twitter.com/CSwithMIK
Subscribe to my channel : https://www.youtube.com/@codestorywithMIK

╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝


Video Summary :

A type 3 item is a bundle that does the job of one type 1 plus one type 2 item, so first ask whether the bundle is actually a deal: compare costBoth with cost1 + cost2. If the bundle isn't cheaper, ignore it and buy exactly what you need separately. If it is cheaper, buy as many bundles as both requirements can absorb (min(need1, need2)), since each one is fully useful. What's left is a single-sided need, and for each leftover unit you simply pick the cheaper of the single item or one more bundle (min(cost, costBoth)), even if half the bundle is wasted.



✨ Timelines✨
00:00 Introduction
00:10 Motivation
00:28 Problem Explanation
05:04 Thought Process
06:56 Case A
12:56 Case B
20:20 Coding it up

#MIK #mik #Mik
#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #india #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #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 #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 Close description
      
Videos related to "Minimum Cost to Acquire Required Items | Simple Intuition | Leetcode 3789 | @codestorywithMIK"