Click here to Skip to main content
15,899,937 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: The joys of donating to Wikipedia. Pin
Jeremy Falcon30-Nov-17 17:25
professionalJeremy Falcon30-Nov-17 17:25 
GeneralRe: The joys of donating to Wikipedia. Pin
MarkTJohnson1-Dec-17 3:24
professionalMarkTJohnson1-Dec-17 3:24 
GeneralRe: The joys of donating to Wikipedia. Pin
theoldfool30-Nov-17 15:33
professionaltheoldfool30-Nov-17 15:33 
GeneralRe: The joys of donating to Wikipedia. Pin
Jeremy Falcon30-Nov-17 17:26
professionalJeremy Falcon30-Nov-17 17:26 
GeneralRe: The joys of donating to Wikipedia. Pin
Richard MacCutchan30-Nov-17 21:25
mveRichard MacCutchan30-Nov-17 21:25 
GeneralRe: The joys of donating to Wikipedia. Pin
CPallini30-Nov-17 22:03
mveCPallini30-Nov-17 22:03 
GeneralRe: The joys of donating to Wikipedia. Pin
dandy721-Dec-17 11:27
dandy721-Dec-17 11:27 
GeneralCoding Challenge - Morris Sequence Pin
Dave Kreskowiak30-Nov-17 10:12
mveDave Kreskowiak30-Nov-17 10:12 
It's also known as the Conway Sequence, Look and Say Sequence, and probably some others. It's rather simple. Start with a 1 and then describe what you see for the next iteration. So, starting at 1, the next number is one 1 (11), the next is two 1 (21), then one 2 one 1 (1211), and so on:
1
11
21
1211
111221
312211

The question to answer is what's the length in digits of the 100th number in the chain, starting with "1" as the first? The first six numbers have been given above. You could write it out by hand, but I wouldn't recommend it, and as developers, that's not what we do.

The seemingly simple challenge is to write the code to come up with the answer. The only hint you get is the 50th number is 894,810 digits long.

Oh, and don't bother Googling for code. Those examples will only get you so far and definitely won't get you to the answer.
System.ItDidntWorkException: Something didn't work as expected.

C# - How to debug code[^].
Seriously, go read these articles.

Dave Kreskowiak

JokeRe: Coding Challenge - Morris Sequence Pin
Richard Deeming30-Nov-17 10:17
mveRichard Deeming30-Nov-17 10:17 
GeneralRe: Coding Challenge - Morris Sequence Pin
Dave Kreskowiak30-Nov-17 10:20
mveDave Kreskowiak30-Nov-17 10:20 
GeneralRe: Coding Challenge - Morris Sequence Pin
PIEBALDconsult30-Nov-17 10:33
mvePIEBALDconsult30-Nov-17 10:33 
GeneralRe: Coding Challenge - Morris Sequence Pin
Dave Kreskowiak30-Nov-17 10:39
mveDave Kreskowiak30-Nov-17 10:39 
GeneralRe: Coding Challenge - Morris Sequence Pin
Kenneth Haugland30-Nov-17 13:07
mvaKenneth Haugland30-Nov-17 13:07 
GeneralRe: Coding Challenge - Morris Sequence Pin
PIEBALDconsult30-Nov-17 13:20
mvePIEBALDconsult30-Nov-17 13:20 
GeneralRe: Coding Challenge - Morris Sequence Pin
Kenneth Haugland30-Nov-17 13:33
mvaKenneth Haugland30-Nov-17 13:33 
GeneralRe: Coding Challenge - Morris Sequence Pin
Dave Kreskowiak30-Nov-17 13:36
mveDave Kreskowiak30-Nov-17 13:36 
GeneralRe: Coding Challenge - Morris Sequence Pin
Kenneth Haugland30-Nov-17 17:04
mvaKenneth Haugland30-Nov-17 17:04 
JokeRe: Coding Challenge - Morris Sequence Pin
User 274316230-Nov-17 19:58
User 274316230-Nov-17 19:58 
GeneralRe: Coding Challenge - Morris Sequence Pin
Kenneth Haugland30-Nov-17 20:33
mvaKenneth Haugland30-Nov-17 20:33 
GeneralRe: Coding Challenge - Morris Sequence Pin
Dave Kreskowiak1-Dec-17 2:25
mveDave Kreskowiak1-Dec-17 2:25 
GeneralRe: Coding Challenge - Morris Sequence Pin
PeejayAdams30-Nov-17 23:58
PeejayAdams30-Nov-17 23:58 
GeneralRe: Coding Challenge - Morris Sequence Pin
Sascha Lefèvre1-Dec-17 0:37
professionalSascha Lefèvre1-Dec-17 0:37 
GeneralRe: Coding Challenge - Morris Sequence Pin
Kenneth Haugland1-Dec-17 0:50
mvaKenneth Haugland1-Dec-17 0:50 
GeneralRe: Coding Challenge - Morris Sequence Pin
Kenneth Haugland1-Dec-17 0:54
mvaKenneth Haugland1-Dec-17 0:54 
GeneralRe: Coding Challenge - Morris Sequence Pin
Dave Kreskowiak1-Dec-17 2:30
mveDave Kreskowiak1-Dec-17 2:30 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   479 votes