Find The Cookie

Given a binary string, a cookie, find its place in the binary cookie jar.

Unsolved

Instructions

You'll get one input string formatted as '[cookie],[cookie jar]'. Return the sum of the starting index number of the cookie in the cookie jar and the ending index number of the cookie in the cookie jar.

Inputs

value1
Single string formatted as '[cookie],[cookie jar]'.

Sample Test Cases

Regular Cookie
value1 10000101,100001111000010110100001
output 23
Big Cookie
value1 1010100100110110,1111010000011111111000111010100100110110
output 63

Test Results

Login/Register

At the moment only Discord login is supported.

Login with Discord