PS: ignore my handwriting and image lighting.
@headshot_dead ohh yes I made a mistake there but keeping self loop on Q3 will not make it correct because then strings like 010101 will not be accepted. So we can take 2 more final states Q5 and Q6 and then make transition like Q3 to Q5 on 0, Q5 to Q3 on1, Q5 to Q6 on 0,Q6 to Q5 on 0 and Q6 to Q3 on 1.
64.3k questions
77.9k answers
244k comments
80.0k users