Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Solution {
- public:
- int searchInsert(vector<int>& nums, int target) {
- int l=lower_bound(nums.begin(),nums.end(),target)-nums.begin();
- return l;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement