Determine if a string is squeezable: Difference between revisions
Content added Content deleted
(Added C implementation) |
(Added more examples for the C implementation) |
||
Line 351: | Line 351: | ||
Final ««« --- Harry S Truman »»» |
Final ««« --- Harry S Truman »»» |
||
Length : 20 |
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> |
</pre> |
||
=={{header|Factor}}== |
=={{header|Factor}}== |
||
<lang factor>USING: formatting fry io kernel math sbufs sequences strings ; |
<lang factor>USING: formatting fry io kernel math sbufs sequences strings ; |