Coding Interview Question - Find Peak (LeetCode), two solutions

Errichto Algorithms
Errichto Algorithms
33.4 هزار بار بازدید - 6 سال پیش - Let's solve a coding interview
Let's solve a coding interview question "Find Peak Element" from LeetCode. Given an array of numbers, find an element greater than its both neighbours, in logarithmic time complexity. I will show you two solutions.

Problem link: https://leetcode.com/problems/find-pe...
A similar problem: https://codeforces.com/contest/1019/p...

Subscribe for more videos and streams on algorithms and coding interviews!

Facebook: Facebook: errichto
Twitter: Twitter: errichto
Competitive Programming Discord: https://discordapp.com/invite/UzaURu7
What is Competitive Programming? https://en.wikipedia.org/wiki/Competi...

I'm known as Errichto. I compete in and organize programming competitions. I'm a finalist of ACM-ICPC, Topcoder Open, Facebook Hacker Cup and Google Code Jam. I got a second place in Google Code Jam 2018. Watch me if you want to practice Competitive Programming, algorithms or you want to learn for a coding interview. I share my thought process, explain everything, and mention similar problems that I know or techniques/algorithms that could be used too. Learn from me and grow your rating on Codeforces!
6 سال پیش در تاریخ 1397/11/07 منتشر شده است.
33,473 بـار بازدید شده
... بیشتر