For example, I needed to implement my own pagination system, but I did not know the logic behind a system like that, so I would look up how to do it and then after understading how to do it I would implement my own version without any copy and pasting, do I need to cite the source?
Or another example, I didn't know how to use a foreach for a dictionary so I looked it up on own to do it and then after understading it I implement it without any copy and pasting, do I need to cite the source?