/* * @lc app=leetcode id=35 lang=java * * [35] Search Insert Position */ // @lc code=start class Solution { public int searchInsert(int[] nums, int target) { int l=0, r = nums.length; int m; while(l= target) { r = m; } else { l = m + 1; } } return l; } } // @lc code=end