Amazon Interview Question

Asked to write code about editing a file using a specific function. When I did, he showed some edge cases where my code would fail & suggested using a state machine approach. I got a bit confused with that but I did end up modifying my code to fit the edge cases.

Interview Answers

Anonymous

Dec 4, 2016

He might ask you to use Finite-State Machine approach. It's a concept from automata theory.

1

Anonymous

Dec 4, 2016

He might ask you to use Finite-State Machine approach. It's a concept from automata theory.

1