#LearnInPublic
Today, while solving a Leetcode problem in a #Swift playground, I hit an interesting snag: a solution almost identical to mine was running 10 times faster. The only difference? Variable declarations.
Immediately I thought I learned about an efficient way of variable declarations. But after digging a bit deeper, I realized the issue was with Swift playground itself. It's not a real runtime environment, and its internal workings affect performance.