Tag: bfs
-
BinarySearch 0011 Univalue Tree Count (09 Apr 2022)
-
BinarySearch 0023 Number of Islands (09 Apr 2022)
-
BinarySearch 0045 Bipartite Graph (09 Apr 2022)
-
BinarySearch 0046 Shortest Bridge (09 Apr 2022)
-
BinarySearch 0048 Sinking Islands (09 Apr 2022)
-
BinarySearch 0049 Farthest Point From Water (09 Apr 2022)
-
BinarySearch 0063 Tree Sum (09 Apr 2022)
-
BinarySearch 0064 Leftmost Deepest Tree Node (09 Apr 2022)
-
BinarySearch 0065 Sum of the Deepest Nodes (09 Apr 2022)
-
BinarySearch 0066 Twin Trees (09 Apr 2022)
-
BinarySearch 0070 Level Order Traversal (09 Apr 2022)
-
BinarySearch 0076 Merging Binary Trees (09 Apr 2022)
-
BinarySearch 0080 Tree Pruning (09 Apr 2022)
-
BinarySearch 0082 Largest Root to Leaf Sum (09 Apr 2022)
-
BinarySearch 0083 Most Frequent Subtree Sum (09 Apr 2022)
-
BinarySearch 0089 Longest Tree Sum Path From Root to Leaf (09 Apr 2022)
-
BinarySearch 0094 Perfect Squares (09 Apr 2022)
-
BinarySearch 0128 Paint Bucket (09 Apr 2022)
-
BinarySearch 0129 Largest Binary Search Subtree in Nodes (09 Apr 2022)
-
BinarySearch 0132 Height Balanced Tree (09 Apr 2022)
-
BinarySearch 0134 Count BST Nodes in a Range (09 Apr 2022)
-
BinarySearch 0150 Friend Groups (09 Apr 2022)
-
BinarySearch 0175 Left Side View of a Tree (09 Apr 2022)
-
BinarySearch 0180 Complete Binary Tree (09 Apr 2022)
-
BinarySearch 0181 Sum Tree (09 Apr 2022)
-
BinarySearch 0189 Delete Even Leaves (09 Apr 2022)
-
BinarySearch 0199 Level Order Alternating (09 Apr 2022)
-
BinarySearch 0211 Longest Tree Path (09 Apr 2022)
-
BinarySearch 0225 List to Binary Search Tree (09 Apr 2022)
-
BinarySearch 0237 Binary Tree Width (09 Apr 2022)
-
BinarySearch 0244 Course Scheduling (09 Apr 2022)
-
BinarySearch 0246 Sibling Tree Value (09 Apr 2022)
-
BinarySearch 0251 Univalue Tree (09 Apr 2022)
-
BinarySearch 0255 Wildfire (09 Apr 2022)
-
BinarySearch 0257 Dictionary Nomad (09 Apr 2022)
-
BinarySearch 0262 Sorting Mail (09 Apr 2022)
-
BinarySearch 0276 Escape Maze (09 Apr 2022)
-
BinarySearch 0282 Tree Traversal (09 Apr 2022)
-
BinarySearch 0283 8-Puzzle (09 Apr 2022)
-
BinarySearch 0285 Parity Jump (09 Apr 2022)
-
BinarySearch 0300 Level Order Binary Tree to Linked List (09 Apr 2022)
-
BinarySearch 0312 Bounce (09 Apr 2022)
-
BinarySearch 0327 Leaves in Same Level (09 Apr 2022)
-
BinarySearch 0331 Swappable Trees (09 Apr 2022)
-
BinarySearch 0334 Leaf Equivalent Trees (09 Apr 2022)
-
BinarySearch 0336 Longest Even Value Path (09 Apr 2022)
-
BinarySearch 0338 Longest Even Sum Path (09 Apr 2022)
-
BinarySearch 0341 The Meeting Place (09 Apr 2022)
-
BinarySearch 0344 The Meeting Place Sequel (09 Apr 2022)
-
BinarySearch 0408 Island Shape Perimeter (09 Apr 2022)
-
BinarySearch 0445 Rain Catcher Sequel (09 Apr 2022)
-
BinarySearch 0509 Only Child (09 Apr 2022)
-
BinarySearch 0517 Social Distancing 2 (09 Apr 2022)
-
BinarySearch 0518 Low Score (AC) (09 Apr 2022)
-
BinarySearch 0557 Diagonal Tree Traversal (09 Apr 2022)
-
BinarySearch 0565 Wildfire Sequel (09 Apr 2022)
-
BinarySearch 0572 ZigZag Path (09 Apr 2022)
-
BinarySearch 0584 Distinct Islands (09 Apr 2022)
-
BinarySearch 0585 Largest Difference Between Node and a Descendant (09 Apr 2022)
-
BinarySearch 0586 Hop Cost Sequel (09 Apr 2022)
-
BinarySearch 0589 Binary Tree Nodes Around Radius (09 Apr 2022)
-
BinarySearch 0594 Knight Moves to Target Coordinate (09 Apr 2022)
-
BinarySearch 0601 Surrounded Islands (09 Apr 2022)
-
BinarySearch 0604 Shortest Path by Removing K Walls (09 Apr 2022)
-
BinarySearch 0609 Largest Island Area (09 Apr 2022)
-
BinarySearch 0621 Unlock Rooms (09 Apr 2022)
-
BinarySearch 0623 Matrix Nearest Zero (09 Apr 2022)
-
BinarySearch 0625 Largest Island After Land Cell Addition (09 Apr 2022)
-
BinarySearch 0656 Gene Mutation Groups (09 Apr 2022)
-
BinarySearch 0670 Separate People Given Dislike Relations (09 Apr 2022)
-
BinarySearch 0684 Counting Maximal Value Roots in Binary Tree (09 Apr 2022)
-
BinarySearch 0694 Shortest Cycle Containing Target Node (09 Apr 2022)
-
BinarySearch 0695 Partition Zero One Trees (09 Apr 2022)
-
BinarySearch 0723 Tag Game in a Tree (09 Apr 2022)
-
BinarySearch 0767 Frequency Stack (09 Apr 2022)
-
BinarySearch 0774 Cheapest Bus Route (09 Apr 2022)
-
BinarySearch 0783 Peak Heights (09 Apr 2022)
-
BinarySearch 0784 Convert Binary Matrix to Zero Matrix (09 Apr 2022)
-
BinarySearch 0793 Cycle Detection in a Matrix (09 Apr 2022)
-
BinarySearch 0797 Number of Decrements to Reach Zero (09 Apr 2022)
-
BinarySearch 0814 Nearest Bus Stop From a House (09 Apr 2022)
-
BinarySearch 0825 Race to Finish Line (09 Apr 2022)
-
BinarySearch 0834 Tree Shifting (09 Apr 2022)
-
BinarySearch 0844 Lexicographically Smallest Leaf to Root Path (09 Apr 2022)
-
BinarySearch 0845 Enclosed Islands (09 Apr 2022)
-
BinarySearch 0846 Tree Detection (09 Apr 2022)
-
BinarySearch 0864 Enlarge BST (09 Apr 2022)
-
BinarySearch 0869 String Equivalence Relations (09 Apr 2022)
-
BinarySearch 0877 Vertical Lines in Binary Tree (09 Apr 2022)
-
BinarySearch 0882 Tree with Distinct Parities (09 Apr 2022)
-
BinarySearch 0913 Next Node on Its Right (09 Apr 2022)
-
BinarySearch 0916 Leaf Pairs Less Than Target Distance Away (09 Apr 2022)
-
BinarySearch 0921 Length of the Longest Path in an N-Ary Tree (09 Apr 2022)
-
BinarySearch 0933 Number of Moves to Capture the King (09 Apr 2022)
-
BinarySearch 0952 Subtree with Maximum Average (09 Apr 2022)
-
BinarySearch 1009 Intersection of Two Maps (09 Apr 2022)
-
BinarySearch 1011 Connected Road to Destination (09 Apr 2022)
-
BinarySearch 1021 Subtree with Maximum Value (09 Apr 2022)
-
BinarySearch 1037 Grid Coloring (09 Apr 2022)
-
Leetcode 0102. Binary Tree Level Order Traversal (09 Apr 2022)
-
Leetcode 0103. Binary Tree Zigzag Level Order Traversal (09 Apr 2022)
-
Leetcode 0113. Path Sum II (09 Apr 2022)
-
Leetcode 0126. Word Ladder II (09 Apr 2022)
-
Leetcode 0127. Word Ladder (09 Apr 2022)
-
Leetcode 0130. Surrounded Regions (09 Apr 2022)
-
Leetcode 0133. Clone Graph (09 Apr 2022)
-
Leetcode 0199. Binary Tree Right Side View (09 Apr 2022)
-
Leetcode 0200 Number of Islands (09 Apr 2022)
-
Leetcode 0207. Course Schedule (09 Apr 2022)
-
Leetcode 0210. Course Schedule II (09 Apr 2022)
-
Leetcode 0279. Perfect Squares (09 Apr 2022)
-
Leetcode 0286. Walls and Gates (09 Apr 2022)
-
Leetcode 0298. Binary Tree Longest Consecutive Sequence (09 Apr 2022)
-
Leetcode 0302 Smallest Rectangle Enclosing Black Pixels (09 Apr 2022)
-
Leetcode 0305 Number of Islands II (09 Apr 2022)
-
Leetcode 0314. Binary Tree Vertical Order Traversal (09 Apr 2022)
-
Leetcode 0317. Shortest Distance from All Buildings (09 Apr 2022)
-
Leetcode 0323. Number of Connected Components in an Undirected Graph (09 Apr 2022)
-
Leetcode 0339. Nested List Weight Sum (09 Apr 2022)
-
Leetcode 0364. Nested List Weight Sum II (09 Apr 2022)
-
Leetcode 0365 Water and Jug Problem (09 Apr 2022)
-
Leetcode 0366. Find Leaves of Binary Tree (09 Apr 2022)
-
Leetcode 0407. Trapping Rain Water II (09 Apr 2022)
-
Leetcode 0417. Pacific Atlantic Water Flow (09 Apr 2022)
-
Leetcode 0419 Battleships in a Board (09 Apr 2022)
-
Leetcode 0429. N-ary Tree Level Order Traversal (09 Apr 2022)
-
Leetcode 0433 Minimum Genetic Mutation (09 Apr 2022)
-
Leetcode 0444. Sequence Reconstruction (09 Apr 2022)
-
Leetcode 0489. Robot Room Cleaner (09 Apr 2022)
-
Leetcode 0490. The Maze (09 Apr 2022)
-
Leetcode 0499 Maze III (09 Apr 2022)
-
Leetcode 0505 The Maze II (09 Apr 2022)
-
Leetcode 0508 Most Frequent Subtree Sum (09 Apr 2022)
-
Leetcode 0513 Find Bottom Left Tree Value (09 Apr 2022)
-
Leetcode 0515 Find Largest Value in Each Tree Row (09 Apr 2022)
-
Leetcode 0526. Beautiful Arrangement (09 Apr 2022)
-
Leetcode 0529 Minesweeper (09 Apr 2022)
-
Leetcode 0542. 01 Matrix (09 Apr 2022)
-
Leetcode 0543. Diameter of Binary Tree (09 Apr 2022)
-
Leetcode 0545 Boundary of Binary Tree (09 Apr 2022)
-
Leetcode 0547 Number of Provinces (09 Apr 2022)
-
Leetcode 0559 Maximum Depth of N-ary Tree (09 Apr 2022)
-
Leetcode 0582. Kill Process (09 Apr 2022)
-
Leetcode 0617 Merge Two Binary Trees (09 Apr 2022)
-
Leetcode 0623. Add One Row to Tree (09 Apr 2022)
-
Leetcode 0637. Average of Levels in Binary Tree (09 Apr 2022)
-
Leetcode 0653. Two Sum IV - Input is a BST (09 Apr 2022)
-
Leetcode 0662. Maximum Width of Binary Tree (09 Apr 2022)
-
Leetcode 0663 Equal Tree Partition (09 Apr 2022)
-
Leetcode 0675 Cut Off Trees for Golf Event (09 Apr 2022)
-
Leetcode 0684. Redundant Connection (09 Apr 2022)
-
Leetcode 0690 Employee Importance (09 Apr 2022)
-
Leetcode 0694. Number of Distinct Islands (09 Apr 2022)
-
Leetcode 0695. Max Area of Island (09 Apr 2022)
-
Leetcode 0700. Search in a Binary Search Tree (09 Apr 2022)
-
Leetcode 0701. Insert into a Binary Search Tree (09 Apr 2022)
-
Leetcode 0711 Number of Distinct Islands II (09 Apr 2022)
-
Leetcode 0733 Flood Fill (09 Apr 2022)
-
Leetcode 0742 Closest Leaf in a Binary Tree (09 Apr 2022)
-
Leetcode 0743 Network Delay Time (09 Apr 2022)
-
Leetcode 0749 Contain Virus (09 Apr 2022)
-
Leetcode 0752. Open the Lock (09 Apr 2022)
-
Leetcode 0773 Sliding Puzzle (09 Apr 2022)
-
Leetcode 0778. Swim in Rising Water (09 Apr 2022)
-
Leetcode 0785. Is Graph Bipartite (09 Apr 2022)
-
Leetcode 0787. Cheapest Flights Within K Stops (09 Apr 2022)
-
Leetcode 0814. Binary Tree Pruning (09 Apr 2022)
-
Leetcode 0815 Bus Routes (09 Apr 2022)
-
Leetcode 0818 Race Car (09 Apr 2022)
-
Leetcode 0827. Making A Large Island (09 Apr 2022)
-
Leetcode 0841. Keys and Rooms (09 Apr 2022)
-
Leetcode 0863 All Nodes Distance K in Binary Tree (09 Apr 2022)
-
Leetcode 0864 Shortest Path to Get All Keys (**AC**) (09 Apr 2022)
-
Leetcode 0865. Smallest Subtree with all the Deepest Nodes (09 Apr 2022)
-
Leetcode 0872 Leaf-Similar Trees (09 Apr 2022)
-
Leetcode 0886. Possible Bipartition (09 Apr 2022)
-
Leetcode 0895. Maximum Frequency Stack (09 Apr 2022)
-
Leetcode 0909 Snakes and Ladders (09 Apr 2022)
-
Leetcode 0919 Complete Binary Tree Inserter (09 Apr 2022)
-
Leetcode 0934. Shortest Bridge (09 Apr 2022)
-
Leetcode 0938. Range Sum of BST (09 Apr 2022)
-
Leetcode 0951. Flip Equivalent Binary Trees (09 Apr 2022)
-
Leetcode 0958. Check Completeness of a Binary Tree (09 Apr 2022)
-
Leetcode 0965. Univalued Binary Tree (09 Apr 2022)
-
Leetcode 0971. Flip Binary Tree To Match Preorder Traversal (09 Apr 2022)
-
Leetcode 0979. Distribute Coins in Binary Tree (09 Apr 2022)
-
Leetcode 0988. Smallest String Starting From Leaf (09 Apr 2022)
-
Leetcode 0993. Cousins in Binary Tree (09 Apr 2022)
-
Leetcode 0994. Rotting Oranges (09 Apr 2022)
-
Leetcode 1020. Number of Enclaves (09 Apr 2022)
-
Leetcode 1022. Sum of Root To Leaf Binary Numbers (09 Apr 2022)
-
Leetcode 1034. Coloring A Border (09 Apr 2022)
-
Leetcode 1036. Escape a Large Maze (09 Apr 2022)
-
Leetcode 1038. Binary Search Tree to Greater Sum Tree (09 Apr 2022)
-
Leetcode 1042. Flower Planting With No Adjacent (09 Apr 2022)
-
Leetcode 1059 All Paths from Source Lead to Destination (09 Apr 2022)
-
Leetcode 1061 Lexicographically Smallest Equivalent String (09 Apr 2022)
-
Leetcode 1080. Insufficient Nodes in Root to Leaf Paths (09 Apr 2022)
-
Leetcode 1091. Shortest Path in Binary Matrix (09 Apr 2022)
-
Leetcode 1110. Delete Nodes And Return Forest (09 Apr 2022)
-
Leetcode 1120 Maximum Average Subtree (09 Apr 2022)
-
Leetcode 1123. Lowest Common Ancestor of Deepest Leaves (09 Apr 2022)
-
Leetcode 1129. Shortest Path with Alternating Colors (09 Apr 2022)
-
Leetcode 1161. Maximum Level Sum of a Binary Tree (09 Apr 2022)
-
Leetcode 1162. As Far from Land as Possible (09 Apr 2022)
-
Leetcode 1197 Minimum Knight Moves (09 Apr 2022)
-
Leetcode 1202. Smallest String With Swaps (09 Apr 2022)
-
Leetcode 1203. Sort Items by Groups Respecting Dependencies (09 Apr 2022)
-
Leetcode 1210. Minimum Moves to Reach Target with Rotations (09 Apr 2022)
-
Leetcode 1215 Stepping Numbers (09 Apr 2022)
-
Leetcode 1236 Web Crawler (09 Apr 2022)
-
Leetcode 1245 Tree Diameter (09 Apr 2022)
-
Leetcode 1254. Number of Closed Islands (09 Apr 2022)
-
Leetcode 1284. Minimum Number of Flips to Convert Binary Matrix to Zero Matrix (09 Apr 2022)
-
Leetcode 1293. Shortest Path in a Grid with Obstacles Elimination (09 Apr 2022)
-
Leetcode 1298. Maximum Candies You Can Get from Boxes (09 Apr 2022)
-
Leetcode 1306. Jump Game III (09 Apr 2022)
-
Leetcode 1345. Jump Game IV (09 Apr 2022)
-
Leetcode 1368. Minimum Cost to Make at Least One Valid Path in a Grid (09 Apr 2022)
-
Leetcode 1377. Frog Position After T Seconds (09 Apr 2022)
-
Leetcode 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree (09 Apr 2022)
-
Leetcode 1448. Count Good Nodes in Binary Tree (09 Apr 2022)
-
Leetcode 1469 Find All The Lonely Nodes (09 Apr 2022)
-
Leetcode 1485 Clone Binary Tree With Random Pointer (09 Apr 2022)
-
Leetcode 1506 Find Root of N-Ary Tree (09 Apr 2022)
-
Leetcode 1530. Number of Good Leaf Nodes Pairs (09 Apr 2022)
-
Leetcode 1559. Detect Cycles in 2D Grid (09 Apr 2022)
-
Leetcode 1568. Minimum Number of Days to Disconnect Island (09 Apr 2022)
-
Leetcode 1602 Find Nearest Right Node in Binary Tree (09 Apr 2022)
-
Leetcode 1654 Minimum Jumps to Reach Home (09 Apr 2022)
-
Leetcode 1660 Correct a Binary Tree (09 Apr 2022)
-
Leetcode 1730 Shortest Path to Get Food (09 Apr 2022)
-
Leetcode 1740 Find Distance in a Binary Tree (09 Apr 2022)
-
Leetcode 1765. Map of Highest Peak (09 Apr 2022)
-
Leetcode 1778 Shortest Path in a Hidden Grid (09 Apr 2022)
-
Leetcode 1810 Minimum Path Cost in a Hidden Grid (09 Apr 2022)
-
Leetcode 1857. Largest Color Value in a Directed Graph (09 Apr 2022)
-
Leetcode 1905. Count Sub Islands (09 Apr 2022)
-
Leetcode 1970. Last Day Where You Can Still Cross (09 Apr 2022)
-
Leetcode 1973 Count Nodes Equal to Sum of Descendants (09 Apr 2022)
-
Leetcode 2045. Second Minimum Time to Reach Destination (09 Apr 2022)
-
Leetcode 2196. Create Binary Tree From Descriptions (09 Apr 2022)
-
Leetcode 2204 Distance to a Cycle in Undirected Graph (09 Apr 2022)