Could I ask my supervisor to help me coding an implementation of a scientific paper's algorithm
I'd like to add to Buffy's answer and some of the comments: It does happen that the difficulty is in the paper rather than the one sitting before it.
I've had a situation where our Master student couldn't figure out how to get an algorithm from a paper working. Neither could I. We decided that they should go on and use a different approach.
I later on met some industry people on a conference who cited the very same paper for one of their products and talked to them about the paper. Turned out, neither had they succeeded with that algorithm...
As Buffy says, yes, do ask your supervisor. They anyways need to know of your difficulties.