LeetCode 11: Don't Be Average!
1 year ago
9
LeetCode 11. Container With Most Water
In this video we split the average vanilla solution for LeetCode 11 by introducing two IF conditions, and by doing so we make it the fastest algorithm. We explore the point of mathematical declarations versus procedural calculations and finally we introduce a tiny optimisation on dealing with the height.
Solved in Python 3
Blog post here: https://yeah.computer/posts/003-leetcode-11-dont-be-average/
Loading comments...
-
5:31
ericntunctu
1 year agoleetcode 2256 Minimum Average Difference
4 -
7:18
ericntunctu
2 years agoLeetcode 1093 Statistics from a Large Sample
8 -
3:42
ericntunctu
2 years agoLeetcode 1984 Minimum Difference Between Highest and Lowest of K Scores
-
8:34
ericntunctu
2 years agoLeetcode 164 Maximum Gap
1 -
5:55
ericntunctu
2 years agoLeetcode 1799 Maximize Score After N Operations
1 -
2:49
ericntunctu
2 years agoLeetcode 118 Pascal's Triangle
2 -
1:07
ericntunctu
2 years agoLeetcode 2124 Check if All A's Appears Before All B's
1 -
1:45
ericntunctu
2 years agoLeetcode 868 Binary Gap
1 -
4:18
ericntunctu
2 years agoLeetcode 2080 Range Frequency Queries both 100%
1 -
4:18
ericntunctu
2 years agoLeetcode 162 Find Peak Element
1