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

×

Start competetive coding

I have learnt C till structures,How much of C is required to start on competitive coding.I have no idea of any standard algorithms,I tried MIT OCW but it requires a lot of prerequisite such as discrete math and all.BUT I want start competitive coding,So what should I do ?

asked 14 Dec '14, 23:51

iota_6's gravatar image

1★iota_6
1
accept rate: 0%


You won't get far with C, and you won't get anywhere with only C. Try C++ instead, it can simplify codes A LOT.

You have no idea of standard algorithms? The answer is simple: learn standard algorithms. You want to take a course that has prerequisities? Take those prerequisities first. The right thing to do is often the most obvious one, but you need to actually go and do it instead of wanting and waiting for results to drop into your lap.

  1. Open a problem from practice, preferrably easy section.
  2. Read it, try to understand it. Maybe try to solve it.
  3. If you can't solve it, read the editorial. Try to understand it and to solve the problem.
  4. If you can't do it, GOTO 3.
  5. Else GOTO 1.
link

answered 15 Dec '14, 00:05

xellos0's gravatar image

7★xellos0
5.9k54292
accept rate: 10%

@xellos0
From where to learn C++ ?
And i really want to learn trees and graphs but don't know why i am unable to grab the concepts i think i am too afraid to learn it.
Neither i know dp nor graphs... and this is the reason for my bad performance in contests..!

(15 Dec '14, 00:22) rishabhprsd72★
2

The language is just a tool for expressing your ideas. If you know an idea, try to google how it could be done in a language. There's very high chance that your question has been asked before (like on Stack Overflow).

There's also a magical site called "C++ Reference". It contains a list of all you could possibly need - but you need to learn how to apply stuff, and that's what coding actual problems is for.

(15 Dec '14, 01:20) xellos07★

I don't understand "learn C++" is standing for. I think that learn C++ is completely different of learning algorithms. If you understood some algorithms fully, you could use C++ for a tool to implement it, install it and use it for solving problem. Learning c++ is different from learning trees, graph, etc.

Sorry for my bad English :(

link

answered 15 Dec '14, 01:02

leduongtuananh's gravatar image

2★leduongtuananh
12528
accept rate: 16%

edited 15 Dec '14, 01:02

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:

×191

question asked: 14 Dec '14, 23:51

question was seen: 826 times

last updated: 15 Dec '14, 01:20