Repository navigation
Implement new exercise: Zipper - #1327
Conversation
sjwarner-bp
left a comment
There was a problem hiding this comment.
I personally think that the closer we stay to the canonical data, the better 🙂
It might be that these functions are mentioned but untested because there is a possibility the canonical data will be updated later with tests for them. If this is the case, we will open a new issue to update the tests when appropriate 👍
|
@sjwarner-bp Ok. |
|
@LuLechuan it depends! Some exercises will be very similar across all language tracks, but others will be particularly easy in some languages and much harder in others. You don't have to just copy Python's difficulty. You wrote a reference solution - how hard did you find that compared to any other exercism Java exercises you've completed? 🙂 |
|
@sjwarner-bp Well this question is an upgraded version for linked-list since they both use pointers in a list/tree. As linked-list is a 6, I would probably give this a 7. |
|
Ready to be reviewed. Thanks |
| Zipper left; | ||
| Zipper right; | ||
|
|
||
| public Zipper(int val) { |
There was a problem hiding this comment.
As per our POLICIES document, we should limit access to minimal levels.
In that case, we should change this (and other public methods) to package private.
|
@sjwarner-bp Changes made as requested |
sjwarner-bp
left a comment
There was a problem hiding this comment.
This is looking pretty good to me! Thanks @LuLechuan
I'll leave it to see if @Smarticles101 has any suggestions that I've missed, but if there aren't any by tomorrow I'll happily merge this in 🎆
|
@sjwarner-bp Ok sure, thanks for the review! |
|
Thanks for the new exercise @LuLechuan! It's always great to bulk the track out a bit 🎉 |
|
Thanks @sjwarner-bp and @Smarticles101 ! It's nice to work with you. |
* Implement Zipper * Update config * Update readme * Minor changes * Update all methods to package private
Implement Zipper #1326
The reference file and test file are done.
However, I have some doubt for this exercise and would like to clarify before uploading README.md and config:
From the problem-description: https://github.com/exercism/problem-specifications/blob/master/exercises/zipper/description.md, there are operations such as prev (move the focus to the previous child of the same parent), next(move the focus to the next child of the same parent), insert before, insert after and delete but they are not tested in the canonical file?
On the other hand, there is no operations called setLeft() or setRight() in the problem description but they are tested extensively in the canonical file.
I have created all these functions in the reference files, please correct me if I have misunderstood these operations. Should I add the tests for those operations that are not in the canonical files?
Thanks for the clarification!
Reviewer Resources:
Track Policies