Skip to content

Commit 5811ff9

Browse files
authored
Update analyze-organization-hierarchy.sql
1 parent 4ef2eea commit 5811ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MySQL/analyze-organization-hierarchy.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Time: O(n^2)
22
# Space: O(n^2)
33

4-
# recursive cte
4+
# recursive cte, bfs
55
WITH RECURSIVE level_cte AS (
66
SELECT employee_id, manager_id, 1 AS level, salary
77
FROM Employees

0 commit comments

Comments
 (0)