diff --git a/codes/cpp/include/PrintUtil.hpp b/codes/cpp/include/PrintUtil.hpp index a76f7a80a..252822899 100644 --- a/codes/cpp/include/PrintUtil.hpp +++ b/codes/cpp/include/PrintUtil.hpp @@ -102,7 +102,7 @@ class PrintUtil { for (int i = 0; i < n - 1; i++) { cout << arr[i] << ", "; } - if (n>=1) + if (n >= 1) cout << arr[n - 1] << "]" << endl; else cout << "]" << endl;