Timeline for Electron Configurations
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | Community Bot |
Commonmark migration
|
|
| Sep 14, 2014 at 7:31 | history | edited | user16402 | CC BY-SA 3.0 |
clarify that this is python2 only
|
| Sep 12, 2014 at 20:33 | comment | added | ɐɔıʇǝɥʇuʎs |
@professorfish Python probably has libraries for gzip, but the strength of Python in this case it that it's strs have an buit in decode method, that can decode zip without having to use any external modules. This isn't true for gzip (unless the builtin method also accepts gzip, I haven't tested that), so I think that would probably add characters rather than remove them. Still, thanks for the advice.
|
|
| Sep 12, 2014 at 19:47 | comment | added | user16402 | And if Python has libraries for gzip, then not only can you use gzip (which is more efficient), but standard gzip tools can decompress files created by zopfli, which is even more efficient | |
| Sep 12, 2014 at 19:46 | comment | added | Claudiu |
You could save 3 chars by encoding each result with dashes instead of spaces (2-8-13-2) and separating the elements spaces instead of semicolons, then you do .split() instead of .split(';')
|
|
| Sep 12, 2014 at 19:37 | comment | added | ɐɔıʇǝɥʇuʎs |
@professorfish Most certainly. The new one is also python 2 only (print as a keyword rather than a function).
|
|
| Sep 12, 2014 at 19:36 | history | edited | ɐɔıʇǝɥʇuʎs | CC BY-SA 3.0 |
added 412 characters in body
|
| Sep 12, 2014 at 19:32 | comment | added | user16402 |
The "old answer" only works in Python2. I haven't checked the new one - have you got a base64 of the file f so I can reproduce it?
|
|
| Sep 12, 2014 at 0:06 | comment | added | Sammitch |
I missed the kolmogorov-complexity tag. And here I am trying to decipher the energy levels of the various valence subshells, and I'm not even a physicist. :I
|
|
| Sep 11, 2014 at 23:32 | comment | added | Dennis | The answer you link to begins with Unless the question is an obvious exception (the primary exception being those tagged kolmogorov-complexity), which is the case here. The whole idea of kolmogorov-complexity questions is to hardcode the output in the most efficient manner. | |
| Sep 11, 2014 at 22:08 | history | edited | ɐɔıʇǝɥʇuʎs | CC BY-SA 3.0 |
added 1500 characters in body
|
| Sep 11, 2014 at 21:39 | comment | added | user16402 | This is good, but please make it a complete program (that reads in input from stdin or arguments); also, you can use an external file to avoid the base64 (but the file and its name count towards code length) | |
| Sep 11, 2014 at 21:12 | history | answered | ɐɔıʇǝɥʇuʎs | CC BY-SA 3.0 |