I found out that someone was able to solve the question using 3 lines of code.
😂 I always hate when that happens. I will solve a problem with over 10 lines of code but I will go to the solution section and see someone solving the same problem with just one line of code. That actually encouraged me to always think of the shortest way to solve a problem, but sometimes the shortest way is not actually the fastest
Yeah lol.
I've even started trying to see if I can do that too but it's kinda difficult to squeeze an entire algorithm into one line of code. But I believe I'll get there someday.
Also, thanks for reading :)