rb9's blog

By rb9, 9 years ago, In English

Plz help me in solving this problem?

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it

By rb9, 9 years ago, In English

I recently started learning dynamic programming, while solving some classical problems I encountered 2D range sum, and this which were solved using dp with inclusion and exclusion. Can anyone explain how can I tackle this types of problems? Any help will be appreciated.

Full text and comments »

  • Vote: I like it
  • +1
  • Vote: I do not like it

By rb9, 10 years ago, In English

I was trying to solve this problem http://www.spoj.com/problems/GSS1/, after sometime I gave up and googled approach for it, I found this website https://kartikkukreja.wordpress.com/2014/11/09/a-simple-approach-to-segment-trees/ but still not able to understand problem and its solution.Plz help!

Full text and comments »

  • Vote: I like it
  • -5
  • Vote: I do not like it