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
|
5200 Discussions
|
Please Login in order to post a comment
Here is Staircase solution in Python, Java, C++, C and javascript solution - https://programmingoneonone.com/hackerrank-staircase-problem-solution.html
Rust
public static void staircase(int n) { // Write your code here for(int i=0;i(n-2)) System.out.print("#"); else System.out.print(" ");
Starting from 0 will lead to a blank line, so start with 1. That's whart I was doing... lol
** public static void staircase(int n) {