Skip to main content

Timeline for Square spiral matrix

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Feb 28, 2015 at 17:23 history edited Caridorc CC BY-SA 3.0
unnecessary assignement
Feb 28, 2015 at 17:05 comment added Caridorc @Timmy Yes, your solution is indeed preferable.
Feb 28, 2015 at 17:00 comment added Caridorc @Timmy If you do so int(sqrt(num)) will be computed each iteration of the loop, which is sub-optimal.
Feb 28, 2015 at 14:11 history edited Caridorc CC BY-SA 3.0
High level
Feb 27, 2015 at 23:04 vote accept Tymric
Feb 27, 2015 at 23:03 comment added Tymric Both suggestion are extremely helpful. I didn't know about doctest. I'll start making a habit of using it
Feb 27, 2015 at 21:31 history answered Caridorc CC BY-SA 3.0