diff --git a/README.md b/README.md index bd052b0c6..027872c9b 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ LeetCode Problems' Solutions | # | Title | Solution | Difficulty | | :-: | - | - | :-: | +| 1050 | [Actors and Directors Who Cooperated At Least Three Times](https://leetcode.com/problems/actors-and-directors-who-cooperated-at-least-three-times) πŸ”’ | [MySQL](https://github.com/openset/leetcode/tree/master/problems/actors-and-directors-who-cooperated-at-least-three-times) | Easy | | 1049 | [Last Stone Weight II](https://leetcode.com/problems/last-stone-weight-ii "ζœ€εŽδΈ€ε—ηŸ³ε€΄ηš„ι‡ι‡ II") | [Go](https://github.com/openset/leetcode/tree/master/problems/last-stone-weight-ii) | Medium | | 1048 | [Longest String Chain](https://leetcode.com/problems/longest-string-chain "ζœ€ι•Ώε­—η¬¦δΈ²ι“Ύ") | [Go](https://github.com/openset/leetcode/tree/master/problems/longest-string-chain) | Medium | | 1047 | [Remove All Adjacent Duplicates In String](https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string "εˆ ι™€ε­—η¬¦δΈ²δΈ­ηš„ζ‰€ζœ‰η›Έι‚»ι‡ε€ι‘Ή") | [Go](https://github.com/openset/leetcode/tree/master/problems/remove-all-adjacent-duplicates-in-string) | Easy | diff --git a/problems/actors-and-directors-who-cooperated-at-least-three-times/README.md b/problems/actors-and-directors-who-cooperated-at-least-three-times/README.md new file mode 100644 index 000000000..25c6def6d --- /dev/null +++ b/problems/actors-and-directors-who-cooperated-at-least-three-times/README.md @@ -0,0 +1,14 @@ + + + + + + + +[< Previous](https://github.com/openset/leetcode/tree/master/problems/last-stone-weight-ii "Last Stone Weight II") +γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€ +Next > + +## 1050. Actors and Directors Who Cooperated At Least Three Times (Easy) + + diff --git a/problems/actors-and-directors-who-cooperated-at-least-three-times/actors_and_directors_who_cooperated_at_least_three_times.sql b/problems/actors-and-directors-who-cooperated-at-least-three-times/actors_and_directors_who_cooperated_at_least_three_times.sql new file mode 100644 index 000000000..bae62cf19 --- /dev/null +++ b/problems/actors-and-directors-who-cooperated-at-least-three-times/actors_and_directors_who_cooperated_at_least_three_times.sql @@ -0,0 +1 @@ +# Write your MySQL query statement below diff --git a/problems/actors-and-directors-who-cooperated-at-least-three-times/mysql_schemas.sql b/problems/actors-and-directors-who-cooperated-at-least-three-times/mysql_schemas.sql new file mode 100644 index 000000000..39c505012 --- /dev/null +++ b/problems/actors-and-directors-who-cooperated-at-least-three-times/mysql_schemas.sql @@ -0,0 +1,9 @@ +Create table If Not Exists ActorDirector (actor_id int, director_id int, timestamp int); +Truncate table ActorDirector; +insert into ActorDirector (actor_id, director_id, timestamp) values ('1', '1', '0'); +insert into ActorDirector (actor_id, director_id, timestamp) values ('1', '1', '1'); +insert into ActorDirector (actor_id, director_id, timestamp) values ('1', '1', '2'); +insert into ActorDirector (actor_id, director_id, timestamp) values ('1', '2', '3'); +insert into ActorDirector (actor_id, director_id, timestamp) values ('1', '2', '4'); +insert into ActorDirector (actor_id, director_id, timestamp) values ('2', '1', '5'); +insert into ActorDirector (actor_id, director_id, timestamp) values ('2', '1', '6'); diff --git a/problems/last-stone-weight-ii/README.md b/problems/last-stone-weight-ii/README.md index 556bd8703..eb0e7fa0b 100644 --- a/problems/last-stone-weight-ii/README.md +++ b/problems/last-stone-weight-ii/README.md @@ -7,7 +7,7 @@ [< Previous](https://github.com/openset/leetcode/tree/master/problems/longest-string-chain "Longest String Chain") γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€ -Next > +[Next >](https://github.com/openset/leetcode/tree/master/problems/actors-and-directors-who-cooperated-at-least-three-times "Actors and Directors Who Cooperated At Least Three Times") ## 1049. Last Stone Weight II (Medium)