give array integer num integer limit return size long nonempty subarray absolute difference element subarray equal limit example 1input num 8247 limit 4output 2 explanation all subarray 8 maximum absolute diff 88 0 482 maximum absolute diff 82 6 4 824 maximum absolute diff 82 6 48247 maximum absolute diff 82 6 42 maximum absolute diff 22 0 424 maximum absolute diff 24 2 4247 maximum absolute diff 27 5 44 maximum absolute diff 44 0 447 maximum absolute diff 47 3 47 maximum absolute diff 77 0 4 therefore size long subarray 2example 2input num 1012472 limit 5output 4 Explanation the subarray 2472 long maximum absolute diff 27 5 5example 3input num 42224422 limit 0output 3 Constraints1 numslength 1051 numsi 1090 limit 109