Doubt about given example

programming
Tags: #<Tag:0x00007f2428aad950>

#1

shouldn’t the answer for given example be 3, with (10,15,12)


#2

Hey
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


#3

yeah, I got it now, thank you shivam bhai.


#4

I hope you were able to solve the problem