leetcode 10

def trap(self, height): """ left_max 存左邊最大的值 right存右邊最大的值 left < right left移動 不然right移動 """ if not height: return 0 left,right,res = 0,len(
相關文章
相關標籤/搜索