int search(vector<int>& nums, int target) { // write code here int left=0,right=nums.size()-1; while(left<=right){ int mid=(left+right)/2; &...