Click here to Skip to main content
15,914,400 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: Coding Challenge - Morris Sequence Pin
Member 131943025-Dec-17 2:42
Member 131943025-Dec-17 2:42 
GeneralRe: Coding Challenge - Morris Sequence Pin
Dave Kreskowiak5-Dec-17 3:56
mveDave Kreskowiak5-Dec-17 3:56 
GeneralRe: Coding Challenge - Morris Sequence Pin
Dave Kreskowiak5-Dec-17 15:40
mveDave Kreskowiak5-Dec-17 15:40 
GeneralRe: Coding Challenge - Morris Sequence Pin
Member 131943026-Dec-17 3:13
Member 131943026-Dec-17 3:13 
GeneralRe: Coding Challenge - Morris Sequence Pin
Dave Kreskowiak6-Dec-17 4:57
mveDave Kreskowiak6-Dec-17 4:57 
GeneralRe: Coding Challenge - Morris Sequence Pin
Member 131943027-Dec-17 4:22
Member 131943027-Dec-17 4:22 
GeneralRe: Coding Challenge - Morris Sequence Pin
PIEBALDconsult2-Dec-17 12:38
mvePIEBALDconsult2-Dec-17 12:38 
GeneralRe: Coding Challenge - Morris Sequence Pin
Tony Riddiough3-Dec-17 10:57
Tony Riddiough3-Dec-17 10:57 
Since the only requirement was to determine the length, it is not necessary to store the full string. A simple 100 level recursion that, at each level, returns the next digit in sequence suffices - it takes a long time to run, but does not need huge amounts of space.
At each level above the first it is only necessary to store at most two digits - the digit of which you have just counted the repetitions, and the digit that broke the sequence. Each invocation at any level alternates between returning the count and returning the counted digit.
GeneralRe: Coding Challenge - Morris Sequence Pin
PIEBALDconsult3-Dec-17 12:32
mvePIEBALDconsult3-Dec-17 12:32 
GeneralRe: Coding Challenge - Morris Sequence Pin
Tony Riddiough4-Dec-17 14:36
Tony Riddiough4-Dec-17 14:36 
GeneralRe: Coding Challenge - ANSWER Pin
Dave Kreskowiak4-Dec-17 4:15
mveDave Kreskowiak4-Dec-17 4:15 
GeneralRe: Coding Challenge - ANSWER Pin
PeejayAdams5-Dec-17 22:48
PeejayAdams5-Dec-17 22:48 
GeneralRe: Coding Challenge - ANSWER Pin
Paulo_JCG12-Dec-17 4:59
professionalPaulo_JCG12-Dec-17 4:59 
GeneralRe: Coding Challenge - ANSWER Pin
Dave Kreskowiak12-Dec-17 5:24
mveDave Kreskowiak12-Dec-17 5:24 
GeneralRe: Coding Challenge - Morris Sequence Pin
Paulo_JCG12-Dec-17 4:53
professionalPaulo_JCG12-Dec-17 4:53 
GeneralRe: Coding Challenge - Morris Sequence Pin
Member 1319430215-Mar-18 5:07
Member 1319430215-Mar-18 5:07 
GeneralRe: Coding Challenge - Morris Sequence Pin
Dave Kreskowiak15-Mar-18 5:53
mveDave Kreskowiak15-Mar-18 5:53 
GeneralRe: Coding Challenge - Morris Sequence Pin
Member 1319430215-Mar-18 6:23
Member 1319430215-Mar-18 6:23 
GeneralRe: Coding Challenge - Morris Sequence Pin
Member 1319430215-Mar-18 7:05
Member 1319430215-Mar-18 7:05 
GeneralRe: Coding Challenge - Morris Sequence Pin
Dave Kreskowiak15-Mar-18 7:34
mveDave Kreskowiak15-Mar-18 7:34 
GeneralRe: Coding Challenge - Morris Sequence Pin
Member 1319430215-Mar-18 8:24
Member 1319430215-Mar-18 8:24 
GeneralThey're getting better. Pin
Jörgen Andersson30-Nov-17 7:58
professionalJörgen Andersson30-Nov-17 7:58 
GeneralRe: They're getting better. Pin
CPallini30-Nov-17 8:14
mveCPallini30-Nov-17 8:14 
GeneralRe: They're getting better. Pin
MarkTJohnson30-Nov-17 8:32
professionalMarkTJohnson30-Nov-17 8:32 
GeneralRe: They're getting better. Pin
ZurdoDev30-Nov-17 8:47
professionalZurdoDev30-Nov-17 8:47 

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.