Problem 42709. Find 1's Complement
Find 1's complement of a binary number
For Example:
x = 10011010
1's complement of x = 01100101
Solution Stats
Problem Comments
-
7 Comments
Show
4 older comments
Björn
on 10 Jan 2016
Required output is an array of single digits.
George-Felix Leu
on 10 Jan 2016
What is the input? Number? String?
What is the output? Array of digits, as Bjorn said?
Amr Kamel
on 13 Jan 2016
nice one
Tanzil Bin Hassan
on 13 Jan 2016
Nice One! :v
Raihan Ahmed
on 12 Apr 2016
input is a number and the output should be an array
Raihan Ahmed
on 28 Aug 2016
I have updated the test case. Solvers should check if their solution sill works. Happy coding
Jan Orwat
on 30 Aug 2016
How are we supposed to determine the number of leading zeros? (5th test)
Solution Comments
Show commentsProblem Recent Solvers22
Suggested Problems
-
6831 Solvers
-
961 Solvers
-
265 Solvers
-
278 Solvers
-
7063 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!