Open zweaver-chwy opened 2 months ago
It's checking if the length is < 3 then return empty string. This doesn't work in cases like a string being a single character like A.
A
Can be replaced with a check for if (str.empty()) then return empty
if (str.empty())
It's checking if the length is < 3 then return empty string. This doesn't work in cases like a string being a single character like
A
.