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

Add C++, Python, Go code for chapter_hashing #110

Merged
merged 8 commits into from
Dec 16, 2022
Merged

Conversation

msk397
Copy link
Contributor

@msk397 msk397 commented Dec 14, 2022

No description provided.

@vercel
Copy link

vercel bot commented Dec 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
hello-algo ⬜️ Ignored (Inspect) Dec 16, 2022 at 9:04AM (UTC)

Copy link
Owner

@krahets krahets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the code! Please address the comment.

Copy link
Owner

@krahets krahets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @msk397 , there are a few comments to be addressed. Thanks!

@krahets
Copy link
Owner

krahets commented Dec 15, 2022

By the way, it is recommended to press resolve button after fixing.

@msk397
Copy link
Contributor Author

msk397 commented Dec 15, 2022

Sorry, this is my first time participating in an open source project, there are a lot of deficiencies.🥲 Thank you for your code review! I will fix these mistakes.

@krahets krahets added the code Code-related label Dec 15, 2022
@krahets
Copy link
Owner

krahets commented Dec 15, 2022

Sorry, this is my first time participating in an open source project, there are a lot of deficiencies.🥲 Thank you for your code review! I will fix these mistakes.

Not a problem! Unfamiliar at first but you get used to it.

@@ -96,3 +96,10 @@ func showTrunk(t *trunk) {
showTrunk(t.prev)
fmt.Print(t.str)
}

// PrintHashMap Print a hash map
func PrintMap(m map[int]string) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please implement a function with Generics, ie., we should not limit the type of key and value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added PrintMap by reference to PrintSlice function. If Generics are required, does PrintSlice function also need to be supported?

Copy link
Owner

@krahets krahets Dec 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry that I missed this comment. Yes, I think it should also support generics. Could you help update it? Thanks!

@msk397

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem! @krahets

@krahets
Copy link
Owner

krahets commented Dec 16, 2022

I add a comment, please address it, thanks!

I'm wondering which languages you mainly write in. It is recommended to focus on working on the language you are most familiar with.

Copy link
Owner

@krahets krahets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @msk397 for the great work! Now merge it.

@krahets krahets merged commit 221ed3f into krahets:master Dec 16, 2022
@msk397
Copy link
Contributor Author

msk397 commented Dec 16, 2022

I'm wondering which languages you mainly write in. It is recommended to focus on working on the language you are most familiar with.

I will focus on my main language. Thanks for your advice!

@krahets
Copy link
Owner

krahets commented Dec 16, 2022

I will focus on my main language. Thanks for your advice!

Yes, or push the code in one language at first. And you can fix other languages following the comments. After merging, push other languages.

@Reanon Reanon mentioned this pull request Jan 8, 2023
36 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Code-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants