
[Swift]LeetCode909. 蛇梯棋 | Snakes and Ladders
OnanNxN board,thenumbersfrom 1 to N*N arewritten boustrophedonically startingfromthebottom leftoftheboard,andalternatingdirectioneachrow. Forexample,fora6x6board,thenumbersarewrittenasfollows:Youstartonsquare 1