Minimum string coefficient — Hackerrank

Revision en2, by jd_sal, 2020-04-29 15:45:28

I am not able to understand the solution of the last problem from Hack the interview II -Global, a contest on Hackerrank which finished few days ago.It's labelled 'HARD'. Problem Link : (

Solution Link : (

Solution by Errichto : (

I don't get what is len = m-2-2*p in the first solution ? Although both the solutions are same. Thank you.

Tags string, #hard


  Rev. Lang. By When Δ Comment
en3 English jd_sal 2020-04-29 15:46:25 72
en2 English jd_sal 2020-04-29 15:45:28 12
en1 English jd_sal 2020-04-29 15:44:54 746 Initial revision (published)