The Wikipedia license is a copyleft license, which may present problems for software that is not open source.
I would also rather not credit a Wikipedia article in my closed source software unless it's really necessary.
Somehow I don't think Wikipedia would sue you for implementing their pseudocode.
If you copy a compilable function and give attribution, probably no one will care. If you copy a whole enterprise system, they might. If the original author cares, there should be a rights notification in the code. In particular Wikipedia articles have the GNU Free Documentation license, so you are pretty safe there.