String
2311. Longest Binary Subsequence Less Than or Equal to K
Given a binary string s and a number k, find the length of the longest subsequence of s (order preserved) that, as a binary number, is ≤ k. Leading zeros are allowed. Take all zeros for free; add…
Loading…