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
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
-
Find the sum of the elements in the "second" diagonal
1162 Solvers
-
478 Solvers
-
740 Solvers
-
Convert a Cell Array into an Array
1941 Solvers
-
Sum the 'edge' values of a matrix
360 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!