You are not logged in. Please login at www.codechef.com to post your questions!

×

Tricks and Tips to perform better in Programming competitions.

Hello everyone,

I like Programming very much but due to some reasons, I am not able to perform well. Most of the time I get "wrong answer" even if it seems to be correct(may be due to it isn't working for even 1 test case). So please tell me some tricks and tips which would help me. Such as how to test your program, must know algorithms, the way you follow while coding or anything else.

Thank You in advance.

asked 12 Aug '14, 09:23

shadow_ninja's gravatar image

2★shadow_ninja
6613
accept rate: 0%

1

Another common reason I find for being unable to solve problems is thinking of them as too difficult or a hi-fi algorithm. Take your time, relax and be confident. You are good, and that will show. :-)

(12 Aug '14, 13:50) gkcs4★

Frankly, I find participation, experience and interest to be the most important factors for improvement. Try the problems in the contests. Afterwards, go through the editorials that make sense to you. I say this because some editorials have complex prerequisites which I rarely have. :-/

As you get better, you will find the higher level tutorials understandable. Some theory using books is always good. But maybe trying the problem, and then reading the theory is the best way to remember algorithms. This might sound philosophical, but people rarely take interest in stuff that is given to them without a purpose. :-)

Best of Luck.

link

answered 12 Aug '14, 11:54

gkcs's gravatar image

4★gkcs
2.6k11128
accept rate: 9%

Very nice place to start is the http://community.topcoder.com/tc?module=Static&d1=tutorials&d2=alg_index . They have some very good articles. But at the end of the day, you will need to study a good book on algorithms. The most popular one is CLRS ("Introduction to Algorithms" by Cormen et. al.). I would also recommend "Algorithm Design" by Kleinberg and Tardos.
Check this link also - http://www.cs.utexas.edu/users/scottm/uil/practiceMaterials.html

link

answered 12 Aug '14, 09:49

rajat_dtc's gravatar image

2★rajat_dtc
1.8k51422
accept rate: 6%

Yeah This is very Useful

link

answered 17 Jun '18, 10:43

huzaifa242's gravatar image

4★huzaifa242
323
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,658
×422

question asked: 12 Aug '14, 09:23

question was seen: 6,447 times

last updated: 17 Jun '18, 10:43