Skip to content

This question doesn't really utilize topological sorting in the tradi… #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added new topological sort problem
  • Loading branch information
Omarfos committed Jul 22, 2020
commit dc6dd8b78fdce86f99d10b20944a04193775111e
11 changes: 10 additions & 1 deletion src/data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@ const questions = [
id: 118,
name: 'Minimum Height Trees',
url: 'https://leetcode.com/problems/minimum-height-trees/',
pattern: ['BFS', 'Graph'],
pattern: ['BFS', 'Graph', 'Topological Sort'],
difficulty: 'Medium',
premium: false,
companies: ['Google', 'Amazon'],
Expand Down Expand Up @@ -2046,6 +2046,15 @@ const questions = [
premium: true,
companies: ['Oracle'],
},
{
id: 172,
name: 'Sort Items by Groups Respecting Dependencies',
url: 'https://leetcode.com/problems/sort-items-by-groups-respecting-dependencies/',
pattern: ['DFS', 'Graph', 'Topological Sort'],
difficulty: 'Hard',
premium: false,
companies: ['Google'],
},
];

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