in reply to Re: Brute force vs algorithm (PWC # 100)
in thread Brute force vs algorithm (PWC # 100)
("abusing" List::Util::reduce() to window two neighboring cells)
ok 1 ok 2 1..2
That's O(m) = O(n**2) with m:= #cells , n:= #rows and m = n*(n+1)/2
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Brute force vs algorithm (PWC # 100)
by pryrt (Abbot) on Feb 15, 2021 at 19:56 UTC | |
by LanX (Saint) on Feb 15, 2021 at 20:17 UTC |