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

Added Heap #4

Merged
merged 3 commits into from Jan 29, 2016
Merged

Added Heap #4

merged 3 commits into from Jan 29, 2016

Conversation

kevinrandrup
Copy link
Contributor

I created a Heap protocol and implemented a MaxHeap. I also included some basic tests. They aren’t exhaustive by any means but I used them to verify everything is working correctly.

Created Heap protocol and MaxHeap. I also included some basic tests.
@kevinrandrup
Copy link
Contributor Author

I'll be happy to contribute a written description and a PriorityQueue implementation if everything looks good with this implementation.

@hollance
Copy link
Member

Looks very good!

I'd really appreciate it if you could add a written explanation. :-) (Don't forget to include your name in the description, so you get some credit for your work.)

Added a written description for Heap.
Small terminology changes in Heap.swift
Added name next to Heap in main description README.
@samirGuerdah
Copy link

@kevinrandrup How you are running the tests ? Does playgroud supports XCTest ?

@kevinrandrup
Copy link
Contributor Author

@samirGuerdah It doesn't supposed XCTest. I just copy pasted the files into an Xcode project.

hollance added a commit that referenced this pull request Jan 29, 2016
@hollance hollance merged commit dd986a4 into kodecocodes:master Jan 29, 2016
@hollance
Copy link
Member

Awesome, I've merged it and made a few small changes. Most importantly, I created an Xcode project for the unit tests. Thanks again, Kevin!

hollance pushed a commit that referenced this pull request Feb 9, 2016
kelvinlauKL pushed a commit that referenced this pull request Nov 26, 2016
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

Successfully merging this pull request may close these issues.

None yet

3 participants