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
3 Respuestas
+ 8
Here you go.
https://code.sololearn.com/W4XnnoB3gk7E/?ref=app
+ 1
such a incredible program it is...
krisna teja sir... its fascinating...
- 1
krishna teja sir can we the same program only in java?