Closed robrix closed 8 years ago
Avoid counting the input in any. It’s O(n) in forward and bidirectional collections, and we backtrack, which is O(n²), so, ouch.
any
/cc @joshvera
:+1:
Avoid counting the input in
any
. It’s O(n) in forward and bidirectional collections, and we backtrack, which is O(n²), so, ouch.