Zero - MATLAB Cody - MATLAB Central

Problem 45267. Zero

Difficulty:Rate

given an integer a, find the smallest possible integer b(b>0) such that their bitwise logical AND is zero.

  • if a=11(1011) then b=4(0100)

Solution Stats

21.49% Correct | 78.51% Incorrect
Last Solution submitted on Apr 13, 2023

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers23

Suggested Problems

More from this Author165

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!