Commit d3d4b85
Golf (#181)
* Enhance walk function with optimized logic
Refactor walk function to improve performance and clarity.
* Fix boundary condition in segment tree walk
* [auto-verifier] verify commit 3beb2d1
* Fix boundary condition in segment tree walk function
* Fix bug in segment tree walk function
* [auto-verifier] verify commit 267032c
* Update segment tree walk logic with good flag
Refactor segment tree walk function to use a boolean flag for condition checking.
* [auto-verifier] verify commit cc93d62
* Fix loop condition in segment tree walk function
* Fix return statement syntax in walk.hpp
* [auto-verifier] verify commit 3f31866
* Fix loop condition and variable initialization in walk.hpp
* [auto-verifier] verify commit b741e86
* Update walk.hpp
* [auto-verifier] verify commit a837375
* more golf!
* [auto-verifier] verify commit b9c25bc
* Reverse conditions in walk function logic
* Change condition in walk function for sum check
* Fix comment to clarify index search condition
* [auto-verifier] verify commit 6405c5e
* format
* [auto-verifier] verify commit 434c09a
* Fix formatting of if statement in test code
* [auto-verifier] verify commit abdb86b
* format
* [auto-verifier] verify commit 7949f33
---------
Co-authored-by: GitHub <noreply@github.com>1 parent 350f6d9 commit d3d4b85
File tree
4 files changed
+15
-20
lines changed- .verify-helper
- library/data_structures_[l,r]
- seg_tree_uncommon
- tests/library_checker_aizu_tests/data_structures
4 files changed
+15
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 46 | | |
53 | 47 | | |
54 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
10 | 8 | | |
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
0 commit comments