Click here to Skip to main content
15,920,602 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: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Kornfeld Eliyahu Peter24-Jan-17 23:18
professionalKornfeld Eliyahu Peter24-Jan-17 23:18 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Member 1286378724-Jan-17 23:16
Member 1286378724-Jan-17 23:16 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Kornfeld Eliyahu Peter24-Jan-17 23:19
professionalKornfeld Eliyahu Peter24-Jan-17 23:19 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Member 1286378725-Jan-17 4:49
Member 1286378725-Jan-17 4:49 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Chris C-B25-Jan-17 0:27
Chris C-B25-Jan-17 0:27 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Kornfeld Eliyahu Peter25-Jan-17 0:36
professionalKornfeld Eliyahu Peter25-Jan-17 0:36 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
Chris C-B25-Jan-17 1:44
Chris C-B25-Jan-17 1:44 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
kalberts25-Jan-17 0:31
kalberts25-Jan-17 0:31 
Then go on to the next one:

To enter our office area, you must tap the correct four digit code on the keypad by the door.
For some strange reason, the checking is implemented as pipeline: The last four digits typed must be the correct ones. So, if the correct code is 2345 and you start typing 1234 the door won't open. Then you add the 5, and the door opens.

In other words: You have tested two 4-digit keystrokes by 5 keypresses.

Problem 1: What is the minimal number of keypresses required to go through all 10000 possible coded?
Problem 2: Describe the algorithm for generating the order of keypresses
Problem 3: Prove that this is the minimal number of keypresses
Problem 4: The average number of codes you have to try to find the right one is 5000. How many keypresses have you made before having tried 5000 codes? Does it depend on the order of these keypresses?

(Note: I do not have the answers)
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
gervacleto25-Jan-17 1:40
professionalgervacleto25-Jan-17 1:40 
GeneralRe: TWCP OTD (The Who Cares Puzzle Of The Day) - 24th of January, 2017 Pin
RussTheMan25-Jan-17 3:51
RussTheMan25-Jan-17 3:51 
GeneralStackOverflow down? Pin
Afzaal Ahmad Zeeshan24-Jan-17 6:51
professionalAfzaal Ahmad Zeeshan24-Jan-17 6:51 
GeneralRe: StackOverflow down? Pin
Dave Kreskowiak24-Jan-17 6:54
mveDave Kreskowiak24-Jan-17 6:54 
GeneralRe: StackOverflow down? Pin
Afzaal Ahmad Zeeshan24-Jan-17 7:05
professionalAfzaal Ahmad Zeeshan24-Jan-17 7:05 
GeneralRe: StackOverflow down? Pin
Dave Kreskowiak24-Jan-17 7:10
mveDave Kreskowiak24-Jan-17 7:10 
GeneralRe: StackOverflow down? Pin
Pualee24-Jan-17 7:23
Pualee24-Jan-17 7:23 
GeneralRe: StackOverflow down? Pin
Pualee24-Jan-17 7:25
Pualee24-Jan-17 7:25 
GeneralRe: StackOverflow down? Pin
Jeremy Falcon24-Jan-17 6:55
professionalJeremy Falcon24-Jan-17 6:55 
GeneralRe: StackOverflow down? Pin
Roland M Smith24-Jan-17 7:32
Roland M Smith24-Jan-17 7:32 
GeneralRe: StackOverflow down? Pin
Mark_Wallace24-Jan-17 7:39
Mark_Wallace24-Jan-17 7:39 
GeneralRe: StackOverflow down? Pin
Ron Anders24-Jan-17 7:46
Ron Anders24-Jan-17 7:46 
GeneralRe: StackOverflow down? Pin
Mark_Wallace24-Jan-17 8:16
Mark_Wallace24-Jan-17 8:16 
GeneralRe: StackOverflow down? Pin
Nish Nishant24-Jan-17 12:11
sitebuilderNish Nishant24-Jan-17 12:11 
GeneralTrying to get my account back... Pin
Sander Rossel24-Jan-17 6:01
professionalSander Rossel24-Jan-17 6:01 
GeneralRe: Trying to get my account back... Pin
#realJSOP24-Jan-17 6:18
professional#realJSOP24-Jan-17 6:18 
GeneralRe: Trying to get my account back... Pin
Sander Rossel24-Jan-17 7:57
professionalSander Rossel24-Jan-17 7:57 

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.