When you have an answer and can give it quickly, the interruption is probably a net positive. But many times I have seen/caused someones "compulsive problem solver" trait being triggered and suddently you have five people googling for an answer and throwing around names of libraries that might be worth trying...
It requires discipline to say "sorry, can't help you" and to accept that response and go back to working on the problem on your own.