Should we be answering people's homeworks?

For what its worth, in the past i’ve usually helped by pointing out the relevant sections of the OCaml manual, instead of straight up solving a homework problem. I don’t know if that is the best approach to the situation but my reasoning was to help them discover a process of looking for resources, and asking the right questions, as opposed to “give me the answer to this problem statement”