Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • I believe it should be 400 of 1s - 4s, currently it adds up to 2360 characters. Commented Apr 23, 2015 at 11:12
  • well, 100 0s, and (20,000 - (100 * 4)) of the rest in total - I assume magic numbers won't appear in the real code either Commented Apr 23, 2015 at 11:44
  • This is almost the OPs original suggestion - it just simplifies the problem by treating a 'CCGT' as a single character until it gets to the end. You could as easily generate the string including 100 'X' characters and then substitute afterwards, although I think shuffling is the easiest way to get 100. Commented Apr 23, 2015 at 12:14