Categories and points (Quiz App)
Questions may have CATEGORY <name (default general) and POINTS <n (default 1) lines after them. A correct answer earns its points (doubled when fast). After points= print one line per category in alphabetical order: <category <right/<questions.
Input: As before.
Output: As before, plus category lines.
Difficulty: Medium. 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 category and points on each question while parsing.