Timeline for Can this number be written in (3^x) - 1 format?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 9, 2017 at 3:20 | comment | added | hyperneutrino♦ |
@RomanGräf I appreciate your suggestions; however, none of them are of any use for me, unfortunately. Your first suggestion only works in Java 8, and there is already a far better Java 8 solution out there. I have (a) in the while loop because I am doing a comparison of an assignment statement, and assignment has the lowest priority on the order of operations and thus requires a set of brackets around it. Finally, I have double because Math#log returns a double and casting would obviously be much slower. Regardless, thank you for the suggestions, but I will not be incorporating them.
|
|
Jan 8, 2017 at 20:04 | comment | added | Linnea Gräf |
You can use interface A{...} and drop the public from main() . Why do you have (a) instead of a in the while loop. I think you can use float k=... instead of double k=... . Should be -5 bytes if I counted right.
|
|
Jan 8, 2017 at 3:19 | history | edited | hyperneutrino♦ | CC BY-SA 3.0 |
Removed non-competing status
|
Jan 8, 2017 at 3:19 | comment | added | hyperneutrino♦ | @KritixiLithos Oh okay. I wasn't aware of the exact meaning of Non-Competing. Thanks. Also, I'll update the title. | |
Jan 7, 2017 at 20:55 | comment | added | Offtkp | As I said, size doesn't matter, so this can compete. | |
Jan 7, 2017 at 11:10 | comment | added | user41805 | Why is this non-competing? The Non-Competing status is only reserved for languages or language features that were added after the challenge was posted. | |
Jan 7, 2017 at 3:17 | history | answered | hyperneutrino♦ | CC BY-SA 3.0 |