首页 > 编程语言 > 详细

[CareerCup] 17.6 Sort Array 排列数组

时间:2016-04-23 16:28:32      阅读:342      评论:0      收藏:0      [点我收藏+]

 

17.6 Given an array of integers, write a method to find indices m and n such that if you sorted elements m through n, the entire array would be sorted. Minimize n - m (that is, find the smallest such sequence). 

 

[CareerCup] 17.6 Sort Array 排列数组

原文:http://www.cnblogs.com/grandyang/p/5424814.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!