MD ARIFUL HAQUE Posted on Aug 28 1905. Count Sub Islands #php #leetcode #algorithms #programming #LEETCODE (226 Part Series) 1 623. Add One Row to Tree 2 988. Smallest String Starting From Leaf ... 222 more parts... 3 463. Island Perimeter 4 200. Number of Islands 5 1992. Find All Groups of Farmland 6 752. Open the Lock 7 1971. Find if Path Exists in Graph 8 310. Minimum Height Trees 9 1137. N-th Tribonacci Number 10 2370. Longest Ideal Subsequence 11 1289. Minimum Falling Path Sum II 12 514. Freedom Trail 13 834. Sum of Distances in Tree 14 1700. Number of Students Unable to Eat Lunch 15 2073. Time Needed to Buy Tickets 16 2997. Minimum Number of Operations to Make Array XOR Equal to K 17 1614. Maximum Nesting Depth of the Parentheses 18 1544. Make The String Great 19 1915. Number of Wonderful Substrings 20 1249. Minimum Remove to Make Valid Parentheses 21 950. Reveal Cards In Increasing Order 22 678. Valid Parenthesis String 23 2000. Reverse Prefix of Word 24 79. Word Search 25 129. Sum Root to Leaf Numbers 26 2441. Largest Positive Integer That Exists With Its Negative 27 58. Length of Last Word 28 205. Isomorphic Strings 29 165. Compare Version Numbers 30 402. Remove K Digits 31 42. Trapping Rain Water 32 881. Boats to Save People 33 237. Delete Node in a Linked List 34 85. Maximal Rectangle 35 404. Sum of Left Leaves 36 2487. Remove Nodes From Linked List 37 2816. Double a Number Represented as a Linked List 38 445. Add Two Numbers II 39 506. Relative Ranks 40 1. Two Sum 41 3075. Maximize Happiness of Selected Children 42 2. Add Two Numbers 43 786. K-th Smallest Prime Fraction 44 3. Longest Substring Without Repeating Characters 45 3123. Find Edges in Shortest Paths 46 3122. Minimum Number of Operations to Satisfy Conditions 47 3121. Count the Number of Special Characters II 48 3113. Find the Number of Subarrays Where Boundary Elements Are Maximum 49 2570. Merge Two 2D Arrays by Summing Values solution 50 2530. Maximal Score After Applying K Operations 51 857. Minimum Cost to Hire K Workers 52 4. Median of Two Sorted Arrays 53 2373. Largest Local Values in a Matrix 54 17. Letter Combinations of a Phone Number 55 861. Score After Flipping Matrix 56 1219. Path with Maximum Gold 57 2812. Find the Safest Path in a Grid 58 2331. Evaluate Boolean Binary Tree 59 1325. Delete Leaves With a Given Value 60 979. Distribute Coins in Binary Tree 61 3068. Find the Maximum Sum of Node Values 62 1863. Sum of All Subset XOR Totals 63 78. Subsets 64 131. Palindrome Partitioning 65 2597. The Number of Beautiful Subsets 66 1255. Maximum Score Words Formed by Letters 67 140. Word Break II 68 552. Student Attendance Record II 69 1608. Special Array With X Elements Greater Than or Equal X 70 1208. Get Equal Substrings Within Budget 71 1404. Number of Steps to Reduce a Number in Binary Representation to One 72 1442. Count Triplets That Can Form Two Arrays of Equal XOR 73 260. Single Number III 74 3110. Score of a String 75 344. Reverse String 76 2486. Append Characters to String to Make Subsequence 77 409. Longest Palindrome 78 1002. Find Common Characters 79 846. Hand of Straights 80 648. Replace Words 81 523. Continuous Subarray Sum 82 974. Subarray Sums Divisible by K 83 1051. Height Checker 84 1122. Relative Sort Array 85 75. Sort Colors 86 2037. Minimum Number of Moves to Seat Everyone 87 945. Minimum Increment to Make Array Unique 88 502. IPO 89 330. Patching Array 90 633. Sum of Square Numbers 91 826. Most Profit Assigning Work 92 1482. Minimum Number of Days to Make m Bouquets 93 1552. Magnetic Force Between Two Balls 94 1052. Grumpy Bookstore Owner 95 1248. Count Number of Nice Subarrays 96 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit 97 995. Minimum Number of K Consecutive Bit Flips 98 1038. Binary Search Tree to Greater Sum Tree 99 1382. Balance a Binary Search Tree 100 1791. Find Center of Star Graph 101 2285. Maximum Total Importance of Roads 102 2192. All Ancestors of a Node in a Directed Acyclic Graph 103 1579. Remove Max Number of Edges to Keep Graph Fully Traversable 104 1550. Three Consecutive Odds 105 350. Intersection of Two Arrays II 106 1509. Minimum Difference Between Largest and Smallest Value in Three Moves 107 2181. Merge Nodes in Between Zeros 108 2058. Find the Minimum and Maximum Number of Nodes Between Critical Points 109 2582. Pass the Pillow 110 1518. Water Bottles 111 1823. Find the Winner of the Circular Game 112 1701. Average Waiting Time 113 1598. Crawler Log Folder 114 1190. Reverse Substrings Between Each Pair of Parentheses 115 1717. Maximum Score From Removing Substrings 116 2751. Robot Collisions 117 726. Number of Atoms 118 2196. Create Binary Tree From Descriptions 119 2096. Step-By-Step Directions From a Binary Tree Node to Another 120 1110. Delete Nodes And Return Forest 121 1636. Sort Array by Increasing Frequency 122 1530. Number of Good Leaf Nodes Pairs 123 2191. Sort the Jumbled Numbers 124 1380. Lucky Numbers in a Matrix 125 1605. Find Valid Matrix Given Row and Column Sums 126 2418. Sort the People 127 2392. Build a Matrix With Conditions 128 912. Sort an Array 129 1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance 130 2976. Minimum Cost to Convert String I 131 2045. Second Minimum Time to Reach Destination 132 1395. Count Number of Teams 133 1653. Minimum Deletions to Make String Balanced 134 1105. Filling Bookcase Shelves 135 2678. Number of Senior Citizens 136 2134 Minimum Swaps to Group All 1's Together II 137 1460. Make Two Arrays Equal by Reversing Subarrays 138 1508. Range Sum of Sorted Subarray Sums 139 2053. Kth Distinct String in an Array 140 3016. Minimum Number of Pushes to Type Word II 141 273. Integer to English Words 142 885. Spiral Matrix III 143 840. Magic Squares In Grid 144 959. Regions Cut By Slashes 145 1568. Minimum Number of Days to Disconnect Island 146 703. Kth Largest Element in a Stream 147 40. Combination Sum II 148 719. Find K-th Smallest Pair Distance 149 860. Lemonade Change 150 624. Maximum Distance in Arrays 151 1937. Maximum Number of Points with Cost 152 650. 2 Keys Keyboard 153 1140. Stone Game II 154 664. Strange Printer 155 476. Number Complement 156 592. Fraction Addition and Subtraction 157 564. Find the Closest Palindrome 158 145. Binary Tree Postorder Traversal 159 590. N-ary Tree Postorder Traversa 160 1514. Path with Maximum Probability 161 1905. Count Sub Islands 162 947. Most Stones Removed with Same Row or Column 163 2699. Modify Graph Edge Weights 164 2022. Convert 1D Array Into 2D Array 165 1894. Find the Student that Will Replace the Chalk 166 1894. Find the Student that Will Replace the Chalk 167 1945. Sum of Digits of String After Convert 168 1367. Linked List in Binary Tree 169 3217. Delete Nodes From Linked List Present in Array 170 725. Split Linked List in Parts 171 2326. Spiral Matrix IV 172