Print Concatenation of Zig-Zag String in ‘n’ Rows
Anonymous
Solution can be found online. I first tried a mathematical solution,, but the interviewer found some edge cases where it might not work. Then I rewrote it with a simpler looping solution.
Check out your Company Bowl for anonymous work chats.