I don't understand the grouping task vector coding.
In test case 1, how can 4 be done before 3? Two rows of order_correct have 4 before 3.
If I am interpreting correctly, tests 1, 3, and 5 might be incorrectly defined. In test 1, job4 depends on job3 (dependencies(4,3)==1) so the solution [4 3 5 2 1] would not be correct. Similarly, in test 3, job1 depends on job2 so [4 3 1 5 2] would not seem correct, etc. Am I misinterpreting?
Find the sum of all the numbers of the input vector
32622 Solvers
28551 Solvers
Find the numeric mean of the prime numbers in a matrix.
6823 Solvers
Find all elements less than 0 or greater than 10 and replace them with NaN
13136 Solvers
Remove any row in which a NaN appears
6866 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!