Click here to Skip to main content
15,909,645 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: yay i published my b-tree and binary tree classes finally Pin
Jörgen Andersson13-Sep-19 2:54
professionalJörgen Andersson13-Sep-19 2:54 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
honey the codewitch13-Sep-19 2:59
mvahoney the codewitch13-Sep-19 2:59 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
Jörgen Andersson13-Sep-19 3:04
professionalJörgen Andersson13-Sep-19 3:04 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
honey the codewitch13-Sep-19 3:08
mvahoney the codewitch13-Sep-19 3:08 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
Jörgen Andersson13-Sep-19 3:09
professionalJörgen Andersson13-Sep-19 3:09 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
honey the codewitch13-Sep-19 3:15
mvahoney the codewitch13-Sep-19 3:15 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
Jörgen Andersson13-Sep-19 3:28
professionalJörgen Andersson13-Sep-19 3:28 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
honey the codewitch13-Sep-19 3:39
mvahoney the codewitch13-Sep-19 3:39 
how it looks to me, and I've looked, because i was thinking of making my own - the stock one can't hold nulls as keys! - is like this:

It gets a hashcode, uses the hashcode to search its buckets, uses the bucket, and then does a comparison on equality for every item in the bucket.

so what you want to avoid is more than one item in one bucket, which happens when hashes collide.

or at least that's what the code looks like to me.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: yay i published my b-tree and binary tree classes finally Pin
Jörgen Andersson13-Sep-19 3:43
professionalJörgen Andersson13-Sep-19 3:43 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
honey the codewitch13-Sep-19 3:52
mvahoney the codewitch13-Sep-19 3:52 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
CodeWraith13-Sep-19 2:56
CodeWraith13-Sep-19 2:56 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
honey the codewitch13-Sep-19 3:01
mvahoney the codewitch13-Sep-19 3:01 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
CodeWraith13-Sep-19 3:09
CodeWraith13-Sep-19 3:09 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
honey the codewitch13-Sep-19 3:13
mvahoney the codewitch13-Sep-19 3:13 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
CodeWraith13-Sep-19 3:44
CodeWraith13-Sep-19 3:44 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
honey the codewitch13-Sep-19 3:54
mvahoney the codewitch13-Sep-19 3:54 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
Nand3213-Sep-19 4:17
Nand3213-Sep-19 4:17 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
Nand3213-Sep-19 4:15
Nand3213-Sep-19 4:15 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
honey the codewitch13-Sep-19 8:29
mvahoney the codewitch13-Sep-19 8:29 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
Nand3213-Sep-19 23:41
Nand3213-Sep-19 23:41 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
User 483504713-Sep-19 6:03
User 483504713-Sep-19 6:03 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
honey the codewitch13-Sep-19 7:03
mvahoney the codewitch13-Sep-19 7:03 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
User 483504713-Sep-19 7:09
User 483504713-Sep-19 7:09 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
honey the codewitch13-Sep-19 7:11
mvahoney the codewitch13-Sep-19 7:11 
GeneralRe: yay i published my b-tree and binary tree classes finally Pin
User 483504713-Sep-19 7:25
User 483504713-Sep-19 7:25 

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.