Print Spiral Matrix | Python | Pramp/LeetCode

preview_player
Показать описание
Twitter: @colorfulcodes
Instagram: @colorfulcodes
Рекомендации по теме
Комментарии
Автор

I am a beginner in python. In my first program doing the spiral matrix, I just sliced and appended to an empty [ ]. It didn't turn out well because my appended empty [ ] turned out to be a tuple instead of a list. I wanted to find a more efficient way of doing this. I knew there were only 4 directions but couldn't figure out how to transverse the arrays. Thank you for this video.

fairgeorge
Автор

Nice work, very good video explanation and blog post.

rubensicool
Автор

you are very good teacher love from India I need a teacher like you I want to prepare for big tech companies.

rakibulislam
Автор

Thank you for making this video, I found it helpful

popeye
Автор

unfortunately it´s not run, the line 53 "result.append(matrix[rowIndex][i])", reads and error "list Index out of the range", how can I solve that?, thanks

joseluishurtado
Автор

Loved it!! You're so cute! Nice video! <3

fabeanca
Автор

why not use a screen recorder and explain on a pc

divyanshukumar
welcome to shbcf.ru