Determine if a string is collapsible: Difference between revisions

m
no edit summary
mNo edit summary
Line 374:
 
=={{header|C++}}==
The solution is a straightforward application of the standard library function "unique".
 
<lang cpp>#include <string>
#include <string>
#include <iostream>
#include <algorithm>
Line 404 ⟶ 403:
test(" --- Harry S Truman ");
return 0;
}</lang>
}
</lang>
 
{{out}}
1,777

edits