HackerRank | Problem Solving | Sherlock and Cost | Code with logic explanation

preview_player
Показать описание
Step by step explanation and solution of Sherlock and Cost problem with code at the end.

Рекомендации по теме
Комментарии
Автор

After Analyzing I understand that
Either odd values will be 1 or even values can be 1
I write the code and find which one abs difference is max and put the answer

But nearly all cases were failed

Can u tell me a scenario where two consecutive values of array stays max

kanishkjain
Автор

proper explanation
thanks for this video.

sk-pnrz
welcome to shbcf.ru