This website requires Javascript to function properly. Please go to the setting of your web browser and enable Javascript for this website.
×
Loading...
Close
Home
Share
我实现并不需要知道最小数是否在序列中,因为算法会分别对此计算。
iamflying
(自食其水果)
case a 这个步骤计算最小的数在序列中,返回一个最大值。case b通过递归计算最小的数不在序列中的情况,返回一个最大值。最终结果就是case a, b中最大的数。
(#9936841@0)
Last Updated: 2016-2-10
This post has been archived. It cannot be replied.
Share
Report
Replies, comments and Discussions:
一道面试题,大家给出出主意哈,我一点头绪都没有
枫下论坛主坛
/
工作学习
/
学科技术