Zigzag Conversion — LeetCode #6 (Medium) — Python | Logixy

Published: 19 May 2026
on channel: Logixy
43
4

Zigzag Conversion — LeetCode #6 (Medium) — Python | Logixy

Write a string in a zigzag pattern across N rows, then read it row by row.

Example:
Input: s = "PAYPALISHIRING", numRows = 3
Output: "PAHNAPLSIIGYIR"

Chapters:
00:24 setup
00:36 first try
00:47 the idea
00:55 flip rule
01:06 walkthrough
01:44 why it works
01:58 complexity
02:07 code
02:34 closer

— Logixy: clear, patient DSA walkthroughs.

#leetcode #dsa #python #coding #interview


On this page of the site you can watch the video online Zigzag Conversion — LeetCode #6 (Medium) — Python | Logixy with a duration of hours minute second in good quality, which was uploaded by the user Logixy 19 May 2026, share the link with friends and acquaintances, this video has already been watched 43 times on youtube and it was liked by 4 viewers. Enjoy your viewing!