Can you quickly tell me if this pseudocode makes sense or not?

怎甘沉沦 提交于 2019-12-02 14:33:40

You seem to be including mid in the following search regardless of which side is larger. The recursive calls should both exclude mid from their search space.

Also, for the comparison to be meaningful, the two groups being compared need to be of equal size. That will require some extra odd/even logic.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!