|  | 
|  | 
| вернуться в форум | My solution Послано Pearl  2 окт 2018 14:56For those looking for a hint: I use stack..
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 .
 
 Push the characters into stack, when a non-alphabetic character is read, pop out all the characters in stack and print them before printing the non-alphabetic character.
 
 Edited by author 02.10.2018 15:04
 | 
 | 
|