Skip to content

Commit 904d8b4

Browse files
committed
Update readme.md
1 parent b7ea00a commit 904d8b4

File tree

1 file changed

+3
-11
lines changed
  • LeetCode SQL 50 Solution/550. Game Play Analysis IV

1 file changed

+3
-11
lines changed

LeetCode SQL 50 Solution/550. Game Play Analysis IV/readme.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
Here’s the structured format for **LeetCode 550: Game Play Analysis IV**:
2-
3-
---
4-
51
# **550. Game Play Analysis IV**
62

73
## **Problem Statement**
84
You are given a table named `Activity`, which logs the gaming activity of players.
95

106
### **Activity Table**
11-
```
7+
```rb
128
+--------------+---------+
139
| Column Name | Type |
1410
+--------------+---------+
@@ -32,7 +28,7 @@ Find the **fraction** of players who logged in **again** the day after their **f
3228
## **Example 1:**
3329
### **Input:**
3430
#### **Activity Table**
35-
```
31+
```rb
3632
+-----------+-----------+------------+--------------+
3733
| player_id | device_id | event_date | games_played |
3834
+-----------+-----------+------------+--------------+
@@ -44,7 +40,7 @@ Find the **fraction** of players who logged in **again** the day after their **f
4440
+-----------+-----------+------------+--------------+
4541
```
4642
### **Output:**
47-
```
43+
```rb
4844
+-----------+
4945
| fraction |
5046
+-----------+
@@ -166,7 +162,3 @@ def game_play_analysis(activity: pd.DataFrame) -> pd.DataFrame:
166162
- [LeetCode Problem 550](https://leetcode.com/problems/game-play-analysis-iv/)
167163
- [SQL `DATEDIFF()`](https://www.w3schools.com/sql/func_mysql_datediff.asp)
168164
- [Pandas `.groupby()`](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.groupby.html)
169-
170-
---
171-
172-
This structured format provides **clear problem understanding and efficient solutions**. 🚀

0 commit comments

Comments
 (0)