Commit 9fbac10
committed
fix: rangeByRank return types — TreeMap returns entries, TreeSet returns keys
- TreeMap.rangeByRank → Array<[K, V | undefined]> (consistent with rangeSearch)
- TreeMultiMap.rangeByRank → Array<[K, V[]]>
- TreeSet.rangeByRank → K[] (consistent with rangeSearch)
- TreeMultiSet.rangeByRank → K[]
- Add TreeMap rangeByRank test1 parent 95a9ec2 commit 9fbac10
5 files changed
Lines changed: 23 additions & 8 deletions
File tree
- src/data-structures/binary-tree
- test/unit/data-structures/binary-tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4471 | 4471 | | |
4472 | 4472 | | |
4473 | 4473 | | |
4474 | | - | |
4475 | | - | |
| 4474 | + | |
| 4475 | + | |
| 4476 | + | |
| 4477 | + | |
| 4478 | + | |
4476 | 4479 | | |
4477 | 4480 | | |
4478 | 4481 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4499 | 4499 | | |
4500 | 4500 | | |
4501 | 4501 | | |
4502 | | - | |
4503 | | - | |
| 4502 | + | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
4504 | 4507 | | |
4505 | 4508 | | |
4506 | 4509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3305 | 3305 | | |
3306 | 3306 | | |
3307 | 3307 | | |
3308 | | - | |
3309 | | - | |
| 3308 | + | |
| 3309 | + | |
3310 | 3310 | | |
3311 | 3311 | | |
3312 | 3312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4165 | 4165 | | |
4166 | 4166 | | |
4167 | 4167 | | |
4168 | | - | |
4169 | | - | |
| 4168 | + | |
| 4169 | + | |
4170 | 4170 | | |
4171 | 4171 | | |
4172 | 4172 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
333 | 342 | | |
334 | 343 | | |
335 | 344 | | |
| |||
0 commit comments