注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
//Given a sorted array (ex. {1,2,3,4,5,6,7,8}). A random number from the array is taken and put the left side
//array to right side and left side array to right side.
//in the example; if 6 is randomly taken, the array will become like {7,8,6,1,2,3,4,5}
这题比较简单,程序写起来比较麻烦,考虑到相同值的情况 |