Click here to Skip to main content
15,914,452 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Friday afternoon mini challenge Pin
Ranjan.D24-Jan-14 6:07
professionalRanjan.D24-Jan-14 6:07 
GeneralRe: Friday afternoon mini challenge Pin
harold aptroot24-Jan-14 6:10
harold aptroot24-Jan-14 6:10 
GeneralRe: Friday afternoon mini challenge Pin
Ranjan.D24-Jan-14 6:15
professionalRanjan.D24-Jan-14 6:15 
GeneralRe: Friday afternoon mini challenge Pin
harold aptroot24-Jan-14 6:20
harold aptroot24-Jan-14 6:20 
GeneralRe: Friday afternoon mini challenge Pin
dan!sh 24-Jan-14 7:00
professional dan!sh 24-Jan-14 7:00 
GeneralRe: Friday afternoon mini challenge Pin
harold aptroot24-Jan-14 7:01
harold aptroot24-Jan-14 7:01 
GeneralRe: Friday afternoon mini challenge Pin
dan!sh 24-Jan-14 7:10
professional dan!sh 24-Jan-14 7:10 
GeneralRe: Friday afternoon mini challenge PinPopular
Thomas Daniels24-Jan-14 7:41
mentorThomas Daniels24-Jan-14 7:41 
It could be simplified to x > y

How this works:
Let's take two random numbers for x and y:
x = 37  = 00100101
y = 203 = 11001011

The values for ~x and ~y:
~x = 11011010
~y = 00110100

And the values for (x & ~y) and (~x & y)
x & ~y = 00100101 & 00110100 = 00100100 = 36
~x & y = 11011010 & 11001011 = 11001010 = 202

In this case, x and y are both substracted with 1. That's not always the case, but if you try this with other numbers, you'll see that x and y are always substracted with the same number.
The quick red ProgramFOX jumps right over the Lazy<Dog>.

My latest article: Create an HTML5 (and JavaScript) Maze Game with a timer

My group: C# Programmers Group


modified 24-Jan-14 13:56pm.

GeneralWINNER Pin
harold aptroot24-Jan-14 7:45
harold aptroot24-Jan-14 7:45 
GeneralRe: WINNER Pin
Thomas Daniels24-Jan-14 7:51
mentorThomas Daniels24-Jan-14 7:51 
GeneralRe: Friday afternoon mini challenge Pin
harold aptroot24-Jan-14 8:00
harold aptroot24-Jan-14 8:00 
GeneralRe: Friday afternoon mini challenge Pin
Thomas Daniels24-Jan-14 8:03
mentorThomas Daniels24-Jan-14 8:03 
GeneralAPOD: Stella nova Pin
Gregory Gadow24-Jan-14 3:45
Gregory Gadow24-Jan-14 3:45 
GeneralRe: APOD: Stella nova Pin
Argonia24-Jan-14 4:00
professionalArgonia24-Jan-14 4:00 
GeneralRe: APOD: Stella nova Pin
Dave Kreskowiak24-Jan-14 4:16
mveDave Kreskowiak24-Jan-14 4:16 
GeneralRe: APOD: Stella nova Pin
Argonia24-Jan-14 4:38
professionalArgonia24-Jan-14 4:38 
GeneralRe: APOD: Stella nova Pin
Dave Kreskowiak24-Jan-14 4:51
mveDave Kreskowiak24-Jan-14 4:51 
GeneralRe: APOD: Stella nova Pin
Mark Parity24-Jan-14 5:23
Mark Parity24-Jan-14 5:23 
GeneralRe: APOD: Stella nova Pin
Dan Neely24-Jan-14 10:49
Dan Neely24-Jan-14 10:49 
GeneralRe: APOD: Stella nova Pin
Mike Hankey24-Jan-14 4:16
mveMike Hankey24-Jan-14 4:16 
GeneralRe: APOD: Stella nova Pin
Bergholt Stuttley Johnson24-Jan-14 4:32
professionalBergholt Stuttley Johnson24-Jan-14 4:32 
GeneralRe: APOD: Stella nova Pin
glennPattonWork324-Jan-14 5:24
professionalglennPattonWork324-Jan-14 5:24 
GeneralRe: APOD: Stella nova Pin
Rage24-Jan-14 5:28
professionalRage24-Jan-14 5:28 
GeneralRe: APOD: Stella nova Pin
Ernst Iliov Stavro Blofeld24-Jan-14 5:53
Ernst Iliov Stavro Blofeld24-Jan-14 5:53 
GeneralRe: APOD: Stella nova Pin
Gregory Gadow24-Jan-14 6:27
Gregory Gadow24-Jan-14 6:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.