Back to Browse

How I solved LeetCode 11. Container With Most Water in JavaScript

22 views
Sep 27, 2023
8:33

Hey! My name is Tomas. Thanks for checking out my channel. Problem LeetCode 11. Container With Most Water https://leetcode.com/problems/container-with-most-water/description/ GitHub Solution https://github.com/R-Tomas-Gonzalez/github/tree/main/0011-container-with-most-water Notes Process length = pointer2 - pointer1; minHeight between two pointers; We need to calculate the area - length * minHeight; Compare our maxContainer to the current area; Resources https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min • Connect with me on LinkedIn: https://www.linkedin.com/in/rtomasgonzalez/ • Connect with me on GitHub: R-Tomas-Gonzalez (Tomas Gonzalez) Happy Coding!

Download

0 formats

No download links available.

How I solved LeetCode 11. Container With Most Water in JavaScript | NatokHD