We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62b492e commit c839354Copy full SHA for c839354
MySQL/bikes-last-time-used.sql
@@ -0,0 +1,10 @@
1
+# Time: O(nlogn)
2
+# Space: O(n)
3
+
4
+SELECT
5
+ bike_number,
6
+ MAX(end_time) AS end_time
7
+FROM
8
+ Bikes
9
+GROUP BY 1
10
+ORDER BY 2 DESC;
0 commit comments