Skip to content

Conversation

@rmakynen
Copy link
Contributor

@rmakynen rmakynen commented Oct 8, 2018

There was no explanation for the SkylineProblem algorithm, which caused the user to have to google. Now there user gets a quick overview of what the algorithm does.

}

private void printPath()
{
Copy link
Member

Choose a reason for hiding this comment

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

The opening brace { and method declarations should be on the same line. Most of the standard source code for the Java API is written in this style.
eg.

public Vertex(String name) {
    this.name = name;
}

Copy link
Member

Choose a reason for hiding this comment

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

Also for the blocks inside a function.

if (this == this.previous) {
    System.out.printf("%s", this.name);
} 

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated brackets. New version here
Let me know if I missed any.

@rmakynen rmakynen changed the title Added and explanation to SkylineProblem Added an explanation to SkylineProblem Oct 9, 2018
@yanglbme yanglbme merged commit d33c84f into TheAlgorithms:master Oct 9, 2018
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