Post History
Japt, 24 bytes Returns an empty string for input 0. If that's not allowed then replace :P with P:V. Not at all happy with the recalculation of U for the recursive call, but I can't figure out a b...
#2: Post edited
- # [Japt](https://github.com/ETHproductions/japt), 24 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- Returns an empty string for input `0`. If that's not allowed then replace `:P` with `P:V`.
- Not _at all_ happy with the recalculation of `U` for the recursive call, but I can't figure out a better way.
- ?Ug-i+i0¹ißU/3+U%3/2|0:P
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=P1VnLWkraTC5ad9VLzMrVSUzLzJ8MDpQ&input=LTU0MA)
- # [Japt](https://github.com/ETHproductions/japt), 24 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- Returns an empty string for input `0`. If that's not allowed then replace `:P` with `P:V`.
- Not _at all_ happy with the recalculation of `U` for the recursive call, but I can't figure out a better way.
- ?Ug-i+i0¹ißU/3+U%3/2|0:P
- [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=P1VnLWkraTC5ad9VLzMrVSUzLzJ8MDpQ&input=LTU0MA) or [run all test cases](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=P1VnIjArLSIgad9VLzMrVSUzLzJ8MDpQ&input=WzAsIDUsIDYsIDExLCA2NSwgLTQ0LCAtNTQwXQotbVI)
#1: Initial revision
# [Japt](https://github.com/ETHproductions/japt), 24 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
Returns an empty string for input `0`. If that's not allowed then replace `:P` with `P:V`.
Not _at all_ happy with the recalculation of `U` for the recursive call, but I can't figure out a better way.
?Ug-i+i0¹ißU/3+U%3/2|0:P
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=P1VnLWkraTC5ad9VLzMrVSUzLzJ8MDpQ&input=LTU0MA)
