So I think I have found out the reason for RE. *I didn't consider fully 
overlapping job intervals*. Due to this when a fully overlapping interval 
is in the test set, the dictionary just updates to a new value with the key 
remaining same. In this case first (1,10) points to the value 0 then it 
points to 1. As per the algorithm, the first job is allocated to 'C' 
however, in the list *L,* 'C' goes to index '1' as opposed to 0 because 
that is what happened while taking the input and the first element of L 
remains 0 as opposed to any string type element. As soon as the joint() 
method is applied on L, it encounters an *int* type data and fails and 
hence the *RE*. 

Thank you so much @porker2008. You may very well be the reason for ending 
my frustration related to this round!!! As soon as I develop a brand new 
solution to the problem in Python 3 I will post it here.

Thanks once again

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/1142c29f-848a-4383-890c-44169714a82e%40googlegroups.com.

Reply via email to