This question already has an answer here:
Sometimes when I have been struggling on a problem set for a while, I'll post a question on StackExchange, openly acknowledge that it's homework, and ask for hints (not the full solution). Typically people give good advice and help me think about the problem in several different ways, and I end up learning a lot by asking the question.
Now the thing is, we are probably not supposed to ask the Internet for homework help. But in my classes it is perfectly acceptable to go to TA office hours, where most of them will tell me the entire answer instead of giving hints. Often I've seen TAs present the solution on the blackboard in front of about 20 students (because all the students need help on the same question). We're also encouraged to "collaborate" with other students, who will usually tell you the entire answer instead of giving minimal hints to help you along.
Is it unethical to ask for homework help on StackExchange given that I learn a lot more than I would using officially sanctioned methods?
(If it matters, I post on math.stackexchange, and this is for classes like real analysis and abstract algebra.)