private static long packedCodeSize(IntList cases){
  int sz=cases.size();
  long low=cases.get(0);
  long high=cases.get(sz - 1);
  long result=((high - low + 1)) * 2 + 4;
  return (result <= 0x7fffffff) ? result : -1;
}

private static long packedCodeSize ( IntList cases ) { int sz = cases . size ( ) ; long low = cases . get ( 0 ) ; long high = cases . get ( sz - 1 ) ; long result = ( ( high - low + 1 ) ) * 2 + 4 ; return ( result <= 0x7fffffff ) ? result : - 1 ; }
gets the size of a packed table for the given cases , in 16 - bit code units .
