Skip to content

Practice Invalid Tweets

Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.

Easy#1683
LeetCode Problem

Invalid Tweets

Problem Statement

Tables: Tweets(tweet_id INT, content VARCHAR). Tweets.tweet_id is unique. content contains alphanumeric characters, exclamation marks or spaces. Return tweet_id for tweets whose content has more than 15 characters. A tweet with exactly 15 characters is valid. Output order is unrestricted.

Source: Invalid Tweets on LeetCode. Use the original task for its coding environment and submissions.

Examples

# Example 1

Input
Tweets table: +----------+-----------------------------------+ | tweet_id | content                           | +----------+-----------------------------------+ | 1        | Let us Code                       | | 2        | More than fifteen chars are here! | +----------+-----------------------------------+
Output
+----------+ | tweet_id | +----------+ | 2        | +----------+

Related LeetCode Problems

Practice more problems similar to Invalid Tweets.

Review your practice with PhantomCodeAI

After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.