« first day (1240 days earlier)      last day (155 days later) » 

10:39 AM
@Adnan @Mr.Xcoder @Emigna Does any of you know a work-around to distinguish between POSITIVE_INFINITY and NEGATIVE_INFINITY in nested logarithms? Both result in 0.0 in 05AB1E. At first I thought only POSITIVE_INFINITE was a possible result, so I added an if-statement to change 0 to a large enough integer since it's used as comparing anyway. But now I see there is also a test case with NEGATIVE_INFINITY, now giving the incorrect result in 05AB1E..
It's about this challenge and here is the nested log: I6è.nI7è.n. In the Java/Ruby answers this part is POSITIVE_INFINITY for input [3,2,2,1,1,2,5,1,1,1], and NEGAITVE_INFINITY for input [2,4,1,1,1,3,3,1,1,1].
But in 05AB1E it's 0.0 for both. Not sure if there is any kind of fix. If not I'll just delete my answer, since it's a port anyway.
 

« first day (1240 days earlier)      last day (155 days later) »