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.
- Prepare
- Algorithms
- Warmup
- Staircase
- Discussions
Staircase
Staircase
Sort by
recency
|
5133 Discussions
|
Please Login in order to post a comment
javascript only String.repeat()
My code in JavaScript using two loop
Java
From the problem description I thought I needed extra characters between the symbols which made my code a bit hacky and then was trying to understand/compare with the example why it was failing. When I realised it, the solution become much simpler.
I wonder if it was just me... :D
My Solution in Typescript/Javascript function staircase(n: number): void {
}