Solutions to The Problems of The Upcoming Round #771
Check out the official editorial of the contest after the round.
Leetcode Weekly 498 Solution Discussion