CANDY | 2 Approaches | O(1) Space | O(N) Space | AMAZON | Leetcode - 135

Subscribers:
92,300
Published on ● Video Link: https://www.youtube.com/watch?v=YUT13Koh5Jg



Duration: 39:32
3,196 views
172


This is the 18th Video on our Greedy Playlist.
In this video we will try to solve a very good Greedy Problem - CANDY (Leetcode-135).

Trust me, this will no longer be a Hard Problem.
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.

Problem Name : CANDY
Company Tags : AMAZON
My solutions on Github : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Greedy/Candy.cpp
Leetcode Link : https://leetcode.com/problems/candy/

My DP Concepts Playlist : https://youtu.be/7eLMOE1jnls
My Graph Concepts Playlist : https://youtu.be/5JGiZnr6B5w
My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Interview_DS_Algo
Subscribe to my channel : https://www.youtube.com/@codestorywithMIK
Instagram : https://www.instagram.com/codestorywithmik/
Facebook : https://www.facebook.com/people/codestorywithmik/100090524295846/
Twitter : https://twitter.com/CSwithMIK


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


#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




Other Videos By codestorywithMIK


2023-09-20Median of Two Sorted Arrays | PART-1 | Brute Force | Better Approach | Google | Apple | Leetcode - 4
2023-09-19Minimum Operations to Reduce X to Zero | 2 Approaches | Recursion | Hashmap | Leetcode - 1658
2023-09-19Decision is YOURS #hardwork #motivation #ambition #youtubeshorts #descipline #shorts #education
2023-09-18Find the Duplicate Number | With Proof | Follow Up Qns | Hare And Tortoise | AMAZON | Leetcode - 287
2023-09-17The K Weakest Rows in a Matrix | 2 Approaches | Binary Search | Heap | Sorting | Leetcode - 1337
2023-09-17Family of 9000 😇🙏❤️ #codestorywithMIK #coding #leetcode #subscribe #subscribers #trust #india
2023-09-17Thank You for the Trust ❤️🙏😇 #codestorywithMIK #coding #leetcode #subscribe #subscribers #trust
2023-09-16Shortest Path Visiting All Nodes | Clean | Simple | Intuitive | BFS | GOOGLE | Leetcode-847 |
2023-09-16Euler Path | Euler Circuit | PART-1 | Graph Concepts & Qns - 40 | Explanation+Code
2023-09-13Reconstruct Itinerary | Clean | Simple | Intuitive | GOOGLE | Leetcode-332 | Live Code
2023-09-12CANDY | 2 Approaches | O(1) Space | O(N) Space | AMAZON | Leetcode - 135
2023-09-11Minimum Deletions to Make Character Frequencies Unique | 2 Approaches | MICROSOFT | Leetcode - 1647
2023-09-10Group the People Given the Group Size They Belong To | Dry Run | LYFT | Leetcode - 1282
2023-09-09Count All Valid Pickup and Delivery Options | CLEAR INTUITION | META | Leetcode - 1359
2023-09-08Combination Sum IV | 2 Ways | DRY RUN | Tree Diagram | GOOGLE | SNAPCHAT | META | Leetcode - 377
2023-09-07Pascal's Triangle | Simplest Approach | Application | DRY RUN | Adobe | Amazon | Leetcode - 118
2023-09-06Reverse Linked List II | Clean | Simple Code | Dry Run | MICROSOFT | Leetcode - 92
2023-09-05Split Linked List in Parts | Clean | Simple Code | Dry Run | Amazon | Leetcode - 725
2023-09-04Copy List with Random Pointer | 2 Approaches | Clear Intuition | Dry Run | Microsoft| Leetcode - 138
2023-09-04Hardest choices require strongest will. #codestorywithMIK
2023-09-02Unique Paths | Recursion | Memoization | AMAZON | CISCO | PAYTM | OLA | LINKEDIN | Leetcode - 62