码迷,mamicode.com
首页 > 编程语言 > 详细

[CareerCup] 17.6 Sort Array 排列数组

时间:2016-04-23 16:29:08      阅读:160      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!