Find 1's complement of a binary number
For Example:
x = 10011010
1's complement of x = 01100101
Solution Stats
Problem Comments
7 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers24
Suggested Problems
-
Number of 1s in the Binary Representation of a Number
481 Solvers
-
Add a row of zeros on top of a matrix
268 Solvers
-
447 Solvers
-
Find the index of n in magic(n)
273 Solvers
-
square a vector-Given the variable x as your input, square it and put the result in y.
112 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Required output is an array of single digits.
What is the input? Number? String?
What is the output? Array of digits, as Bjorn said?
nice one
Nice One! :v
input is a number and the output should be an array
I have updated the test case. Solvers should check if their solution sill works. Happy coding
How are we supposed to determine the number of leading zeros? (5th test)