— To test I'm using as argv ABABABAAABAA to check if A's are converted to B's
— It doesn't work, because "A" and 'A' are whole diff things
— Another one bites the dust...! Banned SamuraiLeon $3 🐧🐧🐧🌊🔐. Reason: What the hell
— That bot are scaring me
Why do you test replacement if you want to delete spaces? I would just create second array where to copy non-space symbols from the initial.
— Ok, I'll try to do that
— Thanks all of you for helping!
— Useless syscall using
— But it's simple
— Also I can use stack-base array. He is using one.
— No syscalls.
— If we have a limitation to not use second array, algo will be: 1. Find space 2. Count how many spaces till non-space 3. memmove from non-space to first space position. 4. Loop 1-3 till the end of string.