Click here to Skip to main content
15,920,673 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: Saturday programming challenge Pin
PIEBALDconsult16-Nov-14 16:37
mvePIEBALDconsult16-Nov-14 16:37 
GeneralRe: Saturday programming challenge Pin
Jörgen Andersson16-Nov-14 20:29
professionalJörgen Andersson16-Nov-14 20:29 
GeneralRe: Saturday programming challenge Pin
PIEBALDconsult17-Nov-14 4:05
mvePIEBALDconsult17-Nov-14 4:05 
GeneralRe: Saturday programming challenge Pin
PIEBALDconsult17-Nov-14 13:28
mvePIEBALDconsult17-Nov-14 13:28 
GeneralRe: Saturday programming challenge Pin
PIEBALDconsult16-Nov-14 13:57
mvePIEBALDconsult16-Nov-14 13:57 
GeneralRe: Saturday programming challenge Pin
Jörgen Andersson16-Nov-14 20:20
professionalJörgen Andersson16-Nov-14 20:20 
GeneralRe: Saturday programming challenge Pin
Michael Sisco17-Nov-14 7:14
Michael Sisco17-Nov-14 7:14 
GeneralRe: Saturday programming challenge Pin
Jörgen Andersson17-Nov-14 8:59
professionalJörgen Andersson17-Nov-14 8:59 
Michael Sisco wrote:
Sorry if I sound like a killjoy.

No probs at all, your comments are valid.
The origin of the thought experiment is from my job where we are working a lot with human hierarchies. They are not changing very much, nor are they necessarily especially balanced.
But since I'm doing this a quite a lot I've "forgotten" about all the other uses.
And you're quite right about that it's impossible to find the best method since different methods are better in different circumstances.
As a general rule I can say that lists are faster for shallow trees and dictionaries are faster for deeper trees.
But that's the methods I've tested, it would be fun to see if someone could come up with something different.
Wrong is evil and must be defeated. - Jeff Ello
Any organization is like a tree full of monkeys. The monkeys on top look down and see a tree full of smiling faces. The monkeys on the bottom look up and see nothing but assholes.

JokeNew Tattoo PinPopular
Mike Hankey15-Nov-14 10:25
mveMike Hankey15-Nov-14 10:25 
GeneralRe: New Tattoo Pin
Oso Oluwafemi Ebenezer17-Nov-14 3:55
Oso Oluwafemi Ebenezer17-Nov-14 3:55 
GeneralRe: New Tattoo Pin
PhilLenoir17-Nov-14 4:33
professionalPhilLenoir17-Nov-14 4:33 
GeneralRe: New Tattoo Pin
Oso Oluwafemi Ebenezer17-Nov-14 5:09
Oso Oluwafemi Ebenezer17-Nov-14 5:09 
GeneralRe: New Tattoo Pin
Gary R. Wheeler21-Nov-14 12:56
Gary R. Wheeler21-Nov-14 12:56 
Generalfrom flippin' at the Golden Arches to Twitch super-star and Red-Bull-Boy Pin
BillWoodruff15-Nov-14 7:27
professionalBillWoodruff15-Nov-14 7:27 
GeneralRe: from flippin' at the Golden Arches to Twitch super-star and Red-Bull-Boy Pin
PIEBALDconsult15-Nov-14 8:09
mvePIEBALDconsult15-Nov-14 8:09 
GeneralRe: from flippin' at the Golden Arches to Twitch super-star and Red-Bull-Boy Pin
newton.saber15-Nov-14 9:32
newton.saber15-Nov-14 9:32 
GeneralRe: from flippin' at the Golden Arches to Twitch super-star and Red-Bull-Boy Pin
BillWoodruff15-Nov-14 10:19
professionalBillWoodruff15-Nov-14 10:19 
GeneralRe: from flippin' at the Golden Arches to Twitch super-star and Red-Bull-Boy Pin
newton.saber16-Nov-14 4:22
newton.saber16-Nov-14 4:22 
GeneralRe: from flippin' at the Golden Arches to Twitch super-star and Red-Bull-Boy Pin
Mark_Wallace15-Nov-14 9:14
Mark_Wallace15-Nov-14 9:14 
GeneralRe: from flippin' at the Golden Arches to Twitch super-star and Red-Bull-Boy Pin
newton.saber15-Nov-14 9:34
newton.saber15-Nov-14 9:34 
GeneralRe: from flippin' at the Golden Arches to Twitch super-star and Red-Bull-Boy Pin
BillWoodruff15-Nov-14 10:08
professionalBillWoodruff15-Nov-14 10:08 
GeneralRe: from flippin' at the Golden Arches to Twitch super-star and Red-Bull-Boy Pin
newton.saber16-Nov-14 4:19
newton.saber16-Nov-14 4:19 
GeneralAPOD Pin
R. Giskard Reventlov15-Nov-14 3:55
R. Giskard Reventlov15-Nov-14 3:55 
GeneralRe: APOD Pin
glennPattonWork315-Nov-14 4:31
professionalglennPattonWork315-Nov-14 4:31 
GeneralOops !, now feel like a heel!! Pin
glennPattonWork315-Nov-14 3:22
professionalglennPattonWork315-Nov-14 3:22 

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.