tldr should have been up front: &quot;before you rewrite an algorithm from your favorite high-level language to C, check whether the problem really is in the language or not&quot;<p>In other words, concentrate on algorithm, good code, and learning which library functions are available (which are probably written in C&#x2F;C++). Good advice for anybody. Conversely, just because it&#x27;s written in Fortran&#x2F;C&#x2F;C++ doesn&#x27;t mean it&#x27;s optimal. Same rules apply.