Check if binary representation of a number is palindrome – Bit Algorithm – Given an integer ‘x’, write a C function that returns true if binary .
Bit Algorithms:
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 – Bit Algorithm – A nibble is a four-bit aggregation, or half an octet. There are two nibbles in a byte.
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-Bit Algorithm-Given two variables, x and y, swap two variables without using a third variable.
Karatsuba algorithm for fast multiplication – Given two binary strings that represent value of two integers, find the product of two strings.
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.
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).
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 – Dynamic Programming Given a sequence of words, and a limit on the number of characters that can be put in one line