This is a Java project for practicing LeetCode problems and preparing for technical interviews. The project is structured to allow for easy testing of different LeetCode problems. It contains a collection of solutions to various LeetCode problems, organized by category and difficulty. The project also includes a technicalknowledge directory with markdown files containing notes on various technical interview topics.
This project does not use a build tool like Maven or Gradle. To compile and run the project, you can use javac and java directly.
To run a specific LeetCode problem:
- Open the
src/Main.javafile. - In the
mainmethod, change the linetryQuestion(new FindFirstAndLastPositionInSortedArray_34());to instantiate the class for the problem you want to run. - Compile and run the
Main.javafile:
javac src/Main.java
java src.Main- Each LeetCode problem has its own class, typically in the
src/lcdirectory. - The class for a LeetCode problem should extend the
utility.GenerateExampleclass and implement theexample()method to provide test cases. - The
Main.javafile is used to run and test a specific LeetCode problem. - The
technicalknowledgedirectory is for storing notes and resources for technical interviews.