-
First,go to cses
-
Create a new account first & log in
-
Then, go to CSES Problem Set
-
Choose any 5 questions of your choice and solve them
(Unique questions/language would be appreciated)
-
To solve any particular question, click on it and then solve it first on your local IDE.
-
Then upload that file (like missing_number.c or missing_number.java,etc.) from your local system in the submit section of that particular question.
-
Once it successfully passes all the test cases
- fork [this] repo
- Add question as comments at top & its link
- Now add "author: cses id" as comment at the end of your program (e.g. - author: pritam047)
- Example: Python Code
# Print your Name # cses.fi/printName print('Ayush Kejariwal') # author: KejariwalAyush # profile: https://cses.fi/user/32415
- Rename that particular file here in the following format:
- githubusername_problemname.fileformat (e.g. - pritam047_missing_number.c)
- Make a folder of your Github Username & put above file in it (if already exists then add in it)
- Add that folder into your stack(language e.g. java, python, etc) folder
example: master/java/KejariwalAyush/KejariwalAyush_missing_number.java
- Now commit and push to your repo
- And make a pull request to original repo
-
Once we validate it, we shall accept your pull request.
-
While making Your Last Pull Request i.e., While making PR for 5th question add your Name in CONTRIBUTORS.md
Note : Don't simply copy paste from others. Try to solve the problems on your own.
When you submit the answer to the question in cses
You should pass all tests, then only submit it here.