@rey @er1n @LottieVixen @ashkitten i feel like i'm too dumb to even think of a solution let alone in assembly

@rey @er1n @ashkitten @squirrel I'll share my solution in Java with those who aren't taking part :3

@rey @er1n @ashkitten @squirrel

Something I may have forgotten to mention but I think I did is you can't iterate through the stack

Iteration is O(n) where n is stack size, the solution is 1 or O(1)

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!