FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
LeetCode-Solutions/MySQL/rising-temperature.sql at master · sirkalcode/LeetCode-Solutions · GitHub
sirkalcode
/
LeetCode-Solutions
Public
forked from
kamyu104/LeetCode-Solutions
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
LeetCode-Solutions
/
MySQL
/
rising-temperature.sql
Copy path
More file actions
More file actions
Latest commit
History
History
History
8 lines (6 loc) · 167 Bytes
Breadcrumbs
LeetCode-Solutions
/
MySQL
/
rising-temperature.sql
Copy path
File metadata and controls
8 lines (6 loc) · 167 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
#
Time: O(n^2)
#
Space: O(n)
SELECT
wt1
.
Id
FROM
Weather wt1, Weather wt2
WHERE
wt1
.
Temperature
>
wt2
.
Temperature
AND
TO_DAYS(
wt1
.
DATE
)
-
TO_DAYS(
wt2
.
DATE
)
=
1
;
Back
|
FazBrowse Home
|
New Git URL