42. 接雨水
摘要:#include <vector> #include <iostream> using namespace std; class Solution { public: int trap(vector<int>& height) { int len=height.size(); //当前位置左边界最大
阅读全文
posted @
2022-12-05 21:36
一仟零一夜丶
阅读(73)
推荐(0)
41. 缺失的第一个正数
摘要:#include <vector> #include <iostream> using namespace std; class Solution { public: Solution(){} ~Solution(){} int firstMissingPositive(vector<int>& n
阅读全文
posted @
2022-12-05 16:45
一仟零一夜丶
阅读(26)
推荐(0)
36. 有效的数独
摘要:#include <vector> #include <iostream> #include <string.h> using namespace std; class Solution { public: Solution(){} ~Solution(){} bool isValidSudoku(
阅读全文
posted @
2022-12-02 17:22
一仟零一夜丶
阅读(27)
推荐(0)
4. 寻找两个正序数组的中位数
摘要:#include <vector> #include <iostream> using namespace std; class Solution { public: Solution(){} ~Solution(){} double findMedianSortedArrays(vector<in
阅读全文
posted @
2022-12-01 20:43
一仟零一夜丶
阅读(32)
推荐(0)