Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added solution for 182, 183. #1868

Merged
merged 44 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
ef6cff5
Added Solution for 1912. Movie Rental System in python.
nrhitik Oct 14, 2023
ca705c1
Update README.md
yanglbme Oct 15, 2023
727bd2c
Update README_EN.md
yanglbme Oct 15, 2023
d1241ab
Update Solution.py
yanglbme Oct 15, 2023
5ac39c3
Merge branch 'doocs:main' into main
nrhitik Oct 15, 2023
a02c409
Solution for 1900. Earliest and Latest Rounds Where Players Compete.
nrhitik Oct 15, 2023
c530b16
Merge branch 'main' into main
nrhitik Oct 15, 2023
24457d6
Merge branch 'main' into main
nrhitik Oct 16, 2023
11ee104
Merge branch 'doocs:main' into main
nrhitik Oct 16, 2023
dd85b2c
Added Solution for 1307. Verbal Arithmetic Puzzel and Updated README.…
nrhitik Oct 16, 2023
cce5b39
Added solution for 1354.
nrhitik Oct 16, 2023
1ba8be6
Merge branch 'main' into main
nrhitik Oct 16, 2023
b1d5882
Updated solution for 1307 to pass all the test cases.
nrhitik Oct 16, 2023
aa585c8
Merge branch 'main' of https://github.com/nrhitik/leetcode
nrhitik Oct 16, 2023
ea51913
Updated README for 1307.
nrhitik Oct 16, 2023
9d9cc9b
Merge branch 'main' into main
nrhitik Oct 17, 2023
f06d35e
Merge branch 'main' into main
nrhitik Oct 17, 2023
68821c3
Removed solution for 1307.
nrhitik Oct 18, 2023
00027e9
Merge branch 'main' of https://github.com/nrhitik/leetcode
nrhitik Oct 18, 2023
45b34c5
Merge branch 'main' into main
nrhitik Oct 18, 2023
54ba9ac
Solution for 1728.
nrhitik Oct 19, 2023
fac1994
Merge branch 'doocs:main' into main
nrhitik Oct 19, 2023
22ebd8b
Solution for 2902.
nrhitik Oct 20, 2023
8d3a750
Merge branch 'doocs:main' into main
nrhitik Oct 20, 2023
4a3a82f
Merge branch 'doocs:main' into main
nrhitik Oct 20, 2023
7576497
Solution for 176.
nrhitik Oct 20, 2023
ba33287
Merge branch 'main' of https://github.com/nrhitik/leetcode
nrhitik Oct 20, 2023
9166922
Solution for 175, 176.
nrhitik Oct 20, 2023
0398425
style: format code and docs with prettier
nrhitik Oct 20, 2023
bc885bf
Solution for 177.
nrhitik Oct 21, 2023
1888463
Merge branch 'main' of https://github.com/nrhitik/leetcode
nrhitik Oct 21, 2023
0aec7ef
Merge branch 'doocs:main' into main
nrhitik Oct 21, 2023
ec50982
Merge branch 'main' of https://github.com/nrhitik/leetcode
nrhitik Oct 21, 2023
ae345dd
Solution for 178.
nrhitik Oct 21, 2023
2fb004f
Merge branch 'doocs:main' into main
nrhitik Oct 22, 2023
1100412
Merge branch 'main' of https://github.com/nrhitik/leetcode
nrhitik Oct 22, 2023
8fd676e
Solution for 180.
nrhitik Oct 22, 2023
470ec5f
Merge branch 'doocs:main' into main
nrhitik Oct 22, 2023
7d732e2
Solution for 181.
nrhitik Oct 22, 2023
e397f75
Merge branch 'doocs:main' into main
nrhitik Oct 22, 2023
6ea7623
Merge branch 'main' of https://github.com/nrhitik/leetcode
nrhitik Oct 22, 2023
7ad3b3a
Solution for 182.
nrhitik Oct 22, 2023
69b42ea
Solution for 183.
nrhitik Oct 22, 2023
63fb9c6
Merge branch 'doocs:main' into main
nrhitik Oct 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Solution for 183.
  • Loading branch information
nrhitik committed Oct 22, 2023
commit 69b42eab02611dd59513ae49f0718ffcec35ec42
15 changes: 15 additions & 0 deletions solution/0100-0199/0183.Customers Who Never Order/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,19 @@ FROM
WHERE o.id IS NULL;
```

```python
import pandas as pd


def find_customers(customers: pd.DataFrame, orders: pd.DataFrame) -> pd.DataFrame:
# Select the customers whose 'id' is not present in the orders DataFrame's 'customerId' column.
df = customers[~customers["id"].isin(orders["customerId"])]

# Build a DataFrame that only contains the 'name' column and rename it as 'Customers'.
df = df[["name"]].rename(columns={"name": "Customers"})

return df

```

<!-- tabs:end -->
15 changes: 15 additions & 0 deletions solution/0100-0199/0183.Customers Who Never Order/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,19 @@ FROM
WHERE o.id IS NULL;
```

```python
import pandas as pd


def find_customers(customers: pd.DataFrame, orders: pd.DataFrame) -> pd.DataFrame:
# Select the customers whose 'id' is not present in the orders DataFrame's 'customerId' column.
df = customers[~customers["id"].isin(orders["customerId"])]

# Build a DataFrame that only contains the 'name' column and rename it as 'Customers'.
df = df[["name"]].rename(columns={"name": "Customers"})

return df

```

<!-- tabs:end -->
11 changes: 11 additions & 0 deletions solution/0100-0199/0183.Customers Who Never Order/Solution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import pandas as pd


def find_customers(customers: pd.DataFrame, orders: pd.DataFrame) -> pd.DataFrame:
# Select the customers whose 'id' is not present in the orders DataFrame's 'customerId' column.
df = customers[~customers["id"].isin(orders["customerId"])]

# Build a DataFrame that only contains the 'name' column and rename it as 'Customers'.
df = df[["name"]].rename(columns={"name": "Customers"})

return df