topic:
1138. The path on the letter board One question daily.md
Thought:
Read the wrong questions,According to the method of random letters above the subtitle version。butz
Special circumstances are not considered,I thought about it later,Just turn the column into a line,Time complexity isOn3
。Look atylbs answer,Use directlyasciiThe code watch simulates a letter board。
From the starting point (0,0)(0, 0)(0,0) Set off,Simulate each step of movement,Style the movement of each step into the answer。Pay attention to the direction of moving“Left、superior、right、Down”Order。
Code:
1 | class Solution: |
1 | class Solution: |