Boolean XOR Expression

Programming Interview Hard 4 views
Back to Questions

Problem Description

A boolean string s of 0/1 and a boolean string t of 0/1 are provided, same length. Treat them as bits and compute (s XOR t) as a new string. Output it.

Input Format

Two lines: s then t.

Output Format

One line result.

Sample Test Case

Input:
10101 00111
Output:
10010

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next