[Community Puzzle] String Balls II

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @Timinator,validated by @Datascientist07,@Lanfeust and @anon35447058.
If you have any issues, feel free to ping them.

I’m stuck on the last two test cases… I have no idea how to handle such large inputs. I’ve learnt so many things and I’m so close, but not close enough.

Just the last two test cases? Are you getting the wrong answer or are you timing out?

@Timinator
I’m timing out. And using Python.

I will send a PM.

Hello, I’m stuck on the eleventh case. I’ve tryed memoization until now but I don’t see what else to learn.
Can you tell what did you learn to progress in this challenge?
Thank you

Are you using dynamic programming? You should be able to get a little past test case 11 with dynamic programming. To get to the end, you will need to look at the problem a different way. I don’t want to give any big spoilers here, but if you want to send me a PM, I’d be glad to give you some hints.

Thx for you answer, yes I’m using dynamic programming with memoization.
Ok I will try to pass test case 11 and then think a different way to solve the rest.
Thx for your help.