Welcome to the repository containing a collection of Java solutions for common interview questions. This repository is aimed at helping individuals prepare for Java programming interviews by providing practical examples and detailed solutions.
Java is one of the most popular programming languages, especially in enterprise environments. This repository contains solutions to a variety of interview questions that range from fundamental concepts to advanced topics.
The questions are categorized based on topics such as:
- Strings
- Data Structures
- Algorithms
- Object-Oriented Programming
- Multithreading
- Design Patterns
- Others
Each directory contains a problem and its solution in Java. Every question is its own java maven project, with a class Solution, where the solution is implemented in a static method. This method is called in the Main class, with a sample nominal test case to show it works. Further tests can be found in src/main/test where we have different edge cases being tested.
To use this repository effectively:
- Clone the repository to your local machine.
- Browse through the directories to find a topic you want to explore.
- Each directory has a markdown file that describes the problem or a link to a description.
- Try to solve the problem on your own first.
- Compare your solution with the provided solution to evaluate and improve.
Contributions are welcome! If you would like to contribute:
- Fork the repository.
- Make your changes or add content.
- Submit a pull request with a comprehensive description of changes.
This project is open-sourced under the MIT License.