What's the term for “double recursion”?

后端 未结 3 1293
没有蜡笔的小新
没有蜡笔的小新 2020-12-18 21:54

Here\'s an obviously recursive function:

function()
{
    function();
}

We would simply call this \"recursive\"—but what about this (barely

3条回答
  •  萌比男神i
    2020-12-18 22:35

    One interpertaion of double recursion could be divide and conquer (e.g) quicksort

    quicksort = quicksort smaller ++ pivot ++ quicksort larger
    

提交回复
热议问题