MeetCode
Home
Doubts
Why is my C function not returning the …
Solved
1
49
Ask Doubt
View All Doubts
Solvers Leaderboard
Tutorials
Quiz
All Tests
Leaderboard
My Tasks
User Login
Dark
Enable Notifications
Toggle navigation
XOR Basics
Computer Mathematics
Easy
2 views
Back to Questions
View Answer
0
Previous
De Morgan Apply
Easy
P
Next
Truth Table Count
Easy
N
Problem Description
Given bits a and b, print a XOR b.
Input Format
Two bits a b.
Output Format
One bit.
Constraints
a,b in {0,1}
Official Solution
XOR is 1 if bits differ, else 0.
Please
login
to submit solutions and comments.
Solutions (0)
No solutions submitted yet. Be the first!
Discussion (0)
No comments yet. Start the discussion!
Prev
Next
Fullscreen Editor
0 lines • 0 chars
Esc close • Tab indent
No comments yet. Start the discussion!