Determine if a string is squeezable: Difference between revisions
Determine if a string is squeezable (view source)
Revision as of 20:14, 1 December 2019
, 4 years agoAdded more examples for the C implementation
(Added C implementation) |
(Added more examples for the C implementation) |
||
Line 351:
Final ««« --- Harry S Truman »»»
Length : 20
C:\My Projects\networks>a squeeze " --- Harry S Truman " -
Specified Operation : SQUEEZE
Target Character : -
Original ««« --- Harry S Truman »»»
Length : 72
Final ««« - Harry S Truman »»»
Length : 70
C:\My Projects\networks>a squeeze " --- Harry S Truman " r
Specified Operation : SQUEEZE
Target Character : r
Original ««« --- Harry S Truman »»»
Length : 72
Final ««« --- Hary S Truman »»»
Length : 71
</pre>
=={{header|Factor}}==
<lang factor>USING: formatting fry io kernel math sbufs sequences strings ;
|