ZigZag Conversion - Leetcode 6 - Arrays & Strings (Python)

preview_player
Показать описание


Please check my playlists for free DSA problem solutions:

My Favorite Courses:

Data Structures & Algorithms:

Python:

Web Dev / Full Stack:

Cloud Development:

Game Development:

SQL & Data Science:

Machine Learning & AI:
Рекомендации по теме
Комментарии
Автор

I used to follow Neetcode for his solutions as they were really detailed and explained properly but I genuinely feel like your solutions are much easier to understand!! Keep up the good work, we really appreciate it.

SparshKhare-ot
Автор

Mate, you’re doing an amazing job explaining those problems. Thank you very much!

robertszlufik
Автор

This solution is so Fire, NeetCode's solution almost made me suicide.

dontignore
Автор

Not the most memory efficient solution, but I'll actually remember the thought process, so infinitely more approachable than neetcode's derived arithmetic. That one was... a very, very difficult derivation to arrive at and trust to be correct.

MrNegimaki
Автор

thanks for the video. Btw I guess the string concat issue depends on the language. In many languages like Java / C# you can use StringBuilder class

NormalHuman
Автор

You should demo rowN = 4, rowN = 3 is simple case so you can't really see the real picutre when updward will create new col

sase
Автор

Doesn't work with numRows = 1 and string more than 1 char try "AB", numrows = 1. It still goes for next char B, it enters the 1st if (i==0) and sets d, skips the elif, cuz also i == numRows -1, and on the next cycle it will try to set rows[1].append ... which results in OutOfBoudaries Excp

EgorGuriyanov