Timeline for Sum of Maximum GCD from two arrays. Incorrectly closed, due to memory error
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 14, 2019 at 20:52 | vote | accept | PeilonrayzMod | ||
| Jul 25, 2017 at 11:35 | comment | added | Der Kommissar | @Mast I usually ignore the spec, but yes. Even when it requires larger data-sets. Even in that case we know the base code works, which means the result is reproducible, and as such testable. In that case, optimizing the code and expanding to a larger test case is not a major deviation from intent. | |
| Jul 25, 2017 at 4:44 | comment | added | Mast Mod | @EBrown even when the spec specifically requires larger datasets to work as well? | |
| Jul 24, 2017 at 21:08 | comment | added | Der Kommissar | Regardless of OP's desired target memory: if the code can be demonstrated to work on a small input set (I usually consider at least 5 elements a good sample, as it allows enough to prove that an arbitrary input can work, and usually falls within execution time and memory constraints) but does not work on a large input set, it's perfectly on-topic as it can be demonstrated that it works, it's just bad. (And aren't we all here to make bad code suck less?) | |
| Jul 24, 2017 at 15:04 | comment | added | Mast Mod | @Peilonrayz That's not what my commented intended to boil down to, but I understand your hesitation. | |
| Jul 24, 2017 at 15:01 | comment | added | Peilonrayz Mod | currently it looks like Linux supports from 64GB to 64/128TB of RAM. Either way, I don't think sending the message "your question is off-topic at the present moment, as I don't have X amount of RAM. Come back in Y years and this'd be a perfectly on-topic question" is that great. | |
| Jul 24, 2017 at 10:19 | comment | added | Mast Mod | @Peilonrayz Windows 10 won't handle more than 512GB at the moment. That's still only a fraction of what this code requires. And yes, those numbers will change over time. But we're talking about why we're closing this question now, not over 10 years. | |
| Jul 24, 2017 at 8:35 | comment | added | Peilonrayz Mod | +1, but my biggest problem is with the sentence "Consumer-grade computers with that kind of hardware so rare we can safely assume the developer doesn't have one." Whilst I only run 32GB of ram, my motherboard can go to "8 x DIMM, Max. 256GB". Also who knows give it like 20 years and your standard consumer may be running 1TB of RAM... | |
| Jul 22, 2017 at 9:17 | history | answered | MastMod | CC BY-SA 3.0 |