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)

Random
Medical problem[2007-02-26 23:42:19]   
You are on a strict medical regimen that requires you to take two types of pills each day. You must take exactly one A pill and exactly one B pill at the same time. The pills are very expensive, and you don't want to waste any. So you open the bottle of A pills, and tap one out into your hand. Then you open the bottle of B pills and do the same thing -- but you make a mistake, and two B pills come out into your hand with the A pill. But the pills are all exactly identical. There is no way to tell A pills apart from B pills. How can you satisfy your regimen and take exactly one of each pill at the same time, without wasting any pills?
linkAuthor:premTags: puzzleAnswer

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

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





Created by Premchand Jayamohan