“Necessary” Uses of Recursion in Imperative Languages

后端 未结 9 1056
独厮守ぢ
独厮守ぢ 2020-12-17 17:10

I\'ve recently seen in a couple of different places comments along the lines of, \"I learned about recursion in school, but have never used it or felt the need for it since

9条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-17 17:41

    The most well-known example is probably the quicksort algorithm developed by by C.A.R. Hoare.

    Another example is traversing a directory tree for finding a file.

提交回复
热议问题