Timeline for Bruteforce integer multiplication in Java
Current License: CC BY-SA 4.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 28 at 14:02 | comment | added | Kelly Bundy | For 999999999999999, which has 15 digits, your log10 suggestion says 16. | |
| May 28 at 8:03 | history | edited | TorbenPutkonen | CC BY-SA 4.0 |
deleted 2 characters in body
|
| S May 28 at 8:03 | history | suggested | kiner_shah | CC BY-SA 4.0 |
Fixed a bug in code
|
| May 28 at 6:51 | review | Suggested edits | |||
| S May 28 at 8:03 | |||||
| May 28 at 6:27 | comment | added | TorbenPutkonen |
@coderodde It does work just fine, especially for code of this purpose, but why not just have a convertToDigitArray(long) method and hide the implementation details there?
|
|
| May 28 at 6:22 | history | edited | TorbenPutkonen | CC BY-SA 4.0 |
added 4 characters in body
|
| May 28 at 6:22 | comment | added | coderodde |
Nice one! However, I took a look at Long.toString: it seems to do more or less the same what I did.
|
|
| May 28 at 6:22 | history | edited | TorbenPutkonen | CC BY-SA 4.0 |
added 287 characters in body
|
| May 28 at 6:21 | history | edited | TorbenPutkonen | CC BY-SA 4.0 |
added 287 characters in body
|
| May 28 at 6:15 | history | answered | TorbenPutkonen | CC BY-SA 4.0 |