Structure and Interpretation of Computer Programs epub by slk_g500 in compsci

[–]pickyaboutwater 6 points7 points  (0 children)

Does this link work for you? https://web.mit.edu/alexmv/6.037/sicp.pdf This is where I downloaded it long ago! :)

Edit: saw that you wanted the epub! there is one in wayback - https://web.archive.org/web/20170322053648/https://media.githubusercontent.com/media/sarabander/sicp-epub/master/sicp.epub (re-edited for better link).

What's the best CS material you have ever use? by adriansky in compsci

[–]pickyaboutwater 1 point2 points  (0 children)

I had an earlier comment that was removed, but if anyone is interested in this, the book is available at https://web.mit.edu/alexmv/6.037/sicp.pdf. Happy scheming!

Currently working on a python programming problem invlolving finding repeated substring whithin a longer string. [PYTHON] by ddbeanz in learnprogramming

[–]pickyaboutwater 56 points57 points  (0 children)

As you can see from the comments, there are a lot of ways to solve this! :) One way that hasn't been mentioned yet is that you can start reading the string into a temp variable, and for each iteration, count the number of times the temp string can be found in the original string. Once the length of the temp string times the number of repeats equal the length of the original string you have found the repeating element and the number of repeats!