Browse Source

docs: adding detail for negative index edge case.

CON-2932-MARKDOWN-DPxAI-Quest00-Ex01
amin 2 months ago committed by zanninso
parent
commit
2ebeb4145a
  1. 2
      subjects/java/checkpoints/circular-linkedlist/README.md

2
subjects/java/checkpoints/circular-linkedlist/README.md

@ -4,7 +4,7 @@
Create a circular single linked list data structure that implements the following methods:
- `at(int index)`: to access an element by its index.
- `at(int index)`: to access an element by its index. if the index is negative or if the list is empty return -1.
- `add(int value)`: to add an element at the end of the list.
- `remove(int index)`: to remove an element by its index.
- `size()`: to return the size of the list.

Loading…
Cancel
Save