@@bmtran :D .....
this solution kinda fails on this test case ... %%
hm = [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 1 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0];
Found out when I used your code for the best poker hand problem ... Cheers.
Project Euler: Problem 9, Pythagorean numbers
297 Solvers
55 Solvers
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
141 Solvers
728 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3923 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!