May-03-2020, 05:00 AM
I think in general (i.e. regardless of whether it's homework or not), people should be helping others to solve the problem for themselves, rather than providing code that solves the problem. It's more beneficial in the long run, as thinking through a problem is an important part of programming.