Container with Most Water Problem | Brute & Optimal Solution | Two Pointer Approach - Leetcode 11

Container with Most Water Problem | Brute & Optimal Solution | Two Pointer Approach - Leetcode 11

134.850 Lượt nghe
Container with Most Water Problem | Brute & Optimal Solution | Two Pointer Approach - Leetcode 11
Lecture 14 of DSA Series - Arrays Part 6 - Container with Most Water Problem | Leetcode 11 Share your progress on Twitter : https://x.com/ShradhaKhapra_ DSA Series full playlist : https://www.youtube.com/playlist?list=PLfqMhTWNBTe137I_EPQd34TsgV6IO55pt 00:00 Introduction 00:18 Important NOTE 00:37 Understanding Qs 03:21 Brute Force Approach 12:01 Code (Brute Approach) 14:13 Optimal Approach (2 Pointer) 25:30 Dry Run (for 2 Pointer Approach) 29:43 Code (2 Pointer Approach) Want to study for Tech Placements/Internships from us : Our Latest Placement Batches : https://linktr.ee/apnacollege.in Share your progress on Twitter : https://x.com/ShradhaKhapra_ DSA Series full playlist : https://www.youtube.com/playlist?list=PLfqMhTWNBTe137I_EPQd34TsgV6IO55pt Shradha Ma'am community Instagram : https://www.instagram.com/shradhakhapra LinkedIn : https://www.linkedin.com/in/shradha-khapra/