https://bigfrontend.dev/problem/imple...
With the solution from problem 4, we could easily solve this problem by applying the two flags. Here is my submission: https://bigfrontend.dev/problem/imple...
Hi I'm a JavaScript engineer who is not good at algorithms,
and currently practicing leetCode & BFE.dev. If you are interested, maybe we can learn together.