0
You can only kill off a given number of heads at each hit and corresponding number of heads grow back. The heads will not grow back if the hydra is left with zero heads. For example:
heads = [135]
hits = [25,67,1,62]
growths = [15,25,15,34]
Then you can kill off hits[i] heads but growths[i] head...