Tags and search (Notes App)

Add tag <id <tag and untag <id <tag (tags are lower-case letters, digits and -, a leading is ignored; otherwise error: bad tag), printing note <id tags: a b (sorted) or (none). list shows the tags after each note, list <tag shows only notes with that tag, and find <word prints found <n and the matching notes (title or any line contains the word, ignoring case).

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

  • A set of tags per note.

More Notes App practice