当前位置:网站首页>The water problem of leetcode

The water problem of leetcode

2022-08-09 06:33:00 The strongest disciple in history

The idea of ​​solving the problem is to approach the pointers at both ends. Note: the water storage capacity is determined by the lowest height.So its formula is minheight*(i-j+1) [width*length]

Executing code:

Analysis of running results:

This code is my own

原网站

版权声明
本文为[The strongest disciple in history]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/221/202208090629204168.html