# Category - Bit Algorithms:

## C++ Program Check if binary representation of a number is palindrome

Check if binary representation of a number is palindrome - Bit Algorithm - Given an integer ‘x’, write a C function that returns true if binary .

## How to turn off a particular bit in a number

C++ program How to turn off a particular bit in a number-Bit Algorithm-Given a number n and a value k, turn of the k’th bit in n.

## C Program-Swap two nibbles in a byte

C Program Swap two nibbles in a byte - Bit Algorithm - A nibble is a four-bit aggregation, or half an octet. There are two nibbles in a byte.

## C++ Program Check if a number is multiple of 9 using bitwise operators

Check if a number is multiple of 9 using bitwise operators - Bit Algorithm - Given a number n, write a function that returns true if n is divisible by 9.

## swap two numbers without using a temporary variable

swap two numbers without using a temporary variable-Bit Algorithm-Given two variables, x and y, swap two variables without using a third variable.

## C++ Programming Karatsuba algorithm for fast multiplication

Karatsuba algorithm for fast multiplication - Given two binary strings that represent value of two integers, find the product of two strings.

Bit Algorithms:

## C Programming Find position of the only set bit

C Programming Find position of the only set bit - Given a number having only one ‘1’ and all other ’0’s in its binary representation.

## C++ Programming-Swap all odd and even bits

Given an unsigned integer, swap all odd bits with even bits. For example, if the given number is 23 (00010111), it should be converted to 43 (00101011).

## C Programming-Swap all odd and even bits

Given an unsigned integer, swap all odd bits with even bits. For example, if the given number is 23 (00010111), it should be converted to 43 (00101011).

## Java Programming – Word Wrap Problem

Java Programming - Word Wrap Problem - Dynamic Programming Given a sequence of words, and a limit on the number of characters that can be put in one line