Topcoder/ICPC/CodeJam have the best problem statements.
Check out this for example: https://codeforces.com/contest/2136/problem/C
Why would I care if some array can be obtained by combining some other patterns?
Topcoder/ICPC/CodeJam have the best problem statements.
Check out this for example: https://codeforces.com/contest/2136/problem/C
Why would I care if some array can be obtained by combining some other patterns?