6. Zigzag Conversion 🔀
Description
P A H N
A P L S I I G
Y I Rstring convert(string s, int numRows);Examples
s = "PAYPALISHIRING"
numRows = 3Constraints
Solution 💡
Java
Time Complexity ⏳
Space Complexity 💾
Previous151. Reverse Words in a String 🔄Next28. Find the Index of the First Occurrence in a String 🔄
Last updated