Filter Unsafe Words From User Messages

You are given two inputs:

  1. messages: an array where each element is a dictionary/Map containing exactly one key-value pair:
    • key: a username (string)
    • value: a message text (string, m...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: