Interview Problem

Revision en2, by 3905, 2016-03-31 18:28:33

You are given N numbers and you have to determine total possible ways to arrange them such that N1 < N2 > N3 < N4 > N5 < N6 > N7....so on.N1,N2 are the numbers of the list.The interviewer didn't specify the constraints and asked instead for best possible solution.How to solve it?

Tags #dp, #interview

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English 3905 2016-03-31 18:28:33 12
en1 English 3905 2016-03-31 18:27:18 285 Initial revision (published)