Skip to content

Commit d2b8ea9

Browse files
committed
Declare parameter names of iterate_with_two_pointers
1 parent cd615d0 commit d2b8ea9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/cpalgo/util/two_pointers.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
inline void iterate_with_two_pointers(
1717
size_t N,
1818
// O(K), l = [0,N), r = [0,N)
19-
std::function<bool(size_t, size_t)> should_move_right,
19+
std::function<bool(size_t l, size_t r)> should_move_right,
2020
// O(K), l = [0,N), r = [0,N]
21-
std::function<void(size_t, size_t)> pre_move_left,
21+
std::function<void(size_t l, size_t r)> pre_move_left,
2222
// O(K), l = [0,N), r = [0,N)
23-
std::function<void(size_t, size_t)> pre_move_right,
23+
std::function<void(size_t l, size_t r)> pre_move_right,
2424
// O(K), l = [0,N), r = [0,N]
25-
std::function<void(size_t, size_t)> update
25+
std::function<void(size_t l, size_t r)> update
2626
) {
2727
size_t r = 0;
2828
for (size_t l = 0; l < N; ++l) {

0 commit comments

Comments
 (0)