Jump to content

Rep-string: Difference between revisions

m
Minor improvement to code.
m (Minor improvement to code.)
m (Minor improvement to code.)
Line 990:
std::vector<std::string> rep_string(const std::string& text) {
std::vector<std::string> repetitions;
if ( text.length() < 2 ) {
return repetitions;
}
 
for ( uint64_t len = 1; len <= text.length() / 2; ++len ) {
908

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.