Skip to content

Commit 7bfb345

Browse files
author
Cameron Custer
committed
Revert "use c++20 idioms in doc examples: nullptr over NULL, ll() over (ll) cast"
This reverts commit 77bba36.
1 parent 77bba36 commit 7bfb345

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

library/data_structures_[l,r)/rmq.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! return min(x, y);
66
//! });
77
//! vector<RMQ<int, function<int(int, int)>>>
8-
//! rmqs(3, {{}, nullptr});
8+
//! rmqs(3, {{}, NULL});
99
//! rmqs[1] = {a, ranges::min};
1010
//! @endcode
1111
//! @time O(nlogn + q)

library/data_structures_[l,r]/rmq.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! return min(x, y);
66
//! });
77
//! vector<RMQ<int, function<int(int, int)>>>
8-
//! rmqs(3, {{}, nullptr});
8+
//! rmqs(3, {{}, NULL});
99
//! rmqs[1] = {a, ranges::min};
1010
//! @endcode
1111
//! @time O(nlogn + q)

library/flow/hungarian.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
//! https://e-maxx.ru/algo/assignment_hungary
33
//! @code
4-
//! vector cost(n+1,vector(m+1,ll(0)));
4+
//! vector cost(n+1,vector(m+1,(ll)0));
55
//! auto [min_weight, l_to_r] = hungarian(cost);
66
//! @endcode
77
//! cost[i][j] = edge weight, 1<=i<=n<=m; 1<=j<=m

library/strings/manacher/longest_palindrome_query.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//! substring
66
struct longest_pal_query {
77
vi man;
8-
RMQ<int, function<int(int, int)>> rmq = {{}, nullptr};
8+
RMQ<int, function<int(int, int)>> rmq = {{}, NULL};
99
//! @param s string/vector
1010
//! @time O(n log n)
1111
//! @space O(n log n) for rmq, everything else is O(n)

library/trees/lca_rmq.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
struct LCA {
1313
int n;
1414
vi tin, siz, d, p;
15-
RMQ<int, function<int(int, int)>> rmq = {{}, nullptr};
15+
RMQ<int, function<int(int, int)>> rmq = {{}, NULL};
1616
LCA(const auto& g):
1717
n(sz(g)), tin(n), siz(n, 1), d(n), p(n) {
1818
vi order;

0 commit comments

Comments
 (0)