[Solved] Longest Binary Subsequence Less Than or Equal to K Case Contest Problem
Longest Binary Subsequence Less Than or Equal to K: You are given a binary string s and a positive integer k. Return the length of the longest subsequence of s that makes up a binary number less than or equal to k. Note: The subsequence can contain leading zeroes. The empty string…