my code - CodeChef: Practical coding for everyone
other guy - CodeChef: Practical coding for everyone
i am not complaining but trying to understand. my code is more efficient than his. he redifines the dictionary in every iteration while i only define it once which works perfectly. leave alone same time effciency his code should be less effcient than mine.