MY LOGIC IS .............LET AFTER N STEPS RELATION BETWEEN NUMBER OF ONES(1),ZEROONE(01) AND DOUBLEZERO(00) IS
INITIALLY ONE=1 ZEROONE=0 DOUBLEZERO=0 FOR N=1 K=ONE L=ZEROONE M=DOUBLEZERO ONE=K+L+M ZEROONE=K+M DOUBLEZERO=L i.e. ONE=1 ZERONE=1 DOUBLEZERO=0 FOR N=2 K=ONE L=ZEROONE M=DOUBLEZERO ONE=K+L+M ZEROONE=K+M DOUBLEZERO=L i.e. ONE=2 ZERONE=1 DOUBLEZERO=1 FOR N=3 K=ONE L=ZEROONE M=DOUBLEZERO ONE=K+L+M ZEROONE=K+M DOUBLEZERO=L i.e. ONE=3 ZERONE=1 DOUBLEZERO=1 FOR N=4 K=ONE L=ZEROONE M=DOUBLEZERO ONE=K+L+M ZEROONE=K+M DOUBLEZERO=L i.e. ONE=8 ZERONE=5 DOUBLEZERO=3 -- *UTKARSH SRIVASTAV CSE-3 B-Tech 3rd Year @MNNIT ALLAHABAD* -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
