Function deltaEncodeArray

  • Encode an array using delta encoding

    Parameters

    • array: number[]

      the array

    Returns number[]

    • the encoded array