i have a problem, that i don’t know how to solve it.
i have a binary string and i want to generate all possible binary substrings.
Example :
input : 10111
output: 10000, 10100,00111,00001,10110 ...
How can i do this , fast AND Smart ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Magic – assumes bitmask though:
You can use the same logic, though it’s a little bit more involved, with a binary string.