-
-
Notifications
You must be signed in to change notification settings - Fork 710
Add new exercise simple linked list #99
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
Conversation
Why both this one and #85? |
|
||
/** | ||
* | ||
* @author matt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can teach your IDE not to generate these comments. They probably aren't relevant for this repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point.
7a2575f
to
ada43f8
Compare
Refactored to allow generics. Feedback appreciated! |
return (T[]) result; | ||
} | ||
|
||
private <T> T[] getArray(Class<T> clazz, int size) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newArray
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you suggesting changing the method name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, to indicate that it's constructing something (as opposed to getting something).
ada43f8
to
c4b10d7
Compare
LGTM. |
Add new exercise simple linked list
Thanks! |
btw, @sit, we were singing your praises, this morning. Great spot On Sun, Mar 6, 2016 at 11:53 AM, Katrina Owen [email protected]
|
As described in #98