305 Number of Islands II Python Quick union find with weights, O(nlogn) and O(n) 322 Coin Change Python Bottom-up or top-down DP, dp[n] = min(dp[n], dp[n - v_i]), where v_i is the coin, O(amount * n) and O(amount) 336 Palindrome Pairs Python Java 1. Create a rever...
434 Number of Islands II C++ O(k) O(k) Hard Union Find 488 Happy Number C++ O(k) O(k) Easy LeetCode 547 Intersection of Two Arrays C++ O(m + n) O(min(m, n)) Easy EPI, LeetCode Two Pointers, Binary Search 548 Intersection of Two Arrays II C++ O(m + n) O(min(m, n...
711 Number of Distinct Islands II 📘 Hard 699 Falling Squares Hard 698 Partition to K Equal Sum Subsets Medium 697 Degree of an Array JavaScript Python Easy 696 Count Binary Substrings Easy 695 Max Area of Island Easy 694 Number of Distinct Islands 📘 Medium 693 Binary Number with Alternat...
[199. Binary Tree Right Side View][]committed by LeetCode Extension Jun 23, 2016 2-Add-Two-Numbers [2. Add Two Numbers][]committed by LeetCode Extension Jun 16, 2016 20-Valid-Parentheses [20. Valid Parentheses][]committed by LeetCode Extension Jun 17, 2016 200-Number-of-Islands [200....