Looking for help debugging division algorithm #508
Unanswered
krisbitney
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I've gone over the division algorithm multiple times and I can't find what I did wrong. However, while I sometimes get the correct answer, the division algorithm doesn't pass all of my tests. I am currently using the "small" division algorithm, which does find the correct quotient for each test case.
Could anyone please take a look at my implementation and tell me what I'm missing? Or could you alternatively point me to examples of other implementations so I can compare them?
My AssemblyScript implementation is here: https://github.com/polywrap/as-bigint/blob/main/assembly/BigInt.ts#L589
Thanks for the advice,
Kris
Beta Was this translation helpful? Give feedback.
All reactions