Interview Problem

Правка en2, от 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?

Теги #dp, #interview

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский 3905 2016-03-31 18:28:33 12
en1 Английский 3905 2016-03-31 18:27:18 285 Initial revision (published)