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

×

Unable to solve medium and hard problems

I am programming from quite some time. I am able to solve easy questions quite easily, but I am unable to solve medium and hard problems , I am not able to approach .

Please Help me how can I approach difficult problems . Any help will be highly appreciated.

asked 28 Aug '14, 00:46

the65bit's gravatar image

4★the65bit
1.1k101328
accept rate: 13%


I'd suggest you to read the editorials. If you can't understand them, then you should probably go for easier problems. The trick is, many problems are similar and once you've seen ( and solved!) thousands of problems, you will spot the trick behind them.

Edit:

@Kuruma I've also been struggling with math due to the poor math background. In our country the mathematics education is pretty poor, compared to other countries like China or Russia. That's why I also try to read some mathematics book while studying CS since they have a lot in common.

link

answered 28 Aug '14, 01:02

gdisastery1's gravatar image

4★gdisastery1
1.9k41317
accept rate: 11%

edited 28 Aug '14, 17:43

(28 Aug '14, 14:56) the65bit4★

And what about a more...complicated situation?

I'm at a stage where:

a) I struggle with Maths/Ad-hoc problems due to weak maths background;

b) I can "understand" all the concepts in the editorials for medium problems (after all, I studied flow algorithms/trees at university and I must have read [read - NOT implemented] over 100s of editorials for medium, easy-medium problems), but, when I read the problem either:

b1) I find that after reading it I cant figure out what is the specific algorithm which is needed (I usually have no time to dedicate myself into this more deeply, because I'm working...although I really, really love algorithms/DS);

OR

b2) Even if I figure out the algorithm, I can't code it by myself or make the adaptations needed to fit it to a specific problem (for example, changing the query or update function for segment trees problems, although I now am more or less comfortable with the standard RMQ, max, min values and range updates via lazy propagation, but that is as far as I go);

Any pointers?

link

answered 28 Aug '14, 15:13

kuruma's gravatar image

3★kuruma
17.7k72143209
accept rate: 8%

edited 29 Aug '14, 13:26

same situation is with me.... but i want to stay want to learn and succeed... :)

(28 Aug '14, 17:27) grvana1★
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:

×3,710
×1,334
×22

question asked: 28 Aug '14, 00:46

question was seen: 4,293 times

last updated: 29 Aug '14, 13:26