Previous question · 237
Cousins in a Binary Tree
easyData Structures
Next question · 239
Bottom Revenue Restaurants
hardDatabase
Random coding question

238. Number of Provinces

medium
GoogleGoogle
entry
Roles
Software Engineer
ML Engineer
Data Engineer
Research Scientist
Companies
GoogleGoogle
MetaMeta
AmazonAmazon
Levels
entry
Tags
Depth-First Search
Breadth-First Search
Union-Find
Graph Theory

Similar Questions

Populating Next Right Pointers in Each Node IImedium
Data Structures
Maximum Frequency Stackhard
Data Structures
Minimum Height Treesmedium
Data Structures
14 people are solving this problem
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATAINTERVIEW
Interactive coding terminal
Python environment ready.
Type a command below or run code from the editor.
run scriptExecute the current editor contents
submitGrade the current editor contents against all solution test cases
python ("print hello world")Run an isolated Python command
helpShow all available commands