Learning Strings and binary numbers @ Dcoder
17 Jul 2023 1 minute read 0 comments Lochard
Problem: Given two binary strings, A (of length 10) and B (of length 5), output 1 if B is a substring of A and 0 otherwise. Input: Binary string A and B separated by a space. Output: The logical value of: 'B is a substring of A'. ie. 1 if B is subst...