Visiting friends
Practice
3.6 (8 votes)
Algorithms
Approved
Combinatorics
Depth first search
Dynamic programming
Graphs
Math
Medium
Ready
Recruit
Code Editor

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Loading discussions...
Similar Problems
Points:30
2 votes
Tags:
AlgorithmsDepth First SearchGraphsMedium
Points:30
8 votes
Tags:
AlgorithmsApprovedDynamic ProgrammingMediumOpen
Points:30
16 votes
Tags:
AlgorithmsApprovedGraphsMediumOpenTrees
Editorial

Login to unlock the editorial