You are viewing a single comment's thread. Return to all comments →
I did not know that String overload :/ My solution:
using System; class Solution { static void Main(String[] args) { int N = int.Parse(Console.ReadLine()); for (int i = 0; i < N; i++) Console.WriteLine(Clone('#', i).PadLeft(N, ' ')); } private static string Clone(char character, int count) { return "".PadLeft(count, character); } }
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 →
I did not know that String overload :/ My solution: