0

can u give code for this

Problem : Mountain peak sequence Consider the first three natural numbers 1, 2, 3. These can be arranged in the following ways: 2, 3, 1 and 1, 3, 2. Inboth of these arrangements, the numbers increase to a certain point and then decrease. A sequence with this property is called a "mountain peak sequence". Given an integer N, write a program to find the remainder of mountain peak arrangements that can be obtained by rearranging the numbers 1, 2, ...., N

29th Jul 2017, 3:35 AM
aditya
aditya - avatar
3 Respostas
29th Jul 2017, 6:08 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 1
such a incredible program it is... krisna teja sir... its fascinating...
29th Jul 2017, 7:10 AM
sayan chandra
sayan chandra - avatar
- 1
krishna teja sir can we the same program only in java?
29th Jul 2017, 1:31 PM
aditya
aditya - avatar