Suggestion: use a pangram for a test to make sure all letters are scored correctly. There are plenty in there: http://rinkworks.com/words /pangrams.shtml including the famous 'the quick brown fox jumps over a lazy dog'.
Thanks. I added two cases with that pangram repeated, one in one cell string and the other broken into a cell array, as in the other test cases. It's possible, however unlikely, to score the pangram test case right with the wrong letter scores applied, since we're just testing the cumulative score. Having the second case as an array of words that must add to the same score makes the likelihood of wrong letter points sets passing the test extremely unlikely. By any means, figuring out all the possible mis-applied letter point sets that produce the same final score sounds like another Cody problem, along the lines of James's problems.
Thanks....I think? :-)
Of course. Your problems are often quite original (especially when your daughter hacks into your account). I just wish that you wouldn't use such large numbers in some (practically all) of your problems. There are a few that I've been able to solve, except for the large-number case or two that prevents the solution from passing all cases. Do you have any suggestions for resources on large-number calculations?
I'm glad you enjoy my problems. If there are large numbers in the test suite, it means there's a simple formula you can use to solve it, rather than a brute force approach. (My daughter just hacked into my account again to ask for help...go ahead and try my newest problem!)
Thanks for this "revival" of the good old scrabble problem! This opened my exes and show me how much I learned since I play here on cody. My first answer of the original (first) scrabble has score for quite 200 Points!! yesterday I rewrote my solution in only one code line. ;-)
Thanks for the feedback. I've learned a lot playing on Cody, too. It's quite an engaging work/play online system.
Find the peak 3n+1 sequence value
Whether the input is vector?
Spot the outlier
Determine if input is a Narcissistic number
find the maximum element of the matrix
Scrabble Scores - 8
Scrabble Scores - 11
Equation Times (of the day)
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office