The following repo contains the solutions of the good interview question and some famous problems on well-known platforms like - LEETCODE, HACKERANK, GEEKSFORGEEKS, CODECHEF, CODEFORCES, etc.
We are going to give you a short description that you should follow to start with competitive programming.
You should have the knowledge of at least one programming language to step into CP. That programming language will be a tool for you or you can say al language for you to build your thought process and convert that into coding for a given problem. It can be anything C, C++, Java, Python or any programming language you are comfortable with.(C++ is the most preferred language in the CP community).
You need to find the best solution i.e optimal one learning these two concepts. So dig yourself into these two topics to know how much time and space an algorithm takes to solve a problem.
DSA is the major part of programming. You need to find out the best algorithm i.e approach and best data structure suitable for your problems. Array, Linked List, Stack, Searching, Sorting etc. all these are part of DSA so learn these two most important fundamentals to start CP.
You need to take part in coding challenges on different coding platforms.GeeksforGeeks,CodeChef,HackerRank and alot of platforms are there. Once you practiced some questions start participating in the coding contests.
Yes…do it regularly to be proficient in it. Your consistency is very important to solve the challenges in CP. It would be difficult initially and you might be frozen out seeing some questions, so start from the basics and gradually increase the level but stick on it and participate in different coding competitions.
Here is a list of resources for CP
Here is a list of popular You Tube Channels for CP:
Tushar Roy
Rachit Jain
Errichto
CodeNCode
Abdul Bari
(google for more!)
Introduction to Algorithms
Competitive Programming 3 by Steven Halim
Guide to Competitive Programming by Antti Laaksonen
Programming challenges by Steven S Skiena
The Algorithm Design Manual
Clone the GitHub Repository.
$ git clone https://github.com/sachin-duhan26/COMPETITVE-PROGRAMMING.git
Please refer to each project's style for submitting better solutions and additions.
In general, we follow the "fork-and-pull" Git workflow.
-
Fork the repo on GitHub
-
Clone the project to your own machine
-
Commit changes to your own branch
-
Push your work back up to your fork
-
Submit a Pull request so that I can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
More leetcode solutions can be found here.
Name - Sachin Duhan
Institute - Delhi Technological University
Course - B.Tech (Mathematics and computing)
Batch of 2021