Cody

Solution 1971439

Submitted on 11 Oct 2019
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
x = [1 -6 11 -6]; y_correct = [1 2 3]'; assert(isequal(solver(x),y_correct))

n = Columns 1 through 15 6110601 5930200 5753385 5580120 5410369 5244096 5081265 4921840 4765785 4613064 4463641 4317480 4174545 4034800 3898209 Columns 16 through 30 3764736 3634345 3507000 3382665 3261304 3142881 3027360 2914705 2804880 2697849 2593576 2492025 2393160 2296945 2203344 Columns 31 through 45 2112321 2023840 1937865 1854360 1773289 1694616 1618305 1544320 1472625 1403184 1335961 1270920 1208025 1147240 1088529 Columns 46 through 60 1031856 977185 924480 873705 824824 777801 732600 689185 647520 607569 569296 532665 497640 464185 432264 Columns 61 through 75 401841 372880 345345 319200 294409 270936 248745 227800 208065 189504 172081 155760 140505 126280 113049 Columns 76 through 90 100776 89425 78960 69345 60544 52521 45240 38665 32760 27489 22816 18705 15120 12025 9384 Columns 91 through 105 7161 5320 3825 2640 1729 1056 585 280 105 24 1 0 -15 -80 -231 Columns 106 through 120 -504 -935 -1560 -2415 -3536 -4959 -6720 -8855 -11400 -14391 -17864 -21855 -26400 -31535 -37296 Columns 121 through 135 -43719 -50840 -58695 -67320 -76751 -87024 -98175 -110240 -123255 -137256 -152279 -168360 -185535 -203840 -223311 Columns 136 through 150 -243984 -265895 -289080 -313575 -339416 -366639 -395280 -425375 -456960 -490071 -524744 -561015 -598920 -638495 -679776 Columns 151 through 165 -722799 -767600 -814215 -862680 -913031 -965304 -1019535 -1075760 -1134015 -1194336 -1256759 -1321320 -1388055 -1457000 -1528191 Columns 166 through 180 -1601664 -1677455 -1755600 -1836135 -1919096 -2004519 -2092440 -2182895 -2275920 -2371551 -2469824 -2570775 -2674440 -2780855 -2890056 Columns 181 through 195 -3002079 -3116960 -3234735 -3355440 -3479111 -3605784 -3735495 -3868280 -4004175 -4143216 -4285439 -4430880 -4579575 -4731560 -4886871 Columns 196 through 201 -5045544 -5207615 -5373120 -5542095 -5714576 -5890599

Output argument "y" (and maybe others) not assigned during call to "solver". Error in Test1 (line 3) assert(isequal(solver(x),y_correct))

2   Fail
x = [1 0 0 0 -1]; y_correct = [ -1, 1, i, -i]'; assert(isequal(solver(x),y_correct))

n = Columns 1 through 15 -99999999 -96059600 -92236815 -88529280 -84934655 -81450624 -78074895 -74805200 -71639295 -68574960 -65609999 -62742240 -59969535 -57289760 -54700815 Columns 16 through 30 -52200624 -49787135 -47458320 -45212175 -43046720 -40959999 -38950080 -37015055 -35153040 -33362175 -31640624 -29986575 -28398240 -26873855 -25411680 Columns 31 through 45 -24009999 -22667120 -21381375 -20151120 -18974735 -17850624 -16777215 -15752960 -14776335 -13845840 -12959999 -12117360 -11316495 -10556000 -9834495 Columns 46 through 60 -9150624 -8503055 -7890480 -7311615 -6765200 -6249999 -5764800 -5308415 -4879680 -4477455 -4100624 -3748095 -3418800 -3111695 -2825760 Columns 61 through 75 -2559999 -2313440 -2085135 -1874160 -1679615 -1500624 -1336335 -1185920 -1048575 -923520 -809999 -707280 -614655 -531440 -456975 Columns 76 through 90 -390624 -331775 -279840 -234255 -194480 -159999 -130320 -104975 -83520 -65535 -50624 -38415 -28560 -20735 -14640 Columns 91 through 105 -9999 -6560 -4095 -2400 -1295 -624 -255 -80 -15 0 1 0 -15 -80 -255 Columns 106 through 120 -624 -1295 -2400 -4095 -6560 -9999 -14640 -20735 -28560 -38415 -50624 -65535 -83520 -104975 -130320 Columns 121 through 135 -159999 -194480 -234255 -279840 -331775 -390624 -456975 -531440 -614655 -707280 -809999 -923520 -1048575 -1185920 -1336335 Columns 136 through 150 -1500624 -1679615 -1874160 -2085135 -2313440 -2559999 -2825760 -3111695 -3418800 -3748095 -4100624 -4477455 -4879680 -5308415 -5764800 Columns 151 through 165 -6249999 -6765200 -7311615 -7890480 -8503055 -9150624 -9834495 -10556000 -11316495 -12117360 -12959999 -13845840 -14776335 -15752960 -16777215 Columns 166 through 180 -17850624 -18974735 -20151120 -21381375 -22667120 -24009999 -25411680 -26873855 -28398240 -29986575 -31640624 -33362175 -35153040 -37015055 -38950080 Columns 181 through 195 -40959999 -43046720 -45212175 -47458320 -49787135 -52200624 -54700815 -57289760 -59969535 -62742240 -65609999 -68574960 -71639295 -74805200 -78074895 Columns 196 through 201 -81450624 -84934655 -88529280 -92236815 -96059600 -99999999

Output argument "y" (and maybe others) not assigned during call to "solver". Error in Test2 (line 3) assert(isequal(solver(x),y_correct))

3   Fail
x = [1 0 0]; y_correct = [0 0]'; assert(isequal(solver(x),y_correct))

n = Columns 1 through 30 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 31 through 60 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 61 through 90 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 91 through 120 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 121 through 150 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 151 through 180 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Columns 181 through 201 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Output argument "y" (and maybe others) not assigned during call to "solver". Error in Test3 (line 3) assert(isequal(solver(x),y_correct))