minimum deletion to make wave array ??

Revision en2, by ayandutt2002, 2022-06-15 13:21:28

given an array what is the minimum no of integers to be removed to make the array wave-like; n<=1000; can anyone help me with the approach of the question?? my solution: below

will this work or not please help me!!

Tags dp, acm-icpc, algorithms

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ayandutt2002 2022-06-15 13:21:28 726
en1 English ayandutt2002 2022-06-15 13:19:27 977 Initial revision (published)