Do I have to make someone coauthor if he/she solves a problem in StackExchange, asked by myself, which is later used in my paper?
Attributing contributions to academic work that occur in Stack Exchange