Two recursive calls in a Merge Sort function confusion

前端 未结 9 1638
情书的邮戳
情书的邮戳 2021-02-19 13:37

I have been out of touch with Algorithms for a while and have start revising my concepts these days. To my surprise the last i remember of my recursions skill was that i was goo

9条回答
  •  不思量自难忘°
    2021-02-19 13:44

    Try printing the value of the middle variable.

    Best practise dictates that you don't code in "Before function" style debugging messages without any variable output.

提交回复
热议问题