Maximum Absolute Difference | InterviewBit | Algorithm explanation by alGOds

preview_player
Показать описание
In this video, Vaibhav has explained the optimized approach for solving the question #MaximumAbsoluteDifference from #InterviewBit using Simple Mathematics.

Feel free to ask any of your doubts and discuss your attempts related to this question in the comments section 😇.

Do like and subscribe to our channel and click the bell icon so you don’t miss any future videos!!.
Don’t forget to tell us about the Questions you need an explanatory video for in the comments section. We’ll definitely take care of it😁.

The contributors to this channel and their profile links are enlisted below

1) Vishesh Aggarwal:
2) Vaibhav Varshney:
3) Vagish Yagnik:
4) Vishesh Jain:
5) Achint Dawra:
6) V Sriram:
7) Varun Bajlotra:
8) Vikas Yadav:
Рекомендации по теме
Комментарии
Автор

Why the tell you had calculating min and max

prasad
Автор

I have a crucial doubt. When we are simply subtracting max of one of these quantities from the min, how are we sure that the (i, j) pair that gives the max and the min respectively, satisfy the initial conditions of that case in the first place? Like let's say index i has max(x + a[x]) and index j has min(x + a[x]). When we subtract this quantites we are not making sure that i > j and a[i] > a[j]. So how are we still getting right answer?

drayc
Автор

What was the intution behind the optimised approach?

avishekkumar
Автор

Easy to understand explanation with neat & tidy handwriting.

sonusingh-zrxw
Автор

nice channel which has shortest common super string looks great
and great explanation as well

manavkumarjaiswal
Автор

thankyou bro for making an understandable solution !!

medhananjay
Автор

Thank You so much!!! Keep making these videos brother!

ItachiUchiha-pzvw
Автор

wjy the hell you are taking max and min

prasad
Автор

You did not explain the concept and you are teaching directly the logic please edit this video and explain why we are dividing into four expressions as some people lack in mathematics

aravindbadavath
Автор

NIce explanation bro... Thanks for the help.

nikhilbhatt
Автор

arey bhai tu toh coding blocks ke ad mein bhi aata hai shayd.

sarthakchoudhary
Автор

With out telling why you had taken min and max there is no use of doing this video

prasad