volstro's blog

By volstro, history, 6 years ago, In English

i have screenshot of problem any help please

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

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it
  • »
    »
    6 years ago, # ^ |
      Vote: I like it -13 Vote: I do not like it

    is this problem can be solved by greedy approach or there is any DP required

    • »
      »
      »
      6 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Greedy is enough, although you can use DP too.