Viewing a single comment thread. View all comments

visarga t1_j4k5jfh wrote

Wrong tool for this kind of task, it should generate a Python function which will give you the answer when evaluated on the input. And this approach would generalize better. The Turing machine approach is useful when you're dealing with concepts that don't fit well into Python code.

2

CosmicTardigrades OP t1_j4k5ols wrote

Yeah. You‘re right. The essence is to construct a right model for “counting”

1