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

linked-list exercise instructions are not clear #3851

Closed
edusa opened this issue Jan 22, 2025 · 1 comment
Closed

linked-list exercise instructions are not clear #3851

edusa opened this issue Jan 22, 2025 · 1 comment

Comments

@edusa
Copy link

edusa commented Jan 22, 2025

the exercise requires the implementation of push, pop, shift and unshift.

It should be made explicit what each of these mean. In my case I've started tackling this exercise as if I were working with a FIFO.

  • The push() method adds new items to the top of the list.
  • The pop() method removes (pops) the first item of the array.
  • The shift() method rotates the items, moving the last to first.

Which strangely allowed me to advance on the exercise, until I had to implement unshift. Here I ended up finding a source online which described in the context of LL, what these methods might also mean.

  • The push() method adds new items to the end of an array.
  • The pop() method removes (pops) the last item of an array.
  • The shift() method removes the first item of an array.
  • The unshift() method adds new items to the beginning of an array.

I would kindly ask for these last four descriptions to be added to the file instructions.append.md.

Copy link
Contributor

Hello. Thanks for opening an issue on Exercism 🙂

At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.

This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!

If you're interested in learning more about this auto-responder, please read this blog post.

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

No branches or pull requests

1 participant