Problem Link: [ Ссылка ]
Notes/C++/Java/Python codes: [ Ссылка ]
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: [ Ссылка ]
You can follow me across social media, all my handles are below:
Linkedin/Instagram/Telegram: [ Ссылка ]
00:40: Problem statement
01:49: Brute-force solution
05:13: - Code
06:28: - Complexity
07:10: Better solution
12:16: - Code
13:49: - Complexity
14:17: Optimal solution
23:24: - Code
29:02: - Complexity
Ещё видео!