Skip to content

JunaidSalim/RotateImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

git clone https://github.com/JunaidSalim/RotateImage.git
cd RotateImage

Run the script:

python rotate_image.py

License

This project is licensed under the MIT License.


Releases

No releases published

Packages

No packages published

Languages