volstro's blog

By volstro, history, 3 months ago, In English,

i have screenshot of problem any help please

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

»
3 months ago, # |
  Vote: I like it 0 Vote: I do not like it
  • »
    »
    3 months 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

    • »
      »
      »
      3 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      Greedy is enough, although you can use DP too.