Find a Peak Element 2 | Leetcode C++ code |

preview_player
Показать описание
solution code explained in hindi
comment for any doubts
#nyc #c #C++
#cplusplus
#c #code #coding #leetcode #college #cs #computer #science #tech #it #solution #answer #video #videos #funny #funnyvideo #shorts #short #country #hindi
Рекомендации по теме
Комментарии
Автор

superb explaination and op code..thanks for this

Manishvr
Автор

This code will run only if there is a single peak, it will fail for multiple peaks

swagcoder
Автор

your code fails on leetcode at this testcase:
[[10, 20, 40, 50, 60], [1, 4, 2, 3, 500]]
answer should be [1, 4] but it gives empty

divythakkar