Please help in this dp question.

Revision en1, by om1429888, 2022-08-27 13:27:27

You are given an array A and integer B.divide array into B subarray such that each element belon to 1 subarray.goodness is defined as sum of the goodness of all its subarray where the g99dness of subarray is defined as bitwize or of all elemnts in each subarray.u have to maximize the goodness.

Please help!!!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English om1429888 2022-08-27 13:27:27 347 Initial revision (published)