Chef and Chain (CHEFCH)

chefch
february
newbie

#1

In the February challenge 2015, there is a problem “Code and Chain” (CHEFCH).
Is a sequence chain sequence if the sequence contains single char like + or -?


#2

@tejas3093:
It is very very clearly mentioned in the question … Please read line no. 2,3 and 4 carefully.


#3

plus 1
i too have the same doubt…


#4

Read the comments on the question. Things like these will surely have been discussed there.


#5

“The sequence is called Chain if each two neighbouring symbols of sequence are either ‘-+’ or ‘±’.”


#6

means they will be considered as chains ?? ans in case of +/- would be 0???


#7

I get it that it will be a chain only if the neighbouring symbols are -+ or ±, so a single + or - won’t be a chain sequence, but even if we replace it with other symbol, it won’t be a chain sequence, so what output should be displayed?


#8

dpraveen answered it on problem page as it is a chain sequence
see the third comment