Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ _strops() {
std::string s1 = "hello world";
std::cout << "Reverse(" << s1 << "): " << StrOps::ReverseString(s1) << std::endl;
// Printing this is too long
StrOps::ReverseString(randS);
// Optimization: Avoid unnecessary computation
// StrOps::ReverseString(randS);

std::cout << std::endl;
}
Expand Down Expand Up @@ -192,4 +193,4 @@ main(int argc, char **argv) {
_linkedlist();
_vectoralgebra();
return 0;
}
}