14
Павел Антипирин
Last seen 25 days ago
Member for 1 year, 5 months, 14 days
Difficulty Normal
Ha! This is really creative way. It is interesting to go through =)
But 3 lambda functions... how fast is this code?)
More
I guess, this is typical solution for this task =) But it's clear enough to understand without any knowledge of datetime lib.
More
Indeed, this is the most reasonable way to solve it because of the speed of this algorithm.
I solved the task through text.split() but it losses in big massive of data.
More
Used the same. It was the first thought in my mind (and I wrote it), but later I've discovered that this way is not the best at the code performance (but at least most laconic =))
More
It looks more like "Scary" solution to me and it will only work from 1 to 100 but "Precondition: given in should be between -1000 and 1000" and you don't follow it.
More
I tried to solve it with RE, but I gave up and you showed me that this magic is possible after all =)
More
This is how I solved it in a first time - maybe it's just in every beginners mind like that =)
More
Wow, without datetime lib and with regular expressions? That's preatty good =)
More