Puzzle CornerSign In
HomeFeedbackBlogResourcesAbout
Starred
Add Question
All (696)
coding (266)
c++ (157)
algorithms (151)
puzzle (134)
CS Fundamentals (83)
oop (55)
arrays (45)
internet (40)
string (34)
math (31)
databases (28)
system (26)
probability (26)
networking (25)
linkedlist (24)
binarytrees (24)
tree (22)
bit manipulation (19)
sorting (11)
stack (10)
bst (9)
java (8)
xml (8)
sql (7)
next in series (7)
traversal (6)
graph (4)
debugging (4)
lateral thinking (4)
palindrome (4)
mysql (4)
prime (4)
general (4)
unix (3)
CGI (3)
duplication (3)
threading (3)
random (3)
search (3)
fibonacci (3)
encryption (3)
joins (3)
hash (3)
queue (3)
asm (3)
design patterns (2)

next »

Random
Post-order traversal[2007-02-26 23:42:17]   
Write a c code (both recursive & non recursive) to do postorder
traversal of a binary tree
linkAuthor:premTags: algorithms | binarytrees | tree | traversalAnswer

What does this asm block do?[2007-02-26 23:42:19]   
The following asm block performs a common math function, what is it?

cwd xor ax, dx
sub ax, dx
linkAuthor:premTags: asm1 CommentAnswer

Count set bits[2007-02-26 23:42:17]   
Give a very good method to count the number of ones in a 32 bit
number.(caution: looping through testing each bit is not a solution).
linkAuthor:premTags: coding | bit manipulation4 CommentsAnswer

Multiple of 3[2007-02-26 23:42:22]   
Write an algorithm to check whether a given unsigned number is a multiple of 3, without using division and modulo operators.
linkAuthor:premTags: coding | bit manipulation2 CommentsAnswer

Bit reversal[2007-02-26 23:42:17]   
Reverse the bits of an unsigned integer.
linkAuthor:premTags: bit manipulation2 CommentsAnswer

SetPixel problem[2007-02-26 23:42:17]   
Write a SetPixel(x, y) function, given a pointer to the bitmap. Each
pixel is represented by 1 bit. There are 640 pixels per row. In each
byte, while the bits are numbered right to left, pixels are numbered
left to right. Avoid multiplications and divisions to improve performance.
linkAuthor:premTags: coding | bit manipulation1 CommentAnswer

power of 2 problem[2007-02-26 23:42:17]   
Give a one-line C expression to test whether a number is a power of 2
linkAuthor:premTags: coding | bit manipulation3 CommentsAnswer

Binary problem[2007-02-26 23:42:20]   
I want to see if all the ones in a number appear on the right side of the number and all zeros appear on the left, how can I do this most efficiently? (i.e. 00000111 is true but 100010 is false)
linkAuthor:premTags: coding | bit manipulation2 CommentsAnswer

Bit changes required to convert one int to another[2007-09-03 22:59:40]   
Given two integers A & B. Determine how many bits required to convert A to B. Write a function int BitSwapReqd(int A, int B);
linkAuthor:premTags: coding | c++ | bit manipulation1 CommentAnswer

Binary numbers problem[2007-02-26 23:42:18]   
A file contains millions of 30 bit binary numbers. Write an algorithm to
efficiently place the pairs of numbers that are compliments of each
other into another file
linkAuthor:premTags: algorithms | bit manipulationAnswer

Find Nth in series[2007-10-03 10:51:24]   
There is a series of numbers in ascending order. All these numbers have the same number of binary 1s in them. Given the number of 1 bits set in the numbers, write an algorithm/C program to find the nth number in the series.
linkAuthor:premTags: next in series | algorithms | coding | c++ | bit manipulationAnswer

Binary representation[2007-06-14 00:57:57]   
Which (one or more) of the following numbers can\'t be represented accurately in binary? 0.1, 319, 63.5, 1/16, 1.32, 5.390625
linkAuthor:premTags: bit manipulation | CS Fundamentals3 CommentsAnswer


next »




Created by Premchand Jayamohan