Is this also correct? It has only 1 final state.
There will total 6 states,
final states 2, non-final states 4
The upper part is for starting with 01,
lower part is for ending with 01
Thank you so much
@ Ashwin Kulkarni
Ashwin Kulkarni Sir, same as contain substring 01
dfa can contain 3 states because in question both is mentioned. Please correct me if I amwrong
64.3k questions
77.9k answers
244k comments
80.0k users