|
61f468c150
|
check integrity of tree. fix bug regarding updating
|
2022-04-17 13:57:09 +02:00 |
|
|
a0f3b12ece
|
implement segment tree with stack directly
|
2022-04-17 13:38:52 +02:00 |
|
|
647d1da843
|
add bottom case when updating covered lengths
|
2022-04-16 13:18:16 +02:00 |
|
|
3df8c5095d
|
fix missing update of covered length on removal
|
2022-04-16 12:47:39 +02:00 |
|
|
a4c035b6dc
|
store covered length at each node separately
|
2022-04-16 12:30:11 +02:00 |
|
|
cdfaeb668d
|
integrate segment tree, fix some bugs
|
2022-04-16 12:02:27 +02:00 |
|
|
aac97307e9
|
add test in main method
|
2022-04-16 11:49:45 +02:00 |
|
|
a145dcc108
|
implement segment tree
|
2022-04-16 11:34:29 +02:00 |
|