Interval Tree added
This commit is contained in:
parent
7932887f43
commit
a3399fdc56
6 changed files with 311 additions and 4 deletions
|
|
@ -93,6 +93,7 @@ namespace tp {
|
|||
// power
|
||||
template <typename T>
|
||||
[[nodiscard]] T pow(T x, uhalni n) {
|
||||
if (n == 0) return 1;
|
||||
T out = x;
|
||||
for (uhalni i = 0; i < n - 1; i++) {
|
||||
out = out * x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue