Skip to content

flatten 2D or 3D array#117

Merged
yjlim5 merged 2 commits into
llipio:masterfrom
dsope05:dan1
Aug 14, 2017
Merged

flatten 2D or 3D array#117
yjlim5 merged 2 commits into
llipio:masterfrom
dsope05:dan1

Conversation

@dsope05
Copy link
Copy Markdown
Collaborator

@dsope05 dsope05 commented Aug 13, 2017

recursive solution

Comment thread solutions/116.js Outdated
if (arr.length === 0) {
return arr;
}
let a = arr.shift();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variable naming- what does a represent?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread solutions/116.js Outdated
}
let a = arr.shift();
if (a.length) {
a.forEach((elem) => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation issue

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

yjlim5
yjlim5 previously requested changes Aug 14, 2017
Copy link
Copy Markdown
Collaborator

@yjlim5 yjlim5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor issues with code style

Copy link
Copy Markdown
Collaborator Author

@dsope05 dsope05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed comments

Copy link
Copy Markdown
Collaborator Author

@dsope05 dsope05 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@dsope05 dsope05 dismissed yjlim5’s stale review August 14, 2017 20:19

why can't I change the review status, i fixed the comments.

@yjlim5 yjlim5 merged commit eb9489e into llipio:master Aug 14, 2017
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.

2 participants