spiralDiagonals(101)
应该返回692101。'
testString: assert(spiralDiagonals(101) == 692101);
- text: 'spiralDiagonals(101)
应该返回18591725。'
testString: assert(spiralDiagonals(303) == 18591725);
- text: 'spiralDiagonals(101)
应该返回85986601。'
testString: assert(spiralDiagonals(505) == 85986601);
- text: 'spiralDiagonals(101)
应该返回669171001。'
testString: assert(spiralDiagonals(1001) == 669171001);
```