Skip to content

linked-list exercise instructions are not clear #3851

@edusa

Description

@edusa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions