Add Without Plus

Programming Interview Hard 5 views
Back to Questions

Problem Description

Consider {x}. Add them without using + or -. Use bit operations and output sum.

Input Format

One line: a b.

Output Format

One integer sum.

Sample Test Case

Input:
5 7
Output:
12

Constraints

-10^9

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev