Skip to content

Swapping 2 numbers using Bit Manipulation #6425

@Mrjoy832

Description

@Mrjoy832

Hey , I want to add detailed documentation , code of Swapping 2 numbers using Bit Manipulation.

Its an important interview question that Swap 2 numbers without using 3rd variable, In that mostly guys answer using some staff like doing some sort of addition , substraction but there if you answer with using Bit-manipulation then it will be eye-catching and also better in case of Time complexity also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions