Cześc,
Dodawanie elementów na set ma O(log n). A czy dodanie seta na set - kod poniżej.
#include <iostream>
#include <set>
using namespace std;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
set<set<int>> zbior_main;
zbior_main.insert({1,2,3});
return 0;
}
Też ma O(log n)?
Wiem, że jest coś takiego jak sumy harmoniczne i z tego co czytałem, to może to być identyfikatorem. Wie ktoś jak to działa?