Skip to content

Conversation

pembemiriam
Copy link

Solution for issue #12

@DanCarl857
Copy link
Member

This seems to be good. @acha-bill, @glennfaison anything to add?

for (int i = 1; i <= number; i++) {
for (int k = number; k > i; k--) {
System.out.print(" ");
}
Copy link
Member

Choose a reason for hiding this comment

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

This works.
Can you figure out the time complexity of this algorithm and is there any way to make it better?

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