Inspiration:

Just yesterday, while solving a DSA problem, I found myself stuck trying to determine its time complexity. It was frustrating, and I realized I wasn't alone — many beginners face the same challenge. That's when I had an idea: what if I could create a tool to help students, like myself, instantly understand the complexity of their code? This led to the creation of Complexity-Finder — a tool designed to make learning DSA easier for everyone by providing instant insights into code complexity.

What It Does:

Complexity-Finder provides real-time analysis of the time and space complexity of any code snippet, along with explanations to help beginners understand the concepts better. Designed with a simple, user-friendly interface, it eliminates the need for sign-ups or logins, making it easy to use. Additionally, it supports both light and dark modes for a comfortable coding experience. Users can simply paste their code to receive a detailed complexity analysis, helping them optimize their solutions and build confidence in their coding skills.

How We Built It:

We built Complexity-Finder using Next.js and React to create a fast and responsive front-end experience. The Gemini API handles the real-time complexity analysis, providing accurate time and space complexity assessments. JavaScript powers the core logic, while the UI is designed to be intuitive and accessible, with features like dark/light mode to cater to different user preferences. The application is crafted to be straightforward and minimalistic, removing any friction by avoiding unnecessary sign-ups or logins.

Challenges We Ran Into:

Integrating the Gemini API smoothly with our front-end posed a significant challenge. Ensuring that the complexity analysis remained fast and accurate required deep dives into API handling and performance optimization. Another challenge was presenting the complexity results in a simple and understandable way for beginners, balancing technical detail with clarity to ensure the tool was approachable.

Accomplishments That We're Proud Of:

We’re proud of building a tool that addresses a common pain point for DSA learners. Complexity-Finder offers real-time complexity analysis with simple explanations, making it easier for beginners to understand and optimize their code. We also successfully integrated the Gemini API for fast and reliable results, and the UI features, like dark/light mode and no sign-up requirement, enhance the user experience significantly.

What We Learned:

Throughout this project, we learned how to effectively integrate external APIs and manage real-time data analysis while creating a seamless user experience. We also gained insights into designing for simplicity, ensuring the tool is accessible for beginners while still delivering complex information. The process taught us the importance of balancing functionality with usability and refining our front-end development skills.

What's Next for Complexity-Finder:

Looking ahead, we plan to expand Complexity-Finder by supporting additional programming languages and offering tailored learning recommendations based on the analyzed code. We aim to create an interactive platform where users can practice DSA problems and get real-time feedback, including explanations for time and space complexity. We also intend to add more educational resources like tutorials and coding tips to help users master DSA concepts effectively.

Built With

Share this project:

Updates