Skip to content

Commit 68f8393

Browse files
committed
fixes
1 parent a0bfd80 commit 68f8393

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/data_structures/uncommon/hilbert_mos.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#pragma once
22
//! https://codeforces.com/blog/entry/61203?#comment-1064868
33
//! @code
4-
//! vector<pii> queries;
5-
//! ranges::sort(queries, {}, [&](pii& x) {
6-
//! return hilbert(x.first, x.second);
4+
//! vector<array<int, 3>> queries;
5+
//! ranges::sort(queries, {}, [&](array<int, 3>& x) {
6+
//! return hilbert(x[0], x[1]);
77
//! });
88
//! @endcode
9-
//! @time O(log(n))
9+
//! @time O(log(max(x, y)))
1010
//! @space O(1)
1111
ll hilbert(int x, int y) {
1212
ll d = 0, mx = 1;

0 commit comments

Comments
 (0)