A collection of essential Data Structures and Algorithms implemented in Python.
Thank you for considering contributing! Here’s a quick guide to get you started:
Fork the Repository
Click the "Fork" button on the repository page to create a copy in your GitHub account.
Clone the Repository
git clone https://github.com/indra-kc/DSA.git
## Create a branch
Change to the repository directory on your computer (if you are not already there):
cd DSA
Now create a branch using the git switch
command:
git switch -c your-new-branch-name
For example:
git switch -c add-graph-xy
Now commit those changes using the git commit
command:
git commit -m "your-changes-here."
Push your changes using the command git push
:
git push -u origin your-branch-name
Follow these steps to install Python on Ubuntu.
Open a terminal and run the following commands:
# 1. Update Package List
sudo apt update
# 2. Install Python
sudo apt install python3
# 3. Verify the Installation
python3 --version
# 4. Install pip (Python Package Installer)
sudo apt install python3-pip
# 5. Verify pip Installation
pip3 --version
python3 index.py
Follow these steps to install Python on Windows.
Download Python Installer:
Run the Installer:
Verify Python Installation:
cmd
).python --version
Install pip (Python Package Installer):
Pip is typically installed by default with Python. Verify it using:
pip --version
If pip is not installed, you can manually install it by running:
python -m ensurepip --upgrade
To run your Python script, use the command in Command Prompt:
python index.py