We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Size of the dict constructed is the same as size of the array (1 key-value pair for every element in the array). Could you please show me your code? I might be able to understand your problem better.
Here's mine (Python 3): https://github.com/duaraghav8/Hackerrank-Problems/blob/master/pairs.py
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Pairs
You are viewing a single comment's thread. Return to all comments →
Size of the dict constructed is the same as size of the array (1 key-value pair for every element in the array). Could you please show me your code? I might be able to understand your problem better.
Here's mine (Python 3):
https://github.com/duaraghav8/Hackerrank-Problems/blob/master/pairs.py