@Blind4bBasics and @lechevalier
I learn so much from reading your codes.
May God grant you a long life, and may he inspire your code for a long time to come. ^‿^
Interestingly, order of evaluation is just a convention.
This order of evaluation is the reverse of the APL one.
Here is some further reading about this :
Is there any way to unpublish a kata? All the solutions will be invalidated.
My solution was approved and was then removed because of this issue, should I repost it, or will it come back by itself into the solutions?
Resolving here, same issue above. I'll take a look in a minute
Python: The following test (and many random tests with ^) is incorrect:
test.assert_equals(no_order(' 3-15 ^ 8-4 '), -429981700)
The result should be 429981692 because: 3 - 15 = -12, (-12)^8 = 429981696, 429981696 - 4 = 429981692.
In Python, the expression -12 ** 8 is evaluated as -(12 ** 8) which is not correct for this kata.
-12 ** 8
-(12 ** 8)
I think exponentiation implementation in tests is wrong.
3-15 ^ 8-4
429981692 should equal -429981700
3-15 = -12
(-12) ^ 8 = 429981700 and not -(12**8)
Why did I use a queue from a list ?????????
Don't try this at home :)
ouch. Took me a while to understand.
Sorry for my bad solution :D
Really interesting , in my opinion much harder than the other performance oriented kata , I'm at 2.5 millions in 12 sec for now :D