We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Sure. "%6s" means your hashes will be printed in a field 6 wide. That's fine if your stair is exactly 6 high, and only then. If you're going to use a format, you need to adapt that "6" to the intended height / width of your stair.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
Sure.
"%6s"
means your hashes will be printed in a field 6 wide. That's fine if your stair is exactly 6 high, and only then. If you're going to use a format, you need to adapt that "6" to the intended height / width of your stair.