diff --git a/LeetCode Questions/C++/1. Problems/zigzag_Conversion.cpp b/LeetCode Questions/C++/1. Problems/zigzag_Conversion.cpp new file mode 100644 index 00000000..89ac17d3 --- /dev/null +++ b/LeetCode Questions/C++/1. Problems/zigzag_Conversion.cpp @@ -0,0 +1,18 @@ +class Solution { +public: + string convert(string s, int numRows) { + string ans; + vector tmp(numRows); + //create strings for each row + int i=0, n=s.size(); + while(i0 && i