Your task is to implement doubly linked list data structure.
Should add node to the end of the list
Should return data from the head of the list
Should return data from the end of the list
Should return data of node by specified index
Should insert data to specified index
Should return true if list is empty, false otherwise
Should clear the list
Should delete element by specified index
Should reverse the list
Should return index of specified value or -1 if list doesn't contain such
- Install Node.js
- Fork this repository: https://github.com/rolling-scopes-school/doubly-linked-list/
- Clone your newly created repo: https://github.com/<%your_github_username%>/doubly-linked-list/
- Go to folder
doubly-linked-list
- To install all dependencies use
npm install
- Run
npm test
in command line or you can run tests in browser withnpm start
and open http://localhost:8080 - You will see the number of passing and failing tests. 100% of passing tests is equal to 100p in score
Submit to rs app
- Open rs app and login
- Go to submit task page
- Select your task (doubly-linked-list)
- Press the submit button and enjoy
© Shastel