There's mistake in editorial of 1661F?
See my comment: There's inconsistency in tutorial and solution code of 1661F.
Repovive Standard Round 2 Solution Discussion (with Anirudh)