Two question regarding this solution. 1) Would this work if I want to encode the information that every element of the array is negative? 2) Would this work if I want to encode the information that some elements of the array are positive and some are negative?