Problem Link: https://bit.ly/3Qk14gY
Notes/C++/Java/Python codes: https://takeuforward.org/data-structu...
We have solved the problem, and we have gone from brute force and ended with the most optimal solution. Every approach's code has been written in the video itself. Also, we have covered the algorithm with intuition.
Full Course: https://bit.ly/tufA2ZYt
You can follow me across social media, all my handles are below:
Linkedin/Instagram/Telegram: https://linktr.ee/takeUforward
00:49 Problem statement
2:06 Observation
2:24 Brute force approach
6:25 Brute force code
7:49 Optimized approach
14:00 pseudo code for transposition
15:01 Optimized approach code