Problems
Previous question · 237
Cousins in a Binary Tree
easy
Data Structures
Next question · 239
Bottom Revenue Restaurants
hard
Database
Random coding question
Python
Language
Python
Description
Solution
Discussion
238. Number of Provinces
medium
Google
entry
Roles
Software Engineer
ML Engineer
Data Engineer
Research Scientist
Companies
Google
Meta
Amazon
Levels
entry
Tags
Depth-First Search
Breadth-First Search
Union-Find
Graph Theory
Similar Questions
Populating Next Right Pointers in Each Node II
medium
Data Structures
Maximum Frequency Stack
hard
Data Structures
Minimum Height Trees
medium
Data Structures
14 people
are solving this problem
Run
Submit
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATA
INTERVIEW
Interactive coding terminal
Python environment ready.
Type a command below or run code from the editor.
run script
Execute the current editor contents
submit
Grade the current editor contents against all solution test cases
python ("print hello world")
Run an isolated Python command
help
Show all available commands
>>>