Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keys function is returning first pair for each hash instead of all keys #107

Open
SmitaPatankar opened this issue Aug 5, 2021 · 1 comment

Comments

@SmitaPatankar
Copy link

arr.append(self.map[i][0])

It is going to each hash location, checking if pairs exist and returning the 0th pairs.

It needs to go to each hash location, check if pairs exist and loop over each pair and return their 0th element i.e. the keys.

@AK16092003
Copy link

can I contribute to this !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants