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 lo = lower_bound(nums.begin(), nums.end(), target) - nums.begin();
- return lo;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement