If I answer a question whose answer was inspired by a similar question answered by someone else then should I credit that user's name or link to the original question in my answer?
Unlike with attribution, where you have to supply
the name of the creator and attribution parties, a copyright notice, a license notice, a disclaimer notice, and a link to the material. CC licenses prior to Version 4.0 also require you to provide the title of the material if supplied, and may have other slight differences.
(copyright, license and disclaimer notice are already covered by the Stack Exchange framework)
there are no hard-and-fast rules for inspiration. However, as Gerry Myerson says in the comment, why not do both? E.g.
It's not that much more work to type, compared to the amount of work the original author has put into their answer. Also, if the original question/answer ever gets deleted, you might still have a working link to the author.