dume0011Leetcode 1092: Shortest Common SupersequenceGiven two strings str1 and str2, return the shortest string that has both str1 and str2 as subsequences. If there are multiple valid…2 min read·16 hours ago----
dume0011Leetcode 1072: Flip Columns For Maximum Number of Equal RowsYou are given an m x n binary matrix matrix.2 min read·May 3, 2024----
dume0011Leetcode 1049: Last Stone Weight IIYou are given an array of integers stones where stones[i] is the weight of the ith stone.2 min read·Apr 24, 2024----
dume0011Leetcode 1029: Two city SchedulingA company is planning to interview 2n people. Given the array costs where costs[i] = [aCosti, bCosti], the cost of flying the ith person to…2 min read·Apr 5, 2024----
dume0011Leetcode 3102: Minimize Manhattan DistancesYou are given a 0-indexed array points representing integer coordinates of some points on a 2D plane, where points[i] = [xi, yi].2 min read·Mar 31, 2024----
dume0011Leetcode 968: Binary Tree CamerasYou are given the root of a binary tree. We install cameras on the tree nodes where each camera at a node can monitor its parent, itself…2 min read·Jan 24, 2024----
dume0011Leetcode 3017: Count the Number of House at a Certain Distance IIYou are given three positive integers n, x, and y.4 min read·Jan 24, 2024----
dume0011Leetcode 956: Tallest BillboardYou are installing a billboard and want it to have the largest height. The billboard will have two steel supports, one on each side. Each…2 min read·Jan 10, 2024----
dume0011Leetcode 940: Distinct Subsequences IIGiven a string s, return the number of distinct non-empty subsequences of s. Since the answer may be very large, return it modulo 10^9 + 7.2 min read·Dec 26, 2023----
dume0011Leetcode 2949: Count Beautiful Substrings IIYou are given a string s and a positive integer k.2 min read·Nov 26, 2023----