Skip to content

Commit dc6dd8b

Browse files
committed
Added new topological sort problem
1 parent 6121563 commit dc6dd8b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/data/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ const questions = [
14201420
id: 118,
14211421
name: 'Minimum Height Trees',
14221422
url: 'https://leetcode.com/problems/minimum-height-trees/',
1423-
pattern: ['BFS', 'Graph'],
1423+
pattern: ['BFS', 'Graph', 'Topological Sort'],
14241424
difficulty: 'Medium',
14251425
premium: false,
14261426
companies: ['Google', 'Amazon'],
@@ -2046,6 +2046,15 @@ const questions = [
20462046
premium: true,
20472047
companies: ['Oracle'],
20482048
},
2049+
{
2050+
id: 172,
2051+
name: 'Sort Items by Groups Respecting Dependencies',
2052+
url: 'https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/',
2053+
pattern: ['DFS', 'Graph', 'Topological Sort'],
2054+
difficulty: 'Hard',
2055+
premium: false,
2056+
companies: ['Google'],
2057+
},
20492058
];
20502059

20512060
const sortBy = { Easy: 0, Medium: 1, Hard: 2 };

0 commit comments

Comments
 (0)