Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
MCEINS
LeetCode
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
LeetCode
/
tree
/
Copy path
Directory actions
More options
More options
Directory actions
More options
More options
Latest commit
History
History
History
master
Breadcrumbs
LeetCode
/
tree
/
Copy path
Top
Folders and files
Name
Name
Last commit message
Last commit date
parent directory
..
0095_unique_binary_search_trees_ii
0095_unique_binary_search_trees_ii
0096_unique_binary_search_trees
0096_unique_binary_search_trees
0098_validate_binary_search_tree
0098_validate_binary_search_tree
0100_same_tree
0100_same_tree
0101_symmetric_tree
0101_symmetric_tree
0102_binary_tree_level_order_traversal
0102_binary_tree_level_order_traversal
0104_maximum_depth_of_binary_tree
0104_maximum_depth_of_binary_tree
0107_binary_tree_level_order_traversal_ii
0107_binary_tree_level_order_traversal_ii
0108_convert_sorted_array_to_binary_search_tree
0108_convert_sorted_array_to_binary_search_tree
0110_balanced_binary_tree
0110_balanced_binary_tree
0111_minimum_depth_of_binary_tree
0111_minimum_depth_of_binary_tree
0112_path_sum
0112_path_sum
0113_path_sum_ii
0113_path_sum_ii
0114_flatten_binary_tree_to_linked_list
0114_flatten_binary_tree_to_linked_list
0116_populating_next_right_pointers_in_each_node
0116_populating_next_right_pointers_in_each_node
0117_populating_next_right_pointers_in_each_node_ii
0117_populating_next_right_pointers_in_each_node_ii
0129_sum_root_to_leaf_numbers
0129_sum_root_to_leaf_numbers
0199_binary_tree_right_side_view
0199_binary_tree_right_side_view
0226_invert_binary_tree
0226_invert_binary_tree
0230_kth_smallest_element_in_a_bst
0230_kth_smallest_element_in_a_bst
0235_lowest_common_ancestor_of_a_binary_search_tree
0235_lowest_common_ancestor_of_a_binary_search_tree
0236_lowest_common_ancestor_of_a_binary_tree
0236_lowest_common_ancestor_of_a_binary_tree
0257_binary_tree_paths
0257_binary_tree_paths
0404_sum_of_left_leaves
0404_sum_of_left_leaves
0429_n_ary_tree_level_order_traversal
0429_n_ary_tree_level_order_traversal
0437_path_sum_iii
0437_path_sum_iii
0501_find_mode_in_binary_search_tree
0501_find_mode_in_binary_search_tree
0530_minimum_absolute_difference_in_bst
0530_minimum_absolute_difference_in_bst
0538_convert_bst_to_greater_tree
0538_convert_bst_to_greater_tree
0543_diameter_of_binary_tree
0543_diameter_of_binary_tree
0559_maximum_depth_of_n_ary_tree
0559_maximum_depth_of_n_ary_tree
0572_subtree_of_another_tree
0572_subtree_of_another_tree
0589_n_ary_tree_preorder_traversal
0589_n_ary_tree_preorder_traversal
0590_n_ary_tree_postorder_traversal
0590_n_ary_tree_postorder_traversal
0617_merge_two_binary_trees
0617_merge_two_binary_trees
0637_average_of_levels_in_binary_tree
0637_average_of_levels_in_binary_tree
0653_two_sum_iv_input_is_a_bst
0653_two_sum_iv_input_is_a_bst
0654_maximum_binary_tree
0654_maximum_binary_tree
0669_trim_a_binary_search_tree
0669_trim_a_binary_search_tree
0687_longest_univalue_path
0687_longest_univalue_path
0700_search_in_a_binary_search_tree
0700_search_in_a_binary_search_tree
0783_minimum_distance_between_bst_nodes
0783_minimum_distance_between_bst_nodes
0872_leaf_similar_trees
0872_leaf_similar_trees
0938_range_sum_of_bst
0938_range_sum_of_bst
0965_univalued_binary_tree
0965_univalued_binary_tree
0993_cousins_in_binary_tree
0993_cousins_in_binary_tree
View all files
You can’t perform that action at this time.