Update page 'Int underlying data type'
parent
101d4cac35
commit
eb886d65a3
1 changed files with 10 additions and 0 deletions
10
Int-underlying-data-type.md
Normal file
10
Int-underlying-data-type.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
The first thing when starting to condsider is the underlying data type of BigInt.
|
||||||
|
```
|
||||||
|
struct BigInt {
|
||||||
|
magnitude: Vec<u64>,
|
||||||
|
postive: bool,
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
This will work for nicely for the first two opperations addition and subtration. Both have O(n^2) and Schoolbook carry works well
|
Loading…
Add table
Reference in a new issue