https://leetcode.com/problems/count-beautiful-splits-in-an-array/description/
Tag: Hash
typedef long long ll;
class Solution {
public:
vector<ll> preh, preb;
ll mod = 1e9 + 7;
https://leetcode.com/problems/smallest-substring-with-identical-characters-i/description/
Tag: Binary Search
Hard: 2301
class Solution {
public:
bool isValid(string &s, int target, int numOps) {
int n
GitHub - chris901003/NestLedger-iOS: NestLadger is primarily designed as the backend for shared expense tracking.NestLadger is primarily designed as the backend for shared expense
https://leetcode.com/problems/longest-special-path/description/
class Solution {
public:
int ansValue, ansLen;
void dfs(int pre, int cur, int curDep, vector<vector<pair&