I have some questions in my mind

How to perform better in codeforces & Topcoder.

can anyone give advice , share some tips & tricks , to improve my/our skills

Which way I should proceed?

What should I know/learn ?

How to increase my knowledge base?

It would be very helpful if someone kindly shared their thoughts<what they do>

so that coders like me can improve our skills & be benefited.

sorry for my bad English.

yeah..i am also agree !!Upsolving is much important.

but how would u know? you are

unrated, and haven't made even one submission here on CF. :Dhe has rating now

ROFL =D

seems upsolving was working well for him

still solving all the time like i practice for one month and get rest one month and so on that is not up solving

upsolving mean that every week you must practice and practice smart not hard

N.B:Although you were not eligible for green at your starting :P .so you shifted your curve in next contest]:DAnyway, here is going discussion on this issue in Russian, if you can translate.

Why do you think that situation here is different? You need to solve a lot of problems and you need to read a lot of theory.

I myself spend almost no time for any studying of this kind - and behold the wonder - I am not red, I am green! ;-)

(I also suppose that some people have more patience and attention than others - and we call this "having talent" - it could help or make your learning faster - but it is important when you want to became No.1, I think...)1) Determine, which types of difficulties you have with solving problems:

- you just can't get the cue for the problem;

- you could not always read the problem statement properly;

- your knowledge of your chosen programming language is not sufficient and you spend time on bugs because of it.

2) In last two cases you must practice reading more problems or writing more programs. The first case we shall regard closer.

3) Improve your theoretical knowledge. Find one or more books on algorithms or discrete mathematics, which is suitable for your level (you'd better find them in your native language, so I would not recommend anything) - read them in your free time.

4) Keep the rule: if you read in the book about algorithm which you do not know, or know but never tried to implement - write its title into your task list.

5) Spend 1-2 hours a day solving problems from CodeForces, TopCoder, SPOJ etc. If you could not solve or understand something - write its title and number in the end of your task list.

6) Spend another 1-2 hours a day attempting to implement algorithms or solve problems from your task list. If you could not solve some problem, transfer it to the end of the task list.

7) In your free time keep either thinking about old problems which you could not solve or want to improve - or reading statements of other problems and thinking about ways to solve them (marking problems which you could not understand how to solve right now).

This is one of suitable strategy. You can develop your own strategy according to your temperament.

I could not give advice on what exactly you need to read or learn. Sport programming usually regards narrow class of problems. Here are very few of professional programming, geometry, continuous mathematics, physics etc. You can decide whether you want to improve these skills too.

Agree

By chance I just run into your comment one year later than I first read it. During this year I've followed your adivse and I have upsolved my contests, learning much more than I did before and getting from blue-purple to orange. I even mentioned your advice to my friends and other users on quora.

So thank you for your advice Fefer_Ivan!

Apart from upsolving, can you tell me Which type of practice I should do? I am green in my second account and I can solve A and B and sometimes C questions during contest...

Here's one piece of advice: don't use multiple accounts

Ya you are right :)

Dude, I'm not red or the master in programming competitions, but I can give you some advices. A couple of years ago someone told me about these competitions. I was still very young, 12 years old and dreaming about someday participate at the IOI. I didn't even know where to start and what I should learn, so I started asking people that were good at it some advice and what I should learn. They gave me some basics stuffs just for me to start, and then I spent most of time studying everything they gave me and trying to solve as much problems as I could. So when I was 15 I took part in the Brazilian Olympiads in Informatics ( a.k.a OBI ) and got a really bad result, I couldn't even get to the selections to the IOI. So I started studying even more, solving more problems, and when I turned 16 I tried one more time and got the same result. I kept studying and this year I decided to do something different, instead of solving problems that I already knew how to solve just for quantity, I decided to go for the hard problems, the ones that usually I couldn't solve in the first 5 hours of a competition, and during 6 months I think I may have solved not more than 20 problems, that was way lower than I used to solve, but those problems were really difficult problems. So this year I competed again and got the first place in the Brazilian Selections to the IOI. After almost 5 years of training I finally achieved my dream of getting to the IOI. Well, I couldn't get a medal, I made some really bad mistakes during the first day, but what I learnt from it is that besides training hard you should get out of your comfort zone and start solving problems that you don't feel so comfortable with. That's the only way of getting better and better.

When you get out your comfort zone it becomes the learning zone, I am completely in agreement with you, I think that getting out of the comfort zone, upsolving , and trying always to solve harder problems is the key to success in programming competitions.

I am currently doing upsolving,I try to solve the hard problems of the contest and if I am unable to solve them,then I go for editorial and read other people codes.I want to know what will be better, reading the algorithms in advance from the books or trying to solve hard problems and then read the required algorithm?

thanks...

Solve 1000 problems, then solve 1000 more and bam, you're red!

Actually, the most important thing is to solve problems you can't usually solve. To think hard about the solution and make everything clear in your mind. If you just solve the problem, but some details are not really clear to you, then it doesn't mean anything. Next time you see a similar problem you won't solve it, you won't be able to use what you should've learned while solving the problem. And of course, after every contest solve the problems you didn't solve during the contest (well, not necessarily problems far above your level), with or without the editorial, it doesn't matter.

When having to just practice and solve bunch of problems I found out that the best way to do it is to find a friend or colleague who's willing to do the same. For example I did that on SPOJ with stjepan when we started competing. We did several hundreds of problems in a few months and learned all the basic algorithms and tricks one should know to qualify for IOI.

Can you list those 100 problems and share ?

were you hacked?

Like this.

and this way you don't even need to be purple in the way! that's efficient D:

Hi shakil

Even though we are the same codeforces color >.<, i still have valuable advice to provide. My red friends on codeforces have stuck to this method. I have used this also to make the gold division in USACO.

Step 1: Learn and Practice AlgorithmsStart from some simple and basic algorithms and practice them thoroughly:-Sorting

-Scanline (Sweep line)

-traversals

-binary search

-MST/shortest paths

-DP

-Simple data structures:

-dsu, sets, map, heap, queue, stack, deque

Then proceed on to more devious and complex algorithms:-Greedy

-DAGs, SSCs, Bi-connected compnents

-DP + caching previous results

-compression

-Convex Hull

-Complex Data structures:

-segment trees, linked list, BIT, Trie, Splay, Suffix Trees

-KMP/String hashing/string algorithms

-mincut/maxflow/maxmatching

Step 2: Look at Problems, Know what type of problem it isI suggest you turn off the tags for unsolved problems so you can try to decide what type of problem you are solving.

At this step, you should try to: -know how to turn this problem into something familiar, into a graph? How will you handle updates? queries?

-know how to handle constraints of the problem. Do you need to add more states?

-Make observations about the problem, if the problem gives huge constraints like 10^6 and then suddenly gives a small constraint of 10, you should take advantage of that. Of course there are many different observations that you can make to help you solve problems.

Note at this step you do not need to necessarily code up the solution, you just need to form a clear approach in your mind.

Step 3: ImplementationHere is when you need to not only recognize the type of problem, but also know how to implement it. This is what I am bad at. My suggestions are:

order the codeforces problemset by solved and burn through the first 4~5 pages. I have finished the first 3 already.

Practice problems that require more than a direct approach. These problems can combine algorithms like dp with complex data structures, here is an example: http://www.usaco.org/index.php?page=viewproblem2&cpid=365

Other Tips:When doing codeforces problems, if you get a wrong answer during practice, try not to scroll through the test data to see what you got wrong. Try to test your code again and see if you can fix your bug, this really helps during a contest. This is how I can recover from hacks. Do not only do codeforces (although I think codeforces's problemset is the best), do other sites that have even more archive of problems like POJ, SPOJ, USACO / USACO Training Gateway, etc.

Hope this helps! Trust me, this is how I got into USACO Gold! Just follow this list!

Best, acho163

USACO gold sounds very competitive. If so, how come you do so well in USACO and remain blue on codeforces? (You were even a green coder a few months ago.)

I am actually quite novice to code forces contests, I am still getting used to them. :)

I'd say you're an

experton CF contests :DTBH USACO system has a flaw compared to serious contest sites: you can't move down. In order to reach the gold division, you need to do really well just once (silver -> gold, if you do that then bronze -> silver should be trivial), not often. Also, USACO has partial scoring and doesn't depend on time or number of WAs, which makes it even easier to get 1 successful contest. So ratings on CF and USACO division placement are almost completely unrelated things.

I completely agree, in competitive yes, USACO is easier than code forces, despite the same difficulty of problems.

I am still a blue coder as I have mentioned above, I am really bad at knowing how to implement a problem fast. USACO allows more than 1 hour to think per problem, which is a huge advantage.

I see. I don't really know anyone working for USACO in person, so was just wondering.

Anyway, thanks for sharing great advice!

Step 1: Learn and Practice AlgorithmsDFSandBFS.Step 1: Learn and Practice Algorithms-traversalsAnother option.

Use the magic in codeforces.......

What magic?

http://codeforces.com/blog/entry/15499

Five years have past...

Now,i'm really curious to know your approach for becoming red. You were green once. Please share your experience.

I agree. It would be nice to know your approach

Some of us will never become red. And some of us will take a while to reach red.

Anyway, I think we(greens and cyans) must focus on two things-

1. If you know a certain trick/method/DS/algo, then increase the probability of getting AC for the problems which use it. Hence, practice.

2. If you don't even know enough trick/method/DS/algo, then you should learn them. Hence, upsolve(because there are so many things we don't know, that it may get overwhelming to even choose something to start learning.).

To become red from green, turn yourself into a working traffic light and when you become red, break yourself! :)

Should we laugh?