Minimum Size Subarray Sum

This commit is contained in:
2022-11-29 18:25:47 +08:00
parent 1e65cff7e5
commit 80ee14486c
8 changed files with 184 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#ifndef S0076_MINIMUM_WINDOW_SUBSTRING_HPP
#define S0076_MINIMUM_WINDOW_SUBSTRING_HPP
#include <string>
#include <unordered_map>
using namespace std;
class Solution {
public:
string minWindow(string s, string t);
unordered_map<char, int> ori, cnt;
bool check();
};
#endif

View File

@@ -0,0 +1,14 @@
#ifndef S0209_MINIMUM_SIZE_SUBARRAY_SUM_HPP
#define S0209_MINIMUM_SIZE_SUBARRAY_SUM_HPP
#include <vector>
#include <climits>
using namespace std;
class Solution {
public:
int minSubArrayLen(int target, vector<int>& nums);
};
#endif