This repository contains 4 problems, each with two levels- basic and advanced. There are corresponding branches for the levels of difficulty.
The README.md file in each problem directory explains the problem in full detail for both levels. You will also find a maven build file- POM.xml. This is what you will use to import the problems into your IDE, if you use one.
Follow these steps to get through the problems:
- Fork this repository into your own GitHub profile
- Clone your forked repository using the command
git clone <your-fork-url>
- Look at each of the problems by going through the README.md files
- When you are confident about the level you want to go for, checkout to that level using
git checkout <level>
- You will find that the problems are pre-configured with:
- A Main class
- Supporting classes as explained in the problems
- A test case to check your answer
- Fill the
Main()
constructor method with you answer - Once done, or if you want to try another problem, commit your changes with:
git add .
git commit -m "<Write a simple message explaining if you are done, or are going to try another problem>"
git push
- Only then start working on another problem
- To test your answer, run the testcase named testAnswer in TestAnswer test class
- If you would like to switch the difficulty level, make sure you that you have committed all changes if any by following step 7 again. Then:
git checkout <level>
- Continue working and committing changes working down from step 6 again.
I will do a live briefing of these steps during the test, but you may use this as a cheatsheet for git commands.
Don't worry if you cannot solve the advanced problems. Those are actually going to be your targets as you learn during the first weeks of internship.
Good luck!