- Geeksforgeeks
- Swap bits in a given number
- **Find missing number in an array
- ** Find element which occurs only once except it all occurs thrice
- *************Find even occurring element in an array
- Find repeating and missing elemeny
- Count number of set bits in a number
- Count number of set bits in an array
- Swap two nibbles in an array
- **************Find sum of two numbers using bitwise operators
- Left shift fiddle in java
- Infinite stream of bits divisible by 3
- Smallest of three integers without comparison operators
- Boolean array puzzle
- *************Next higher number with same number of bits
- Optimization technique
- *************Add 1 to a given number
- Multiply given integer with 3.5
- Turn off right most set bit
- ***********Find whether given number is power of 4 or not
- ***********Compute integer absolute value with out branching
- Compute modulus division by a power of 2 number
- Compute minimum or maximum of two numbers with out branching
- ***********Rotate bits of a number
- ***********Find the two non repeating elements in an array of repeating elements
- ***********Count the number of bits to be flipped to convert a to b
- Count set bits in a number
- Reverse bits of a number
- Little and big endian
- Check for integer overflow
- Find the number occurring odd number of times
- Position of right most set bit
- Check whether a number is power of two or not
- Efficient way to multiply with 7
- Find parity of an unsigned number
- Check if a number is multiple of 3 or not
- Next power of 2
Popular Posts
-
Given the sequence S1 = {a,b,c,d,…,x,y,z,aa,ab,ac…. } and given that this sequence corresponds (term for term) to the sequence S2 = {0,1...
-
Given a binary matrix, find out the maximum size square sub-matrix with all 1s. Algorithm: Let the given binary matrix be M[R][C]. The idea ...
-
The bustling town of Siruseri has just one sports stadium. There are a number of schools, colleges, sports associations, etc. that use this ...
-
Refer : http://education.cdacmumbai.in/education/pgdst/dsalfac/notes/ShellSort.pdf Shellsort works by comparing elements that are distant r...
-
Many of you might not be knowing that if you have 1 gmail id … you have infinte gmail ids… Seems to be a joke.. It’s not actually… for e.g ...
-
How to find kth smallest element in BST . you cannot use static/global variable and you cannot pass value of k to any function ? Solution ...
-
Find the maximum rectangle (in terms of area) under a histogram in linear time. I mean the area of largest rectangle that fits entirely in t...
-
There is an integer array consisting positive and negative integers. Find maximum positive difference S defined as: O(N) solution S = a[i] ...
-
Q: Given an integer x and an unsorted array of integers, describe an algorithm to determine whether two of the numbers add up to x. If we ha...
-
http://effprog.blogspot.com/2011/02/duplicate-removal-in-binary-search-tree.html http://shashank7s.blogspot.com/2011/03/write-program-to-rem...
Tuesday, February 7, 2012
All logical bit questions
Labels:
Question list
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment