Some error occured while loading page for you. Please try again.
Sort 1 Discussion, By:
Please Login in order to post a comment
Hi, I am getting stuck in the way the test cases are built.
I storing the size of R as Nr and and a counterR as a class property (setting it via the MapReduce constructor) and incrementing it for every call to the reduce function.
counterR = 0;
SizeOfNr = 10;
if(value.size() == 1 && counterR < sizeOfNr)
My problem is:
for the first test case with 10 values, it works fine.
But for the second test case with 20 values, it fails.
Can you help me point where I am going wrong.
R-S is all elements in R that are not present in S. As such you cant know until you build R (or S). Im not sure what you use the counters for, post the code if you still havent finished this
No more comments