https://github.com/kessiler/squarespiral
Solution of the square spiral at various levels of complexity
https://github.com/kessiler/squarespiral
Last synced: 3 months ago
JSON representation
Solution of the square spiral at various levels of complexity
- Host: GitHub
- URL: https://github.com/kessiler/squarespiral
- Owner: kessiler
- Created: 2014-04-22T02:28:12.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-07-09T06:56:49.000Z (almost 8 years ago)
- Last Synced: 2025-01-28T05:44:14.193Z (5 months ago)
- Language: C++
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Square Spiral
============Given the following square spiral below, write a program that displays the coordinates (x, y) of a given point provided for an input n. Implement two distinct algorithms that run in the worst case:
- O(1)
- O(n)