Abstract: We experimentally demonstrate a metalens array that sorts red (R), green (G), blue (B), and near-infrared (NIR) light on ultra-small pixels. We also ...
1. Separate negative and positive numbeqrs. 2. Square all elements. 3. Reverse the squared negative list. 4. Merge both sorted lists using two pointers.
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array.