I am nervous. I have not solved any competitive Programming Problems yet.
asked 21 Apr, 11:09
Preparation before Programming Contest -
No matter how many algorithms you know, the major part of your success in competitive programming will depend on how much you do practice.
The more you practice problems, you will be able to solve those faster in competitions. But, if you practice specific kind of problems, you will only be able to solve those kind of problems. So, never ever stop learning new algorithms.
First of all go and solve the first problem(The Life, the Universe and Everything). If you can solve it then you are ready for the next one and the next and so on. They are all beginner CP problems and don’t require and prerequisites. They are very easy. Make sure you pass a problem and then go to the next. You can skip some in the middle. Once you are comfortable with beginner problems you can go to the easy section.
Next on you need to start with hard problems. For this you will need to learn about C++ STL. You need to learn about using vectors and queues. Also you need to learn about sorting and searching techniques. After that you are already an intermediate programmer.
After that all you need is just Practice and Patience. Get your WPM typing skills over 120wpm, or as close as you can. Speed matters.
Believe me it will be hard. If it were easy everyone would do it. Don't lose hope if your solution didn't pass the first time. Go through the editorials, see others' solutions and don't leave the problem until you have come up with a solution that passes.
Things to do before Programming Contest -
1) Have a long sleep before the contest.
2) Do not eat too much (try not to eat at least 1 hour before contest)
3) Make sure your environment is clean.
4) Make sure to have one pair of noise protection ear plugs.
5) Prepare pencil and lots of blank paper.
6) Make sure you have a bottle of water near you.
answered 21 Apr, 11:29
without any much thinking , just sit in live contests , just to get a feel of it and then go to the process of learning int the step-by-step manner.
Step 1: Identify your weaknesses.
There are two main types of weaknesses.
The first weakness is probably the one you'll confront most often - you spend an hour looking at a problem and still have no idea how to do it. This is why you want to work on problems where you can look up a solution if you get stuck on it for too long.
The second weakness will sometimes appear if you learn from people who are much more experienced than you in competitive programming. Step 2: Shore up your weaknesses.
The only way you can fix your weaknesses is to address them directly. You're not magically going to get better at implementing advanced data structures if you don't actually try to implement them. Similarly, you're not going to learn algorithms magically without actually trying to work on problems that require them in the solution.
When addressing algorithmic weaknesses, you should spend around an hour working on a problem before giving up and looking at the solution. However, you should only look at a description of the solution, not a program that solves it. Your next job should be to implement it (this will implicitly avoid having implementation weaknesses manifest themselves).
When addressing implementation weaknesses, focus on implementing the solution correctly. Ignore speed completely - try your hardest to get it right on your first try. After you have a correct solution, look up other correct solutions and compare them. See if you can improve your implementation.
Step 3: Repeat steps 1 and 2.
answered 21 Apr, 11:49
'I have not solved any competitive Programming Problems yet'. I think that you should practice some problems before your 1st contest. You atleast need to know the format and how the online judge works. If it is too late to practice because your contest is just starting then make sure to practice after the contest.
answered 21 Apr, 14:43