Skip to content

fix spiralPrint function skipping some elements is fixed - #10#33

Open
DOEHOONLEE wants to merge 1 commit into
Apress:masterfrom
DOEHOONLEE:ch5_spiralPrint_fix
Open

fix spiralPrint function skipping some elements is fixed - #10#33
DOEHOONLEE wants to merge 1 commit into
Apress:masterfrom
DOEHOONLEE:ch5_spiralPrint_fix

Conversation

@DOEHOONLEE

Copy link
Copy Markdown

In the original algorithm with the following input

var M = [ [1, 2, 3, 4, 5], [6, 7, 8, 9, 10], [11, 12, 13, 14, 15], [16, 17, 18, 19, 20]];

it returns "1 2 3 4 5 10 15 20 19 18 17 11 6 7 8 9 14 13 12 " which skips 16.

Please check if the newly written code works fine. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant