Decoding the Two Pointer Technique in a Coding Interview Using Javascript

Опубликовано: 13 Январь 2022
на канале: Coderbyte
8,167
271

We’re continuing our common coding interview patterns series by introducing the two pointer pattern. This patten is helpful in problems where you want to avoid looping over an array or linked list multiple times.

The Challenge:
Given an array of sorted numbers and a target sum, find a pair in the array whose sum is equal to the given target.

Video Overview:
0:44 Two pointer pattern overview
2:54 Problem
3:39 Naive approach
5:46 Two pointer approach
7:43 Javascript solution
16:32 Test cases
17:33 Recap

Please subscribe to our channel!

What types of videos would you like to see next? Let us know in the comments.

Additional Resources:
Practice hundreds of real coding challenges at https://coderbyte.com/
Need more practice? Check out our channel for more videos on preparing for a coding interview    / coderbytedevelopers  


На этой странице сайта вы можете посмотреть видео онлайн Decoding the Two Pointer Technique in a Coding Interview Using Javascript длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Coderbyte 13 Январь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 8,167 раз и оно понравилось 271 зрителям. Приятного просмотра!