Please Login in order to post a comment
Suggestion for the instructions (not sure if this is relevant to anyone here):
Seems like the instruction "For instance, if R = [10,20,40,20,60];you may treat it as [10,20,40,60]" should be in the Output Format section.
I'm confused. The print in MapReducer.execute() (shown below) can never print a "99" - it always prints two things, wrapped into a json structure.
print "{\"key\":\""+item[0]+"\",\"value\":" + str(item[1]) + "}"
Are we supposed to modify execute() as well?
The python code is wrong in a lot of things, may you fix it ?
Test Case #2 fails. I only print unique odd values > 10 .
OutputFormat example in the problem description has 99 two times and it should contain only unique values.
No more comments
Seems like cookies are disabled on this browser, please enable them to open this website
Suggestion for the instructions (not sure if this is relevant to anyone here):
Seems like the instruction "For instance, if R = [10,20,40,20,60];you may treat it as [10,20,40,60]" should be in the Output Format section.
I'm confused. The print in MapReducer.execute() (shown below) can never print a "99" - it always prints two things, wrapped into a json structure.
print "{\"key\":\""+item[0]+"\",\"value\":" + str(item[1]) + "}"
Are we supposed to modify execute() as well?
The python code is wrong in a lot of things, may you fix it ?
Test Case #2 fails. I only print unique odd values > 10 .
OutputFormat example in the problem description has 99 two times and it should contain only unique values.