Thank you for participating, and I hope you enjoyed the problems!
Also, here are video editorials by BRCode:
Tutorial is loading...
Code: 89479484
Tutorial is loading...
Code: 89479603 Tutorial is loading...
Also, thanks to shash42 for the construction using deque idea!Code: 89479612
Tutorial is loading...
Code: 89479627 Tutorial is loading...
Code: 89479649