this post was submitted on 15 Jun 2025
14 points (100.0% liked)
LibreByte
165 readers
1 users here now
Tecnologías libres para la comunidad.
Puedes enviar post a esta Comunidad sobre Tecnologías Libres en Español o Inglés.
founded 6 months ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The recursive solution could have used tail recursion to operate on strings of any size without using O(n) stack space. By just incrementing the string pointer it could do it with just one string buffer too.