3331. Find Subtree Sizes After Changes 2025年3月8日 LeetCode 3331. Find Subtree Sizes After Changes https://tools.xxooooxx.org/su/aDvpNgZXO Tag: Tree class Solution { public: void dfs(int pre, int cur, vector<vector<int>> &
3337. Total Characters in String After Transformations II 2025年2月26日 LeetCode 3337. Total Characters in String After Transformations II https://tools.xxooooxx.org/su/Fjc5EwA9u Tag: Math, Matrix, Quick Pow typedef long long ll; class Solution { public: ll mod = 1e9 + 7; vector<vector&
LC 3356. Zero Array Transformation II 2025年2月17日 LeetCode LC 3356. Zero Array Transformation II https://tools.xxooooxx.org/su/gsxoFYBMP Tag: Binary Search, Prefix Sum class Solution { public: int minZeroArray(vector<int>& nums, vector<vector&
LC 3363. Find the Maximum Number of Fruits Collected 2025年2月14日 LeetCode LC 3363. Find the Maximum Number of Fruits Collected https://tools.xxooooxx.org/su/VU7TFXpms Tag: DP class Solution { public: vector<pair<int, int>> dir2 = {{1, -1}, {1, 0}, {1,
LC 3388. Count Beautiful Splits in an Array 2025年2月12日 LeetCode LC 3388. Count Beautiful Splits in an Array 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;