From 12afe719ce268bb10aa93a910079a44eb08999b8 Mon Sep 17 00:00:00 2001 From: MZuenni Date: Wed, 1 Mar 2023 11:36:26 +0100 Subject: removed trailing whitespaces and use more structured bindings --- string/lyndon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string/lyndon.cpp') diff --git a/string/lyndon.cpp b/string/lyndon.cpp index 6a131a5..858c3db 100644 --- a/string/lyndon.cpp +++ b/string/lyndon.cpp @@ -1,5 +1,5 @@ bool next(string& s, int n, char mi = '0', char ma = '1') { - for (ll i = sz(s), j = sz(s); i < n; i++) + for (int i = sz(s), j = sz(s); i < n; i++) s.push_back(s[i % j]); while(!s.empty() && s.back() == ma) s.pop_back(); if (s.empty()) { -- cgit v1.2.3