I have been trying to solve this problem https://www.hackerrank.com/challenges/repeated-string
and i have tryed to many things but
i 'm stuck so can you help me solving it ?
the main problem here is i want the chars inside the s string to append on itself in a short duration and the size of the string = n and then calculate how many Char 'a' in the string
string s = Console.ReadLine();
long n = Convert.ToInt64(Console.ReadLine());
while (s.Count() < n)
var cont = s.Count(x => x == 'a');