Forward-Backward Traversal
2018-07-26 本文已影响0人
swordofAltair
思想:从头部、尾部同时遍历,注意下标
例题:
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