使用分治法解决众数问题

NightHawk601 51 0 CPP 2018-12-18 13:12:39

这个程序使用分治法算法思想,求得一组数中的众数,众数的重数。

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2018-12-18 13:12:39

算法有问题吧 比如M=20 0 0 0 0 0 2 2 2 2 2 2 2 2 2 2 1 1 应该是2最多 直观感觉上。Modal中不应用else

Generic placeholder image 卡了网匿名网友 2018-12-18 13:12:39

可以运行,及时交了作业

Generic placeholder image 卡了网匿名网友 2018-12-18 13:12:39

很好,对学习有帮助

Generic placeholder image 卡了网匿名网友 2018-12-18 13:12:39

结果正确,复杂度也小,不错

Generic placeholder image 卡了网匿名网友 2018-12-18 13:12:39

不错,运行结果正确

Generic placeholder image 卡了网匿名网友 2018-12-18 13:12:39

程序能够正确运行,得到正确的结果......

Generic placeholder image 卡了网匿名网友 2018-12-18 13:12:39

可以运行得到结果

Generic placeholder image 卡了网匿名网友 2018-12-18 13:12:39

这程序可以运行,而且很好的解决了问题

Generic placeholder image 卡了网匿名网友 2018-12-18 13:12:39

嗯,还不错,可以运行的