https://www.codechef.com/viewsolution/31838438
I am unable to find the error , since i have parsed the string to postfix and is now multiplying and adding the probability of the newly found [0,1,a,A] with the already processed (top of the stack )and pushing it into the stack.
so basically , my array #&# ->##&
[74863… ,7486…,74863…]//(1/4 for probab.)
[74863… ,7486…,74863…] //(1/4 for probab.)
1 //for and