'How can I remove the last symbol of a DFA

How to construct a DFA that accepts all the strings from another DFA and removes the last symbol For example the given machine accepts string abb, how to construct a DFA that accepts string ab



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source