Jun 30, 2022
thanks @Rishav for your suggestion, but your solution has few flaws:
1. it will not work with these type of inputs `cyc cy c`
2. it is not optimised, like we don't have to run loop till the end of the string.
thanks @Rishav for your suggestion, but your solution has few flaws:
1. it will not work with these type of inputs `cyc cy c`
2. it is not optimised, like we don't have to run loop till the end of the string.
A decade-long dance with code, sculpting the digital landscape. https://topmate.io/frontendmaster