add data-structure of number container and priority manager

change example 3479
This commit is contained in:
2025-09-18 19:31:20 +08:00
parent 80b6e4fcaf
commit 57dd0e9440
3 changed files with 89 additions and 0 deletions

View File

@@ -8,6 +8,12 @@
Return the number of fruit types that remain unplaced after all possible allocations are made.
*/
#include <vector>
#include <bit>
#include <bitset>
using namespace std;
class SegmentTree {
private:
vector<int> segVal;