Maximize Distance to Closest Person šŸ”„ | Leetcode 849 | Arrays | Brute + Optimized approach
Ayushi Sharma Ayushi Sharma
43.4K subscribers
2,342 views
112

 Published On Jan 16, 2022

Timestamps:
Problem explanation: 00:00
Approaching the problem (Brute force): 04:42
Dry Run(Brute force) : 07:47
Complexity Analysis (Brute force) : 14:36
Approaching the problem (Optimized approach): 14:45
Dry Run(Optimized approach): 23:09
Code explanation: 27:45
Complexity Analysis (Optimized approach): 28:54

Time Complexity : O(n)
Space Complexity : O(1)

Problem Link : https://leetcode.com/problems/maximiz...
C++ Code Link : https://github.com/Ayu-99/Data-Struct...
Java Code Link : https://github.com/Ayu-99/Data-Struct...


Please like, share and subscribe if you found the video useful. Feel free to ask in comments section if you have any doubts. :)

#DataStructuresAndAlgorithms
#MaximizeDistanceToClosestPerson
#interviewpreparation
Maximize Distance to Closest Person solution
Maximize Distance to Closest Person Leetcode
Maximize Distance to Closest Person C++
Maximize Distance to Closest Person Java
Maximize Distance to Closest Person Python

šŸ”„šŸ”„šŸ”„šŸ”„šŸ‘‡šŸ‘‡šŸ‘‡
Join telegram channel for more updates on placement preparation : https://t.me/AyushiSharmaDiscussionGroup

Checkout the series: šŸ”„šŸ”„šŸ”„
šŸ‘‰Interview Experiences : Ā Ā Ā ā€¢Ā InterviewĀ ExperiencesĀ Ā 
šŸ‘‰ Array: Ā Ā Ā ā€¢Ā ArraysĀ Ā 
šŸ‘‰ Linked List : Ā Ā Ā ā€¢Ā LinkedĀ ListĀ Ā 
šŸ‘‰ Heap : Ā Ā Ā ā€¢Ā HeapĀ Ā 
šŸ‘‰ Recursion : Ā Ā Ā ā€¢Ā RecursionĀ Ā 
šŸ‘‰ Stack and Queue : Ā Ā Ā ā€¢Ā StackĀ AndĀ QueueĀ Ā 
šŸ‘‰ Greedy :Ā Ā Ā ā€¢Ā GreedyĀ Ā 
šŸ‘‰ Dynamic Programming : Ā Ā Ā ā€¢Ā DynamicĀ ProgrammingĀ Ā 
šŸ‘‰ Leetcode contests : Ā Ā Ā ā€¢Ā LeetcodeĀ contestsĀ Ā 
šŸ‘‰ Leetcode June Challenge :Ā Ā Ā ā€¢Ā LeetcodeĀ JuneĀ ChallengeĀ Ā 
šŸ‘‰ Leetcode July Challenge : Ā Ā Ā ā€¢Ā LeetcodeĀ JulyĀ ChallengeĀ Ā 
LIKE | SHARE | SUBSCRIBE šŸ”„šŸ”„šŸ˜Š

show more

Share/Embed