79679788

Date: 2025-06-26 00:30:31
Score: 1
Natty:
Report link

Unfortunately,

: myexp ( u1 u2 -- u3 ) \ u3 = u1^u2   over swap 1 ?do over * loop nip ;

Hangs if the exponent is 0. The correct answer is 1.

: myexp ( u1 u2 -- u3 ) \ u3 = u1^u2   1 swap 0 ?do over * loop nip ;

Will fix that, but it hangs if the exponent is negative.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: bitflogger