in test suite #4... NOTE: I'm calling rows top to bottom, (HIGH) ♠ - ♥ - ♦ - ♣ (LOW)
you have the choice between two straights:
#1) A♥ 2♠ 3♠ 4♦ 5♣
#2) 2♠ 3♠ 4♦ 5♣ 6♥
I was under the impression that A high always takes precedence
and since the A is tied with the 6, suite wise, I can't figure out why this second option would be the desirable solution
Is it because in this situation, Ace is low? Because if so, this hasn't been consistent throughout the Poker Series and now I'm just surprisedPikachu.jpg
Find the two-word state names
Project Euler: Problem 8, Find largest product in a large string of numbers
Project Euler: Problem 16, Sums of Digits of Powers of Two
What's Your BMI?
Max index of 3D array
Project Euler: Problem 6, Natural numbers, squares and sums.
Poker Series 11: selectBestHand
Given a window, how many subsets of a vector sum positive
Getting the row and column location from a matrix
Get ranking of a combination looking for speed.
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