Рет қаралды 144,334
Problem Link: bit.ly/3It5SyP
Notes/C++/Java/Python codes: 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: bit.ly/tufA2ZYt
You can follow me across social media, all my handles are below:
Linkedin/Instagram/Telegram: linktr.ee/takeUforward
0:00 Introduction of Course
00:54 Problem Statement
02:24 Brute force approach
03:08 Code
05:38 Complexity
06:14 Better approach
11:31 Code
13:22 Complexity
14:54 Optimal approach
21:59 Code
27:04 Complexity