101
0/304
Loading content...
A trust-and-safety pipeline scans social posts to flag records that violate publishing limits.
Table: Tweets
A post is considered invalid if it violates at least one rule:
Task: Return all invalid post IDs.
Output requirements:
Supported submission environments:
Tweets:
| tweet_id | content |
|----------|------------------------------------------------------------------|
| 1 | launching now @ops @infra @qa @support |
| 2 | daily digest #news #product #release #mobile |
| 3 | rollout complete @ops #stable |[
{"tweet_id": 1},
{"tweet_id": 2}
]Tweet 1 has 4 mentions and tweet 2 has 4 hashtags. Tweet 3 satisfies all limits.
Tweets:
| tweet_id | content |
|----------|-----------------------------------------------------------------|
| 10 | short update @a @b #x |
| 11 | exactly three mentions @a @b @c and three tags #a #b #c |
| 12 | status ok |[]All tweets remain within the 140-character, mention, and hashtag limits.
Tweets:
| tweet_id | content |
|----------|-------------------------------------------------------------------------|
| 21 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| 22 | spike @u1 @u2 @u3 @u4 #urgent #audit #ops #incident |
| 23 | brief post #ok |[
{"tweet_id": 21},
{"tweet_id": 22}
]Tweet 21 exceeds the character limit. Tweet 22 violates both mention and hashtag limits.
Constraints