标签:blog os io for 问题 ar div log
问题:一个数应该插入到有序数组的哪个位置
class Solution { public: int searchInsert(int A[], int n, int target) { int i; for(i=0;i<n;i++) if(target<=A[i]) break; return i; } };
Search Insert Position,布布扣,bubuko.com
标签:blog os io for 问题 ar div log
原文地址:http://www.cnblogs.com/zsboy/p/3885865.html