思想:从头部、尾部同时遍历,注意下标
例题:
42. Maximum Subarray II
45. Maximum Subarray Difference
50. Product of Array Exclude Itself
151. Best Time to Buy and Sell Stock III
363. Trapping Rain Water
42. Maximum Subarray II
45. Maximum Subarray Difference
50. Product of Array Exclude Itself
151. Best Time to Buy and Sell Stock III
363. Trapping Rain Water
本文标题:Forward-Backward Traversal
本文链接:https://www.haomeiwen.com/subject/lbopmftx.html
网友评论