aboutsummaryrefslogtreecommitdiff
path: root/zigzag_conversion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zigzag_conversion.cpp')
-rw-r--r--zigzag_conversion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zigzag_conversion.cpp b/zigzag_conversion.cpp
index aa3fba6..f7e6b74 100644
--- a/zigzag_conversion.cpp
+++ b/zigzag_conversion.cpp
@@ -16,7 +16,7 @@ public:
string convert(string s, int numRows) {
if (numRows <= 1)
return s;
- const int len = (int)s.size();
+ const int len = s.size();
string *str = new string[numRows];
int row = 0, step = 1;
for (int i = 0; i < len; ++i) {