Segment Tree Series - https://bit.ly/segment-trees
*************************************************
Contest Link - https://leetcode.com/contest/weekly-contest-373
Problem Link - https://leetcode.com/contest/weekly-contest-373/problems/make-lexicographically-smallest-array-by-swapping-elements/
Solution - https://leetcode.com/problems/make-lexicographically-smallest-array-by-swapping-elements/solutions/4330564/video-explanation-brute-force-to-optimal-solution/
*************************************************
Timestamps -
00:00 - Agenda
00:13 - Problem Description
02:18 - Brute force solution
06:03 - Time Complexity of Brute force solution
07:57 - Intuition to optimize
10:20 - Dry run of the Algorithm
13:42 - Time Complexity
15:38 - How to group the elements?
17:45 - Code Walkthrough
*************************************************
Interview Experiences Playlists -
Microsoft - https://www.youtube.com/playlist?list=PL9TOCZErLZcOsCBZPQ3uIMzak6gQWG_Kp
Amazon - https://youtube.com/playlist?list=PL9TOCZErLZcMFSmxoEpNBxvQfWOgRmsfX
D.E.Shaw - https://youtube.com/playlist?list=PL9TOCZErLZcM8nwVeW4d7JyxcpH175IZ1
Linkedin - https://www.youtube.com/playlist?list=PL9TOCZErLZcMN56ITB1IkNUs10QnaEyAe
Facebook - https://youtube.com/playlist?list=PL9TOCZErLZcNIcaPV8WeHdXHPgAstBf2E
*********************************************************************
Please show support and subscribe if you find the content useful.