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.
Repeated String
Repeated String
Sort by
recency
|
3720 Discussions
|
Please Login in order to post a comment
Here's a Javascript solution:
Here is problem solution in Python, java, C++, C and Javascript - https://programmingoneonone.com/hackerrank-repeated-string-problem-solution.html
def repeatedString(s, n):
def count_a(s): count=0 for i in s: if (i=="a"): count+=1 return count
Here is my c++ solution, you can watch the explanation here : https://youtu.be/Vh5davsSkfA