https://github.com/junaidsalim/rotateimage
Implementation of LeetCode Problem # 48 in Python
https://github.com/junaidsalim/rotateimage
implementations leetcode leetcode-python python3 rotate-image
Last synced: about 2 months ago
JSON representation
Implementation of LeetCode Problem # 48 in Python
- Host: GitHub
- URL: https://github.com/junaidsalim/rotateimage
- Owner: JunaidSalim
- License: mit
- Created: 2024-06-15T11:56:33.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-07-01T17:47:29.000Z (11 months ago)
- Last Synced: 2025-02-11T13:52:24.852Z (4 months ago)
- Topics: implementations, leetcode, leetcode-python, python3, rotate-image
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RotateImage
Implementation of LeetCode Problem #47 in Python## Description
RotateImage is a fun project that implements the solution to LeetCode Problem #47: Rotate Image. The goal of this project is to rotate an image (represented as a 2D matrix) by 90 degrees clockwise. The input image must be square in dimension (i.e., the number of rows and columns must be equal).## Usage
To use this script, ensure that your input image is a square matrix. The script will output the rotated image.## Requirements
- Python 3
- Numpy
- PIL## Installation
Clone the repository and navigate to the project directory:
```bash
git clone https://github.com/JunaidSalim/RotateImage.git
```
```bash
cd RotateImage
```Run the script:
```bash
python rotate_image.py
```## License
This project is licensed under the MIT License.---