https://leetcode.com/problems/find-the-count-of-monotonic-pairs-i/description/
Tag: DP
Rate: 1897
typedef long long ll;
class Solution {
public:
int countOfPairs(vector<int>& nums)
https://leetcode.com/problems/peaks-in-array/description/
Tag: Segment Tree
Rate: 2154
class Solution {
public:
int seg[100010 << 2];
void update(int node, int
https://leetcode.com/problems/count-substrings-that-can-be-rearranged-to-contain-a-string-ii/description/
Tag: Two Pointer
typedef long long ll;
class Solution {
public:
long long validSubstringCount(string word1, string word2) {
int n