## You are given a binary string binary. A subsequence of binary is considered good if it is not empty and has no leading zeros (with the exception of “0”). Find the number of unique good subsequences of binary. For example, if binary = “001”, then all the good subsequences are [“0”, “0”, “1”], so the unique good subsequences are “0” and “1”. Note that subsequences “00”, “01”, and “001” are not good because they have leading zeros. Number of Unique Good Subsequences solution leetcode- You are given a binary string binary. A subsequence of binary is considered good if it is not empty and has no leading zeros (with the exception of “0”). Find the number of unique good subsequences of binary. For example, if binary = “001”, then all the good subsequences are [“0”, “0”, “1”], so the unique good subsequences are “0” and “1”. Note that subsequences “00”, “01”, and “001” are not good because they have leading zeros. Number of Unique Good Subsequences solution leetcode

Number of Unique Good Subsequences solution leetcode You are given a binary string binary. A subsequence of binary is considered good if it is not empty and has no leading zeros (with the exception of “0”). Find the number of unique good subsequences of binary. For example, if binary = “001”, then all the good subsequences are [“0”, “0”, “1”], so the unique good subsequences are “0” and “1”. Note that subsequences “00”, “01”, and “001” are not good because …