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

[Question] Specification of the get method for HW 6 (Hashset) #933

Closed
thekioskman opened this issue May 18, 2024 · 3 comments
Closed

[Question] Specification of the get method for HW 6 (Hashset) #933

thekioskman opened this issue May 18, 2024 · 3 comments
Assignees
Labels
homework - hash_table hash_table/{growable_array,split_ordered_list}.rs question Further information is requested

Comments

@thekioskman
Copy link

I am a bit confused about the specification of the get method. Just to clarify is it a set/get coupled together? Meaning we want to create the entry if it doesn't exist and return it, and just return it if it exists.

@thekioskman thekioskman added the question Further information is requested label May 18, 2024
@kingdoctor123
Copy link
Member

Yes you are right.

@thekioskman
Copy link
Author

Also, I don't we learned about the guard and pinning threads in class yet. Are there any recommended resources to learn what pinning a thread does?

@Lee-Janggun
Copy link
Member

Lee-Janggun commented May 18, 2024

See https://www.youtube.com/watch?v=cYDMq5FOiw4&list=PL5aMzERQ_OZ9j40DJNlsem2qAGoFbfwb4&index=26 and https://www.youtube.com/watch?v=rL9Z8eQEgek&list=PL5aMzERQ_OZ9j40DJNlsem2qAGoFbfwb4&index=27&pp=iAQB .

Although, I recommend first working on the hw without worrying about memory reclamation, then fixing any leaks if nessecary.

@Lee-Janggun Lee-Janggun added the homework - hash_table hash_table/{growable_array,split_ordered_list}.rs label May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
homework - hash_table hash_table/{growable_array,split_ordered_list}.rs question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants