@@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.
Calculate the area of a triangle between three points
917 Solvers
Given a matrix, return the last eigen value
176 Solvers
3200 Solvers
Reverse the elements of an array
691 Solvers
165 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!