You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reminder: for every question, include first the brute force, and then other more clever ways of solving in considering the different trade-offs in time and space.
this is a personal attempt of writing cleaner code