42. Trapping Rain Water

/* accetion of mine*/ class Solution { public: int trap(vector<int>& height) { return help(0, height.size() - 1, height); } int help(int start,int end, vector<int>& height) { if (end- start<2) return
相關文章
相關標籤/搜索