Note: To pass all the tests you'll need to add additional conditions to make sure the left pointer is not out of scope of the array (it is less than the length of the array) and the right pointer is greater than zero (it traversed the array without finding a peak).
LeetCode: https://leetcode.com/u/OntFoQptTK/
LinkedIn: / wilkinsjohnstanley
GitHub: https://github.com/wilkinsjohnstanley
Смотрите видео doing leetcode everyday until I get a job (day 93) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь John Wilkins 24 Декабрь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 308 раз и оно понравилось 8 людям.