question: public static int cardinality ( long [ ] v ) { int sum = 0 ; for ( int i = 0 ; i < v . length ; i ++ ) { sum += Long . bitCount ( v [ i ] ) ; } return sum ; }
target:  Compute the cardinality (number of set bits) Low-endian layout for the array.