Skip to content

Commit 215d5a3

Browse files
committed
Added README.md file for Invalid Tweets
1 parent 1aef214 commit 215d5a3

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

1827-invalid-tweets/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<h2><a href="https://leetcode.com/problems/invalid-tweets">Invalid Tweets</a></h2> <img src='https://img.shields.io/badge/Difficulty-Easy-brightgreen' alt='Difficulty: Easy' /><hr><p>Table: <code>Tweets</code></p>
2+
3+
<pre>
4+
+----------------+---------+
5+
| Column Name | Type |
6+
+----------------+---------+
7+
| tweet_id | int |
8+
| content | varchar |
9+
+----------------+---------+
10+
tweet_id is the primary key (column with unique values) for this table.
11+
content consists of characters on an American Keyboard, and no other special characters.
12+
This table contains all the tweets in a social media app.
13+
</pre>
14+
15+
<p>&nbsp;</p>
16+
17+
<p>Write a solution to find the IDs of the invalid tweets. The tweet is invalid if the number of characters used in the content of the tweet is <strong>strictly greater</strong> than <code>15</code>.</p>
18+
19+
<p>Return the result table in <strong>any order</strong>.</p>
20+
21+
<p>The result format is in the following example.</p>
22+
23+
<p>&nbsp;</p>
24+
<p><strong class="example">Example 1:</strong></p>
25+
26+
<pre>
27+
<strong>Input:</strong>
28+
Tweets table:
29+
+----------+-----------------------------------+
30+
| tweet_id | content |
31+
+----------+-----------------------------------+
32+
| 1 | Let us Code |
33+
| 2 | More than fifteen chars are here! |
34+
+----------+-----------------------------------+
35+
<strong>Output:</strong>
36+
+----------+
37+
| tweet_id |
38+
+----------+
39+
| 2 |
40+
+----------+
41+
<strong>Explanation:</strong>
42+
Tweet 1 has length = 11. It is a valid tweet.
43+
Tweet 2 has length = 33. It is an invalid tweet.
44+
</pre>

0 commit comments

Comments
 (0)