Closed ying2025 closed 6 years ago
Why it overflowed?
Sorry, it's unclear to me what you are asking. Could you explain what the purpose of the code is, and point out what exactly it's doing that is not expected?
Why it appear -1058339101 in this line "235 32 -1058339101" ?
I don't know exactly what you are trying to do with your code, but this line is invalid:
console.log(bigInterger(N));
Firstly, bigInterger
is not spelled correctly. The function should be named bigInt
.
Second, N
is an array of integers. An array is not a valid argument to pass into bigInt
. You can only pass in a string, a number, or another bigInt.
Since this log statement is the only place where you are using the bigInteger function, any other issues in the code are not caused by this library.