Python Programming Practice: LeetCode #11 - Container With Most Water @DataDaft
Python Programming Practice: LeetCode #11 - Container With Most Water  @DataDaft
Uploaded February 2020 | Updated November 2026, 8 hours ago
In this episode of Python Programming Practice, we tackle LeetCode #11 -- Container With Most Water

Link to the problem here:
leetcode.com/problems/container-with-most-water

This is a medium difficulty problem, so getting a passing solution will generally require submitting code that performs better than a naive brute force solution.

If you don't know Python, you can learn the basics of Python for data analysis using this guide I created on Kaggle (DataDaft video series forthcoming): kaggle.com/hamelg/python-for-data-analysis-index

Python Programming Practice is a series focused on teaching practical coding skills by solving exercises on popular coding websites. Note that the solutions seen here may not be the most efficient possible.

I am not going to provide the full code in the video description for this series, since copy and pasting solutions is not in the spirit of doing coding exercises. It is intended that the video will help you think about problems, approaches and how to structure solutions so that you are able to code up a working solution yourself. .


⭐ Kite is a free AI-powered coding assistant that integrates with popular editors and IDEs to give you smart code completions and docs while you’re typing. It is a cool application of machine learning that can also help you code faster! Check it out here: kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=datadaft&utm_content=description-only
Python Programming Practice: LeetCode #11 - Container With Most WaterPython Programming Practice: LeetCode #69 Sqrt(x)Python for Data Analysis: Reading and Writing DataIntroduction to R: Random ForestsHow to Use Generator Expressions in PythonIntroduction to R: Probability Distributionsdplyr: Getting StartedIntroduction to R: Plotting with ggplot2How to Reverse Data in RPython for Data Analysis: Frequency TablesPython for Data Analysis: VariablesHow to Make a Scatterplot in R
DataDaft |

Python Programming Practice: LeetCode #11 - Container With Most Water

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER