I was going through problems on SPOJ, when I saw this SBStr1. I learnt a little bit of WhiteSpace language, but I could reach only up to loops.
Can anyone please help me on how to check if a string has another string as a substring in WhiteSpace ?
How to check whether a string is substring of another in WhiteSpace?
848 views Asked by ABcDexter At
1
I'm not going to write the Whitespace code for you but here is an approach you can take that easily translates to Whitespace:
You can implement the bitshifts through repeated division by 2.