Cody

Solution 2015921

Submitted on 12 Nov 2019 at 14:11
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
n = 10; flagSame = isequal(makeRandomOrdering(n), makeRandomOrdering(n)); flagAllUsed = isequal([1:n],sort(makeRandomOrdering(n))); assert(~flagSame & flagAllUsed)

vec = 0.9730 -0.6210 0.0708 1.5967 2.5068 1.1622 -1.5973 -0.3514 2.7458 0.0673 -0.3105 -0.2547 0.2957 0.1623 -0.6548 0.6268 -0.2497 0.2153 -0.6454 0.1350 -0.4433 1.0550 -0.3918 -0.8524 -0.9564 0.3313 -0.0118 -0.3948 0.4326 -0.8800 -1.0360 -0.9723 2.0618 0.6382 1.0359 0.3359 -0.2161 -0.8365 1.3961 0.8939 -1.2806 -0.9921 -2.0832 -0.3457 0.5236 0.1016 0.6291 -0.9369 -1.8965 -1.9303 1.5616 -0.1009 -1.0523 0.8085 2.1963 -0.3986 -1.0189 1.1716 0.9202 -0.0013 0.6004 -0.0194 0.7969 -0.2643 0.7528 -0.7788 0.6115 -3.4018 1.1796 -1.3830 -0.7528 -0.0194 0.1267 0.4228 0.7132 -0.9606 -0.6918 -0.5339 -2.0019 -0.6606 -0.2394 -0.3706 0.0536 -1.3216 0.4516 -0.0417 0.8275 -0.2790 0.9441 0.1506 -1.2024 0.5556 -0.0620 2.0406 0.6004 -0.3313 1.2032 0.0307 0.8173 -0.4787 vec = -1.7340 -0.7782 0.1502 -0.9865 0.7496 0.3561 0.8994 -0.7238 -1.2203 -0.1665 -0.3856 0.0783 1.4485 -0.9401 -0.1923 1.2942 -1.3640 1.9175 0.1407 -0.2699 1.6277 1.2637 0.0923 -1.0958 -1.7879 0.0950 -1.7533 1.6303 1.8108 0.8330 -1.1885 -1.3347 0.6390 0.4416 1.0483 0.3543 -0.6463 -0.0019 -0.1955 1.1282 -1.2165 -0.0646 0.9091 0.8182 0.0803 -1.9226 -0.7352 -2.4866 0.9078 0.8349 -0.6626 1.6380 1.6960 1.5388 0.1223 0.0308 0.3219 0.0449 0.9076 -1.6032 -1.0535 -0.3034 0.4974 0.5541 -1.1042 -0.5489 -0.5441 -2.6595 0.4845 0.7370 0.2837 0.6766 0.1684 -1.5490 -1.3188 -0.2224 -0.8274 -0.1203 0.4101 -1.2092 -0.2930 0.7638 -1.2654 -0.3622 -1.1855 -0.3377 1.6625 -0.1903 -0.0578 -0.6070 0.4748 -0.4274 -0.4842 2.6762 0.2421 -0.7602 -0.4903 -1.3445 -0.0933 -2.4593 vec = 0.0058 -0.1830 -0.3094 1.3194 -0.3478 -0.0334 -0.0034 0.3832 -0.1867 -0.5589 1.8511 1.3344 1.1860 -1.2317 1.9419 -0.8645 0.8465 1.8512 -1.0493 2.6501 -1.0771 1.0707 -0.0472 -0.6822 -0.0673 -0.5881 0.8690 1.4528 -1.4203 -0.4233 -0.5771 -2.3157 -0.1864 0.1966 1.2828 1.6038 0.2483 -0.3095 -0.5312 0.4190 -0.2104 0.5294 1.2980 1.7354 -1.1241 0.2794 -0.0190 -0.9521 -0.6224 -0.9953 0.0534 0.9637 -0.2509 2.2502 1.0922 0.7642 1.2408 -0.9755 -0.6800 0.0978 0.3502 -0.9469 0.3595 0.0764 -0.0360 0.1671 -1.9226 0.3146 0.6107 0.1720 -0.1758 1.4494 -1.7714 1.5982 -0.2043 0.9726 -2.1909 -0.7286 -0.1075 1.1396 -0.5673 0.1255 -2.9099 -0.5610 0.7664 -0.1031 0.6409 -0.5186 -0.6498 -2.2104 -0.6394 0.2852 -0.1174 -1.1035 0.6393 0.7191 -1.3282 -0.9569 0.2678 -1.2842

Assertion failed.