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
-
368 Solvers
-
545 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
566 Solvers
-
653 Solvers
-
786 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!