1.0.4 • Published 5 months ago
gv_rotating_array v1.0.4
gv_rotating_array 📜
A Node.js module for rotating arrays clockwise or anti-clockwise!
🚀 Features
- Rotate arrays in both clockwise and anti-clockwise directions.
- Menu-driven program for an interactive user experience.
- Simple to use and flexible for array manipulation needs.
🛠️ Installation
Before running the code, you need to install the package.
Make sure you are in your project directory
npm install gv_rotating_array
▶️ How to Run the Code
- Ensure you have installed the package using
npm i gv_rotating_array
. - Run the following command(from project directory) to execute the module:
node ./node_modules/gv_rotating_array/index.js
📂 Accessing the Logic
The logic for the rotating array is located in the following file:
node_modules/gv557_exp3
You can explore and understand the implementation details there.
📋 Example Usage
- Enter the size of the array when prompted.
- Input the elements of the array.
- Choose:
- 1 for Anti-Clockwise rotation.
- 2 for Clockwise rotation.
- 3 to Exit.
The rotated array will be displayed on the console.
🧑💻 Contributions
Feel free to contribute by improving the module or fixing issues.
Happy Coding! 🎉