aboutsummaryrefslogtreecommitdiff
path: root/add_space_string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'add_space_string.cpp')
-rw-r--r--add_space_string.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/add_space_string.cpp b/add_space_string.cpp
index 2906d7a..9a9b7ea 100644
--- a/add_space_string.cpp
+++ b/add_space_string.cpp
@@ -27,9 +27,10 @@ public:
int main() {
Solution obj;
- vector<int> s1 = {8, 13, 15}, s2 = {1, 5, 7, 9};
+ vector<int> s1 = {8, 13, 15}, s2 = {1, 5, 7, 9}, s3 = {0, 1, 2, 3, 4, 5, 6};
cout << obj.addSpaces("LeetcodeHelpsMeLearn", s1)
<< endl; // expect: Leetcode Helps Me Learn
cout << obj.addSpaces("icodeinpython", s2)
- << endl; // expect: i code in py thon
+ << endl; // expect: i code in py thon
+ cout << obj.addSpaces("spacing", s3) << endl; // expect: s p a c i n g
}