I believe the example is a Straight instead?
Test 6 and 7 are the same (no actual problems, just saying).
I removed the extra (duplicate) test case that Albert mentioned.
How annoying of this one, is truly beyond my imagination...
@Bainhome, recently I read a discussion on Mathworks MATLAB Answers [https://www.mathworks.com/matlabcentral/answers/27340-what-do-you-think-of-cody-new-service-for-matlab-central]. According to the community member, Jan; "Cody players learn to use MATLAB inefficiently", hence, he would prefer the top ten Answers or FileExchange contributors to the top ten Cody contributors for a serious project. Clearly, problems such as Doug Hull's poker series and Grant's Scrabble series prove otherwise. So, even though, "all the sub-function were already solved in previous problem" as noted by you, bringing them together in an efficient manner might still be required. Infact, this is actually the case with the top scores. In summary, I think this particular problem is great for Cody players. :)
@J. S. Kowontan, I just read those information about the Jan's opinions on code MATLAB more effciently. and for this besthand problem, I think I missed something critical, THX for the heads up, later I will improved my lazy and horrible code. However, I only partially agree with Jan. size is no doubt a controverial topic, but people's learning skill, basic programming concept can be built either in cody's way or answer's way, or any other way, top ten is bit of drama queen stuff, but when we talked about who is the most suitable programme project charger, I can guarantee those guys like alfonso, Tim, you, yurenchu, Liupeng, LY Cao and my friend binbin are both qualified. as matter of fact and I know that for sure: lots of them already have their own project, and they seem doing just fine. My opinion is: people's mind can be shaped by "real world", envolved with demand.
it won't work properly if hm=[0 1 0 1 0 0 0 0 0 0 0 0 0; 0 1 0 1 0 0 0 0 0 0 0 0 0; 0 1 0 1 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 0 0 0 0 0 0 0]; it says that it is a Three of a kind, but it is a Full House actually.
Thank you, @Yan_Orwat; I have repaired the solution.
Tic Tac Toe FTW
Triangle Numbers Below N
Back to basics 13 - Input variables
Get ranking of a combination
Project Euler: Problem 4, Palindromic numbers
Implement simple rotation cypher
Poker Series 09: IsHighCard
Siblings of a graphics object
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