Done, undo and delete (Todo App)
Add done <id (prints done <id, the task shows as [x]), undo <id (undone <id, back to [ ]) and delete <id (deleted <id). An id that does not exist prints error: no task <id; something that is not a number prints error: bad id. Ids are never reused after a delete.
Input: As before.
Output: As before.
Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- Store a done flag on every task.