shouldn’t the answer for given example be 3, with (10,15,12)
If you read the conditions carefully
max(10, 15, 12) = 15
min(10,15,12) = 10
So the absolute difference between them becomes |15 - 10| = 5
Let me know if you still have doubt
yeah, I got it now, thank you shivam bhai.
I hope you were able to solve the problem