I hope my question isn't out of line, but I'm really curious about a truly hypothetical situation.
Let's say I'm writing an application and I need some information, so I come to SO and search for something and I find an answer and I copy some code and paste it into my application. I assume that if I did this, I'd need to provide attribution on an About page and I'd need to license my app under CC BY-SA 3.0 or similar.
But what if I know most of what I need, but there's one small detail. I could copy and paste it into my application, as suggested above, but it's so small, just an aha, that's how you do it that it fits into my brain and later I remember it well enough that I can reproduce that notion in my code. Would I have the same obligation of attribution and licensing I'd have if I'd actually copied the code?
EDIT: I want to make clear I'm not seeking a legal opinion, just wondering what people think about the situation.