Find a peak element II | Leetcode | Medium | Java

preview_player
Показать описание
This problem is a variation of problem Find a peak element which is also present in leetcode.
The approach used is a greedy algorithm as we go to the next greater element in each step.

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

Index -1 out of bounds for length 2
at line 6, Solution.findPeakGrid
at line 56,
at line 86, __Driver__.main

voyageryash