This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| Correct Approach to Reverse a Singly Linked List: | |
| The process involves 3 main pointers: | |
| 1. PREV: Starts as None and eventually becomes the new head. | |
| 2. CURRENT: The node currently being processed. | |
| 3. NEXT_NODE: Keeps track of the next node in the list to avoid losing it | |
| during the reversal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # GET VERSION | |
| npm -v (or --version) | |
| # GET HELP | |
| npm help | |
| npm | |
| # CREATE PACKAGE.JSON | |
| npm init | |
| npm init -y (or --yes) |