leetcode 18:四数之和

四数之和与两数之和,三数之和leetcode 15类似,最后都要到两数之和,通过s++,t--来降低时间复杂度 std::vector<std::vector<int>> fourSum(std::vector<int>& nums, int target) { std::vector<std::vector<int>> a; std::vector<int> b; if(
相关文章
相关标签/搜索