You are viewing a single comment's thread. Return to all comments →
Hi, thank you for sharing this.
But can you please explain how we can get answer 7 for given s = 'aba' and n = 10?
return statement will hold: ((10 - 1) / 3 * 2) + 1 which is: (9 / 6) + 1 = 2.5
Can't get my head around it =\
Seems like cookies are disabled on this browser, please enable them to open this website
Repeated String
You are viewing a single comment's thread. Return to all comments →
Hi, thank you for sharing this.
But can you please explain how we can get answer 7 for given s = 'aba' and n = 10?
return statement will hold: ((10 - 1) / 3 * 2) + 1 which is: (9 / 6) + 1 = 2.5
Can't get my head around it =\