You are given an integer array nums and an integer k.

Find the absolute difference between:

Return an integer denoting this difference.

 

Example 1:

Input: nums = [5,2,2,4], k = 2

Output: 5

Explanation:

Example 2:

Input: nums = [100], k = 1

Output: 0

Explanation:

 

Constraints: