Click here to Skip to main content
15,916,188 members
Home / Discussions / C#
   

C#

 
QuestionBest method for putting a wait Pin
Subin Mavunkal2-Feb-12 21:08
Subin Mavunkal2-Feb-12 21:08 
AnswerRe: Best method for putting a wait Pin
OriginalGriff2-Feb-12 21:18
mveOriginalGriff2-Feb-12 21:18 
GeneralRe: Best method for putting a wait Pin
Subin Mavunkal2-Feb-12 21:26
Subin Mavunkal2-Feb-12 21:26 
AnswerRe: Best method for putting a wait Pin
OriginalGriff2-Feb-12 21:40
mveOriginalGriff2-Feb-12 21:40 
AnswerRe: Best method for putting a wait Pin
BobJanova3-Feb-12 4:48
BobJanova3-Feb-12 4:48 
AnswerRe: Best method for putting a wait Pin
Eddy Vluggen3-Feb-12 6:22
professionalEddy Vluggen3-Feb-12 6:22 
QuestionPlay DVD and cut a Video in WPF Pin
Alessio Elia2-Feb-12 9:46
Alessio Elia2-Feb-12 9:46 
AnswerRe: Play DVD and cut a Video in WPF Pin
Dean Oliver3-Feb-12 6:52
Dean Oliver3-Feb-12 6:52 
QuestionHow would you store this data (interview question) Pin
SledgeHammer012-Feb-12 8:28
SledgeHammer012-Feb-12 8:28 
AnswerRe: How would you store this data (interview question) Pin
Luc Pattyn2-Feb-12 8:30
sitebuilderLuc Pattyn2-Feb-12 8:30 
GeneralRe: How would you store this data (interview question) Pin
SledgeHammer012-Feb-12 8:32
SledgeHammer012-Feb-12 8:32 
AnswerRe: How would you store this data (interview question) Pin
Luc Pattyn2-Feb-12 8:42
sitebuilderLuc Pattyn2-Feb-12 8:42 
GeneralRe: How would you store this data (interview question) Pin
SledgeHammer012-Feb-12 9:07
SledgeHammer012-Feb-12 9:07 
AnswerRe: How would you store this data (interview question) Pin
Luc Pattyn2-Feb-12 9:30
sitebuilderLuc Pattyn2-Feb-12 9:30 
GeneralRe: How would you store this data (interview question) Pin
SledgeHammer012-Feb-12 9:45
SledgeHammer012-Feb-12 9:45 
AnswerRe: How would you store this data (interview question) Pin
Luc Pattyn2-Feb-12 10:01
sitebuilderLuc Pattyn2-Feb-12 10:01 
GeneralRe: How would you store this data (interview question) Pin
SledgeHammer012-Feb-12 10:08
SledgeHammer012-Feb-12 10:08 
GeneralRe: How would you store this data (interview question) Pin
SledgeHammer012-Feb-12 10:22
SledgeHammer012-Feb-12 10:22 
Again, nothing to do with license plates, just how you handle vast amounts of data (think Google or something along that scale).

With your solution, you are using the first 6 chars as the "prefix" / key and then "compressing" the last char... (36 plates into one entry).

So wouldn't you need the FULLY populated dictionary if say, every 36th plate was taken Wink | ;) .

So your storage requirement is 20GB between 2B plates and 78B plates Smile | :) . 2B in 20GB vs. 78B in 9GB with the bit array.

Sorry, hope I'm not getting you angry or anything Smile | :) , just this is how the interview went, so its a real world thing. They kept poking holes in everything haha...

But unless I misunderstood your algorithm, it does seem like you need the full 20GB as soon as you hit 2B plates (assuming 1 in every range of course)... if you had them in tightly packed groups, then your requirements wouldn't be as great.

I even told the interviewer once I started getting annoyed at his hole poking "Well, at that point I would probably change the license plate # selector algorithm to hand out #'s from a more tightly packed range". Lol.
AnswerRe: How would you store this data (interview question) Pin
Luc Pattyn2-Feb-12 10:33
sitebuilderLuc Pattyn2-Feb-12 10:33 
GeneralRe: How would you store this data (interview question) Pin
harold aptroot2-Feb-12 10:35
harold aptroot2-Feb-12 10:35 
AnswerRe: How would you store this data (interview question) Pin
Luc Pattyn2-Feb-12 10:51
sitebuilderLuc Pattyn2-Feb-12 10:51 
GeneralRe: How would you store this data (interview question) Pin
SledgeHammer012-Feb-12 11:45
SledgeHammer012-Feb-12 11:45 
GeneralRe: How would you store this data (interview question) Pin
SledgeHammer012-Feb-12 8:35
SledgeHammer012-Feb-12 8:35 
GeneralRe: How would you store this data (interview question) Pin
CCodeNewbie3-Feb-12 5:58
CCodeNewbie3-Feb-12 5:58 
QuestionRe: How would you store this data (interview question) Pin
Luc Pattyn3-Feb-12 6:01
sitebuilderLuc Pattyn3-Feb-12 6:01 

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.