Tentando Resolver (e explicar) esse Desafio de Programação do LeetCode

The reality of a programmer is this, lol The programming course I'm currently taking and recommend. 🛑10% discount coupon: DW10 https://go.hotmart.com/E94374570K 00:00 Problem Explanation 01:06 Trying to Solve 06:28 Attempting to Explain my Logic 14:28 Result 14:46 Comparing Performance 17:10 Conclusion