-
Notifications
You must be signed in to change notification settings - Fork 5k
Skip List #179
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
Skip List #179
Conversation
Thanks @mitghi! 👍 Just let me know when it's ready for review. Would you be able to use this style guide for writing code? E.g. change |
Thanks @chris-pilcher . I add the description very soon. |
@mitghi Looking to cleanup the pull requests. What's the ETA on this being completed? |
@kelvinlauKL I finish it this weekend. |
@kelvinlauKL @chris-pilcher The code is finished and refactored. Please have a look, so I can work on it faster in case anything should get changed. Thanks |
@kelvinlauKL @chris-pilcher :) I appreciate if you provide some feedback so I can improve it. Thanks. |
@mitghi Sorry for the delay. I just did a review on your code. Great job overall.
A couple of comments: // not preferred
fileprivate var array = [T]()
// preferred
fileprivate var array: [T] = [] All extensions should be preceded with a A couple of compiler errors on the latest Xcode 8.0. In particular, the // not preferred
interval func insert(key: Key, data: Payload) { ... }
// preferred
func insert(key: Key, data: Payload) { ... } Everything in your file is prefixed with an invisible internal. There's no need to explicitly state it. public func remove(key: Key) -> Void { ... } No need to specify the return type as self.head self.head = Node(asHead: true) No need to specify |
@kelvinlauKL Thank you very much Kelvin, I modify it accordingly. EDIT: |
@chris-pilcher Just letting you know I'm currently reviewing this. |
I am working on Skip List. It is almost finished.