Problem link(Variety-1): http://bit.ly/3yRrCOT
Problem link(Variety-2): https://bit.ly/3QloXof
Notes/C++/Java/Python codes: https://takeuforward.org/arrays/rearr...
We have solved the problem, and we have gone from brute force and ended with the most optimal solution.
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
0:00 Introduction of Course
0:42: Rearrange array elements by sign(variety 1)
2:33 Brute force
4:30 Pseudo code (Brute force)
5:43 Optimal approach
8:36 Code-compiler (Optimal)
9:45 Variety 2
13:38 Pseudo code (Variety 2)
15:25 Code-compiler (Variety 2)
21:01 Outro