The Function Time Complexity Analyzer is a web application that allows users to analyze the time complexity of a given function using Chat GPT API. It is built using Spring Boot MVC with Thymeleaf as the templating engine to render the user interface.
- Input a function in the text area.
- Click the "Analyze" button to calculate the time complexity of the function.
- The application will send the function to Chat GPT API for analysis.
- Display the analyzed time complexity result in the response box.
- Spring Boot: A powerful and popular framework for building web applications in Java.
- Thymeleaf: A Java-based templating engine used for rendering the user interface.
- Chat GPT API: An external API used for analyzing the time complexity of the input function.
To run the Function Time Complexity Analyzer application on your local machine, follow these steps:
- Make sure you have Java and Maven installed on your system.
- Clone this repository to your local machine using Git.
- Replace the
api_key
andopenai_url
values in theapplication.properties
file with your Chat GPT API credentials. - Build the project using Maven:
mvn clean install
. - Run the application using Maven:
mvn spring-boot:run
.
The application will be accessible at http://localhost:8080
in your web browser.
- Open your web browser and navigate to
http://localhost:8080
. - Enter the function you want to analyze in the provided text area.
- Click the "Analyze" button to initiate the analysis.
- The application will display the analyzed time complexity result in the response box.
Please make sure you have a stable internet connection to access the Chat GPT API and receive accurate time complexity analysis results.
If you want to contribute to this project or report any issues, please create a pull request or open an issue on the GitHub repository.
This project is licensed under the MIT License.
- The Function Time Complexity Analyzer was inspired by the need to analyze the efficiency of algorithms and functions in programming.
Thank you for using the Function Time Complexity Analyzer! If you have any questions or feedback, feel free to contact us. Happy coding!