In the editorial for the question https://codeforces.com/contest/1361/problem/A What is being stored by "last" and "ans" arrays ?
In the editorial for the question https://codeforces.com/contest/1361/problem/A What is being stored by "last" and "ans" arrays ?