Skip to content

awesome template to store your competitive programming solutions.

License

Notifications You must be signed in to change notification settings

NikSWE/cp_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Competitive Programming Template

Engineers need to solve problems that they have never seen before efficiently and practically. One needs to practice to master this skill. With this goal in mind, I created this repository to store my solutions and share them with those in need.

Note: This repo is a template used by me for organizing my solutions. If you are looking for my solutions instead then click here

So without wasting your precious time 🕦, Let's set up this template for you.

Create Your Repository

Well, I'm damn sure you know how to create a remote repository but just for my peace of mind, I will share my steps.

  • Login to your Github Account.
  • Click on create new repository, give it a name that you prefer.

And that's all you need to setup this template.

Note: Make sure your repository is public. You can create your repo on your preferred git hosting service.

Clone Repository

Open your terminal and I think you know what the next move is. (copy-paste the command 😮)

git clone https://github.com/muj-programmer/cp_template <your_repo_name>

Note: <your_repo_name> needs to be replaced with the repo name you created previously. (You can however give it any name, but I won't recommend that)

Visit Your Template

Let's cd into your cloned template.

cd <your_repo_name>

Run the install Script

You are almost done ⌛, Set up your template with this command

sh install.sh <remote_url>

Note: So you remember you created a new repo on your git hosting service, Well now you need to get the url of that and replace it with <remote_url>

How-To-Use

The setup is complete 💯, you should see an initial commit in your local repo as well as remote repo.

3 new aliases have been created for you 🔥 to interact with your template. (it's placed in your shell config file)

alias purpose
csf create new solution file
psf push changes to remote repo
rmlf remove log files in tool dir

Note: check out the wiki for a tutorial.

Commit Emojis

You have probably come across a lot of emojis in the commit history or while browsing the repository and tried to figure out what does it imply. Well let's put an end to this energy-draining task.

Emoji Markup Abbreviation Purpose
:white_check_mark: AC passed all testcases
:x: WA fails one or more testcases
:exclamation: TLE scope for optimization
:question: INC incomplete solution
PVT private solution

Note: PVT is used to keep the solution untracked in git, ensuring that the solution is not available on GitHub by mistake.

Facing a Issue

If you are in this situation first and foremost Don't panic 😢 I'm here to help you get over it. Simply click this and properly state your issue (be as verbose as you can be), After that sit tight and watch 🎥 the movie you have been postponing for so long while I 👷 fix the issue.

Want to Contribute

I will be glad 😃 to work with you on a new idea or fixing a invisible bug 🐛 or if you have already done the work 🔨 just create a pull request and I will merge it asap.

Well that's all for now but before you close this browser tab hit the star ⭐ button (it motivates me to make new stuff).

Have a great day 😎.

About

awesome template to store your competitive programming solutions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages