Description
Notes/C++/Java/Python codes:
Longest Subarray with sum K [positives]: https://takeuforward.org/data-structure/longest-subarray-with-given-sum-k/
Longest Subarray with sum K [positives + negatives]: https://takeuforward.org/arrays/longest-subarray-with-sum-k-postives-and-negatives/
Problem links.
Longest Subarray with sum K [positives]: https://bit.ly/3GHyBOS
Longest Subarray with sum K [positives + negatives]: http://bit.ly/3mNSZ9u
We have solved the above problems, 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











