因为平时都把“” 当做Null对待,这里就犯浑了。 这题,要把Null特别mark一下为‘NULL’,而特别处理 “” empty string. Design an algorithm to encode a list of strings to a string. The encoded string is then sent over the ...
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.