Skip to content

Commit 2b5fcd5

Browse files
authored
Updated exec time.
1 parent c723423 commit 2b5fcd5

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ implementation 'com.github.javadev:leetcode-in-kotlin:1.5'
621621

622622
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
623623
|-|-|-|-|-|-
624-
| 0183 |[Customers Who Never Order](src/main/kotlin/g0101_0200/s0183_customers_who_never_order/script.sql)| Easy | Database | 376 | 98.73
624+
| 0183 |[Customers Who Never Order](src/main/kotlin/g0101_0200/s0183_customers_who_never_order/script.sql)| Easy | Database | 712 | 33.67
625625

626626
#### Day 2 Select and Order
627627

@@ -637,7 +637,7 @@ implementation 'com.github.javadev:leetcode-in-kotlin:1.5'
637637

638638
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
639639
|-|-|-|-|-|-
640-
| 0176 |[Second Highest Salary](src/main/kotlin/g0101_0200/s0176_second_highest_salary/script.sql)| Medium | Database | 225 | 73.10
640+
| 0176 |[Second Highest Salary](src/main/kotlin/g0101_0200/s0176_second_highest_salary/script.sql)| Medium | Database | 219 | 92.54
641641

642642
#### Day 5 Union
643643

@@ -669,7 +669,7 @@ implementation 'com.github.javadev:leetcode-in-kotlin:1.5'
669669

670670
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
671671
|-|-|-|-|-|-
672-
| 0182 |[Duplicate Emails](src/main/kotlin/g0101_0200/s0182_duplicate_emails/script.sql)| Easy | Database | 303 | 92.08
672+
| 0182 |[Duplicate Emails](src/main/kotlin/g0101_0200/s0182_duplicate_emails/script.sql)| Easy | Database | 396 | 68.40
673673

674674
### Level 1
675675

@@ -1568,16 +1568,16 @@ implementation 'com.github.javadev:leetcode-in-kotlin:1.5'
15681568
| 0198 |[House Robber](src/main/kotlin/g0101_0200/s0198_house_robber/Solution.kt)| Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Dynamic_Programming, Algorithm_I_Day_12_Dynamic_Programming, Dynamic_Programming_I_Day_3, Level_2_Day_12_Dynamic_Programming, Udemy_Dynamic_Programming | 156 | 92.24
15691569
| 0189 |[Rotate Array](src/main/kotlin/g0101_0200/s0189_rotate_array/Solution.kt)| Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Math, Two_Pointers, Algorithm_I_Day_2_Two_Pointers, Udemy_Arrays | 483 | 86.95
15701570
| 0187 |[Repeated DNA Sequences](src/main/kotlin/g0101_0200/s0187_repeated_dna_sequences/Solution.kt)| Medium | String, Hash_Table, Bit_Manipulation, Sliding_Window, Hash_Function, Rolling_Hash, Data_Structure_II_Day_9_String, Udemy_Strings | 319 | 79.03
1571-
| 0185 |[Department Top Three Salaries](src/main/kotlin/g0101_0200/s0185_department_top_three_salaries/script.sql)| Hard | Database | 643 | 95.52
1572-
| 0184 |[Department Highest Salary](src/main/kotlin/g0101_0200/s0184_department_highest_salary/script.sql)| Medium | Database | 590 | 73.49
1573-
| 0183 |[Customers Who Never Order](src/main/kotlin/g0101_0200/s0183_customers_who_never_order/script.sql)| Easy | Database, SQL_I_Day_1_Select | 376 | 98.73
1574-
| 0182 |[Duplicate Emails](src/main/kotlin/g0101_0200/s0182_duplicate_emails/script.sql)| Easy | Database, SQL_I_Day_10_Where | 303 | 92.08
1575-
| 0181 |[Employees Earning More Than Their Managers](src/main/kotlin/g0101_0200/s0181_employees_earning_more_than_their_managers/script.sql)| Easy | Database | 315 | 94.44
1576-
| 0180 |[Consecutive Numbers](src/main/kotlin/g0101_0200/s0180_consecutive_numbers/script.sql)| Medium | Database | 550 | 48.44
1571+
| 0185 |[Department Top Three Salaries](src/main/kotlin/g0101_0200/s0185_department_top_three_salaries/script.sql)| Hard | Database | 757 | 87.06
1572+
| 0184 |[Department Highest Salary](src/main/kotlin/g0101_0200/s0184_department_highest_salary/script.sql)| Medium | Database | 637 | 76.01
1573+
| 0183 |[Customers Who Never Order](src/main/kotlin/g0101_0200/s0183_customers_who_never_order/script.sql)| Easy | Database, SQL_I_Day_1_Select | 712 | 33.67
1574+
| 0182 |[Duplicate Emails](src/main/kotlin/g0101_0200/s0182_duplicate_emails/script.sql)| Easy | Database, SQL_I_Day_10_Where | 396 | 68.40
1575+
| 0181 |[Employees Earning More Than Their Managers](src/main/kotlin/g0101_0200/s0181_employees_earning_more_than_their_managers/script.sql)| Easy | Database | 351 | 94.75
1576+
| 0180 |[Consecutive Numbers](src/main/kotlin/g0101_0200/s0180_consecutive_numbers/script.sql)| Medium | Database | 695 | 38.05
15771577
| 0179 |[Largest Number](src/main/kotlin/g0101_0200/s0179_largest_number/Solution.kt)| Medium | Top_Interview_Questions, String, Sorting, Greedy | 380 | 43.40
1578-
| 0178 |[Rank Scores](src/main/kotlin/g0101_0200/s0178_rank_scores/script.sql)| Medium | Database | 290 | 66.73
1579-
| 0177 |[Nth Highest Salary](src/main/kotlin/g0101_0200/s0177_nth_highest_salary/script.sql)| Medium | Database | 342 | 71.87
1580-
| 0176 |[Second Highest Salary](src/main/kotlin/g0101_0200/s0176_second_highest_salary/script.sql)| Medium | Database, SQL_I_Day_4_Union_and_Select | 225 | 73.10
1578+
| 0178 |[Rank Scores](src/main/kotlin/g0101_0200/s0178_rank_scores/script.sql)| Medium | Database | 292 | 85.14
1579+
| 0177 |[Nth Highest Salary](src/main/kotlin/g0101_0200/s0177_nth_highest_salary/script.sql)| Medium | Database | 338 | 86.68
1580+
| 0176 |[Second Highest Salary](src/main/kotlin/g0101_0200/s0176_second_highest_salary/script.sql)| Medium | Database, SQL_I_Day_4_Union_and_Select | 219 | 92.54
15811581
| 0175 |[Combine Two Tables](src/main/kotlin/g0101_0200/s0175_combine_two_tables/script.sql)| Easy | Database, SQL_I_Day_5_Union | 473 | 54.97
15821582
| 0174 |[Dungeon Game](src/main/kotlin/g0101_0200/s0174_dungeon_game/Solution.kt)| Hard | Array, Dynamic_Programming, Matrix | 300 | 66.67
15831583
| 0173 |[Binary Search Tree Iterator](src/main/kotlin/g0101_0200/s0173_binary_search_tree_iterator/BSTIterator.kt)| Medium | Tree, Binary_Tree, Stack, Design, Binary_Search_Tree, Iterator, Data_Structure_II_Day_17_Tree, Programming_Skills_II_Day_16, Level_2_Day_9_Binary_Search_Tree | 563 | 46.91

src/main/kotlin/g0101_0200/s0176_second_highest_salary/script.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Write your MySQL query statement below
22
# #Medium #Database #SQL_I_Day_4_Union_and_Select
3-
# #2022_07_10_Time_225_ms_(73.10%)_Space_0B_(100.00%)
3+
# #2022_10_18_Time_219_ms_(92.54%)_Space_0B_(100.00%)
44
SELECT ifnull(
55
(SELECT distinct(Salary)
66
FROM Employee

src/main/kotlin/g0101_0200/s0177_nth_highest_salary/script.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ DECLARE M INT;
44
SET M=N-1;
55
RETURN (
66
# Write your MySQL query statement below.
7-
# #Medium #Database #2022_06_26_Time_342_ms_(71.87%)_Space_0B_(100.00%)
7+
# #Medium #Database #2022_10_18_Time_338_ms_(86.68%)_Space_0B_(100.00%)
88
SELECT DISTINCT Salary FROM Employee ORDER BY Salary DESC LIMIT M, 1
99
);
1010
END
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Write your MySQL query statement below
2-
# #Medium #Database #2022_06_26_Time_290_ms_(66.73%)_Space_0B_(100.00%)
2+
# #Medium #Database #2022_10_18_Time_292_ms_(85.14%)_Space_0B_(100.00%)
33
select Score, DENSE_RANK() OVER(order by Score Desc) as "Rank" from Scores order by "Rank" Asc;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Write your MySQL query statement below
2-
# #Medium #Database #2022_06_26_Time_550_ms_(48.44%)_Space_0B_(100.00%)
2+
# #Medium #Database #2022_10_18_Time_695_ms_(38.05%)_Space_0B_(100.00%)
33
select distinct num as ConsecutiveNums from
44
(select num, lag(num,1) over(order by id) as l1, lag(num,2) over(order by id) as l2
55
from Logs) con_thr
6-
where num = l1 and num = l2
6+
where num = l1 and num = l2
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Write your MySQL query statement below
2-
# #Easy #Database #2022_06_27_Time_315_ms_(94.44%)_Space_0B_(100.00%)
2+
# #Easy #Database #2022_10_18_Time_351_ms_(94.75%)_Space_0B_(100.00%)
33
select a.Name as Employee from Employee a left join Employee b on a.ManagerId=b.Id
44
where a.Salary > b.Salary and a.ManagerId is not null
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Write your MySQL query statement below
2-
# #Easy #Database #SQL_I_Day_10_Where #2022_06_27_Time_303_ms_(92.08%)_Space_0B_(100.00%)
2+
# #Easy #Database #SQL_I_Day_10_Where #2022_10_18_Time_396_ms_(68.40%)_Space_0B_(100.00%)
33
SELECT Email FROM Person GROUP BY Email HAVING COUNT(Email) > 1;

src/main/kotlin/g0101_0200/s0183_customers_who_never_order/script.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Write your MySQL query statement below
2-
# #Easy #Database #SQL_I_Day_1_Select #2022_06_27_Time_376_ms_(98.73%)_Space_0B_(100.00%)
2+
# #Easy #Database #SQL_I_Day_1_Select #2022_10_18_Time_712_ms_(33.67%)_Space_0B_(100.00%)
33
SELECT c.Name as Customers
44
FROM Customers as c
55
LEFT JOIN Orders as o

src/main/kotlin/g0101_0200/s0184_department_highest_salary/script.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Write your MySQL query statement below
2-
# #Medium #Database #2022_06_27_Time_590_ms_(73.49%)_Space_0B_(100.00%)
2+
# #Medium #Database #2022_10_18_Time_637_ms_(76.01%)_Space_0B_(100.00%)
33
SELECT
44
d.Name AS Department,
55
Sel.Name AS Employee,

src/main/kotlin/g0101_0200/s0185_department_top_three_salaries/script.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Write your MySQL query statement below
2-
# #Hard #Database #2022_06_27_Time_643_ms_(95.52%)_Space_0B_(100.00%)
2+
# #Hard #Database #2022_10_18_Time_757_ms_(87.06%)_Space_0B_(100.00%)
33
SELECT D.name AS Department,
44
A.name AS Employee,
55
A.salary AS Salary

0 commit comments

Comments
 (0)