How to speed up your Competitive Programming?
Snippets

Doing a Breadth-First Search on a tree and executing in less than 25 seconds

If you don’t know what snippets are then, “Snippet is a programming term for a small region of Re-Usable Source Code,” and a lot of modern text editors like Sublime provide you a functionality to automatically write a predefined snippet by just writing a keyword.

I cannot emphasize enough on how much I think, and one can speed up their implementation by using Snippets. So whether you need to do a Breadth-First or Depth-first Search or need to use Segment Tree or want to do Matrix Exponentiation, you are just a (Keyword+Tab) away from its code.

It will not only improve your speed but, in turn, allow you to quickly try multiple approaches and switch between them whenever necessary without losing much time.

How to Add a Snippet

Adding a snippet in Sublime Text is pretty straightforward. Just navigate to Tools>Developers>New Snippet.

Base Template for Starting a Snippet

Use this as your base template for a snippet and paste the code that you want to use in your Snippet by replacing the comment and trigger Keyword.

Example: A Completed Snippet of a Fenwick Tree

I like to use Snippets a lot and the hardest part is to use them is to make them before you need them. So to ease things for you, I have created a Github Repository with some of my most-used snippets and relevant instructions. Feel free to use them and consider contributing.
[]
['Programming', 'Technology', 'Competitive Programming', 'Interview', 'Software Development']