L-Shaped String Transformation
Given a string s and a number of rows numRows, arrange the string in an L-shaped pattern from top to bottom, left to right. Then, read the characters row by row from left to right to produce a new string. Implement this transformation with the function signature:
transform(s: string, numRows: number) => string
For example, with input string ...
Posted on Thu, 14 May 2026 21:23:58 +0000 by LDusan