Загрузка страницы

AMAZON CODING INTERVIEW QUESTION - SPIRAL MATRIX

SOCIAL
----------------------------------------------------------------------------------------------------------------
Instagram: https://instagram.com/kevinnaughtonjr/
Twitter: https://twitter.com/KevinNaughtonJr
Patreon: https://www.patreon.com/KevinNaughtonJr
GitHub: https://github.com/kdn251

This is one of Amazon's most commonly asked interview questions according to LeetCode (2020)! spiral matrix coding solution. If you give me 10 minutes you'll thank me if this appears during your Amazon interview! Coding Interviews spiral matrix (LeetCode) question and explanation.

DISCORD CHANNEL
----------------------------------------------------------------------------------------------------------------
To join the Discord channel use the following link and join the "Member" tier: https://www.patreon.com/KevinNaughtonJr In this Discord channel, you will be able to...
1. Ask me questions directly (as well as other members)
2. Ask about and discuss previous interview experiences
3. Find mock interview partners
4. Share helpful videos for interview preparation, and more!

This question is commonly asked by the following companies: Amazon, Apple, Facebook, Google, Snapchat, Microsoft, Oracle, Adobe, Goldman Sachs, Visa, and Epic Systems.

Link to problem: https://leetcode.com/problems/spiral-matrix/

Intuition behind solution: create a list to hold all values in spiral order. Create bounds top, bottom, left, and right to help you determine where you should start and stop during your traversal. While your return list isn't the size of matrix.length x matrix[0].lengthh continue iterating over the matrix. First iterate across all columns in top from left to right, then iterate through all rows in right from top to bottom, then iterate through all columns in bottom from right to left, and final iterate through all rows in left from bottom to top. Once your loop terminates, return your list.

MUSIC
----------------------------------------------------------------------------------------------------------------
woke up tired (playboi carti - wokeuplikethis* lofi remix) by listless
https://soundcloud.com/list-less/woke-up-tired

#techinterviews #leetcode #amazoninterview

Видео AMAZON CODING INTERVIEW QUESTION - SPIRAL MATRIX канала Kevin Naughton Jr.
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
29 февраля 2020 г. 7:00:00
00:10:16
Яндекс.Метрика