Python3 solution faster than 93%
\nclass Solution:\n    def displayTable(self, orders: List[List[str]]) -> List[List[str]]:\n        food_set = set()\n        table_set = set()\n        display
```\nclass Solution:\n    def displayTable(self, orders: List[List[str]]) -> List[List[str]]:\n        food_set = set()\n        table_set = set()\n        display = []\n\n        for table in orders:\n            table_set.add(table[1])\n            food_set.add(table[2])\n\n        table_set = sorted(table_set, key=lambda x: int(x))\n        foods = sorted(food_set)\n        my_dict = {table: [0] * len(foods) for table in table_set}\n        index_table = {x[1]: x[0] for x in enumerate(foods)}\n\n        head = [\'Table\']\n        head.extend(foods)\n        display.append(head)\n\n        for order in orders:\n            table, food = order[1], order[2]\n            my_dict[table][index_table[food]] += 1\n\n        for k, v in my_dict.items():\n            my_list = [k]\n            my_list.extend(map(str, v))\n            display.append(my_list)\n        \n        return display\n```\n\nbeats punreach, although not a competition :)
[]