It depends on what kind of hydrocephalus
does the child have. There are basically two types of hydrocephalus. In one type, shunt is must, in other type it can be done endoscopically without shunt. But in any case it can't be cured with medicines only.
Hope this information helps you.