Determine if a string is collapsible: Difference between revisions
Determine if a string is collapsible (view source)
Revision as of 14:57, 11 January 2020
, 4 years agono 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 <iostream>
#include <algorithm>
Line 404 ⟶ 403:
test(" --- Harry S Truman ");
return 0;
}</lang>▼
▲</lang>
{{out}}
|