Determine if a string is squeezable: Difference between revisions
Determine if a string is squeezable (view source)
Revision as of 14:56, 11 January 2020
, 4 years agono edit summary
No edit summary |
mNo edit summary |
||
Line 439:
=={{header|C++}}==
The solution is a straightforward application of the standard library function "unique".
<lang cpp>#include <algorithm>
#include <string>
#include <iostream>
Line 474 ⟶ 473:
test(truman, 'r');
return 0;
}</lang>▼
▲</lang>
{{out}}
|