Repeated String - HackerRank | C++ Implementation
Problem:
Lilah has a string, s, of lowercase English letters that she repeated infinitely many times.
Given an integer, n, find and print the number of letter a's in the first n letters of Lilah's infinite string.
For example, if the string s = ‘abc...
programmercave.hashnode.dev3 min read