{"group":{"id":1,"name":"Community","lockable":false,"created_at":"2012-01-18T18:02:15.000Z","updated_at":"2026-04-06T14:01:22.000Z","description":"Problems submitted by members of the MATLAB Central community.","is_default":true,"created_by":161519,"badge_id":null,"featured":false,"trending":false,"solution_count_in_trending_period":0,"trending_last_calculated":"2026-04-06T00:00:00.000Z","image_id":null,"published":true,"community_created":false,"status_id":2,"is_default_group_for_player":false,"deleted_by":null,"deleted_at":null,"restored_by":null,"restored_at":null,"description_opc":null,"description_html":null,"published_at":null},"problems":[{"id":42783,"title":"Accessing values in a cell","description":"You are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors.  Your job is to give the bth value in the ath cell for the entire vectors a and b.\r\n\r\nFor example\r\nc{1}=2:6;\r\nc{2}=7:12;\r\nc{3}=13:18;\r\n\r\na=[1 2 3];\r\nb=[4 5 6];\r\n\r\nYou would want to output [5 11 18], which are the values of c{1}(4), c{2}(5) and c{3}(6).  You can assume that a and b are the same length, all of the values in c are numbers, and there will be no empty cells.  Good luck!","description_html":"\u003cp\u003eYou are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors.  Your job is to give the bth value in the ath cell for the entire vectors a and b.\u003c/p\u003e\u003cp\u003eFor example\r\nc{1}=2:6;\r\nc{2}=7:12;\r\nc{3}=13:18;\u003c/p\u003e\u003cp\u003ea=[1 2 3];\r\nb=[4 5 6];\u003c/p\u003e\u003cp\u003eYou would want to output [5 11 18], which are the values of c{1}(4), c{2}(5) and c{3}(6).  You can assume that a and b are the same length, all of the values in c are numbers, and there will be no empty cells.  Good luck!\u003c/p\u003e","function_template":"function y = break_cells_down(c,a,b)\r\n  y = x;\r\nend","test_suite":"%%\r\nformat compact\r\nc=cell(1,3);\r\nc{1}=2:6;c{2}=7:12;c{3}=13:18;\r\na=[1 2 3];b=[4 5 6];\r\ny_correct = [5 11 18];\r\nassert(isequal(break_cells_down(c,a,b),y_correct))\r\n%%\r\nclear c\r\nc=cell(1,5);\r\nc{1}=rand(1,10);\r\nc{2}=rand(1,10);\r\nc{3}=rand(1,10);\r\nc{4}=rand(1,10);\r\nc{5}=rand(1,10);\r\na=randperm(5)\r\nb=randperm(10);\r\nb=b(1:5)\r\ny_correct=[c{a(1)}(b(1)) c{a(2)}(b(2)) c{a(3)}(b(3)) c{a(4)}(b(4)) c{a(5)}(b(5))]\r\nassert(isequal(break_cells_down(c,a,b),y_correct))\r\n%%\r\nclear c\r\nc=cell(1,6);\r\nc{1}=1:6;\r\nc{2}=1:6;\r\nc{3}=1:6;\r\nc{4}=1:6;\r\nc{5}=1:6;\r\nc{6}=1:6;\r\na=1:6;\r\nb=randperm(6)\r\ny_correct=b;\r\nassert(isequal(break_cells_down(c,a,b),y_correct))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":1615,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":53,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-03-24T20:03:59.000Z","updated_at":"2026-02-27T13:57:43.000Z","published_at":"2016-03-24T20:03:59.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eYou are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors. Your job is to give the bth value in the ath cell for the entire vectors a and b.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example c{1}=2:6; c{2}=7:12; c{3}=13:18;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ea=[1 2 3]; b=[4 5 6];\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eYou would want to output [5 11 18], which are the values of c{1}(4), c{2}(5) and c{3}(6). You can assume that a and b are the same length, all of the values in c are numbers, and there will be no empty cells. Good luck!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2167,"title":"Negative Infinity","description":"Round the given array a towards negative infinity.","description_html":"\u003cp\u003eRound the given array a towards negative infinity.\u003c/p\u003e","function_template":"function y = rounding(a)\r\n  y = x;\r\nend","test_suite":"%%\r\na = [2.5 -1.7 5.6 8.4]\r\ny_correct = [ 2    -2     5     8];\r\nassert(isequal(rounding(a),y_correct))\r\n\r\na = [ -105.25 78.89 -0.1 0.9 7.2];\r\ny_correct = [  -106    78    -1     0     7];\r\nassert(isequal(rounding(a),y_correct))\r\n\r\na = [ 265.25 88.99 -0.1 0.9 7.2]\r\ny_correct = [  265    88    -1     0     7];\r\nassert(isequal(rounding(a),y_correct))\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":11900,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":342,"test_suite_updated_at":"2014-02-07T14:09:46.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2014-02-07T14:04:24.000Z","updated_at":"2026-02-23T15:30:22.000Z","published_at":"2014-02-07T14:04:24.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRound the given array a towards negative infinity.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44396,"title":"Find the last digit","description":"FInd the last digit of a given number. Given number is the input and output should be the last digit of that number.","description_html":"\u003cp\u003eFInd the last digit of a given number. Given number is the input and output should be the last digit of that number.\u003c/p\u003e","function_template":"function y = last_digit(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 100;\r\ny_correct = 0;\r\nassert(isequal(last_digit(x),y_correct))\r\n\r\n%%\r\nx = 103;\r\ny_correct = 3;\r\nassert(isequal(last_digit(x),y_correct))\r\n\r\n%%\r\nx = 55958;\r\ny_correct = 8;\r\nassert(isequal(last_digit(x),y_correct))\r\n\r\n%%\r\nx = 6165451646465;\r\ny_correct = 5;\r\nassert(isequal(last_digit(x),y_correct))\r\n\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":86789,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":114,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2017-11-01T18:50:19.000Z","updated_at":"2026-02-13T18:12:11.000Z","published_at":"2017-11-01T18:50:19.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFInd the last digit of a given number. Given number is the input and output should be the last digit of that number.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2168,"title":"Positive Infinity","description":"Round the array a towards positive infinity","description_html":"\u003cp\u003eRound the array a towards positive infinity\u003c/p\u003e","function_template":"function y = positiveround(a)\r\n  y = x;\r\nend","test_suite":"%%\r\na = [2.5 -1.7 5.6 8.4]\r\ny_correct = [ 3    -1     6     9];\r\nassert(isequal(positiveround(a),y_correct))\r\n\r\n a = [ -105.25 78.89 -0.1 0.9 7.2]\r\ny_correct = [ -105    79     0     1     8]\r\nassert(isequal(positiveround(a),y_correct))\r\n\r\na = [ 265.25 88.99 -0.1 0.9 7.2]\r\ny_correct = [ 266    89     0     1     8]\r\nassert(isequal(positiveround(a),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":11900,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":364,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2014-02-07T14:16:33.000Z","updated_at":"2026-02-17T09:01:14.000Z","published_at":"2014-02-07T14:16:32.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRound the array a towards positive infinity\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2683,"title":"Adding Cells with numbers defined as strings","description":"Given a cell, with strings representing numbers, add each value.\r\n\r\nFor example:\r\n\r\na = {'9','33'};\r\n\r\nthe output should be:\r\n\r\ny = 42\r\n\r\n","description_html":"\u003cp\u003eGiven a cell, with strings representing numbers, add each value.\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cp\u003ea = {'9','33'};\u003c/p\u003e\u003cp\u003ethe output should be:\u003c/p\u003e\u003cp\u003ey = 42\u003c/p\u003e","function_template":"function y = addingcells(a)\r\n  y = cellfun(@(x) x,a);\r\nend","test_suite":"%%\r\nx = {'9','33'};\r\ny_correct = 42;\r\nassert(isequal(addingcells(x),y_correct))\r\n\r\n\r\n%%\r\nx = {'9','33'};\r\ny_correct = 42;\r\nassert(isequal(addingcells(x),y_correct))\r\n\r\n%%\r\nx = {'9','33','-12'};\r\ny_correct = 30;\r\nassert(isequal(addingcells(x),y_correct))\r\n\r\n%%\r\nx = {'9','33','122'};\r\ny_correct = 164;\r\nassert(isequal(addingcells(x),y_correct))","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":4690,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":102,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":32,"created_at":"2014-11-22T17:45:52.000Z","updated_at":"2026-03-19T19:57:12.000Z","published_at":"2014-11-22T17:45:59.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a cell, with strings representing numbers, add each value.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ea = {'9','33'};\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ethe output should be:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ey = 42\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":45306,"title":"Find index of non empty cell array","description":"This question aims to understand the characteristics of MATLAB programs. Educational problem.\r\n\r\nPlease find non empty index of cell array.(Hint: cellfun)\r\n\r\ne.g. : \r\n\r\ninput : \r\n\r\n  x = {1,[],[],[]};\r\n\r\noutput  :\r\n\r\n  y = 1","description_html":"\u003cp\u003eThis question aims to understand the characteristics of MATLAB programs. Educational problem.\u003c/p\u003e\u003cp\u003ePlease find non empty index of cell array.(Hint: cellfun)\u003c/p\u003e\u003cp\u003ee.g. :\u003c/p\u003e\u003cp\u003einput :\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ex = {1,[],[],[]};\r\n\u003c/pre\u003e\u003cp\u003eoutput  :\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ey = 1\r\n\u003c/pre\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = {1,[],2,[]};\r\ny_correct = [2,4];\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n\r\n%%\r\nx = {'aaa','bbb',[],'ddd'};\r\ny_correct = 3;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n\r\n%%\r\nx = {'','','',''};\r\ny_correct = [1,2,3,4];;\r\nassert(isequal(your_fcn_name(x),y_correct))","published":true,"deleted":false,"likes_count":0,"comments_count":2,"created_by":36010,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":32,"test_suite_updated_at":"2020-02-02T10:20:01.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2020-02-02T10:10:43.000Z","updated_at":"2026-03-04T15:49:40.000Z","published_at":"2020-02-02T10:20:01.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis question aims to understand the characteristics of MATLAB programs. Educational problem.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ePlease find non empty index of cell array.(Hint: cellfun)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ee.g. :\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003einput :\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[x = {1,[],[],[]};]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eoutput :\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[y = 1]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":61121,"title":"Multiplying the Sums of Two Arrays","description":"Get two arrays, add the values within the array up, and then multiply the two total values. \r\n[2,3]*[3,6]\r\n5*18\r\n90","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none; white-space: normal; \"\u003e\u003cdiv style=\"block-size: 111px; display: block; min-width: 0px; padding-block-start: 0px; padding-inline-start: 2px; padding-left: 2px; padding-top: 0px; perspective-origin: 408px 55.5px; transform-origin: 408px 55.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGet two arrays, add the values within the array up, and then multiply the two total values. \u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e[2,3]*[3,6]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e5*18\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e90\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = multiplySums(x,h)\r\n  y = x*h\r\nend","test_suite":"%%\r\nx = [1,2];\r\nh = [3,1];\r\ny_correct = 12;\r\nassert(isequal(multiplySums(x,h),y_correct))\r\n%%\r\nx = [1,0];\r\nh = [0];\r\ny_correct = 0\r\nassert(isequal(multiplySums(x,h),y_correct))\r\n%%\r\nx = [0,0,100]\r\nh = [0,2,9];\r\ny_correct = 1100;\r\nassert(isequal(multiplySums(x,h),y_correct))\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":5018771,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":13,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2025-12-09T01:26:14.000Z","updated_at":"2026-02-26T11:37:46.000Z","published_at":"2025-12-09T01:26:14.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGet two arrays, add the values within the array up, and then multiply the two total values. \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e[2,3]*[3,6]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e5*18\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e90\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":54350,"title":"String Manipulator","description":"Write a script that takes a string as an input and returns a cell array containing  –\r\nI. the count of vowels.\r\nII. Find the index of ‘o’\r\nIII. The string removing all the vowels.\r\nIV. The string removing all the letters from a to j.\r\nV. The string removing all the consonants.\r\nVI. The string replacing all the vowels with an asterisk (*)\r\nVII. The string removing all the digits.\r\nHint: Use Regular Expression\r\n","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none solid rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 291px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 406.5px 145.5px; transform-origin: 406.5px 145.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003eWrite a script that takes a string as an input and returns a cell array containing\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003e  –\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eI. the count of vowels.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eII. Find the index of ‘o’\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eIII. The string removing all the vowels.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eIV. The string removing all the letters from a to j.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eV. The string removing all the consonants.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eVI. The string replacing all the vowels with an asterisk (*)\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eVII. The string removing all the digits.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"font-style: italic; text-decoration: underline; text-decoration-line: underline; \"\u003eHint: Use Regular Expression\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function k=strman(x)\r\n  k = regexprep(x);\r\nend","test_suite":"%%\r\nx = 'david attenborough';\r\ny_correct = {[7] [13 15] 'dvd ttnbrgh' 'v ttnorou' 'ai aeoou' 'd*v*d *tt*nb*r**gh' 'david attenborough'};\r\nassert(isequal(strman(x),y_correct))\r\n%%\r\nx = 'ilove bayernmunichhhn';\r\ny_correct = {[7] [3] 'lv byrnmnchhhn' 'lov yrnmunn' 'ioe aeui' '*l*v* b*y*rnm*n*chhhn' 'ilove bayernmunichhhn'};\r\nassert(isequal(strman(x),y_correct))\r\n%%\r\nx = 'n';\r\ny_correct = {[0] [] 'n' 'n' '' 'n' 'n'};\r\nassert(isequal(strman(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":5,"created_by":1274403,"edited_by":1274403,"edited_at":"2022-04-26T04:59:21.000Z","deleted_by":null,"deleted_at":null,"solvers_count":21,"test_suite_updated_at":"2022-04-26T04:59:22.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2022-04-23T20:36:19.000Z","updated_at":"2026-04-07T08:26:15.000Z","published_at":"2022-04-23T20:37:11.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eWrite a script that takes a string as an input and returns a cell array containing\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e  –\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eI. the count of vowels.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eII. Find the index of ‘o’\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIII. The string removing all the vowels.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIV. The string removing all the letters from a to j.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eV. The string removing all the consonants.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eVI. The string replacing all the vowels with an asterisk (*)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eVII. The string removing all the digits.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003cw:u/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eHint: Use Regular Expression\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":43672,"title":"String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values","description":"\u003chttp://www.mathworks.com/help/matlab/characters-and-strings.html String array\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a string array. Your job is to convert the string array to a cell array of character vectors, which stores the same pieces of text data.\r\n\r\nTo begin with, let's assume that there are no missing type values in the input string array. \r\n\r\nExample: \r\n\r\n  Input:\r\n  \u003e\u003e x = string({'I','love','MATLAB'})\r\n  x = \r\n    1×3 string array\r\n      \"I\"    \"love\"    \"MATLAB\";\r\n\r\n  Output:\r\n  \u003e\u003e y = {'I','love','MATLAB'}\r\n  y =\r\n    1×3 cell array\r\n      'I'    'love'    'MATLAB';\r\n\r\nRelated Problems in this series:\r\n\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values   String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003e \r\n* String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values   String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003e\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values   String Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003e","description_html":"\u003cp\u003e\u003ca href = \"http://www.mathworks.com/help/matlab/characters-and-strings.html\"\u003eString array\u003c/a\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a string array. Your job is to convert the string array to a cell array of character vectors, which stores the same pieces of text data.\u003c/p\u003e\u003cp\u003eTo begin with, let's assume that there are no missing type values in the input string array.\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eInput:\r\n\u0026gt;\u0026gt; x = string({'I','love','MATLAB'})\r\nx = \r\n  1×3 string array\r\n    \"I\"    \"love\"    \"MATLAB\";\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eOutput:\r\n\u0026gt;\u0026gt; y = {'I','love','MATLAB'}\r\ny =\r\n  1×3 cell array\r\n    'I'    'love'    'MATLAB';\r\n\u003c/pre\u003e\u003cp\u003eRelated Problems in this series:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\"\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/a\u003e\u003c/li\u003e\u003cli\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values\"\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values\"\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/a\u003e\u003c/li\u003e\u003c/ul\u003e","function_template":"function y = str2cell(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = string({'I','love','MATLAB'});\r\ny_correct = {'I','love','MATLAB'};\r\nassert(isequal(str2cell(x),y_correct))\r\n\r\n%%\r\nx = string({'I','love','MATLAB';'I','love','Cody'});\r\ny_correct = {'I','love','MATLAB'\r\n             'I','love','Cody'};\r\nassert(isequal(str2cell(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":1,"created_by":12569,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":153,"test_suite_updated_at":"2016-11-23T06:40:34.000Z","rescore_all_solutions":false,"group_id":16,"created_at":"2016-11-21T01:00:23.000Z","updated_at":"2026-03-10T19:51:47.000Z","published_at":"2016-11-22T21:10:09.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/help/matlab/characters-and-strings.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a string array. Your job is to convert the string array to a cell array of character vectors, which stores the same pieces of text data.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eTo begin with, let's assume that there are no missing type values in the input string array.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input:\\n\u003e\u003e x = string({'I','love','MATLAB'})\\nx = \\n  1×3 string array\\n    \\\"I\\\"    \\\"love\\\"    \\\"MATLAB\\\";\\n\\nOutput:\\n\u003e\u003e y = {'I','love','MATLAB'}\\ny =\\n  1×3 cell array\\n    'I'    'love'    'MATLAB';]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated Problems in this series:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44078,"title":"GJam 2017 Kickstart: Leader (Small) ","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/6304486/dashboard#s=p0 GJam 2017 Kickstart Leader\u003e. This is the first 61 small cases with no spaces in names.\r\n\r\n\u003chttp://code.google.com/codejam Google Code Jam 2017 Qualifier\u003e is March 7, 2017. Typically four challenges with small and large aspects with 27 hours to complete.\r\n\r\nThe GJam story is to determine the rightful leader.  The leader is the person whose name utilizes the most unique letters, spaces do not count, and if two or more people are tied then the leader is the one whom comes first alphabetically, with space preceding A, given a list of 100 or fewer names.\r\n\r\n*Input:* [names], a cell array of names using only A thru Z; max 100 names\r\n\r\n*Output:* [Leader], a string of the name of the leader\r\n\r\n*Examples:* [names] [Leader]; {'ADAM' 'BOB' JOHNSON'} ['JOHNSON']\r\n\r\nFor the example the first two have three and two unique letters while JOHNSON has five unique letters 'JOHNS'.\r\n\r\n*Theory:* Brute force processing appears to be the way.  Methodical processing and function usage can minimize code size. \u003chttp://code.google.com/codejam/contest/6304486/scoreboard#vf=1 GJam Kickstart solutions(C++,Python)\u003e. ","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/6304486/dashboard#s=p0\"\u003eGJam 2017 Kickstart Leader\u003c/a\u003e. This is the first 61 small cases with no spaces in names.\u003c/p\u003e\u003cp\u003e\u003ca href = \"http://code.google.com/codejam\"\u003eGoogle Code Jam 2017 Qualifier\u003c/a\u003e is March 7, 2017. Typically four challenges with small and large aspects with 27 hours to complete.\u003c/p\u003e\u003cp\u003eThe GJam story is to determine the rightful leader.  The leader is the person whose name utilizes the most unique letters, spaces do not count, and if two or more people are tied then the leader is the one whom comes first alphabetically, with space preceding A, given a list of 100 or fewer names.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [names], a cell array of names using only A thru Z; max 100 names\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e [Leader], a string of the name of the leader\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e [names] [Leader]; {'ADAM' 'BOB' JOHNSON'} ['JOHNSON']\u003c/p\u003e\u003cp\u003eFor the example the first two have three and two unique letters while JOHNSON has five unique letters 'JOHNS'.\u003c/p\u003e\u003cp\u003e\u003cb\u003eTheory:\u003c/b\u003e Brute force processing appears to be the way.  Methodical processing and function usage can minimize code size. \u003ca href = \"http://code.google.com/codejam/contest/6304486/scoreboard#vf=1\"\u003eGJam Kickstart solutions(C++,Python)\u003c/a\u003e.\u003c/p\u003e","function_template":"function Leader=leader(names)\r\n% cell array of names 1xk\r\n% A:Z or Space in the large case. Note space precedes A alphabetically\r\n% Leader is name with most unique letters A:Z. Tie goes to first name alphabetic.\r\n%\r\nLeader=''; % string\r\n \r\nend","test_suite":"%%\r\nnamec={'ITWUORWMTIHLHXND','YWJRRIJNZBSVKLGZSTOS','ELAUQVVEKJMTWANC','EYHASDSIJOFKAJMOBES','FWWT','NCXHB','HL','RLFYACE','AGEOICCFQQQ','OA','HIIE','TCKTEPLEVQKUQEOWV','A','OARWWOWVOTHDV','PRZOIMYUVVENMEFTGND','TRTDGSTGO','XCNBHNURLC','QUDOEEPPPTOEK','CYCS','HLZHZXMWF','VTILQQXFLTHGW','JCLINHPIAFNTTJ','XXFYEVKXHHEODKH','MSMRUKZJGLXXAMZ','TCUPQXPTAECNWPX','YWPPGXGWQS','CMWGICOTZKVNXFJGPB','MJ','PEGZVIQZWWY','RAM','CDZ','BYHBVFDD','HJBUJRQ','BCYSCGACSNDEK','FAX','V','GDHUQRC','AEFTELYHXD','ZAJLLAHJTD','JTZINGJ','MUPIXBGXISKYTLFWEF','XI','DTFDCLELPYSXSTDTNPCL','QPR','IRTDYHWLDN','VGQCLWS','VZTYIFJRPKFENZU','S','CVWAFVIHLTVFFZYZAJ','HTJ','CFPPXYRGRJDAJD','YKZUWMAFLLOO','LUEP','DCIGCJBFQZ','FPITIZAL','GRNHJMHMHHLBRMHQAPDS','K','STNVAPRYZHYMGXPHKOT','V','AMZSA','HGQANFRDWECVUOO','QTDJYMJGHTXFBKHGNDPM','WJHN','QCANDRZEPCYONLCVIR','MEAR','MMUPHNMPQGELDXNQUNN','RZGVCAHMKZ','J','CYQAQULTG','SKRIQOSQJTFQXHLFR','DVTSYAQKECAW','IJQQSONVKAKKE','BPTSIFKWCZCFLOYZCHI','KJDUFENMXBMW','AGBYXTTYADT','SZUYKXYN','KDJNEQOUJDJVBYJSOG','SYKSOIBCKFDXBLH','NLBEBYUKFEDB','VIHKWHLQSIMLJXLBWY','XSPZPLYSMMQEU','OEPRNDZGFSRJBWLY'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CMWGICOTZKVNXFJGPB'))\r\n%%\r\nnamec={'ZHWIEVQY','J','TLCILYLZBIY','FQDRXDBMLD','V','VDZCFZFVWOHRYEZ','EXIVJDONPLRYBSSMDNJY','BJUKZQGUNODOS','ZOWWHCMZ','PBPBN','CZTMQECVKFPDPOJRBKE','RFWTTBVG','LSU','NMRDJISMPYOPPBQRQF','AQOX','MFKXSJGWTB','TG','GMTVFGICOFOVL','NYFPRPZPHOQBDPDLFYQ','ZKJAIXOTXFMOGH','ONHHQFYAJR','YMDESSRM','ODUJTUPZ','OLRMFRNEWMI','PNJ','XSABDDN','EYGMT','SBNXXZNHZPDDSHDLC','YYLCARXECOAJRNIPAPK','SNKLYGHSEAJNXOPHDIIU','JGQHZFGVSQTWMF','M','QMZABHEHZNGWTXWO','A','IWSNMWEPVCQUVVSID','WWKOAMZASDPIVGSS','BMAWDVMNVPIOH','KDWDNRSMZHX','GHTSILNVPNATHRSKMKN','TXAGASW','YAEDJNTGS','ZHDYQVEVYJRN','JUZEFWDFTZJAS','VR','QZMQUWZZQFHLDLR','HOCXYNXM','HVLPIHZTLMPRWBME','W','ZU','KRQDDXKQEZYMWLXE','IYDXZ','GAAXUDATDVMNJAXVOGK','PEQIWYUYTNHQIH','UKRYPQDPBQXKLIG','IOSBQBICCHW','PQYBUJCGAXVCEVJYBS','YELCNJFSD','MENCFWQISHJFIGR','AOAYMFZBD','ERJBNWAHTOXCXHWF','RP','VUHINKNRTWKYGKXYJPTC','SQNYR','VDC','PJNLTP','LQSBGPKVEOUKI','ZWDTTSUCQ','NX','ZLBFCC','RFYNJWTWYWTMZI','FUZNVJGKXEYN','MS','EHO','GKJXLCUBUZPV','NRFCAVUNMCBEHIL','JAHZDCPWLMN','RWXOYX','GRIOHZEUXHMNSQSP','KASXYCVDKMRKLMH','JU','NTHZYRMMYIW'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'SNKLYGHSEAJNXOPHDIIU'))%%\r\nnamec={'ITWUORWMTIHLHXND','YWJRRIJNZBSVKLGZSTOS','ELAUQVVEKJMTWANC','EYHASDSIJOFKAJMOBES','FWWT','NCXHB','HL','RLFYACE','AGEOICCFQQQ','OA','HIIE','TCKTEPLEVQKUQEOWV','A','OARWWOWVOTHDV','PRZOIMYUVVENMEFTGND','TRTDGSTGO','XCNBHNURLC','QUDOEEPPPTOEK','CYCS','HLZHZXMWF','VTILQQXFLTHGW','JCLINHPIAFNTTJ','XXFYEVKXHHEODKH','MSMRUKZJGLXXAMZ','TCUPQXPTAECNWPX','YWPPGXGWQS','CMWGICOTZKVNXFJGPB','MJ','PEGZVIQZWWY','RAM','CDZ','BYHBVFDD','HJBUJRQ','BCYSCGACSNDEK','FAX','V','GDHUQRC','AEFTELYHXD','ZAJLLAHJTD','JTZINGJ','MUPIXBGXISKYTLFWEF','XI','DTFDCLELPYSXSTDTNPCL','QPR','IRTDYHWLDN','VGQCLWS','VZTYIFJRPKFENZU','S','CVWAFVIHLTVFFZYZAJ','HTJ','CFPPXYRGRJDAJD','YKZUWMAFLLOO','LUEP','DCIGCJBFQZ','FPITIZAL','GRNHJMHMHHLBRMHQAPDS','K','STNVAPRYZHYMGXPHKOT','V','AMZSA','HGQANFRDWECVUOO','QTDJYMJGHTXFBKHGNDPM','WJHN','QCANDRZEPCYONLCVIR','MEAR','MMUPHNMPQGELDXNQUNN','RZGVCAHMKZ','J','CYQAQULTG','SKRIQOSQJTFQXHLFR','DVTSYAQKECAW','IJQQSONVKAKKE','BPTSIFKWCZCFLOYZCHI','KJDUFENMXBMW','AGBYXTTYADT','SZUYKXYN','KDJNEQOUJDJVBYJSOG','SYKSOIBCKFDXBLH','NLBEBYUKFEDB','VIHKWHLQSIMLJXLBWY','XSPZPLYSMMQEU','OEPRNDZGFSRJBWLY'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CMWGICOTZKVNXFJGPB'))\r\n%%\r\nnamec={'ZHWIEVQY','J','TLCILYLZBIY','FQDRXDBMLD','V','VDZCFZFVWOHRYEZ','EXIVJDONPLRYBSSMDNJY','BJUKZQGUNODOS','ZOWWHCMZ','PBPBN','CZTMQECVKFPDPOJRBKE','RFWTTBVG','LSU','NMRDJISMPYOPPBQRQF','AQOX','MFKXSJGWTB','TG','GMTVFGICOFOVL','NYFPRPZPHOQBDPDLFYQ','ZKJAIXOTXFMOGH','ONHHQFYAJR','YMDESSRM','ODUJTUPZ','OLRMFRNEWMI','PNJ','XSABDDN','EYGMT','SBNXXZNHZPDDSHDLC','YYLCARXECOAJRNIPAPK','SNKLYGHSEAJNXOPHDIIU','JGQHZFGVSQTWMF','M','QMZABHEHZNGWTXWO','A','IWSNMWEPVCQUVVSID','WWKOAMZASDPIVGSS','BMAWDVMNVPIOH','KDWDNRSMZHX','GHTSILNVPNATHRSKMKN','TXAGASW','YAEDJNTGS','ZHDYQVEVYJRN','JUZEFWDFTZJAS','VR','QZMQUWZZQFHLDLR','HOCXYNXM','HVLPIHZTLMPRWBME','W','ZU','KRQDDXKQEZYMWLXE','IYDXZ','GAAXUDATDVMNJAXVOGK','PEQIWYUYTNHQIH','UKRYPQDPBQXKLIG','IOSBQBICCHW','PQYBUJCGAXVCEVJYBS','YELCNJFSD','MENCFWQISHJFIGR','AOAYMFZBD','ERJBNWAHTOXCXHWF','RP','VUHINKNRTWKYGKXYJPTC','SQNYR','VDC','PJNLTP','LQSBGPKVEOUKI','ZWDTTSUCQ','NX','ZLBFCC','RFYNJWTWYWTMZI','FUZNVJGKXEYN','MS','EHO','GKJXLCUBUZPV','NRFCAVUNMCBEHIL','JAHZDCPWLMN','RWXOYX','GRIOHZEUXHMNSQSP','KASXYCVDKMRKLMH','JU','NTHZYRMMYIW'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'SNKLYGHSEAJNXOPHDIIU'))\r\n%%\r\nnamec={'LKVZZUM','IGFIF','LDWQNWLKKUZRSLNQPZUD','REYHMPLN','RCYUXMNRNM','KIXERSLPASSPBSZ','MOIJUM','CKLGNTVKPJUQVHFKOJYC','CLWO','F','HQBUXWNYFCKBHP','SZOUKQXZW','VTSUFMCZRBVWZXSX','LVSGFAJNPEAZQLQNXSJ','FKD','SHXDHEYZDVZMEKQXDL','OTXAYLGZXQYQUCUOTPHC','NSMRSGMRYNJNHRDBIJNP','UNCSUEFJWEOCCEAUVD','CLSFESORDOQ','VZCJFLXKE','BXRX','ULAQVGZMZDUQAKDZ','F','PQIRUOKFBEANPWHR','DNTYVUERHOWWWAX','NHMSAQTFXLWC','QGGAKSERLLBZMYS','XANXQC','CGRYIBLGJGITDGJXVQL','JMWZUQP','WCJ','DMXNGYCBWWBVWP','DXJHPUCLEYGNRJZJDIPC','LQHEATYFA','UOOAKBGYKHLTCMV','ECXDXYK','TPPFDLEZVFBHIBL','DXQZVMTOQSKGVGVEQH','MVGNOGJEKYUQCQWKONSU','YDXTWABNGHMVNNR','IHMQBV','EKORVOGNTFM','MTQZZAECALPQE','IIAXZLJMLPSWOXIFODF','FVMFSCOCO','KXF','APFP','CEUKJEFHPCE','HKQJYNMPT','ZEBJEIG','BAHVCJRQCCMX','WJKIOOPDLL','EMENSPOLPNYONCJPOC','LSLPVWSVSAZBKCHVR','FDTSF','ZUWDLZVKNYR','IFSFFUQJYEMFOSZBAJ','LFSNKMBHVGRSEWI','WGLBXIFWXQQPZ','AAC','NDKE','WFMWRVTOHZEVSUHQMWIM','LRTOVVMFQONLNCZ','DIUDEPSGTFKHY','PMOQT','BWONTNIT','LXXSEW','JCPZSFLQB','WJLMGE','URPRN','MJ','NJRHYNZWYDXJZDMBI','OZDCEA','ZMOGQE','VVPPYAQMZULHLP','NUC','H','FEFYDOVFMLNLLHM','KNPEI','YPYVMVIPFDDDOQCRHN','TUMWDLK','PSCZOXGBOLWRGXWLWETD','CZTFF','NPPDNACLYJX','SVMMODP','EBPEYFJCQFBIHNCILTP','ZSQXRMZYDOAICOQHPYHU','HKIEWXFRENDNUIHZVJ','UQIJF','XV','DRMGAISIOH','CCRXDBOU','DTAUYOKXRFPGD','FJFZDAMDODXIGERXXIC','NRPLMN'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CKLGNTVKPJUQVHFKOJYC'))\r\n%%\r\nnamec={'RZBUJBVYEBGFA','UQQZUUEPNZQGWI','MEVRXOPONULOFXCNJC','OX','AI','KQDWMQ','GB','UGUXMZRPA','JLPXQPEYBGKUPNOVO','DUNZANKBCLMRE','ZUTGVIJRXWBG','YBLGDIAFTFWXGJFSIDJ','MKPDQB','EXZ','XSPHULXTUUH','YI','SDRNMNHGLLAGWPCAQCN','ZCJHBAXB','VTWJZEWCDZ','DCSV','K','CXTRGSSG','TZDBKEGTJODEI','OA','ZZ','SGGYYQWGS','UGRZHKKCKLRCM','CWU','GAHGFI','EHNRYUPAJHEJQALIXXN','VNUUMZUMVTLGQF','JOJ','DTVZWKINQSLWYC','HNIELOMQRNWSRSFOJP','WBN','AZZQ','WPCBLNHQVQ','FFPEGUSPFC','QZVDUHWFOYF','MODJT','YPTOMLGWCBEB','JPBDAHELDOWYAHOH','LTYAWWOYYKRJUY','LD','ATWGLRGLX','GYAQPCCBMTKYON','EJGXJQH','ZNCSTJONBCWQEYJIOUDU','BQHJZZ','RMKTA','UO','WISAENKNTWQJJJR','QDEOAVK','B','DP','QPIVRVKJLTARRYU','AUEWOQXHLNOH','AQURWTVDAV','RI','VKUZECHUBKDQSYIEGR','GQXG','QPIZPWFRE','LLVFWQVKKVGQ','BOHSFPVLG','QDGNJQKOA','KHSIXTK','X','HOMSMBH','JASGHSCEVJPZEBRWIPHP','MZF','EEX','LDWAANCPMTO','DFOSFACRRWBZSZRGP','UPKDRRIGWMB','TLYLODNZAI','RRMHCO','RQXDXZBHA','TNN','RCEUCCHTGPV'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'VKUZECHUBKDQSYIEGR'))\r\n%%\r\nnamec={'RIVNPYCJWCV','OGILAGJP','SEMHSESRIMDCHE','JRYPYYQBGCQDMUVYTK','PUOCTXXCFLSVMSNN','HMTLDFW','MHRCIQBMPZJSNWPR','B','WBRPSYSLQUTYTMIOMAAD','X','SHHZDMOTCYXKOEF','JDWI','GVGN','SF','FMZXHACXMMHQJCZFYEA','RVWR','UOHRSYKYJPSYXBFCBUAN','EGGFS','MFB','IXJEMEXV','VOSNTCBQAHVSMQ','ZYCS','GWLD','TQHICAYCAHNMD','ZUPTJKZXKY','NALYIAYH','YUVBDDYUR','JSUEAMBVXC','BCGACYPVUKQJF','SOAEDJRTMC','GIM','DDKQJMZKRYYQUUNXJPLS','WAGEH','ACDMUQHJX','UJUCPFLWIWA','ZNCENEADIUCYTDU','CVQ','OIUWAJ','PELUGQEKQHSBEJ','ZVWEBCDPDPZYWKUEB','MUIKNTXIKIGJWJYZR','UDIX','EQUINTBTACTNCVV','A','QRQCTCOFGAGFH','GVPKX','XXZYHYCQCQOWTXHCU','ZYXQBZB','TRZFYLHLGE','MYLXVXPROOQACCREXGNK','HW','K','O','YJDRWVCHIYNO','OGFIXBXOECV','MYIPYKDMC','LKAZRCB','HBQIYHWJGQVAQK','KAOEMQAEDRGCOSWN','PEVMKNMBNQHJOLZPPU','WQGFHUTZXNKXXSO','DATMPBAWIUI','HFMNTXAIINT','EYSGATS','ELMSTZUCYKGVW','AWELUDPHWE','WXXT','BYZGU','QTKIDJAZOLQJ','XCWQPWF','SHZMZNSIYTFWGJMIR','CQTBY','PAXDKIQ','QKPFHU','FRVKRIYOLC','EVLSGGJROSCDEESC','BNBKELFFEIHEZU','GTVPGG','ABAF','CAMHBXEMVJ','RJIQNECRLR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MYLXVXPROOQACCREXGNK'))\r\n%%\r\nnamec={'IPRJSIWLAUJOORGCCTGB','QNJUCJUG','UESLBPMHAOXY','MAEFTMSUCVADS','HSBZYCEBXHQUMMQEBUX','WG','NBCL','JAVVHRIWN','BZUAGAL','KJPLV','BWLWTYKMYR','ZFREZGVRDXAJAOUBBP','ZGTFGRNBOC','SRHLEKFXDGXR','QHTBROH','OFMXKGHMRZKZWWFTQ','ZBRNSZCLM','LSWQXPSVOWACZJSCLPU','I','WTAWIPAXWSOHLOJG','GHUAFRDMHYCPJ','QLXLWQWPDMQBOOI','OFFSREM','LN','IENTDWRP','PWJTIKZWKWGHQQC','N','YNAAY','RVOXH','DGFWIGPZN','TZVZQIAQZHERN','QLAFRTPG','DVMQPCEHDPZXONAS','NIJY','G','ZKEMNSRWZTYIVJ','JYMWYWPARPXPKVDUSH','YSPFGKNLLGXNWHUOI','VXPCGSWYZS','UAZEC','YNMOLESKERXT','ZMKMIUTTHPVIJ','MQAJNGBCLVWFRKSWS','TIAPONYPCBCIPGISAL','ORYFPRXZXX','IE','PGXIAXPUVYIVFSO','WTOJEJA','YVGYRWBQ','JQARHV','PFIZDXYZEIJJ','GDKETMNEOWBKEGPEYSSG','ZDOBW','GMFZQLV','DSBYFWGKQRP','OKSLQUECSIFYKZ','HSQWESAVJDLINXQZ','KNKSNMHISGTREFBAPYOY','MYNDRKEZMOJY','JMTUWXZPYKJA','WMYRZZ','ZWMBGVZUX','J','ODBT','BTAXXZCTOGCYZQ','XUNNFNWSRLTPMJPFD','IOJUDXHUVDFLQ','IWCTLMAAK','EUPCXRCH','BTWYMHV','LHTILDBDOIAEPCTDES','FNVZZIEBPBVH','VKWF','XFIHRDLRIANSU','OVQEBIKFAZLU','KIWIAQJ','VTMFDZELACMCC','HYYKOUVOLFEUUVTLKXQ','TMRTGV','APFAJVKQDXWHQKHUMX','RMDXJSWKZ','CLMNGGNYCOCEWWQPNETQ','EZC','HZKEARCWVRFYVIIEVEP','LZVOTGOJKGSEDCYZTL','SLTOZPVYLCTY','NWCT','EZDI','FYQZYTGEWRTRCKMFFXAL','MNZFJM','JDGETBAYXINCKQOHVAL','FYRAVEWGICVW'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'JDGETBAYXINCKQOHVAL'))\r\n%%\r\nnamec={'TWFDIRYHKZDLJ','OAUTRCAUOBITSYPN','PAKWLFO','FVJFD','WGVEMOMLKYA','KIEXGQAEEOBF','BUVHDRLRWWUQODSWHPIE','QERU','I','IHTJCQAMKELW','ZZAKYHSVEZIQG','GQSPFNXGZMIVXWZKR','ULZACQ','UYMSDLYLWJQYOOGOF','GABXROMOVULLPPKPNLYI','OWQPFTJUXRDJXCMISMK','XSOPYVSLTHSQSTHQMQ','ERNGWNQQPX','DQ','QH','TT','FSTEFBNQWEO','MKVWBRBPDAQOTROR','DNCLYLKRHCAQNCDG','GZNENCWTPH','SKDFRFDQGLVAPB','DSLVXBRXPNEWVRKBM','SKLIWJAGBCTJXMKM','ZF','TJVTOGYRCCF','BEZOA','TCZKOHTZZQOFXG','CCXERZETXKLHNYCKJJWE','VVLGRRILCFDLZPGO','RVRAPLCQUYVRHMVZ','IESUGXPJKNYQTMZCVRK','UOGRYOVPBJPGE','MOQS','YHEUKZHUTTI','MCRDTEB','COOEAYZCBH','SOQAE','WMIYA','TLBNUDLE','H','EDWEVYPFKPBDXJDJBA','EXEYTHVVOSRRCQOXKUNG','CBH','ER','IJTMAL','VZJERSOJECHSEIIMFF','FGUJCUULE','INLHAWVTXSOBGKJYSO'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IESUGXPJKNYQTMZCVRK'))\r\n%%\r\nnamec={'IOEAKZJPRPKTJNOZB','ZDUMHXJNYNAWNLJWS','JDIVFVATR','VAUXI','JQKKVNTFBRHSBJ','YVYMIK','AIQXIMDFGMSSRTYHP','JRKZIHIGDJOMCPY','LOCSUGBZ','JDHKURUFELAHR','CCVOEQYXGOVAJNB','UDY','AOENHSMZWG','MUZRGTCEZXFGJTAKAKHP','HUJASMIYVGGXLBQ','PIEEOUGV','WQEHQWVXPM','VCOGCNVNRS','YIHHJVFZFE','DZLSACBUF','HNKGSYTVZ','ESWFBPOSHGVJJPZWZ','CWJVGEJBTXXZZM','WVZMWOABZPQ','RITAGYKDRKQ','XTMKTHWMNONMJVT','ABFYDJLYOLM','WCLCVKQZYA','BWTMWKMXPS','CNGQQSPIMSKEVSHSA','TWQXHFWEELMHYTPCBK','LMI','ABKAV','HONTGWQREXDXIFX','HF','TNLMBV','WMLVS','RHWJXBG','EJBWKITPT','PAIVD','ZGNNXXNHYJAFA','HOSHEELTT','XLVQ','GJJOP','USGTDZT','VQYRFAKIVB','RAOWZ','KQLWBYJUXWMQZNBVRZIZ','WJSJAURLTKMFLYEWL','KCS','EJPJLYFZZXZGOGRQL','FNXUQATQXZFOFQ','CDDVYFLVH','LNSED','CZPKXAGODGOFBRXWH','VLDRWIFTLYNJYVCWLQRJ','OKCADKJXABSLKP','N','FMLVZNNHVWIOHTROTIHR','ZSLGUEEIBRZO','YF'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'KQLWBYJUXWMQZNBVRZIZ'))\r\n%%\r\nnamec={'ZHRKFFVTV','AANVPJKOEXCCV','ISEFLF','QKPAVCV','UFTMUOFYH','UEJBWOMUWVAHVOPFZFKH','XFYUAXTSOIPXJNTWEMVR','TCXGANJ','LZJDTUVDUSRFRBJVXTRE','DKNY','SKTAVBVQWUNKGSTH','LAJUEWXHWXN','UPVUPDPHPMMZK','PR','SKWIGGYNEQJL','ZYIQJEBIT','VPPWWZ','KFKDDE','ANHJYSMUAGUDLLZLGA','LTPOPUXPZXQLTF','PJLIPCUTNJAJ','BZBVKHGWXNR','VFMMGXMNRCYBLQCXO','KPYV','WFQPYLFRDLQLSV','OXH','S','NBNGVZVPT','GJZRZGI','KPWEPURIZPHQDUBXJ','VQJRZEPDCL','ANCGGFSXOOBVWLQT','PLYUYVFUPJPI','JUPDBAJHBWTHJ','PMIBCCWWAIIXIGFPJGQL','RDHEIA','UIVWDFNZFW','NHRTMDVL','YQNTKFTZUMJXSPKPVGHK','K','VVRA','HNRSPOPCTTDMSXPRMGXT','EVYRMDRCK','LUIZ','P','JXOLDLBOXK','O','UHVCWYW','TEABOYYTSAVDXB','ITZKZSMJMCXBDYHW','QIQGRVCUTCJ','TBRYLVVFHOAXWXE','BEGAPORIDU','JLVDPGMDTE','FTJIU','GUVILARGMIYRLPYR','OUJTQOHF','PSUVIJ','QVFZT','OLBISRQC','R','QXVWIGCUUKYSMO','JUM','AJ','RR','JEJAKMJTOINCNFIHG','SMTFIGBRC','ND','CVLGLCGSIQSJHIOP','IYRTAIWPRFYIIWO','VNFVKW','LSRGYZADGAM','IB','NRIVKGDDT','ZQQJZODVGHTLKH','SMVTDXZXVWYDBLY','TDNZHBGP'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'XFYUAXTSOIPXJNTWEMVR'))\r\n%%\r\nnamec={'VAJSYAGAOJIWVEJDZGMI','YONPJGZITZJHLBGMHP','QHEYGNWOSH','ZZXOUYOYUGZFHD','CBADRA','JOJOEOQIM','YIOWQROUDIU','RUHZKCBBKCFNUAVEWW','FEJJEIWMHLIE','GDTHNVFMFKQTBAAHJQXA','PEXFTBA','ZNE','C','EYQFRQENRMGKNOWBT','MUZR','VRUHHYX','VCCI','IOVUGNVRQMWICRZUAEKL','WSRGZ','OBCFVASFRJJ','DSWYSE','IBCTTSZG','BHWWJCGFD','IWZY','WMWWGTDRUXNAM','VEWRGUWKYXYTR','DIWZAGDPFXAZHBHTWDD','CYYESJUIZFB','GVT','QRDYACFPBRAZ','FNQK','VHJENXP','WXYVKOVH','TIILZLAYPTYK','ZGJSV','KHCYMARUVUVCQCCQTJH','ADVG','JUVMQXUCCTBXKE','EGRPHHXLHS','NBDZPHWXFHNDKIO','XQYV','DFKNQRCCXZFSCFDZKC','GE','UIYHHSUFVKKCYSTUENRP','WSLZUMBZNNZHMYRCJ','BLLWRXTADEQRWUME','NVIIH','DZ','YBSHAVJPKJSOSIKZC','QCEZCG','TCOPDCOZYFB','FLWPINXSISEQMADOGXD','ISDCYUSAQTI','AWVJF','TFZPWH','ZWOTRPT','KVWXCOJVW','OHHPEO','KJMCI','TWEIKLTAWLWPFHQVYCU'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IOVUGNVRQMWICRZUAEKL'))\r\n%%\r\nnamec={'QYNQXKWTBWLQAV','QFZBOBFFKUV','SATCT','B','OEU','EDYMJLOSFVXKB','XPTUMA','YXQHUTMRWVXCFN','C','NMUKSZQAARPYKBOJO','VXSUODWMJEOFRT','TQFODG','MVAOPPXKPOYLKZP','AYOSNWPTZNEHFENU','HLAOZUDPGO','BVNYHTE','LLBZFACMMNT','FDCGRYMFSZKECAOD','PCGVWGPEKPRE','T','IQU','PHAJAXB','JZSWKRHOTFWHB','SXLJKBGJNSDVE','ZFOGYXBE','XDZZWSGBUATBEK','IB','FTUTZJGKFHOWSYRC','QZZQZ','RQHRGEQXGWDDVSC','SWAPIZKYUQDUCY','LAQKSCDQQHUHROUPZMPK','KUHXDFAYDTCFHE','YUIGRMJCHOJRLETBLSPH','UPZVBPVFI','GC','MDBPULJTNVIBPVKWICXY','WVQETK','CONDVZ','YFNHSVAQOSVWUG','VOZLYCFAH','VDCQAHPSI','WOJGQPZHGJCJZODPR','RZGYDQOLMCZMBQILF','MQHZBD','QNZIDLDMZOYTJNBDVLK','SWRFWEZZO','O','BRMETQKUMPVZ','BOHQXMICZPIJINBAMM','XZHKWHW','PIWTIMWDW','CSPMUYEFTM','WKQVYHCSKLCGA','FSSQOLQOPVTPSWX','QAILVSVYMY','ZMRDNBAVH','EDLNTXXI','L','FPT','NGEWBBCXSCAWFZTIWELG','AP','SUIWNKPKEIV','AFEUBXU','SEQZZIPOXRYFSI','PNYPEBPJFKU','ZJORBRZJBKSRPGZEC','VRFWCOLARBSMCCETVOOY','BBWSSU','JHDXBKEBTBOFKCQKKGD','VBRDW','CZMEFIYGRXBIZYQAOEB','RYWVQCXMOTJXRE','ASTBGVNOWKSD','FZ','OESEXTKXKGXRRZXAAHW','GCNJIDSJZWV'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MDBPULJTNVIBPVKWICXY'))\r\n%%\r\nnamec={'OLBECAKH','WALVIPXKS','UKRKEEKP','ITYJJEIAJLK','LXFEYKGNJRXIAATYUH','S','CFFQVCOZTQBCNKTKIKJ','ADMOLGEQMVHGYZGS','LUIKBIIL','KICCEOKINPQZQXRCT','UIFD','HRHXRIRTEO','POJWXUJTLIXYJUTSP','EOVOWA','HVEVAOIPQHTQWN','ECFXJL','XYEIYBVBPVVKFSESTXO','RTRAHTQLTLKQEB','LPGZRDYFIMXHMOKTGV','RLJUFNHRFMHJGEJKF','NYKPGIMSJNI','SVMDJTMHYV','OLITWNGCMC','QUTJMRHYNI','RIVJRF','SREBXWFBLVVBM','NVYWUKFVPXYQG','NDUGBMD','PQQ','VMWOYCLPJ','OAUXTTK','JJXNESUVLYMXI','KCAZLCEJZ','GD','IEN','PEALDLHFHHSYLOPPVIFU','RIPLRWHJKUXK','VGQUYLBAHIQVQNDUBBIE','WMYSOG','YQZWY','QJJRZKAN','BGGBCNY','HMVFIHNDWALIMJQVJ','JRHXWKGQQFDHQCVQFV','JBWXLCQ','U','UNAMPIJF','MEVHUELFG','UYBBK','VRDQ','BBEKHE','DDOKPNHLFXBERY','HTPDIXJZYTYUMXSA','YFEUGAHWQDYQXZOJHAA','PA','QYKNVGZTGY','EU','MQN','QVX','NQTHFIMP','PVXZFAVR','EHXNBUURJQ','KMFZUNNDNRVEOMM','ZFUOZTXEIKSFIUKGPG','UTOPZCQLLXQFELQHY','ZWAPCWIRETB','ODSGLVJMCQT','FGYCQONLQDRLNXXDU','VWRMDYLJAA','TITDVATQS','WDQLGGUTUCYX','ZQLXPDNEEDARDL','NESRUPLFJKZEEUU','FLLYHOYZJFVXKJCWART','ONNXRSFCTNNH','YPWYQVYD','KAK','PUDMLOAVFUZEOY','INPQ','BMGWA','FULRYCCYXAANRTEL','EZZVVDUQZ','J','QVF','PIKBTC','UZCHTCMK','PA'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'LPGZRDYFIMXHMOKTGV'))\r\n%%\r\nnamec={'THWUPQDIQCGC','PHRROUTOWKFBLHCMTBJ','FFZWHOUBDJUHXCQER','PRVUGWJP','OUTCTVJWJQPL','GTK','SQ','AWEJFQMXOBZ','XEGDMNGQUBRRLDH','ZMNYRGDGAXOOV','CEQTQEHJ','ZVYCZLGIFQAE','GKKYTXEWUU','GYKQHFBAYMYJOQ','ZWBFOM','Z','JRQMYCXC','UBCUROTDPZ','V','EWSSKGQGPDWU','QFVZZOTIXD','LORCVQQCFS','VZXYJFGKNGEDGZYJBDD','ZMHTRZAUMQ','SWS','M','SQ','YFZTAVZ','MME','BNGNTDVLNOVD','OWELIJBQLIPJELRCBWN','OYJUHFIWEZFFXZJSK','OJAYEYQRUWEWEL','EZQAUNFB','PPRFEXORKNUZKYRPGL','WMFKLS','O','ZKUCHI','UCQGSZNQCZBQO','JFATSOYNQHPY','UGLWWJLKXTMKMUJC','KECCXUIK','YRDKCXRFIBOLLAXBE','KLMCF','SOGOJXJLRDWLAWDUO','VKDYIGLD','HNLFTM','YPCWFOTTS','DHBFCRNIPQDMPRYUGGSF','Z','PYEOXJXSQQXSZSLPWPBJ','VHICFAEPWBHQQNZWUFRL','UTQGM','HZQHVIRP','TOFXMCSPXOSRHZCTECPV','EMRVAZWTJNRCSTUOGUPP','OLLEHNLX','DCVDNPHCJPVWKMZFJQ','F','YIOJIRL','NBMIBAJINBAXVMKLMFVJ','HKQSHURUVVKX','ABQYBBPFEEQQC','ZPNIPVYDTQO','BICYYSSEXWA','ICYZSXXBBAOVZ','C','QMYH','TDAQVASCMQM','BOCUUTAX','QSD','AOABNRE','ZY','LFETHZKRZKOU','LUNDNYWWQTRCUALDFACW','UJTAEMHDBKITB','MUGDTHGOEGJB','FUWZQEVXPZIEWJQVODQZ','WKG','TCWKECYVIGXY','IHFEUPHBA','VBNJXRDJACJXCXVWBU','RUUSZNXDIZ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EMRVAZWTJNRCSTUOGUPP'))\r\n%%\r\nnamec={'XHS','WZCIBW','PREIVONCYXIZGZP','AEGSLV','FHXOGTXEVVVRJTXV','RXHOMEOTXATLTXBL','XCBYOQUKHHHYAO','PLVIEU','EBQQAAPVBJFJVQRPD','SGRTRBFWDE','TFFLUTMWYONKXMRDIHB','GMFCNLRIPZMXBDMOZ','UAJNMJH','QAXPMUJXEBOYNHIT','ZZW','AXIUPAFWNZXBTMFUW','DKEWEJSZGPSVNSDU','IEBZCGKAS','OGBYKPBYQWXHNGZINIX','VBCXBNNH','OBVVWQLIWS','NOSXD','TZFNK','YGHAAWVVINCIFVOGXWKT','RQHIFXGMQGDIUY','DSIIBXODN','NDBKMRKUOZSLZALHQTC','CGNEDRZIMLQFNUI','JMEJXLRN','VDHTQHPFCZACHS','YPSOTBGBFHYIYN','YVCNHWIYH','AXZSIOHJVA','URPHIVPD','MCR','YRKRGC','X','KHUMUNTDAKIR','DBXJJYUNAWQPFPSI','BTABQCBZ','FRTKUUIUCWNQAOFCDZID','QTMRQOBSKNXPLGYLICC','TWHNUSZIF','GLKROXO','JZFZXDRQOQFHXSTLGI','MYNSZTOAOEPJXDG','JW','IHZKXRT','NXCTMPGBVHRNQLIWMS','LNYXV','EUR','OOIVOTFMWSMZEAGKLD','JTJW','NELD','RLHASFWXKXYXFFAUUVTN','QQAFDL','VBBORVQPHPJWN','TNTQDKJHORHLNLXJC','KIEYZTBC','X','TMVAVQ','L','KZFJGS','V','PAXEXKPY','SURWLRNTQPLUBJ','VXXWUUCFP','ZZMJBVPVDBHCNTZORR','POFFYC','BVCIXQXGTZNNA','JGXSGKZNRZSOTM','MCREZTN','ZYGBHQELCNWP','RZOACKCLGHR','KFQGQGCDFCZMZMA','KAEMYPLQOU','ZLCXJAJPDSAXFES'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'NDBKMRKUOZSLZALHQTC'))\r\n%%\r\nnamec={'QFUAHWIOOKR','ESSXWCVAAXUNPKZBP','XOHBWMTZWPVDBTZK','ZZIAKKZER','TCJNAIFFANO','IHFDHP','ZXVEQXNTNPI','XNQCBWRJOYWNPJGGYOA','DNXYBBWQG','YIDQFQKDCYQ','DOPKJAKR','PCLIEY','GTL','HFJ','I','SZCDBDD','MUKH','SDUFF','QQUNPTRTNRGEMJHMBUZ','TTW','JTF','KLVWALNQRKUIBBKFH','VQRKGXQII','SAGHQQFQ','HRZXSDNB','AMJPRLRVVPUW','NUEHDIBHCGJNNXODCSYT','PFWMVZJRQR','YG','SNO','OTPEWBHKRLCXZOVQB','JJJZPVFVFWF','HZVUBNI','HCANPJ','HFPROKYIHYAFKAX','SFWXOTAIUNXT','JCGZXAZALLS','ZDAPDIF','XQWPRQOFP','BATBRJYMEPH','HWLQMBPJR','ZFXBKAVDWCFKDVIPZP','DXHHBTCMUMMHRITW','MYUWULXGAMCXUB','RUTVCBDKKBKVCODTE','JPLGOLTIB','NKVYBPZFRTWD','DIKMPNLVRWVGP','TZFGVBXIVVKCN','ZQVV','LYUIEEXPSCVGXPAXGNOQ','TVDFNASELMQBMUFRF','TSAE','WTBZJNOXQMGJACUF','ORJDPAIHTADOOOIMKJR','CAFVCRS','BW','MSNRIFUX','XYG','DXNEAWGNPEFEI','CVCCTO','BKKRJFUYCMQVACQBUH','OUKRJQKTHTEKOGWNAJL','EH','CBVJJGAMPB','D','JCX','GDNERYKFLCEMFDGHBLIA','ME','OCVXQRKNLMDIPG','DKXJ','YIMDAGHEBVBDEQLWQZBU','RJOLHANYAZTAXYJ','UOGBZSXATOR','RPWKKLKMITC','ZEMNOKORQCIGT','EZSILXKGHAV','EKYJYDR','LYHVGIR','GIRVT','UTNQHEBGN','XCIRJWQPWZWDJMCHBA','NMAATFTNDCKEKOGY','VRR','HMPLHONBSDYSPYYA','CETSSXCAJBG','AACEYNLPMBJXZSX','GDETCLD','KRVKTREYTUWLQKCQGFNY','PWSNIKIOODMZCEHSS'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GDNERYKFLCEMFDGHBLIA'))\r\n%%\r\nnamec={'AYGOJBGQSGJ','UXAWUQATLCHDBW','EMWESHWSFIE','LYDDIYTAFWCMZFZAJRI','PHAZNAPRSSDWVEICENY','LDXHZCQWCQKQQXJXCL','LYJTSODMNVPIGOZA','JDJI','QGFJ','Y','FHJQVEURGXMVQ','BTPBCD','AATAYYOWE','BRUVNITJXCXJHYUWZ','RFGRZELSDAEKRSP','RKBKMBECPVJDPUOOYZ','F','C','RESFUFHIJMVF','GPJXBWH','QCJNXDPKIZHUXDTBXF','DLNOP','G','TPRCBFEBBLVYG','RWIWDZLDWSE','CXBTNANPRQUAGKX','LHRGDVJRJT','DOHFZ','JQ','GHRGNOJ','ZMGESBZULEBZAPYLPYUF','Q','JZKXJTOBMBUOS','ZPDMPTGMAOMTA','X','Q','ZRXJG','VHRBOCEJ','DNPJ','TE','W','SSBFLCL','X','TVMWRYCCTPK','TSPJCVTUO','YQUOBBOVIMFZHRPAPD','BG','USIHMQUJNXQEBBT','BJFQJME','HHBFBWYBVGJLZSYKEUE','OXMPYRXDVDEFETK','OWRADONHAWNMQWFLOC','FLBZA','PDTOJDXJHOALT','XUIDOPAMCTYOWN','BIOCHVREN','QSONQOLLM','ZOHOAV','NMVVYUJDR','XDLH','TWXVFGJLNPLOQJFVM','YNSCRRKGN','EYLZ','YLCVZSWWKT','WKAVXKP','ZJDAIPTKSFN','AB','XDBZLVICXHWTIRJIRQGT','MCBDWUSNJNQWWNQPM','USFGSEZEQ','ZJPRVZNFVSL','FSQFHXFDPDVLLLG','SPDFIBSWLSQRO','ZHVWZ','XQCTIIQEEPEFDQYPZLMJ','HITWONOWQ','LQDK','HGR','DMA','PKTIITITLQGSC','WTMYNMBXQEFQIYHGNHGY','RHNONCQOYTSLBLERI','ZQ','TYZZBXTJ','RRQXASJHEPCG','EBNTNHG','IALSDUFLNWX','OADQT','ORS','LBYYIXQJPSSYVBNN','KKAKFIWWJIUUJOGKH'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'LYJTSODMNVPIGOZA'))\r\n%%\r\nnamec={'JKO','OWGREQBHQQUMLNVUWQBK','UHVVBFHIGRXWTTAMJJKO','WJX','SFIBGZXGZUEM','BYSUOAWXKPCQSX','UPNYKWBRQSFGCGUZITC','ITVPOFOUKJAPQX','WVTUMGBJBBUWFZDZBX','CQZCXRSQ','KQWLOVEPOFFEDVG','PVNRITWZIAWKAA','DOQA','ACAPGNWKVMOVE','CWEFWFTQN','QVPNNRXCGHGMLKWAT','YNPWDBTIJYNG','YEFAQDSSZ','AQHQWOIRP','ZQRZLGACEUJSTROOGCJQ','SPL','TGBWXKJQJMW','NKBYESOH','YXYE','NXVGP','QRCYSWHKJUUNGEM','KMIECA','HXCGAIWRKJDQ','EVEMIQWSU','ORY','YHBAHCORMXPHBPM','GIE','ESSZLCMQD','PFNO','UBLFILHYXVAXRBVPTQSN','PYVGVUUQOCWW','VIMJNOMMZVWIMAHG','FURZKEJESYJB','FDM','BIFNVLU','T','AVCYWH','QQF','QK','GPRHV','GTOKJEMWEFGVN','GAXJID','CJHJ','APLORUKKCDHKL','XZPWEXZW','UOXFBFQXHS','GSJHWIYHAXSRPHIGG','G','OLF','TU','ARRKPSRLTB','KKFFBDJHHGSSG','VHNQKMLOR','YWXRSYYRAFNYDWRQA','CKVOWSUJGGXVY','PSUI','MUXJMK','EYTHUKVEVDFTJLDC','OOKYLAR','FTJNSQZVECEXE','EHSXVDTVNNYOWLL','UQJLAUKPOTTJQSJKWUX','JMSIXWHFIQEUIRAEY','XFIBXKZUXSLUIXNFWN','MNMERG','DLTERHWWCZDW','YVSISIWYDEHPARNM','QXI','CHFB','HSYWFLNPTX','LRHZFESLQYKVCHX','GD','JDQKKNOAMBFLFPXVMMI','DKV','DWVXMWJWT','FZM','TRYYOIHQVSNKVLCFRR','SK','APE','JNYDIADPTGRHTVWV','OINTXWT','MYSVMYHMUWAB','JJKWZUSBVXKR','V','C','XHCKOGAB','H','WGY','TEKKJMHVZR','DHBCBLI','DHFFTEMLQVWUYYSZGZ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'UBLFILHYXVAXRBVPTQSN'))\r\n%%\r\nnamec={'EYDUEHDLGIIFHA','XNIGHCY','AMLXIFMEBCIBX','EWMEKRLKZPZDXTT','LXYJTDUC','THUQYBENQVIBDTONJ','FMRIRMQQLHTW','PFQHNKKDYQI','PGCEPKNOHRAPVWKNOZT','CYDECVFCTMAVIP','WWBBORAFBCTQAJW','EWGJT','UCXMKAYWHQM','U','RB','BSBUKVUXOYEPWHVYGA','TKCUMOZNCSDEJ','ZAXTHJPOBNNWAU','EJYVWLFJQTUZPNV','YJJMKOZYGHJ','QZKISVFTHJTW','VSAWHHKYNRZYEUEIJJ','RVGZSNCHLCAKBCEPTBP','TUH','KQ','BPCICNHHES','DZSKRLZJHLRUOZBPCPEB','MIJWJNMJWGSEXRN','UWMSGMUCTRDYV','ZNUWDSZQQCZF','HEHFIHHCVNQDZJW','TMIUAPEQXYP','BMVTYNISYOOZEHLEFBEJ','NYYVNSDKJPA','EKRYBQPXC','T','RUBGXOTDRVMCSEBWP','NBLAQIPECGQ','XQFOAQRKIVM','FKDPYSY','TJBVPJOBINRFKVGU','YRPAKHWHIMHJNURPEKXR','GTMLLKGRSFCFXCJAMO','VZBWFUMLUCYB','ZNOLDI','LRTPCKGBHQCGJWADSCP','AV','ZNNKBC','DEXCWEMD','VRY','HMTWGLNLGMYTPZOCU','SJMKNBWQZGUODYZRAGA','EEQLXAGGKYPX','YLHLRDB','GSXSZPWALUIX','IVLSPD','RT','YBBYZ','MOKXBR','XBNCBE','ULCPP','FNGBCWSTFY','ZIFTHCMMEO','KNLFCQFIOKHQAECVCT','A','BNLUIXLNQP'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'SJMKNBWQZGUODYZRAGA'))\r\n%%\r\nnamec={'WGYEJYVVSPVTUTIJXS','UUQ','KK','HNV','OHN','ZDMRXCBS','O','FSNHUPLNIDWJEGHBT','YWSMRUPRO','AWQQD','VDJJS','CZFZ','FMVEADNMWAGZWDAYJN','SXXGRYDF','JR','NRSVCSNIFGIPS','MZH','MPIAV','KKWMUFUZLLCGGBDVYUI','DPYHLZRVREWMVPRUEP','MVSTIJD','GUNJ','WBYOQS','DGYHNMEZDOXPPVQ','OICYPYRJIOSCWAAJONB','CRYRIKGQGKOQXYDDNG','FEKWGTZXNEXPKNCJMEX','YIPMUZAZYTV','VGLXLQFYASS','WO','NICUG','PGBZKWJQSUB','W','PC','RIM','CYPJBH','CZEY','MNYOFOFCHJJKISS','OUVW','LZYPTUYWEB','FCHD','RQBHPP','DHPYWWOMMA','IWYBPWUKTNQGVKGZC','ZJTJBZNGZJGJDIR','QSCZQP','WFOTIGIH','WUI','V','LZGMRVPLQXFQCTBCR','EBIEDK','QJNVGBMNMUGBZOZO','DAUURYORURRXCZC','IIJMVNCTOTEJZIASL','FRZFGSBMPC','QODAJXGTQYG','TQNGZJ','BT','ZCSOEDSMDDL','LFL','MAZAUJGQKR','VUPIXAEKXJ','MJAIVAZWMIAUGMCJ','ZKENPXEYPEIPAAUSSRGK','HYTQUHOWEU','TQYFVCMNCCBWNKVXBJ','UEL','XXFQJTP','GBDICDZMQGZB','EYTIFRXVXXHYMOPKQDLM','JHNXZIYYESOF','BHQVGLMSGUWGCDDSQ','NQMIMXORB','QIYGZSPCJADZVGUK','IXWNX','HOPAJ','FGZPNTQNLLACJNMPVHVE','SPGKGPJDNTHBSJCNS','REHDRD','RLTRDVVQRCE','GAIKLPUP','KWSK','ATJQVAJ','EX','Y','KEZQ','AGWPYYDZNCNO','FOSYLAMECGMZYDGWJUE','CEEMW','SCEORKXPICZT','BLPVKTFEKYIPWIJRG','BFWDAMZCHOIARQ','TFSX','EXPZQXEDAJYRYDESCLY','NHCKRRKWLZJ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EYTIFRXVXXHYMOPKQDLM'))\r\n%%\r\nnamec={'HXYQWEZERXBQFZECZB','S','DMMXSNMRHULVYIJW','HJNZMIEXBLDYQJGFI','MHSOVFVBKINKFJHUIAC','QXUPYMVPVJTU','DMZQFZKHWTHMTHGWYAM','YBVQQERRHBVCJHSROXNU','VZIQAYEL','NTYENEAFAUEL','KXRKXJFBRXXDUGUZRH','B','WDNCGMMYKFMU','N','WAKHZBTPTSPMKZMMXR','STVWJMFSDWTXXAI','TXYKWFIVOYBDQ','EUUW','RMTJBMY','UM','PXUMUR','LBPMXANROSK','TPWMFVZDGKXSAKBEDI','BGVOPFMPPJEWBIOZBNF','XGYKCKUZQDJYAGG','OPLGJT','PHMNOKB','MADXMUBPA','HBWMJZ','KHHZOQKAMALE','JQQIPY','RILSWUD','HRSXFVPEZIIV','ALYJ','KZSTZVVFTYLP','JTN','NOXKHEQILSJGJI','GTOCIJMFH','KW','YHOOKWWSVDGW','HB','NM','QMYRYVR','BJRRIXF','DGO','JU','DYLBWTNIIQBRFK','QKXGRHJSUENSBAVCW','HBCH','KDXTAHUESOKNL'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'QKXGRHJSUENSBAVCW'))\r\n%%\r\nnamec={'ALLW','LNSMSPJJY','RILSPNVFLULVXZVEFFBT','NHPU','QOAEOLWVQ','EVWYDNSUOKB','LUFQUUUGNU','TYYDKHYTYYEJU','TNAAFIIRG','PLLSBFEHB','BMUG','SMKYMCUJKUSR','DVNVSKRLVTQKKOMBDQM','UOJVZJEJECBKYTUDHXYJ','YBATREIH','RICJDCNUOZQV','CKJWAKLJGTIRPRAXOCQY','ANHKL','MOHIUTJIJHPAZAUBY','TDMYDRBFRZBYOFIOHHH','QYRXFHJXVYTSPNO','FOFMTDRGYDP','AOKHLHXAZJAPVVUKZRGH','BQEZMUFMZWEGVTHIA','TWZQYUDBUBCGUK','ZXGMHKSARUPAEEWMIMP','CJMWHCDRTS','BZLQQIOQELAEXI','BSCKWYRQE','PTUDPBTD','M','NQSFMDOU','YWGQJ','YTVGJLJQEUUFSC','XSOXR','NWHP','OBZWDZENZD','FAPOACK','QJEOQ','URAQBEARRMWWJP','RSRXVXJAQJWG','XOULTQLED','VMMMVDXB','OQGOOWPVENYYQCGHHK','SOIXGLQIAPHGVVO','E','DCESGRNXJ','MRKV','JVQUZIMJUQTXSXV','JQFCGOGSYYUPVVRHTEHB','JYVURETJOGIDUG'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'JQFCGOGSYYUPVVRHTEHB'))\r\n%%\r\nnamec={'GHEOXPV','ZHI','MNFY','YEWVTZJ','SQRXALITJVBJBKOGCNK','UW','VCGKSYD','LACBYWDZYRXUUMDSWEA','BVQBEXXMHPKBQPT','JHAT','ZD','A','XNEWHBIDQ','LBXERLUZYVJ','RIIJASYOPIVQQYYZ','YEZGD','XGT','DLM','LWXZHBIP','ZJBWEPIBCOE','MNXWRV','VHNV','NODYUAZMCNFYMBO','YGEPCRFJXSDDSSSPXP','GEOZMOVT','HNMWNBRLIXS','ADZSBCUVQ','FNHGFLKKEVWNP','BQMSNJCTSYQSHYQVT','CPPHYPDVXPBTLJBCV','HVXIWHTUBFRQ','LPGUVAJMLLFNC','CBARIUY','KZYTDHXK','JRVJSZM','ARXITRIJEIUCPWNSVGSG','F','JPGNHGAAGM','PVNPNDFHSULUZUGVMM','TKLQI','XWMBFIGMYRIVHITGKASG','UDWHDNWRSXWA','OVCEEBENVWLXWAADU','ZTUBMITFAPTYKXUO','QTQIBJAXBZFSNZJO','RZEJKYUBSAZIHUZZTEBN','T','UCWBQVB','WSFVAWJRFDUTNCH','WKOVPHAEUKB','KXNI','MIHKTNESPUOCU','RTEQLAVBCBQHBLTU','SAABESRXBX','VUFKQNNRDEKTEUAPKL','DDVGOWCFTHGEUPQ','TFGPZG','RXUQOEXSOXYE','BCSOJJAGDOXJHVT','GBMVF','QUF','QTZKJTICPIKNX','UHB','NYUEWII','NCQYPHQBOPBZUYHCXAK','YADQSMQRSMMIITHHFA','MBRCRQELQGKCH','LZZO','IRIG','EEHQAF','JNPMVWWYVIPYWUYTHCIG','MKIBIHSMPAZPTUNQDVTT'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'SQRXALITJVBJBKOGCNK'))\r\n%%\r\nnamec={'Z','DHOWAIFQBVLAERDIZZR','OI','IDHDDVZ','NZLLBCKEYOOPJ','MSSIHR','KYLNPGPUXHBEAEGEU','SKUS','IRNRYAZYHCBFJ','QX','QTCNBH','MN','O','MXZEKVRXPZNGLGBRZDSC','WKOVYXZ','SATCUZMGUZ','YXF','KXRRN','JP','ABVRKBJADWVVELBWGL','VWJ','FSTDKVQBRXVVOMZ','PQEFIDQCYHQDDO','WJBFZVEMWRDU','HGEGY','ASTQOOAHJVE','MDBQSSTJKBDJHYNFS','FHNNVOCUPXZMFNIX','RDZVE','PRNRM','WDQYYBSTFHJ','V','HFVDSTNTWSHBARXDRUB','FCFSUBZSWUSKY','VIEJQCXLMFIBGLG','IQVJMBBYMEQ','RYCQYUO','CTGERJCSRTBXYTRXBO','BY','OPZEAXLZVA','JRACFXQDLK','NBKBZMHLHD','ACOVTFVJGABIZO','I','NRBGNNN','VQTNLZW','SX','LZIAMEGC','WXJCY','HIUXVECXYWESAHFA'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MXZEKVRXPZNGLGBRZDSC'))\r\n%%\r\nnamec={'FZPHLCQSJ','ZJGB','OZEAVWJBIXGMNDIBHB','YUJKVLJUMREHVEUF','NNTS','PSXIZYTGWVQGCO','ANSZYBJHVURYFFRO','DKMKYZSAGDLS','AOMQHNPDDOJIXPBTR','LBJEQAY','LLTRPZUNPX','WYQPBSS','RWRSINKDCVGOJNLDY','CZNT','ODPRRYOFDTHNEA','BMRAURNBMA','XH','CBEPGYFUSLX','PM','YR','GPERILIKMEJBM','ZLNQVLPDTYDXFKJDN','YNJI','VQRYWDQZKL','VF','OCWRLSNYXBKGAAPB','R','XBMBOMSJFMLTWHEIASTG','LFJUCYAAEJOODRDCKDSZ','QRSWJSLZUFZLWUGEXA','ZZOGMDFVXUAORK','NWWAELWYHUVGGNWBAG','MKELXTBXDL','UYREQN','BAPNNWTONMMAWRLPG','ACQZOC','LSSLSEZBGTCTHPYI','LLHJQHDYZK','AVHKKSOFWDMEFBLMZ','EBLAJKZEFFASIKNPVQZN','SI','OLZVNQRDOJACJIBTGVO','ITHHHPSNOVIFEON','PXAQYXXXGNJP','QOCCYQQIQOEOSH','ZBSLZMI','LBRRLYMAGVZ','AZB','HEJPW','IKPDOXNSRWFUQJJ','PBEIXBHIDAPZEXMSMF','AOQ','DGGUVQVWPWVFXYFILK','IOUMLOEBBWHUI','TY','LJYGUSMUVOOWE','LJECMWKCAX','YFZZYUCGAGWUL','KIKTMLRIOVBYXXJ','SODFBPHH','NEVZIFFIIRMTVDROTK','KRFFXGUW','TKLPKQVSQABGWJ','PFTZPYAAAMWGCMQF','NLGALHGVHELLRSYMVYF','ILUVTZL','IONIZNOQ','OMQMXZWWTFGFCCN','WECRHJZVOEIKYY','GCWVGIS','NUGZXHADWNACB','KPBHZOOZ','SIPZLPMAXMVSEJ','GCGDMVXNVL','GXPHICLKI','ZUD','JOQEWVRQIYFDJN','KHV','GZMTURTBSJKWBBBJCG','HCPMZ','ZJXEEMZVCGPUP','EJSGSH','ZVHTHMPYYKDPILIZDDB','XJUSPSGWSXG','MFUPWZBS','EUHW','JPWGKNPJGDCE','HJ','ATZ','IU','KZTYEQ','YTQJOFASTIUQHT','PNACCYGUDBOWSQM','VEVJECRAOQIWY'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'OLZVNQRDOJACJIBTGVO'))\r\n%%\r\nnamec={'YRMJICHXATZTRMJGAR','FKNDFFDBNZQRYNYGNX','WULIPQKVMQPRZUELHBF','XTWNMDKPSAH','HJXYQCTHAGWPICMC','OJKOGHWDOMMHX','NLEFJBMBM','NGPUQZOCKRIXVA','WSJGNDAGQHUO','YEQVSTBTYKTQW','FBJOFTUVSTLYXX','JJGUKEKOVNYKFBSZOGR','AQH','MQTLVPBSVWYUIELEZRN','LDLZDHCVLLKWKBH','MVZGDZCOAXTDBH','YE','TZSAKCU','F','XWA','RDCJXSS','ARRVMVB','IXKZJUAMN','EBBDOOYDWQMBHYO','ROFCLQUT','EDFUXWFQIVCUOBH','QMTPEIDOHXNEMUEBTMB','GNRIMIMRKWSRQK','CQUOEKTFWBZILEI','MHPZY','PIFDZOFL','NCWRELO','FMNFQSF','WER','UEYBYPDGXQAQETKXQXVJ','SLBWUKN','FMRYZSGCXQEQCGQPB','TNCVXGBSPXGNTDHET','MNJ','VAESXUHIBU','VUZRSYLATSEAW','NYGYKHJW','IAHCUOPIMEYPNZANS','SMPHROHJ','QKTHERTDFBV','ZEZZJNFRM','PAMPJCXL','AQBFZZQMNXIWH','MQJKYJWJLQYWIQIC','FADYJXGWRGGQDLCN','OZNVSOSQFYOTAG','UATQ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MQTLVPBSVWYUIELEZRN'))\r\n%%\r\nnamec={'OKYXOCHXC','WUCHNGRDZRBUAMKYBYR','KODKGIVSKXHNQQQEZKYZ','TXMPLWRRRTQXT','EVSLHETL','QWQHMKVVAD','YWNUODRFVUEZKI','BGCXWXN','DRBMONETDKXMHO','MCFUKSNOCEHQAK','JDBVKORRWAFZR','WDURIEMNLUFO','ORKOM','UKKPDHTHPCKU','WRTRXH','UEXFBNJNDTPKJT','SHDBQGVDATZNJGXMII','NSYSMFHI','GYETTAU','RZKRYICQAGF','WPPEMWES','UPJCPCZRM','LNGCVBZTYRJOB','SLNJWLEONBSDEX','HOHIMCTUIE','WOUFXRTVDKUUXBNYIBIB','VHGULPEBLOVIYKJN','YOSOQLWSHMJOK','SRS','PUJVLJT','TUKDPQAZARHPGMIUWR','CVAYCJFVZCYKSZGLEFBL','XPMQDN','EGVIOVX','CKWNOBHAIYYDCTQ','Q','HAK','GCVVXCLI','QJHHZXKTMU','AT','KJ','CM','XBRMN','EPSLCDVWQJMHJBLHELT','MKCZAUASYPSCSKK','WRUPHXMGDK','JWTLRTXKR','OFWYPCFLZOKSSIQN','YXLFUYUAQSGOXABAGAD','HN','RVB','OYN','MDGCWCOIHSAIS','BNAIMRK','SMIEZURUTTIDN','YVWMOWXUXGMXZ','LFSVJTJNIUYRYIBSV','WFIP','XOARJRU','LPQHDSU','IP','Y','WEGHMPEAJSWSTJIR','LYPLZBJI','UPNZWVOSSHKRSURGTVAC','WZSUALERZ','BVHUJHTUQHKNVRGRLE','GZ','CHMOLJUBXNCCOFBQBHHK','RVJSAWDMHDAEXR','RGLCMFSFMQ','NXTOXERFCYJYOFRBPA','MXJJROKRCQTCERFUSEP','AGLCGLYEAG','DCOLWJH','OT','CEOWMU','JWQEMMZFSDA','JLFSLCJRADNG','CTQCBVGZSWAZAMEJP','HJQQJT','QHCQRRRYOF'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'SHDBQGVDATZNJGXMII'))\r\n%%\r\nnamec={'NGLZHUMADA','AZILUVGRZ','WMNBT','GYSTYVINKIECZMNQZL','ECXQTL','VWRTULBMJDO','H','FLVVGYTKS','AFBDFORWDIZYJ','LRMVQUDKDTFILNE','KT','COTJDBNMWYLUVWJMUJXS','TTYII','XHYSDPTIT','HOPTKJHZNOIIXJI','YIVJUYGFB','XOUJPTEEDKMLZN','DMZTUQVCPMOJTRCSXWTI','PMHQKVAJRMFYNTV','PFCFOEPHTFHXUT','QFKAFLRJIHO','XFUACXQTNPISWBADXJ','Z','HSHHZZVOKF','UIGBVNKBFDYA','DBOMNWNRYE','EXVHV','IUED','XBCRBVM','QPDIGQRWMLFCTFE','CZEIKFKXJPNZ','QZHYNGQRELFP','JQKUTHSVFJPGYYZGLYA','PDZYOAJ','CZZIOGDFEKVCR','HDWYLVTGHZR','AMEMKIIBFM','HGBW','MFEKMJAJEFBQPRPA','UDRBQ','KBHPSSTTPQCXULJN','JVSOGFJRRCWGQEROTD','NSYBMKZ','JNETACZUZJDNGJDKPQ','DHQACXDZOVTMQKRCBFEH','EGPZFGLFAZNKQCPYMOLL','EJNWQYTPCSKHROERKWFF','QNHBHM','LPQPYVADQTSKURQE','PBMC','BSZNGEOPOSEZOYTXDX','AZAFTKXUUSEIRZNXKBH','FYTLSIEVYCMQ','FVQPOZYGMTLFWMENJC','I','QWTSFHBPIDNGIM','TPL','DYXTKYWIDOEINGXLMVLQ','BBPMULS','SUMCQUFARFFPZDVSH','BKMRLOZQEGPPYZF','TOYOGVMV','PFEOBGZNXGKOYQVBL','KFMVTGN','TV','YXRYSBJQUUBGWJBTG','LURDAGYJXMY','GMZ','IVGOGHE','NOUDGHGPVT','XSLETYJZUXBSWG','SBKSW','Q','WHSPWGNDCB','KKJDSBRQFKHIYHY','XDHH','MLEFRXPCDXV','YJWCGHSFBLYPEXR','EVNOGUL','YAAUJWLIRJHFPIJEYQI','DQOQXTBBFXFKYUWYXB','AJFEZVMFYULDLJS'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'DHQACXDZOVTMQKRCBFEH'))\r\n%%\r\nnamec={'NYKFHEYGIWDRNR','ZMFELMGVPAXXYYSGE','KUXLNNNRBRNGFVTO','FCVXASKDIEOVW','KGAXP','DOGJMZWJGXMA','WZAZZEBRSFTYMKUHQT','UOIAUGP','WOVRO','NKKWPLXNP','ZXDOBY','CQLIBFYTM','ZUIFAWEQDTVLGQ','JBTZVVL','WFAVVTDYPPZMQ','QYNPYDXMFQBAIXEKHB','WWXIIDLQVUK','RRUNL','SRKKOARPCHQWIPX','TJYBMUSCXCSL','GWLQLGOZFAKFI','JTEDUQQAIKYCYF','GNKJBIXFQHLY','UFG','ZPXZXELZZJMAMKNO','PWFEUVLBHFNMLUHOYLKF','LFLNKCRS','VIYBFOJL','QLDDNBCSAFPLSRHUFS','SSKNUIMRPXH','KJAMTWR','DFGDRLVJKEVSJKFQD','XWWZXONGQBCN','FXKSWCTC','DMHNSYQLJAFYKEJNA','SA','LKSEEDCLKPVYYYUDSXJ','EKFXCNEEBAJAV','ZCGKPDJBNWBPRDJ','NOP','LLUMUMZQHXKEGNTTPN','YQNQVBQNJRWLMIK','XM','TLKAAIHFMCNSSPMY','RWKZI','B','KPVIQOIPLNRZBNI','ICTRPGEPIYQMF','USOYXNGXPHNHPKE','TTWXBSMFPSZZYXM','HKPWROFP','UOY','ANFXBYIFVPXRDJK','JREXET','LDSZECJLWCBHSQWTCAV','FZZBGXNBEA','I','WKPMIMHQEEGGEYTGAHB','NQGHUHVZMXRT','FRMNOJLMFCLUJENO','UVDTQOXJBMHHBQ','OA','S','IPYE','IR','WMULVFEAIHFJ','JPQZZDGRBAVNBAG','ETZQWSOAZMBLVQ','M'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'WZAZZEBRSFTYMKUHQT'))\r\n%%\r\nnamec={'YGOPOXMMGZYEXIZJ','GRXPDHIVZADUYKEB','UWUCUPS','IIZZSDCF','JIZJWUBZDTFTLZOCK','LKLGJWEBFOCEW','WMLRLPFZJHU','AIARXBYZVMVVYMZEXKJ','TQAJAEARSFT','HJUGNDUAHPEX','NDGVDH','EOSWLGTWR','SABZSXYDR','C','YQDEEKWVNUKURM','LFEYIYLUYQMDLILT','CYEFWERUNWHYV','VHNP','ED','MQAYYWFF','AKWOG','EOLJT','MWSITBYMRKEOQ','FIUCWARXBBC','MYDEFDYGXICH','MMYYGQVGFICUAXCRS','WWPULNFLHM','LQNFPWNT','CKVWCGQT','HDBOPMTUYYNHLTNSLC','WVZCNJFLSQRMCE','SUKMDRPWWDZY','SIOUVYRY','EXVQO','FSHXIR','EVSTROF','YNUOG','VKUGYGUJLBIBRDF','QYZDIAJCOAIKYXJOZ','UQNFNOOIUUYOP','O','IWVIYUDSV','RIAEQMJQ','JGXPONWN','GHWIKCVUUULEQFFVOUTE','USATQADSTPSBWMSR','OBBZWUMHMXPJ','PDS','WDEXWSO','ICOLI'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GRXPDHIVZADUYKEB'))\r\n%%\r\nnamec={'VYH','QFSOIGSE','OCPFJTROG','ZBHEWWQ','LZJWJJFYDSDITO','ZUNUNN','KFNYNQ','IRKSHPFDSXGSNUOID','VQCISVNNHLNRJPNTXVQS','KRPEPCPGLKOJEOFPUOQF','UKOBUYSK','RG','MVPPBWGDTLRQSAFFUD','AJSMEGOQUGUEWGDWZO','MDBEAYZQREADG','LSXWSUMQXEMAQZAUZUH','GQQ','HJNBCZYQGGWZEV','MQPZDGCPEKYRDB','UZT','LZMCS','TODEMUWPSQBWS','WFULOCXD','VVJZKPOEKSOTOGVUSYK','EFXKO','NY','LIBOUCDINCXTPFKPXG','MDEXVSEEMXINRWKQNHIA','XFJDVCKCOFH','ZEBAJNOX','NJUVIN','O','TRCVTEZLWB','VZEFSLLUXYUOBS','PUEFRCWUOTX','KOQGLFROZL','PZIQXSABZKTASZMLZOR','VIANZLODOLNYKG','FDYXFKCIQBHRJAWLAC','LHO','QLRGGCEDMLKOHD','YMOJB','HBLMFTLT','TAL','NVXSLF','E','CVIARHWTKWIEEB','VVNPJYU','MY','GHEOHZYPRPHZLPP','HGATPAG','WKNRVYBTRFHCYGFVTU','W','IHSGEKQRADAZGOFR','LGZZZHRWJJQ','CMKVAOWRDNXRJWKDRU','OMNXOBJD','NDFF','TTMOCY','SUZVPFSGODKTYU','PLXUISCWQ','LKRABEVIJJOP','REBLYVBBCQWDEYW','KGAVXAOVWWOQLUTFLVF','VIEHXWRO'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'FDYXFKCIQBHRJAWLAC'))\r\n%%\r\nnamec={'Z','YTZFCBEEJ','IWSMGCQOIKDVQXNLY','WTZWBQUY','AGSCPCCZWIN','WRBBVZFW','XPVFODFMOAICPGQXLYPZ','AICVNQCH','AGYSIIQVXOIX','QTXIZADDYKEQAZWQW','YKDDXSJXFQMWFA','WWUZJWWZ','RSBJNRUQMNWGWPL','CERSTMDEXSWDT','IGNY','TUDREACBEH','IGNSZYVWJBGMUUTFG','QSDDOZQFEDR','NEMNYZLYHAFWPPZKM','H','LLX','GZDDNQCID','CKFXPTAAOCWSDAAL','PBDWR','PTSTYMVFHKF','QVFCNZYBKZCWUYLBMWSY','BVNEMMZRUJHPZAR','M','PYTRC','ZRIZFNHXBRFK','MFYROLOESPHWMZJ','FSCXZYPWBEXZEK','HQ','VDMU','QPFUMPKPAICYPZUQ','FEZPFZYWHCTMEQYRXCXJ','VVNZAEBZVJFPYK','NPPJWNGYSTPRYMNZQGM','TWLFT','YVDHKL','RMVASPSAWYEDTUBYUQR','ELLALVLJ','XWBELWJUECJFSSEFXXJ','XMRVSMGLIFWEYQQ','KZSOGYLDSFM','UYYRI','VGPLZBXDJGOYMKA','WDRTIXJYRSYVJAAMRFNV','TFKNJUFIEBRXBDD','MNUXMYPQODVYJVPW','M','QNKC','FCSKO','ZILNXGNWQONPEUO'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IWSMGCQOIKDVQXNLY'))\r\n%%\r\nnamec={'ADAM','BOB','JOHNSON'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'JOHNSON'))\r\n%%\r\nnamec={'NQKNNWHFEOHSLKTNVFLR','BTFNVWMDRERYJVAIT','MAZTVIYYSUSJJXCASTEF','FGOIZR','SIVFDJRBFAVOPY','EFKBLIU','WEKVXIWONZQBQJGIAN','QTTWWVZALMOCIY','VRANXGABHQKFQ','KKTA','LOMGOQKUSK','KCXCH','IAKHQMFDP','FHIVJHZJRFMBHGQJ','ZKNJ','BGR','WWGKGNTFKG','DTVKZAMA','OOOXPAPQOWFJVSVV','DLXWYZJYHKLNQRHODVLF','EKV','VENEYJPJXBEDEFRVRQ','MHSXMA','PNGSMCENJF','KBBFGPHXYTBMENMQU','OSGSUKBHICIJAOQVF','OAQPENVJ','DFWDYEFZMD','MFNTJSQYK','BHIOQK','ECIFYYJTWVQNKY','KKFMTFFPKX','KNIPHCQTRIFWKQVHST','QSJNXGCJRZSTISIVNTAN','OPNAH','K','COLCJEA','VLIFMKSEYFSJSSIJELR','OTCPPCEGFMF','RTQWFVCHJVHKMMNVODQF','LJZQNXVWMBDPBLRANAH','ELHSEBJHCEYPTH','CIZWPEZSRZRCAJSJRNVS','YX','JEOJPVAWRZCENTGFKI','TGCZ','UINFPXKVYAUVEIQEVJDU','LBJNSEBDTDRN','PZRGVSPLWGUZZKG','UWILYJONFBSJJNS','GAHHQY','P','EGMSUUWGDVI','QQWXQVOPLAJLHKHOO','KFRXTPQO'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'JEOJPVAWRZCENTGFKI'))\r\n%%\r\nnamec={'CSKVFETS','LBYGZSQJRQQOK','YBCUNSJGVADXYVV','JKJTLPGXMJCW','X','VCDMDU','K','NMVCXLJVSDZX','HZPEQR','VUHKKTVMLEYYRFAXYRM','CEQTVGTAVR','DRWHHUGAFBRS','U','TKZKQXBGEGZITHG','VNSDLKJETHKDUUNVSMCF','N','TLPDQGGPYEBGTST','JDWFNEASRN','GZWBLS','BRPFMTELBWXKBSDBLQE','PLQDVQIYOOGSJCCHU','ZNY','RKUFRMQEHIMDQGKWM','CODFQCBSEVEVBQTNP','VBALOIRRWMWBOPAL','ECPPHOWLMLMEHPSI','WOL','VSHCNE','MWXUHAOHJZMFZQZW','JZZT','YWTTXUENEJZSJFNC','CSJ','XTPKGEQWSFVDDEBFS','GGHTAVOKBAEMPGKMWCWT','OKTJOM','TAKRHJVJCW','OMYDES','QECXLKFMXRZCZQDIFAB','WFFRKQFSUHOFLYKPPADQ','UDVEVWPNUNWWKTYY','SQZZIULDKGC','AMFFCSTYRREGHWHISPZF','QJTPNND','ZJYOVPXRNAPGAPQHKWXX','PIKMVOCQPSFMYSTS','DKMBCTJKAXZSQADZ','IIRKRCWGPLSD','VFVOICPKCJFNZGIMJQN','AMRWSCZGTYRZCTLMOMK','IMJOZCRJLJ','FSCXCZVNTKGIJGGNPUAE','RFTYBQEEBEXDVGQ','YNWGOMUNYUJJ','OFLBGTFCUBR','OQBRKADPXKFRIGJX','UQBJNPNOVVIJCB','TIUWNLTXURCFUXVVYE','QLXWZOWE','OFDGSZLOELBHINWFIOY','JYOBUWPSULYAGFVNCZGB','UPZRXVXKUXTHHM','VUPDBBZR','BMLYPBJKKYXDE','PNZKJSS','LLIKKRPDSGLRV','CYTINFVIZYRFMW','XWSJZIF','OQJXHCYWHT','HOERTQJBB','TCDLCIAQ','JCYEUKSQ','HRVAECIN','CGGVABCCCYKTMFWYQKLZ','EAWICWNB','LILXC','ZTYG','DXTJHSRLSJMUCZNSHM','SNCWCSUJQYAJFJMPQPY','SPKWORDMAFYXRZBLZLQ','IVXXA','E','TOHASOQMXLNEHQNDRTCZ','MOJDSIWHOVHCNJICCOBW','FJAYM','FQBOLLPTRSYWPDVPQV','ROWOXWA','JGGCMRON','XNVP','QGNPCCLYR','JJYKPWNKRPWOIFQFPC','AVNYDDWINQ','UJYKLNEYCNUUOSMGXGBX','XXH','ECAFLCIYVDSP','QWUWVHGAFZCZRHHBBOY','KCAYQOUNTDD','B'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'FSCXCZVNTKGIJGGNPUAE'))\r\n%%\r\nnamec={'FKIPG','FIEOUUQP','RN','MPPBIJRAXYE','CCVHLSNXIWIJBNV','JGGHIQWFKSAGPY','GBDYGYDJYFL','JVZ','IJPSUPQF','QDCUUIQONKOEZZTVFKJW','SHAOOFPBJ','VVKFJMPMZOBITLREWDUK','ERFTHS','IXBM','QOZQ','MMJCPWBZ','FRCCUBIFBBGANTRKZMSF','AGTHUZR','ADYQXRZUSSKYQEBOJKGP','FGLAPUWMPQ','ADPUNERYENYAPAJZQQD','TEI','MQ','CQASGO','YAEUN','UUUVHSHXVAMRANGMLOH','YOJIIJMUXCCFWX','KAYW','LW','RIULPYD','FKLNNZG','AHYVKGPCF','NDDRBZWLGMQUH','SIGRH','JRHFEJCYHGH','BYDIOZMXPMD','FNT','OYVDVAHHZOJBMPBTCO','JDFII','TFCRVXUEPKLPFYYCKEE','GWRLWRLWBFQLKBV','ISJDFYTZXKBQ','MIGDMEKZMV','GETOPJ','T','LIGBBAJUMKQWQM','MRQ','XMHTRRIMUQ','JTSBV','JNXOHBPGQXZQCFYHZ','DOL','D','KFN','GSCUSNZPYPLCRIQDUL','CMNQWSWBRCD','MYVIWUXI','LPEXAU','KOJPAX','OZNRUXDHQPPVLISOA','LCOURGNNV','A','JOMVNGMJRCRFIRNTLTJZ','EQPXQG','IMGVZ','YBDZQIEZNXHCDKCGZR','CLOOK','CYSAXVRBVVEHZCPR','SXH','ABJOITMK','GKVTTWKLLGSEUONCYBV','DWFLLRVVQL','HWNWYQDAXIHJCB','DPHFBLOOYAZKARPWDBR','TKVK','LBYSXXYMJXFZGK','JL','FAATKTSONFCGUOLIPFF','ACKDN','OD','HENGYHM','MHFCTBIBCQHUUCWXHD','LUHHZDFLCSLORQIGSRH','Z','TPNTVCTYOSXBOUNQ','Y','RKBYUKXCFVWMRL'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'VVKFJMPMZOBITLREWDUK'))\r\n%%\r\nnamec={'PNJLGCFVJGHGWO','UYIONSVIG','CL','HUESTKNQX','SALYWREELNSZBP','BNJDZJKHOUSQDFKXCKJ','TNBIT','EMFHXOJXUALHZI','YBTCFQQZ','EDFYSBGQGC','PZZPG','DPLIWQLTYGDXJAR','XQFVWHRH','EPBSQBHQPXERQ','MKL','TAFGSLFLICJXG','YNZCPIXB','ZE','PFXEDL','IJIEPJV','NOHRGSWBSDZATZXPEYE','UTORC','XVIWAUSOTTYXILP','KLMSHODTREWLEGMEAKQM','BMHRB','UGFMAYIKPGKKGOODGQ','SMNATWYMABFAXVAZHBGB','EPS','VFTCJCYYSSYPRORKID','JHBQIAXTCCVXHHVFR','ZZLQENONICOQDBEEBTX','NPNHOUUUIIZPTLUY','ZDJLXCPTDEMUJTEQ','YHQYYTNGWZAJMZH','WY','LTJPKLFOBARRYL','RVQKALVBY','DKTOPDDQ','AZMQGL','QCPSYFPYQDHGYXAEMG','HJ','YBOHRMKQUE','IQOHTONIIIEC','PJQZRCC','OEFIFNNE','JDHEBJKIKGGAZFFA','NHM','VSXQHZLFCPMWWZUYVPIB','HAOSNCEVJDGBSFNOVSLP','GFHEAVXFPT','YSWXTKZRYXQHLTPNQV','NNRKFIZKXOKYVDNYXID','XTQABKRPUW','IYZILFCRELKHZAZBLKR','LLKSWMIAD','KAZJAGOZGIZR','FHTUHMLKNV','ITAHVAFRTDBP','VCNJOSINAUVMBXZ','DETK','LHFAKGPZHUIIETIK','XBAQSPFVUY'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'NOHRGSWBSDZATZXPEYE'))\r\n%%\r\nnamec={'SPTOMHCELYFKFSX','WINRFF','LTHAOJDIFHHEFCBPZD','RAAHGELRLLOI','PDRMKYDG','FHHWZSPSTXKR','NEBYKBDR','MVHGZ','UWNHIZZFDFQPDP','HQOKRJTOV','VS','J','TKYOPUXP','BEZJKFTUZDLGQBML','OSGYFMB','CYK','UDHMGNBAIMJ','RVCXB','RGNKBHEDHQG','XKCEUASFAMWNHPOH','NMEGU','JTIHPXRJWVM','UXTUFDZMKBMOYAM','WNAUDPIMVLMFXFQ','CTAH','CT','INJVBQXR','JRBIIEMGJW','MMEL','ANGNWTDYQTJDISMB','UXDLVHXRSS','SXOXQDTCTILOJWCL','AEIKGXTQEF','LUNOBPJCKTVNWANST','KEIVXZZUVXBDI','OEGDI','TVLQBVZMSWAJFPC','NKTGDWFEQZON','FBMAYLMQUSBW','PZIEBETGIRXZ','NKTPM','ILYTPLBDMPGTKPYMTNK','WZWGAYZC','EKLVVCOWGCFMGYRQNJM','IMWZBYZFG','RZMXJTPHRTXVJNZHSJD','EQWFKORZPK','LIMZG','OGJNP','I','ONHKJCTRSHXHQJOWX','MEUJMQQLV','BYXNMK','TAQPQRJKTWKZML','V','DMMDGTLE','REA','VRXWMNMOJQZJX','EHKSVVRZFEVGEXV','NZCZJDDED','IH','IJTEWCNJHJ','N','UPMHRIMYEQQRRZVLAE','F','FEKEQRQXHBJBSV','FJAA','NSURBUOO','SQVEDH','WGUCHJUXRAPJHGWRBKIP','DDCQXSU','AOJTYNTKWS','OGEPINA','IZTZQJ','AKSGBUDUO','KQBCPHX','UPWLLPTVEQNGETYOTB','VRCMMJATCBSL','VX','KGDSLBPWAJHLCIZUCH','DNG','AXBVUCA'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EKLVVCOWGCFMGYRQNJM'))\r\n%%\r\nnamec={'IGOYRFKIVTERT','DKOHDARM','TMIKMYTDSFH','CSGTIZWEFDBR','KADAEBAPFYIYGO','IQMGMBMQLTWUWC','RYRKYYPTUYFTI','QCZFOSRARULJLZEXMCW','IEJYJY','RKCMPQAZRSHUTKQPUGNV','NZEHCBZTDXKOXFXD','NPPALM','KZAOBCZ','GZR','BOZQSAAZPVZD','UNUUTLWODUMUIDS','JFSTFKOMXCBS','JXWNPDGVSZT','UMAWLBCOZUPOAIYXEQH','LFDKXVWELNQDK','PDCDJTPREPZ','IVGPDJUMGUE','XJK','LKEPMYBODR','MPPPZGHZSDMEHBQJBV','RPCVEXLWWPHHBYXWSUW','TPJEKMWTTYCYJG','BVPBOKODUYWCQPWBQ','FSZH','NCJWIZ','VCQGMOUIGWWHVPXE','L','JKHOMQMDNEFAK','GWKDCDMJQYN','FSMYMUWYPU','AOOYMCYLVNYWK','KKDOPSAWIV','NLXFXCY','VKFODHFF','AYXHMQMHKU','DKNUGCMEJL','QQFRLYDQQEJDVTKCMQ','YMJZP','DCFLDAWFITJERJEMQFI','SJDKAPWAEREJZ','UFAKJ','UFCVECPWEE','OHVLIZVXZ','R','ATUFSOTWJEP','JZCKJKHATGYHWY','ONJUBQJQZF','IGSE','NPUPRTJQHYKIQ','JORJFKJLQLVZELEXNUA','WTHARCXT','YADUX','BUTHBXDQXRIEAPC','AWW','QOGEM','C','J','LCFAVHFYMSYMK','GTWZZSHIQ','KDVUBLNOSKNP','ETPUXRV','MQYBPYJJEMRSFBTJD','RWVHLWYCNXGWJDJ','HGNQQSPJARNYEHCETYU','ANTOWTNRUWQSDF','SOPFTC','QJEMUUDZMIPB','CKIQNAB','K','ITAJGBFKW','NRIWYPM','ZUPWJOCSZKQDAIEKKIYW','GUZV','QQHBBQVPSCKKFVT','TVMTHCDKAJWSW'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'UMAWLBCOZUPOAIYXEQH'))\r\n%%\r\nnamec={'FSZESYIDKESTRMQPSS','JLKMFOSQF','XSBMEJHOGEXIMA','AJTVMJGOW','MTFXUJVQEEIN','MNXEOMSSEOUKURY','AN','XZHMRQQGU','TRZKZBO','UKKU','THKLUBIIJRQZXENQYAST','CYVFVXRWFYDQ','NPWCNJ','EFAUAA','T','YOPBR','GLPWSLDTFMV','QPIICXOJWDKJPI','AXBDUFDCCHPRQL','GALFAFUOOERRGD','TZKUVBRQZMXKBNCINF','FKZTRF','NQLYCRQKEOWFDUC','AUJTLFQFT','QFCLOKNSBJCHVN','QDHZHFPSDCPWXVE','BSVCTXXGBXCAKU','JEMNZFC','CFJMEBL','UJSNCVNELBNFCUDODMGO','ISU','LXB','DUODTCGVHKSW','OUDTEGTWSBEMYPG','MBXGAOODYIZKO','JSNQPEIY','ZVBBZGZTMZZPMXXXA','YS','HEAVRWFKQWQLLRNANXGJ','RQMGGNETWSYCRTUKLCJ','BOEVUNAHWEGJKRBUEJVH','DRPGWQSPAWHMGTDZSNF','KBCTWJT','SRZRKLFZD','YPZXPODCDBANCDYREO','XXWCZZHNHNWXJHMXDO','EOCJPOLM','EXWVAFTSMY','F','KRTFX','BADJAHPDL','IVVLKBFMBOQVTBVUB','UDQTK','AJ','IIYAWVDYOIGM','V','XCWGXPBFKJQ','VQACRASJWBMQ','UPUWKP','YWPCPMMYDHH','BYUDKVPTHETUYFQQ','CSGAVUENWJMXMDIXCFTV','NNPEXJBWJOTEXLNMAG','EGJDMVLZGDQKZDSJY','WCBZDSVJTFBCCME','IJRJMXXJSVKNQUESSPXG','TFFVIKZJZAFBJUZKAI','FYDB','NRFTYRXHZZZQF','IYRKEAOAFTXMG','RSEEFDWXAULIPUKLUHR','EHDE','CIULRIHVFZVPD','KJANVABEAIWYIMFNE','SCIPMSAZVJ','EXSTWLXTF','YC','HGRIZZXHXEAKZBVYQT','BQRYGORWQPVWGIBBQ','LUXVPYULSREP','KDYSKHKQIDJEU','P','DGSUSJBJKIBQE','TUSPGYQCORQ','PEF','FYHFFNWCMPBCGIAA','CGOLOTDDPAAMZIJV','XNDRRSLMYLMQGHWM','HLKGGKGKFOUSMFXPWLZ','PMPN'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'THKLUBIIJRQZXENQYAST'))\r\n%%\r\nnamec={'ROVISHNKWIRVFYOZTG','PICZ','GF','XEGMHFSRFTX','SOFGDDVBTDOWBLEQQBWU','IROHUFREDPGGBRXUFZO','SZSFPXMWFRJCMZ','TX','VVW','TTVZCJYTTNPQAUI','AMJBBCWQJOUUD','PMCQ','PCJOYAWISWUQOW','GANMU','HXKE','MUMUOVEJVABVLQEACK','IWL','EOTQBINUTEP','ZHARSQNTKXDIBTVWZK','MDMDQZOGNYGGDRW','GDJJDCPXUKZYOJHXX','OOTB','ZEAJ','EOHIRXCJZUZCSX','RJBPDMQQHNII','GNCGVLZ','OEBDO','HYXEZJHRQGAQOPT','VK','IQIMSELNLZUFL','AMYCA','DSDXJQZMYMUWZJFGLIM','UYTW','LLQA','BJPVBBE','X','BUIANDSLTA','CLHKD','MNMBOCAGRVKUIKSV','CYCDDL','VUWTHN','GQJGTCSWRM','MKGKFJNUFMEZPYKE','SFO','SQFKFPXM','ZSATEUQQQDNCTPLDCJ','VSSBPZQOLHNLSR','EKBES','ZDVCMEXAO','PKDEYGDASVRMRFOQG','EGGEJWXNOWJY','BWTNFXXDJ','CO','IKRABUNQM','ANSJAKLQZJURSVU','VJCIJ','UOKNFBZIR','EYNHPDXHCUIUQ','UVLCBHWEYNM','ZI','TVZWTEEJVGJ','CLNXKFUODS','VZCJQAZHFVIUAJ','IWSKUIYLLMOCA','FBRSOXGLRGIT','IDSSXEFAQLC','FJWSCYRVD','BJUJXUIJQMO','URLWCIH','BOTVBWWLYUO','FALLJCUWNWWUFWWLKDJY','IQLCJIQINJLZSFQ','OMUTEEBHCBD','JWOM','WB','EXRCBRWAYEMNJQGIH','JLESZSASLVTJ','PYARZJJRDOA','PIHXQIYTME','XYSFFAUVWAICBZHRG'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EXRCBRWAYEMNJQGIH'))\r\n%%\r\nnamec={'MCQZORMCFCE','YZJFNXKRLAFWI','VSTPICWP','JNOAAMOXWBMYCECBRUVY','KNRBWAKNG','NSRCKZGETDUM','DHBGDGXIMOAP','GSDRFXLH','SMVCUZNPCPVGNHVLDVB','OHLLSTWXVLZ','HBTJICHVJFVAJX','YTPXEQP','BGGKNUVOUXWLZ','QQLFZFNLQJ','DRYTBDIDQYXKJPVEAMHF','MSLVRMAMA','CTSFTN','JHTIO','N','CZJ','ZOKFTLCDWW','BDPHMOGBPUEOP','DAAYT','YNJJJXDDTKBZJDKV','AGIWRLWRFLHCFMDGWKZQ','RQMTUDTXTSKW','UTNTWKBZRXOTK','KACSGHKKTGDIQ','XKZMXOQONBCENEPW','VWXLZ','LMYEOLJISFETJKDXX','TIGVVDPY','DCTCRBDRT','VPWEIZBCRBXXPHABRZVT','YGITXGMUIPGVJYOZ','CVZPJREYDD','WSVNZZKPDXKUY','TNZKBKT','HFNKHUKPPMXKEQMYCIN','KXUEBIDGNNFLD','NTCSEM','MZI','ZWXYR','YNHDQNIVKTQFZHNBL','NGFCTZNO','TJJSERXMIDYRALO','YQLNVRSTLA','NWZZXFFTW','CXYSKZQQPC','YHIFKIFJWUFJFCOZQN','JAHLRDNWXD','WLGCULEEXJFDTYTZNZM','MKW','PHASPWVV','LZVHSAMJZCDOTIFOUI','WWRHSRHCJ','T','PKU','CYBEHBJ','OJBG','LGXXAXYVFHHQC','OVKHZJIFXOOQ','ICMYMHPROGQD','SQKSFCVMJHDRFWL','GNGKTXFEDNYNCW','WM','NYOMUCJMNDBTWDOO','KRKFXMTEBJJZYNPSX'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'DRYTBDIDQYXKJPVEAMHF'))\r\n%%\r\nnamec={'ISLN','SRIFXUBZGWBYHFRIN','SYXUWQKTDINJFGVZRXXB','RBWEBFPTVICNRWPSY','BZZQXYJJZ','UJXWGBDBFCKUSJIMBQ','P','ZLKBGXVPJF','KJLDG','OYXOAMBPYMLZSIZ','OJAPNDNTRCNCLQSIQQU','XGABKPCNQ','FXEJGXSIGVRRRQZHSOSG','WJRRQDKM','JFORL','QUZFUBIF','PMJOXFRZFP','WSHBJEABJCR','NYJWX','LMQIDEZJCJYVIZ','FNAGWWJCWSF','ESQHTLNK','QLHHUYZVXWNYQC','HQAIOUAANFMUEYGZLGJE','O','GQIYYQZWMZTPTPIZNMPR','WFJUOFKEIPECBUTXCPE','WPGWKTYKZ','WJBCAF','HKMIWCBZJPX','NQXCMLXHNSCFU','HUBJTDVZPMQZUK','DWGIDVHQ','CVVUDUWPNLDJ','HFRJNS','NOUNAVHOFEEAREPCRF','VOYSBMTGXMQZACFFKP','MSPJXWH','XZAONDLMLDLAJIULG','RKQYTBQSAPERICXHP','STAIWDI','EUECSNMEHYYM','BIPJKIIRSGTWWRTCLYK','WBMKUAQS','FODMQMBPJZSDFPZXQ','NMJQDJCV','IXBOFYVOTJSZQFSZNB','BFWRJXMWXUMMKF','QKHIZJFNKCVPZJ','TCEIQUJWEOJPVR','KHX','JRRNY','GFWAJXINHAEPHLYFI','ECN','YAYKWPLOZE','QJWQ','XGWAEAFIYCOOSGAVDX','GHBCWJDPDDTJDLKEH','B','ETUFC','UJNTCP','MTI','WTX','XDRCRRDXOPFTRNBUVE','DPV','OWWX','KEUTWY','GJKRXKXLAGPZJAQ','WWIEKSIAAWYUDAN','PZCVKWDFCU','QSITT','DNQJZPBJRIT','IN','FBEZPMPJQPQK','FMXEFYVNUCESKJ','HKQZUKWTFBPCT'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'SYXUWQKTDINJFGVZRXXB'))\r\n%%\r\nnamec={'NENLZQOIKIIPVDBO','PHKZPOEAQQVMCC','LAZADBYKWMHVGXONHKOQ','DHAGCRYRMYIHZCSSW','RFT','ZGFFOYIVQGPIXJZD','VPBUHKZSXFRVCWSALF','NOGAMCBPYQJGPTBDHQAY','C','VJISIBO','XSTTTENFNLMZEHCV','TNCCXGDLGAEVZJOJKO','QJLAQFNQYSWVDUYGT','CCDDRAC','PVFDWQDAOR','IFWSNMCUEXVHCVCWP','BGFUOILE','AE','UZXQKGPNRFSYCT','AQPUWXLETYHUWB','R','SODDLNI','HCLXDIXUXEQMMMKEFMON','E','EHARHWQJ','JMWJ','MCYUHPCTZ','YAFHAJEINPSAYVBOLTSN','JMDBQCRQHQIIUF','RSXKKTEBZ','UNUDWD','CUGSU','UFB','OMWLOYAKZR','PBILPD','DVYRGUFRZBLSMREFAW','HPPSBS','CGUXLV','UKXUEKZBAZPICBXN','MUUOD','MVRDGH','RIHZLY','LLLTGMNTRBTXODFHM','OGWBDX','HEIKNBVL','X','DNGCIMBHQIVHO','FPJUEQZFEKLNIE','EJESIZY','IXONWWTAG','DRHJZDPMLTWMTR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'LAZADBYKWMHVGXONHKOQ'))\r\n%%\r\nnamec={'E','VADUTZCEK','QTZWFSQEKKR','XDOCFRCBNYJGO','REPMDAJN','NXLXZEJXUPKOICUECCR','GYXBQDOZIH','XYKUEZCLGJTIPUJUE','NCIMJMDCGFOCBRN','SYJBZKPWLP','JRGWHPECSCACFBLKW','FVIIIJXBEG','GPGOVYRBSREXKPECPBXP','XPAQOYMMXS','VIMFYVGNIKKSCMZZKZU','ZCLDPFN','SOJXIXANXKMEUOQP','GSO','RQMXX','ULBWFKPFPIHMEVNG','BZHPJQYFJUQWCROVENVD','BGRHEIFQJWCGU','GZVY','UN','QSGTN','NTLUQJUPOYAXT','MRVDDPPJBTMCVZO','PAD','PKCIZTXHHGCCVJLNCXC','ZYKJRBWPRCMLKBG','YFABOIFTKVQ','PREOSVDIIEGAUDNC','CUIEKVZHJMLPXH','MCNHTUTPTCJEMYHIEV','GBRQTQPYFSHCR','WGDEJNAARRAZNRFKC','SNWEHTW','VBDGH','CILYJLBQZWZWTFYZXAJ','DGLEBJEDMLNBJORMTRJF','ZFNOFDSLHWMQSDU','OKGQTNDILIVR','ZEABTHADVMUKH','DWM','IXWDXEDURNPMRPFGMCFM','TQRVXL','HXZHJKDCGGPXTAH','DFLFLPCWXUNIBQRQPS','SUCZRGT','NSLXWGZOHTAJSQSE','GXMZQNFFLYIWPX','WKMVSBVLPHXNABSRX','PVJVSYOQQYAMVN','YNICVYRXMFCF','RSZJFNPOV','MVWFQMKQOAI','RXFOZDMNVBXO','LGKPTZDYLQWXFUVTIYY','HPOW','XPDXQDBESSMPBDJ','VWFGGTDMSQQDZOWITP','RPSXMTNZDK','CMHIKDEYXMNEDE','SLBEPVRCQZSO','AVSXNZSGBKDVGQCRJGY','XJU','IHJTZ','EIQOOIHRLXTBDHTVWQAE','T','NJWFFXVUQCSCN','MKQZCCRGYGLW','QXSVLNTKEIVMAS','LEDNUMX','XIWJBKXWND'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BZHPJQYFJUQWCROVENVD'))\r\n%%\r\nnamec={'MBU','PKVORAQRK','QPVRFOM','OHYGVGHL','PVVAVSXP','AGRSDGYGGJMFDSKSA','ZOQOUPCGXVGAQDHKYFID','OHDJIDKZRJDYWKDREZKN','RXWWCSBIZ','LV','GIQPLKWTRIQMSKFWZ','YNMCAFJMYSJABNUBGGNY','QVULCO','HJIZGEKUOAVOAWTNU','LEORUFHX','N','HOJYNFXRNYIT','BIPGVNRZHYZAQJX','PCJIWQNIYYCRYKXP','LCMJ','ZBPYALSCCRKQZPYUBSH','BLNEFR','HQUIXQZPUFROPT','KQAAXRXWTXK','ASFBD','SS','XGRI','JTOZLLOL','BOXPIZAINJQKTONDB','MDCUGIEJFGLVNL','NTWKVIV','P','UFXXBOBSJQH','HU','PBH','OITZFICBDOZEQGJZR','QPJBLCBJRJVEOVG','UIH','ZMZLKGNXZVAEPLGQ','XZTB','GANVRWYT','XZQRMIRQXVXJ','IWBQZBMJUZSNTIQNZ','WIC','YR','JSK','O','IEQTA','PTPEXJWZBAU','RHRG','OGG','WWM','YTRBYGYZVLTVBOABBTV','GYAIWV','IKJCDOX','DHIRHBKS','COUAAKAIGPVOXYKZUNU','FQFXUVC','VMFAKUVYGHFXKN','IDQGXYDWNEESGJJKP','UX','ZWMSMWYW','PMJBXUXTAVJCGLWZVSDB','RZ','K','HASIYHX','ANOVP','CSIGKZDMSMKOGJ','QRJXLP'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'PMJBXUXTAVJCGLWZVSDB'))\r\n%%\r\nnamec={'NFPFLMH','GAFVH','SHEZMDSY','JIJZGWWNDRDMYDR','QQMX','WMMQGRHFEFUTRAPFDTGO','PSDARUKGIRQPPUVFRC','KJTFKQDDFGECQ','EPXNZ','UKVDPBFLOT','EVMBIHENGAPWRMCZY','HYLDZIDPOHTFLM','TJSZJJSIIMZZPCVC','ZTOUSR','XXRCJEDFNWFOEAJMZWO','RDGNFRAQLVJ','ALLFOJKOQZHRH','KVYTQ','LWOGBFHZGSDZIF','OOKNBR','LAYXJREXHYHOFNVDYU','TUDFRHK','QSOJMHSDLKEQ','SHSMUQ','CMTKCFROCQCXUF','KH','XOZDSHULKCAJXTLSY','FIDNCZSFGGBVMTZAHLGB','IQATEQVBYYPS','CRBI','BPLUC','RJOPKRXSFXES','VECJRE','KENJGUMXPFCVFRGYLRXE','GQNDQHKZFWACPPHKH','H','BFIKUAPSNFBICRIEF','FPMMPOLVTYOYZQ','RXEFHBHDQPNZKGONNL','HCYWTBJMGLFTXNWRR','YRMWICLIANCOCDQPA','UTHNCEFVWHBJQ','BRBKTINOYU','QIGQJAMGVZRZWSYIZ','HTQTVZ','DCVL','T','WUXLTOMJAU','ZSGGRZRNIM','AXTNTJGS','RHLXTUPCTDU','JIFFRKNRFWOZEEORFV','DKOFVRRATZFQMHLYFZJ','XFL','FQCZHFFOCS','LTMQKYUNSRBTJQ','FDFAUNSAGUDRZCEPE','KAOLUPTGFQE','VUXIXPPGT','XNIRSGTMABTHD','DDTXHXCXAJTDOCCOMM','BXZ','YPN','KLFWT','MOWEPNYTTSN'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'DKOFVRRATZFQMHLYFZJ'))\r\n%%\r\nnamec={'DGQCQLGJ','IBNJOGJBGPPIJBQLK','GJXJFBIQKZILAJSF','AESPLZNFPV','YGNAI','IHYDPEYHDWSZSHL','MXGAONGONU','UGSZ','OZJGN','YMIQAY','SAQDN','JEYJCFHUTVPVU','GDWDYNKXS','DLAHOBKTAAJVHWDSCAG','EWBYPMZZXPRXASZTS','UBYMVWWU','SMHTGO','TJ','EZXTZDO','VBORBLBYKPOSDTZOR','ZKXZFIOALVYWJCMDNXSU','NBSPRJIEHJSUJP','QQOVT','BJQOKGDVSATEWK','RSMDGSYIUJIMGDK','ZVXTVM','HI','ZNEXBMBUCDHEKAAFRVCK','PXRPCEUHWKPJNKHDREBT','BQOWMIYWPSJXMNNLD','BONKTPSWDOYWKRJQCV','SFCOZDUJOXPDSTGL','UOA','PRAELEJ','YMXZTQXEITWI','ASSGLRORNYRWAIEVZXA','UAAMSIDSAVCP','WZZIPNBPDBMRF','IRJIWIZHIQ','GLNTZIG','YTBPNYRLDZUEZMX','HBDQ','CTENOFTKBHWQCPBDVBEQ','DJTTAVIFEPKQZBR','PZXNIGQLJKYZTF','JFJCZY','LMFUHVPAEIDUU','VW','RKGORHTQ','OMZPHYGOPN','LSPOAHWLQBVPPIW','RBKGXMLIRLGCSVRMC','NXLYDZLCQIMTNPT','DXHLFTUSVQXHWXBJEUGG','GSOLEEMHTARPUU','EVTNRJMPPPNZAZOTROD','ZYHWOMFE','WFNGMJBXWAKJOIEDZC','GGR','Y','HPAUOFVMOZGQEMHWLRPF','DHBEORFBKKFGZYYX','NBSLOZZRYECVU','VCFACXJEHVXXPHHI','KWMFJCEUWBLFDQGCKD','DGNNMDVNODLPYNL','NSCIEILOIGJDGJHB','GH','BSWXELUJ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'ZKXZFIOALVYWJCMDNXSU'))\r\n%%\r\nnamec={'FPMUJIS','HTMLYGHYLNM','AGBTPKMRJ','SSWGUVSDZMBCNLL','DRPGG','XTEZNPFNRTBMOONIMM','QXTCFLIXRRIWDEA','MSMOASUGYSLK','BAFDNNUXVTHRPG','QSCURWGROJRCTOAWTN','MQTOBZ','JOVI','DSBQKFOTVDJIWXQDHRB','FONRHGIY','FMQTCJXWSUXCFJGFT','GQCMFHVN','VWDAHFTQELVINRY','ZSXBRGGBQPAI','FACVSATHNHXZY','KRUJPOGMAOEIGC','HUAUVGUDNZCUBXOVCFA','FOAGVCEUXQFKWZN','MPZDESSR','JPMFMGKKIPA','EIOA','UGOBBKLLTBVNSJ','QTEZESAEJHECT','AQHX','JEVMRDXJI','HTDQHKHXDXWDC','DXMHCHAFKHGZFF','IVCICJXFDPXGJQB','VBBSD','RCCEAHTANIBXXG','JQSIKFVLC','MUPIJKDJRO','I','KJFEHXFBPLU','OOBTEQZHVFQ','HZRKWOHLRJQMJXQQFP','MGBUE','HNTGZWFGJOYRTDPIOYRW','CDBPFXKKTQ','DODMJB','RUUDHNCJJKFHSIJ','FMKIQBPKVVULLXSYS','PWZUVYKBYT','AXAAJXQTHQW','BCFTWBGTJNUVHBLRDANP','M','CXYFOTWLRLUGQC','QIPNMPJJGOQQJKUDHL','SEMFHZMYJKPSRWDIBBOJ','LSTYNTFXHB','FJWJDMSNAUZNKWOK','IYFJHGCQLT','WYAMQDEOIWZBUB','JTTGQNLSOKVGVT','KOJY','BLXNETEFIXMKZ','NZGEYKPUIHNBKPPST'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BCFTWBGTJNUVHBLRDANP'))\r\n%%\r\nnamec={'OGLCMJBGUVZRYIQ','IAMGPYOLQRXBPWETMFUS','LFEFOVWUSDWNRZHN','JUFJK','VUCXCORYGMQJV','WMJZYKBSPZ','JQIPDYEJGULDLWRQS','NIPIYZGNRUVPHQH','C','MB','PHNNR','REMZRZEHIU','PGRAJVBZXFCGPVZCRWGQ','XDOXLEWSCUCVLRKXKPIA','DZRBFRJLKM','YXJGVDCGEPIUDRMMUJ','XPFKQQMUX','NYETXVLWZ','AHVRMDILF','EUNGVKSGIYWEMDUDOMV','MXAKTAWYASGFR','SOYII','VLOQS','UBGGXIZP','TPLZMVARFYPOY','FQN','NOUT','FHUMXNJNEJW','ZIPLCMQSSK','BQMCBF','NXLGMDKNTAFLJ','ITAQMINQG','SDAXMOC','RMANBAJMHICQTYYCC','SAXDYOXOPFOVHATLAT','IICKXBVXZTSLZRJX','PBHAWOQKGFHGG','IICOLCA','LJWNYXM','HBHVKJU','QNWWNNTS','VSXYT','FALWHF','UP','CWRGCUHRZFMK','FFMM','REIBDNXXQUDRSFF','N','KIMMFRQROZNWQ','MJZHXG','LSEDGGWOS','LUUMQ','FTXJ','SK','ORFNYJYWPQVKQDBL','YIYJJPAZOPEUZGA','HFZSILOBJRFZVEFXGQIV','U','PD','QLCOG'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IAMGPYOLQRXBPWETMFUS'))\r\n%%\r\nnamec={'DAB','EIXCAFT','TOCEGNSLVURCYGXYH','VHWLWNNWLSLJ','SLDYYVHDOBBJHQZGKQ','CTPCUS','XTLDBORFZZICB','KY','HAOTVBCDRVP','W','SK','GAPVLDXBFIUTFBKEDMUE','KSGVU','TJOTZA','MXSRCIGHK','DFNCZJJHSKYHUAPUSFCM','UOYNI','LC','ULQKSEVEMLFASZTPX','RGMWDMYOOMFPGZLBITDK','WDGKCC','GRLSDSDHX','AXAWWINMLYJE','HGACOLRR','FMVUD','NWEEXSBYIFSJ','PJ','HDFGOWPULKAPXWLHAYBQ','GELTA','RORCEHVHKVWDFE','FJGMDMQVDSBISR','FTNKXXUSVYDSMMY','ICBWKYWUKPZVFAY','PJYAKSXMEJUCEL','VKMJ','M','TGF','WBIYWSRXTQZXUVLL','VPMMEJQOZLS','FLKPDEIUTD','BONRSRVZURJJF','UXAKLFHECVSZ','XMPLMGIW','SJIMJEJMH','ROXFKZUMYOZCRNGPVX','RCSAEOBQWZGVBJIUUGFH','OUPWMFPVX','B','GQQOIG','OTCXWPJVMJ','VGTDMRFGKUESEULXWMHD','QOTNGYBIUKFTVR','JPEGLYJIAPXNFJ','ZOVITVARNFD','UHU','BVTJ','TR','YWNOR','CIWVZWRFWI','EP','TIPARSTWGTMGQ','HFBNIKWGVTVPIVXJ','LUSQXXOCI','HMAMMWEENPRV','IOZJZHGVSOHLBLM','KYBWVGCSLSFCEGQVHEU','ZITYLR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'RCSAEOBQWZGVBJIUUGFH'))\r\n%%\r\nnamec={'TTXYV','FH','ZTCNWGXIBALWVRJEBQ','OKSHHRPY','JHVFGPYOQQEISOFLSZZG','PRWOSAGQGVKMT','DYYOWEDKYQCWBLOIA','OIMSYDORNPBGUQL','YFMRJZBDJJQ','TCYTFJIVMUYIFDDREWE','SGOEEGPEAXBGFIEA','BUAXXDKUSG','GMCKRI','FEQUFEDFWDOQXOJIJ','RQ','AKFR','OZFSDRQHFTEOSGYPEUX','GFQCOQIJNTMAFM','QQZWXV','IMJECDKAAPIYAQ','BWOV','STGTPACIOIFRLPJDWSOE','QE','WREKGB','NUOFONFNKHRRRUCFSQJ','YF','QXWSXRE','BBTGHKTJRGEVBHDL','ICBWV','HATF','VQUSOZSKOJEN','HQDPQFJASYSNELVKQRIX','WAHHOCW','XWK','VUXSCTJM','SDMLYIZOIXNHHVHPFJC','ZGBHPGEBZIFLQASQPBX','JOICR','VQLTK','IHXBYBGJQ','GRCVQSIN','CWNP','YEYXZ','UYQXYILKM','TXTCVYYBKMG','GZQQXYHISQAVSEV','KRMJLFIKDEIDQOTKWT','ALMSQZFFO','JYWX','YDZZLBSWPMPLQEMWYJGR','WGKOCBFSNEOO','AOSH','EDOIZI','YSVQYXXXZQLBEYDBMJX','ANXECVMPP','YJRZWZPPEYQIDB','WBBQUKT','WDZUFNAYE','FJSV','VWOOQHWNCYQYVTLDYQ','QOHSNMTXHGKNMU','CSSWB','ZFCMITSSCASZRYHAG','MDTXBI','QJLOWPODZEVYVEQKVKRN','ERLYKNCWD','CKDKQGMVLT'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'HQDPQFJASYSNELVKQRIX'))\r\n%%\r\nnamec={'PGOBRMNZXGEFGZTNN','SWP','HDHNVNTTTJXCERAAFGBR','OBW','QVFMSDDRXWIEDRGNH','OMEFFWRLXJRCWOOMD','HMZUDITBNSTBEYSLKLMT','ETIH','PTYHBXCBFZPXYEQUVPIY','MHGZDKPEJGTUAWPU','MPIG','F','WBUQNTXAPDHLN','AZFTRNBLZRLBTQ','LEPERCJ','RKFUJQZPJ','UUAZVLVIPOXA','IFHCPTRDBTTL','CYKCTCGKKNZ','G','BRZTFXAWYLHNWHIABC','AFMRFLHODYSQOMNRMDQU','SKRDD','UAD','KYRFULXATNJNWVIJDM','GDGJGHXJDG','PRZPQUIVNVAO','EDAHBBOWBNPCCLF','FMWRIKZAPI','V','EYRERTKJUXZWZTED','XZUCEWUHUXWO','CA','DMVJTHFWA','K','XGFNCELUZMBAB','AENTWO','TXKDLZBIADFDPAAXAUT','MSSZHKJQJUBAW','EREJWJNHJNZGROCRQ','TRJVHKVWGRBZ','LRX','YZVUFAEVGFYQJPP','HSIJNWMBQG','LIBDAVVDMYUDOXTNLO','URGYFJWFKRGHITC','CQWWGPZMSXSMFHADB','MPCOYINCUHUOZHGRFF','BJU','ZVRQOFIEAJRYYPNTO','HT','BMROUHB','DSXYRCVVLIHK','OPGUN','FGOXUAVIZBTZH','U','BBAEQHLWAG','GVQD','DIXX','KBHAWAYNXABNCKTIGR','WMENHMGBKR','JJIKDNDXFDZSWDF','STYWCCEBZGK','QT','PYVAYZSIOR','DWCVLFFVKGQQQ','CIUFCLFC','XUGSDVUQYJWVWCIKGF','FZBIHCWWCVVUQEDD','EZLTJFIDEEI','IVK','LYUYPCLLFGBKBFHMGE','OALIWBIFUTWBFE','NHYESO','XNBSFGRFRR','SSYIHIBENSRMRMQFWXZP','OQBUFRJ','DRWM'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'KYRFULXATNJNWVIJDM'))\r\n%%\r\nnamec={'SKHQPUKYYWHWEZCMJIH','ZJKCBUJTATQISUF','EML','QUUAUOHQJAHWBWMOBJO','VTYXGJVJTD','TUSLTKNHZZNSHSQBGJ','MKRBXOLNKUYWIFLLKSBQ','UXERKIPJZQYCTHM','XE','V','NBRLSYAMVBVQRYWLGW','HPTJGSOAFZPOPPTG','CCYHALBWOOWKIX','DKUSRZDIA','KYBCZ','LYBKX','UYVSJMVTYBVRLV','ATIZAYSLSLXEYM','ZCWTXOHTXEQECA','DTJULIOOLISFMBEZSSKC','ARWIOYIXTTZBXVJHM','HKTAOTRC','ZGRGUEHGXSBZLOTLBSLI','RTFLSDAGXHPWTDFRWVK','K','LBOG','BR','NGMNMUUKJLFOUCLEINSM','LKX','CDGQIEQBG','GMKAKVFL','PXJLLT','BNMUVYMZDNXATKMAYJLV','WUIDC','PWQFFOWR','ZA','RLOUPPO','SSPTB','ODCL','QQVEIAFZWVMEYLFIGXQ','QRXXUSBEQRSUZKRMDBY','TKTQTRZUZMFSZXHUXNAG','K','MNYMPJPDXXISND','KO','EVOYOQUTGBCWOAJVD','PIDBDEMRWIA','YHZKOGZHISHPSIGVA','KAZDDVPNOXFM','MITKWAPLDKRXVSAQCIIX','UDJWLVKJ','YMKUDMYGPQSBSS','SMUJ','HDUCMDBH','SKQREOFLWQNLEV','SAPJIHMUJQQCPPFZNNW','KEMJPXGBRHJSHQXTRJFL','VIMJWRXDTPQWJCGLR','CQGLORUCKTVNILVYBF','VTYJGNIWFMPCZLXV','GPRJKLPCLZVULUZX','XIKTOZCVCVHLAJW','GQCARMRCQKBLPMWA','ZVBQUFITYGGNAAVKUAMG','BIN','MGRLXAFBVKJMZSIKZI','VBKDJUBHNWAS','NUZZTUGJVQVKYM'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CQGLORUCKTVNILVYBF'))\r\n%%\r\nnamec={'KRMMAQO','ZYQ','Y','JVBKJWEEIV','WPA','ZFGRNMWIHAABJ','OADLKMZGAV','NZVZWQW','DFCROJROCQJTMXHEPCP','UKWDMXAPLOQ','VLRMNKYEZXAKNDJDVAS','ZANHQCQOPBOBHQZLLKLO','OXNKHNJUBURGYP','ZVCANF','XJ','IXLVZSEP','FGICSRYYLBLOHXOUS','IFNXIETSAEZCZWME','GQJJHYQAISZYIXYEE','AARZ','JHVSGPGNYHWWCSSN','PJ','MJENAEESKEIZCVTJF','AIOCDJJMFNVBMSO','OLXYHBLJXXLTLDJZ','EEHQKUDZ','KAXVPRUJVY','KOZVNWI','MYEOHESCNYHLJQBSAM','DAQKJKIOCCJGJDLK','H','DRZACTYP','PQBXFPZHGFPA','OTQFQTOFPO','FZXMQIRBZZXYBBQKHOVY','IFFUCESAOGVY','RLMEMFHF','VRNEJHIFTMDKGD','JCFEDDHIIZ','RIXQXPNUFZQHXTCKVI','MDJLLSJCNTOVIWG','FUXFUQ','JLATDEWMQZAZTOQIU','IMGYRDGKASTQAETTHYDM','UMJSFJIFSUL','AGCCG','VW','VACYFIZMP','BVGBQOHMGNOILADIV','IY','CVRUJAFF','LQWTWBEIHHFHCN','Y','OD'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'RIXQXPNUFZQHXTCKVI'))\r\n%%\r\nnamec={'BNQDWNHIZMZIYPJDXE','ZOUOKBHYDE','DZDXCESGTXGU','CNPVALPBNO','J','KHAFDXAHDGWVEECG','RSJBZKGBLGKIQKIONXO','M','LEWPVZQLG','MBFTDI','FIDPIR','BXKUGBCNI','EEIPKZTDXIXZE','VTK','KECUYATRYYZQRFBMQFF','ZMXDTZEVLPUWCOQWGT','DNOUKLHFKLFZPQNLHEJS','LOFTEQNLJQS','TATOHFSMCTXOSEP','ZMLLDLCIOLZDZO','HUYESE','MPCDGQSVDWDOSGQUTNPH','COKSSOTC','VUYTMLCGIH','RDQGJCNGTIHAVTA','LM','ALUDNJ','NQFALWUQETMQ','LQDFSQIB','BMFR','WWDXEZOQLKFQZMV','KJIKCYLOAXOQB','CTHLWRQAOLUS','MNBHMFGMUMCGLFP','IYZWIMPQRLSBWTJRM','RKYPSYJFIJEULGHORP','JGPRZUE','HNBCVUSAZC','IWYOIEQQXRWI','JDFZFLCIJYSRFKEMJ','QRJ','USNVNLTIIWAQFJKB','VLEBPQDTDUSERAWWOZ','ERZEDX','FQEJEZ','YUFEZXEJHKHDFH','XDZIAXZFTOGJL','CFGIJBXFCAQCDV','C','PXQUQLZRXQYDWYEPR','KJKMFXELPRBAE','ST'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'VLEBPQDTDUSERAWWOZ'))\r\n%%\r\nnamec={'WVNPIGSHWNWEYZXVGD','UMGSKUBDCBPB','UMNZDCMZFVJDMV','W','U','KOOAIPPBAGWE','SIFAGBRDPHSJ','IVWKHKFOSGHQ','LTJLYBSSSVDPUWDVZDNR','KQYI','EOAUFDJGPDHZNI','DAUZBZFOGVAOOEUGQ','KZYRVCMEUUNPLNNYJOT','UZNBE','OCCMVSMMDJ','YWJFF','GLM','GC','AGDOIINNERJIZCS','YTVWSC','AHPAFSGFKOKXDPKE','RRIDQBXZCWCYUX','WFHCU','F','UOQWACOSPL','JDRWAT','OSVWNDCLALXOKVENJ','UUKW','SHUY','JHWDU','DXTKXVJOOQVEGBWVG','DFPIHXSJRV','XRUYYIIKNQXBA','IAKFHSMWGEKHVYK','R','DMNLUXLZCE','CKYUCCAHYLGCVIPISM','VZTC','V','JPBGCNJEGIUFTRDNIEJ','INTAI','YVPIHIHBV','FTYRQFMSQJGCRUVJA','TVDUULV','FSOVW','ZEGWUPW','LOEBGW','TZDKAXPMSKNGSM','AKPXNTPEQX','UPMFMQWSJPKAHNPUEXB','JAKUMRCRKNVXLFMOBC','IPWVL','KEUGMAZSUM','ASBULEZPSS','ZTDRKHGMDKJADZVRAAJ','XVQGIFQDY','MTS','WGLYHONYFBQCVYRLKQT','CPXOTZIU','OBENPRAUK','RFNAWDB','X','DACJTOFEPEFTJUJCBSLG','MFHHGIWHDWCMMQ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'KZYRVCMEUUNPLNNYJOT'))\r\n%%\r\nnamec={'EPLXOSPBMNFLSVDG','DTILFFBMPHCWF','LUK','NOBSCFX','EPDPPGUNHYLPCFULNBX','UGVQYO','LZKFJXFD','MYLRRLUCBSYOESDSV','VSZ','TKPWUXBUS','C','DUG','YQNEOEZGP','ZVJZLKE','WO','YOZHALURQOQMUB','HXROEIQAIOX','DMI','LIBXFTJTFNCXJSRSYNL','STUDO','PWNS','HLVJXEDNUFBHXM','HBSREYCMRIAKP','ADRBV','BDKDKZXILBIUFDXJ','XCOIGOLXHGMAC','DMKYS','BTB','QGSIUWSKDFJB','CDYFIEAOOZHMEDKWDCE','XOPEJV','KBHOZF','ALGLCCLGGGIUKCQ','WNABLFRW','BOHFVKPNFNU','ZWIDLE','QMXHBR','AKAPNCG','PLZFRUTRXBV','JRGWCGXXX','XDCPLHRRUCVPAAGLRVEA','OJQGLWVHXMD','OQOXGIGW','GMPTQHVAQAU','MQWFZORJAXYHCBV','HLG','WXWOXBOONMBUHHHI','BDGZTDIKBTZHENSJDO','QHUXOUYONUI','KSKPVDEQKJMXTN','ENFDUSQOYV','OVSQKUAAGDBKVX','RMUYDACJYXNBOXJR','GNE'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MQWFZORJAXYHCBV'))\r\n%%\r\nnamec={'MNXBEGBOOMKSS','AAZTPDMQEO','TUHWOCETRPPADJKVLKNG','JEHFKQYAQRG','N','TLCFCBFDHORCMRBV','ASYIFQQOXKIANN','GKABRTPVTGOKT','VFXWJ','HJGWWTQVVQW','FAETTKDWWSNDBLELSCC','AQMLDDCLSCJSHBXXLEV','FCLINFL','GP','WTUEHONR','DYPQIAUVGQJEPH','NRATMPUOKXBRU','MHJSZZUW','FSKSG','A','PPYEIGVJYDSMHVS','RIFD','WPHURHYCPKGNTNUW','LCRCTZIPWHHERMNTTYSC','XURWMZEPVSJJSYXP','BLUSPZELJQCTEQ','WLAJ','SKUEFNQJICEI','QRFYMQU','JFCHFLSXNANRFGEEHMG','MFTWKGYFBSEG','WVMOEVUWTQ','UDADALRK','NOHSWOJPOYLQRFFKBF','BRWEECKSUSNYIUVO','PLXCUMWAXCKL','HAARTVR','VRQNBTF','WRR','NJO','QJKWILPW','PJYHTCUMVKREZVJKW','JVKLYYTJHTHXUX','JZMWROBNJKB','ECCGFSWZPYCXRQRJSMV','D','HYAKZTGTNEZBU','MOGYEXDWFRYPBOOCYJN','USEPLXLFEHD','LBYKMNZCO','Q','EZNQBXXMQ','XO','WRXOQWATENOHYXVL','KT','DMRM','LUDNFTONTDKYJROC','RNXTYWHQYTWPO','MGRSTVXBIHLLGQFRLZB','L','EWULHSYNE','QMTQMIXGOUXRQYT','XMF','LPVQNZCCNSHCFTCY','IAZXRLSGWCWHX','PFSBLIFZTIU','QMSCWVUOWMCWJC','LRFRUSZNRDZLMIOWVM','KZCEBBILHZAFHSCYNG','YKTQYLUYWTRZPLPWZCOX','DTMTYSITUU','OXJOKUBFMYNLQLEZGP','ZKRZVHHK','BGBK','MBVJDMWHZDY','TXSVLOEKVOYO','ZZCSPJRDEVLMN','PVDJCJFNXTHXQCRQUC','VYDDKBOOKJLEWEPN','IRPTLCKJYXZSZLB','LSFPOTLVCP','BO','JZTLFYQRTPVRYOWBULN','FCEKHALVASPR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'TUHWOCETRPPADJKVLKNG'))\r\n%%\r\nnamec={'FLUEJJOMBLRDXEKQCCRU','LIYYDJ','OGTSXHBKSCDOEMQGVDC','SGWHEQZX','WUBXLLDNHSJT','PKDSEKIWIAMFRNY','GIW','XELJSPLL','BPHRHTSHY','DUXFYRXHOZRILQBS','WJHWDWVGEGLBABTS','SYLQBFT','HDFKJSBPPTQAUKGPEKE','LBJVIZZFNWB','BLQJPEPKXZIIWS','MWN','NEAINWUGPYOQM','G','HQCZZDRFPV','VNDZGDRZRBIXIYIZGA','PHKKYNLYUDODIR','GUICHJCXRXEYPCWAMJTZ','NHPLQGCWTKQ','TSDGDBDXDSXHMYJRBZH','LNGZYQMNWQSFVWI','RQPLKZDUFIXLOKF','WKUHTIYVUYNPHZ','UFZUFBPGKWRTUL','CAB','IJ','ZZQQALONCTOJUOOJE','DPDASWBKPMHTUBAEVK','SAKYBOLEFTAHWCZMU','UTTKNLHEVDO','NIWTMTZBTXIL','FJK','BAGMDT','KYPNASBVHNKYGJG','XEHDPYEHBRKUD','GSDRVABVNDP','ZZRKWNVKGW','RFWHDCDCMQCNHHQPSLCG','MU','STTUZEBEBPERPXEPBVW','YYRZHPQOBS','OOUYNTPVFUGGDZO','PMMAVJTPULZORKLP','GNJETMYHJ','MQNQRERGPCTSUZGAWRH','GG','PCSTZVH','H','GZPOECJ','IBWSJPQHVC','JNGEERMGZUNUFJJTJAUX','VIEVIXMGL','KURQLWQTHSKSKBUOU','NDXNTI','WBPHX','QEME','XXRQF','ARCFUSSRHARNWQKXXJ','ZMKVSZGFLLFEHJTRU','ZMHIEPKIU','GHRIVF','DHBID','HFKRRAMHMDWXWWFUMGZD','XGYYOU','OZSBMKFLSRGCCRHR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GUICHJCXRXEYPCWAMJTZ'))\r\n%%\r\nnamec={'KMQK','NOAQIPAOFRHAMMR','YVCDENPUPB','VYENYLJYROVQEIPEM','NCGEJIBYURR','ALNNGYOAM','N','YNSSDMYHIDH','TUTLKDZIBAC','OWITMHACTQCUTJW','VLUOBXBJNDB','RPARMIEFDQVGDGDB','KPRDR','JMUYVFQAY','BE','JBNMLITMCTMZAEKU','X','YMUZDIVKR','XWNEAZIYQGLHH','TUWLIMXZHB','SKALCOICJQTZGZZYQ','KAFVJJOERHNSNIMTI','UZIXNKITGATLNNUYAH','UYGP','XPIGOTGDHMDQJQ','DVCKEHHQCF','JUGYEISLDRPGBI','AHR','ZUBVTBHVUWTS','SPQMHDL','FTGF','PTFFMZFEIERBXJDMSBA','I','DOJOUGCRHDAUBUB','N','HPTUDMUZNYZMJCGGL','BLCVBZECFRLMCACF','WSBMPQ','VOWCMYG','HHBLB','MKXFNVK','F','VKFSSVBDFEPCVJWKKBX','Z','FIAZFRPZE','VFROTTGAJ','X','ZNPZNKADTQ','J','UAL','RRXOTDRSERENERUXX','S','IBN','VFBROKKMYVA','JTXXXCTWZMOGQWHWMFQM','SQBKRULGFVWXHHTL','ZTOCLWJYANBT','DVIPYGNXJIVQ','CTGTIU','UJFVZGZRVISC','MRONZFKHKJSVJIW','RMZGHFTHXSJJATX','OERO','PDRQDKX','TFMRFR','MKZOUDFBJEGXMWBHCR','MC'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MKZOUDFBJEGXMWBHCR'))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":19,"test_suite_updated_at":"2017-02-26T21:57:50.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2017-02-26T21:47:39.000Z","updated_at":"2026-01-30T12:45:57.000Z","published_at":"2017-02-26T21:53:21.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/6304486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2017 Kickstart Leader\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. This is the first 61 small cases with no spaces in names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGoogle Code Jam 2017 Qualifier\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e is March 7, 2017. Typically four challenges with small and large aspects with 27 hours to complete.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe GJam story is to determine the rightful leader. The leader is the person whose name utilizes the most unique letters, spaces do not count, and if two or more people are tied then the leader is the one whom comes first alphabetically, with space preceding A, given a list of 100 or fewer names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [names], a cell array of names using only A thru Z; max 100 names\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [Leader], a string of the name of the leader\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [names] [Leader]; {'ADAM' 'BOB' JOHNSON'} ['JOHNSON']\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor the example the first two have three and two unique letters while JOHNSON has five unique letters 'JOHNS'.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eTheory:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Brute force processing appears to be the way. Methodical processing and function usage can minimize code size.\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/6304486/scoreboard#vf=1\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam Kickstart solutions(C++,Python)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":552,"title":"Cell Array Inception?","description":"Jimmy is a beginning MATLAB student who is trying to read in a text file and build a cell array of strings, where A{k} is the kth line of the text file.  He writes the following code, and is confused when it doesn't work:\r\n\r\n  fid = fopen('myfile.txt','r');\r\n  A = {};\r\n  while ~feof(fid)\r\n      A = {A fgetl(fid)};\r\n  end\r\n\r\nWhat he finds is that after the loop, A only has two components, no matter what the file length.  The second component is the last line of the file, and the first component is another cell array!  He then realizes that A{1} also has two components, where the second component is the second-last line of the file and the first component is yet another cell array!\r\n\r\nYour task: write a function to undo this \"cell-array Inception\" and return the proper cell array of strings that Jimmy is looking for.  Implement B = unInception(A), where A is the cell array as returned by Jimmy's code.\r\n","description_html":"\u003cp\u003eJimmy is a beginning MATLAB student who is trying to read in a text file and build a cell array of strings, where A{k} is the kth line of the text file.  He writes the following code, and is confused when it doesn't work:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003efid = fopen('myfile.txt','r');\r\nA = {};\r\nwhile ~feof(fid)\r\n    A = {A fgetl(fid)};\r\nend\r\n\u003c/pre\u003e\u003cp\u003eWhat he finds is that after the loop, A only has two components, no matter what the file length.  The second component is the last line of the file, and the first component is another cell array!  He then realizes that A{1} also has two components, where the second component is the second-last line of the file and the first component is yet another cell array!\u003c/p\u003e\u003cp\u003eYour task: write a function to undo this \"cell-array Inception\" and return the proper cell array of strings that Jimmy is looking for.  Implement B = unInception(A), where A is the cell array as returned by Jimmy's code.\u003c/p\u003e","function_template":"function B = unInception(A)\r\n  B = A;\r\nend","test_suite":"%%\r\nx = {{{{{{{{} 'hello'} 'world'} 'this'} 'is'} 'a'} 'string'} 'array'};\r\ny_correct = {'hello' 'world' 'this' 'is' 'a' 'string' 'array'};\r\nassert(isequal(unInception(x),y_correct))\r\n%%\r\nx = {};\r\ny_correct = {};\r\nassert(isequal(unInception(x),y_correct))\r\n%%\r\nx = {{} ''};\r\ny_correct = {''};\r\nassert(isequal(unInception(x),y_correct))\r\n%%\r\nx = {{{{} 'hello'} ''} 'yeah'};\r\ny_correct = {'hello' '' 'yeah'};\r\nassert(isequal(unInception(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":3,"comments_count":0,"created_by":1537,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":30,"test_suite_updated_at":"2012-04-03T04:47:52.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-04-03T04:47:52.000Z","updated_at":"2025-12-29T14:38:50.000Z","published_at":"2012-04-03T04:47:52.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eJimmy is a beginning MATLAB student who is trying to read in a text file and build a cell array of strings, where A{k} is the kth line of the text file. He writes the following code, and is confused when it doesn't work:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[fid = fopen('myfile.txt','r');\\nA = {};\\nwhile ~feof(fid)\\n    A = {A fgetl(fid)};\\nend]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhat he finds is that after the loop, A only has two components, no matter what the file length. The second component is the last line of the file, and the first component is another cell array! He then realizes that A{1} also has two components, where the second component is the second-last line of the file and the first component is yet another cell array!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eYour task: write a function to undo this \\\"cell-array Inception\\\" and return the proper cell array of strings that Jimmy is looking for. Implement B = unInception(A), where A is the cell array as returned by Jimmy's code.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43608,"title":"Namespace","description":"Create a set of n variable names 'a_1',...,'a_n'\r\n\r\nThe result should be a column oriented cell array of strings.\r\n\r\nExample input:\r\n\r\n  n=5\r\n\r\nExample output: \r\n\r\n  {'a_1';'a_2';'a_3';'a_4';'a_5'}","description_html":"\u003cp\u003eCreate a set of n variable names 'a_1',...,'a_n'\u003c/p\u003e\u003cp\u003eThe result should be a column oriented cell array of strings.\u003c/p\u003e\u003cp\u003eExample input:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003en=5\r\n\u003c/pre\u003e\u003cp\u003eExample output:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e{'a_1';'a_2';'a_3';'a_4';'a_5'}\r\n\u003c/pre\u003e","function_template":"function varnames = your_fcn_name(n)\r\n  varnames = {};\r\nend","test_suite":"%%\r\nx = 10;\r\ny_correct = {'a_1';'a_2';'a_3';'a_4';'a_5';'a_6';'a_7';'a_8';'a_9';'a_10'};\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n\r\n%%\r\nx = 6;\r\ny_correct = {'a_1';'a_2';'a_3';'a_4';'a_5';'a_6'};\r\nassert(isequal(your_fcn_name(x),y_correct))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":29461,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":33,"test_suite_updated_at":"2016-12-05T18:26:51.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-24T15:52:10.000Z","updated_at":"2026-04-07T18:33:05.000Z","published_at":"2016-10-24T15:52:10.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCreate a set of n variable names 'a_1',...,'a_n'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe result should be a column oriented cell array of strings.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample input:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[n=5]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample output:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[{'a_1';'a_2';'a_3';'a_4';'a_5'}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43622,"title":"Leading-zero padding","description":"Write a function that will add leading-zero padding to all numbers in the supplied vector, as necessary, based on the maximum number length. For example, for x = 1:10, return:\r\n\r\n  y = {'01';'02';'03';'04';'05';'06';'07';'08';'09';'10'}\r\n\r\nSee the test suite for additional examples.","description_html":"\u003cp\u003eWrite a function that will add leading-zero padding to all numbers in the supplied vector, as necessary, based on the maximum number length. For example, for x = 1:10, return:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ey = {'01';'02';'03';'04';'05';'06';'07';'08';'09';'10'}\r\n\u003c/pre\u003e\u003cp\u003eSee the test suite for additional examples.\u003c/p\u003e","function_template":"function y = zeroPadding(x)\r\n  y = '??';\r\nend","test_suite":"%%\r\nx = 1:10;\r\ny_correct = {'01';'02';'03';'04';'05';'06';'07';'08';'09';'10'};\r\nassert(isequal(zeroPadding(x),y_correct))\r\n\r\n%%\r\nx = 1:4;\r\ny_correct = {'1';'2';'3';'4'};\r\nassert(isequal(zeroPadding(x),y_correct))\r\n\r\n%%\r\nx = 90:100;\r\ny_correct = {'090';'091';'092';'093';'094';'095';'096';'097';'098';'099';'100'};\r\nassert(isequal(zeroPadding(x),y_correct))\r\n\r\n%%\r\nx = [1 4 42 100 7400 99 301 2];\r\ny_correct = {'0001';'0004';'0042';'0100';'7400';'0099';'0301';'0002'};\r\nassert(isequal(zeroPadding(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":1,"created_by":29461,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":30,"test_suite_updated_at":"2016-12-07T18:51:06.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-25T15:53:52.000Z","updated_at":"2025-11-01T11:13:01.000Z","published_at":"2016-10-25T15:53:52.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a function that will add leading-zero padding to all numbers in the supplied vector, as necessary, based on the maximum number length. For example, for x = 1:10, return:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[y = {'01';'02';'03';'04';'05';'06';'07';'08';'09';'10'}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSee the test suite for additional examples.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2953,"title":"Split array into pieces according to corresponding array","description":"An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n\u003e=m).\r\n\r\n  \r\n\r\nA second array y of the same size should be split into elements of a cell array c such that the first element of c contains all elements of y at the positions where x=1 and so on: \r\n\r\n  x=   [ 1  1  1  2  2  3  3  3  3];\r\n  y=   [10 52 12 58 21 43 89 27 98];\r\n  c{1}=[10 52 12];\r\n  c{2}=[         58 21];\r\n  c{3}=[               43 89 27 98];","description_html":"\u003cp\u003eAn array x of length n has values 1...m with each value appearing at least once. The values are sorted (n\u0026gt;=m).\u003c/p\u003e\u003cp\u003eA second array y of the same size should be split into elements of a cell array c such that the first element of c contains all elements of y at the positions where x=1 and so on:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ex=   [ 1  1  1  2  2  3  3  3  3];\r\ny=   [10 52 12 58 21 43 89 27 98];\r\nc{1}=[10 52 12];\r\nc{2}=[         58 21];\r\nc{3}=[               43 89 27 98];\r\n\u003c/pre\u003e","function_template":"function c = split_array(x,y)\r\n  \r\nend","test_suite":"%%\r\nx=[ 1  1  1  2  2  3  3  3  3];\r\ny=[10 52 12 58 21 43 89 27 98];\r\nc={[10 52 12],[58 21],[43 89 27 98]};\r\nassert(isequal(split_array(x,y),c))\r\n\r\n%%\r\nx=1:5;\r\nc=num2cell(1:5);\r\nassert(isequal(split_array(x,x),c));\r\n\r\n%%\r\nx=[1 1 1 1 1 2 3 3 3 3 3];\r\ny='Hello world';\r\nc={'Hello' ' ' 'world'}\r\nassert(isequal(split_array(x,y),c));\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":971,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":60,"test_suite_updated_at":"2015-02-05T18:04:21.000Z","rescore_all_solutions":false,"group_id":39,"created_at":"2015-02-05T18:02:26.000Z","updated_at":"2026-04-02T08:17:58.000Z","published_at":"2015-02-05T18:04:21.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAn array x of length n has values 1...m with each value appearing at least once. The values are sorted (n\u0026gt;=m).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA second array y of the same size should be split into elements of a cell array c such that the first element of c contains all elements of y at the positions where x=1 and so on:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[x=   [ 1  1  1  2  2  3  3  3  3];\\ny=   [10 52 12 58 21 43 89 27 98];\\nc{1}=[10 52 12];\\nc{2}=[         58 21];\\nc{3}=[               43 89 27 98];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1731,"title":"Text File Read: 64 bit data set","description":"This Challenge is to read a text file that has vary large integers up to 2e18, typical for Google Code Jam. These values are well within the bounds of uint64.\r\nThe data is an array of Q pairs.\r\nInput: [Q, fname] The number of lines in the file and its filename.\r\nOutput: M a uint64 matrix of size(Q,2)\r\nExample:\r\nInput: {4, 'Cody_64.txt']\r\nThe text file:\r\n308436464205151562 1850618785230909388\r\n373665302816212423 1494661211264849698\r\n760961177192651897 1521922354385303795\r\n1 2000000000000000000\r\n\r\nOuput: A uint64 (4,2) matrix to full precision.\r\nNote of Warning:\r\nThe fscanf function with %ul may not succeed, as of 7/20/2013.\r\nThe result window has a case showing the function output\r\nRelated Challenges:\r\n1) Bullseye Large Numbers r\u003c1E18, P\u003c2E18\r\n2) Super Large Numbers \u003e2^64  (Java BigInteger methods)","description_html":"\u003cdiv style = \"text-align: start; line-height: 20px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: normal; text-decoration: none; white-space: normal; \"\u003e\u003cdiv style=\"display: block; min-width: 0px; padding-top: 0px; vertical-align: baseline; \"\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003eThis Challenge is to read a text file that has vary large integers up to 2e18, typical for\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"/#null\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003eGoogle Code Jam\u003c/span\u003e\u003c/span\u003e\u003c/a\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003e. These values are well within the bounds of uint64.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003eThe data is an array of Q pairs.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"font-weight: bold; \"\u003eInput:\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003e [Q, fname] The number of lines in the file and its filename.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"font-weight: bold; \"\u003eOutput:\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003e M a uint64 matrix of size(Q,2)\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"font-weight: bold; \"\u003eExample:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-bottom: 10px; margin-left: 3px; margin-right: 3px; margin-top: 10px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003eInput: {4, \u003c/span\u003e\u003cspan style=\"border-block-end: 0px none rgb(170, 4, 249); border-block-start: 0px none rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end: 0px none rgb(170, 4, 249); border-inline-start: 0px none rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration-color: rgb(170, 4, 249); \"\u003e'Cody_64.txt'\u003c/span\u003e\u003cspan style=\"margin-right: 0px; \"\u003e]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003eThe \u003c/span\u003e\u003cspan style=\"border-block-end: 0px none rgb(170, 4, 249); border-block-start: 0px none rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end: 0px none rgb(170, 4, 249); border-inline-start: 0px none rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration-color: rgb(170, 4, 249); \"\u003etext file:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e308436464205151562 1850618785230909388\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e373665302816212423 1494661211264849698\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e760961177192651897 1521922354385303795\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e1 2000000000000000000\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003eOuput: A uint64 (4,2) matrix \u003c/span\u003e\u003cspan style=\"border-block-end: 0px none rgb(170, 4, 249); border-block-start: 0px none rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end: 0px none rgb(170, 4, 249); border-inline-start: 0px none rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration-color: rgb(170, 4, 249); \"\u003eto full precision.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 10px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"font-weight: bold; \"\u003eNote of Warning:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003eThe fscanf function with %ul may not succeed, as of 7/20/2013.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003eThe result window has a case showing the function output\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"font-weight: bold; \"\u003eRelated Challenges:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-bottom: 10px; margin-left: 3px; margin-right: 3px; margin-top: 10px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e1) Bullseye \u003c/span\u003e\u003cspan style=\"border-block-end: 0px none rgb(170, 4, 249); border-block-start: 0px none rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end: 0px none rgb(170, 4, 249); border-inline-start: 0px none rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration-color: rgb(170, 4, 249); \"\u003eLarge Numbers r\u0026lt;1E18\u003c/span\u003e\u003cspan style=\"margin-right: 0px; \"\u003e, P\u0026lt;2E18\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e2) Super \u003c/span\u003e\u003cspan style=\"border-block-end: 0px none rgb(170, 4, 249); border-block-start: 0px none rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end: 0px none rgb(170, 4, 249); border-inline-start: 0px none rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration-color: rgb(170, 4, 249); \"\u003eLarge Numbers \u0026gt;2^64\u003c/span\u003e\u003cspan style=\"margin-right: 0px; \"\u003e  \u003c/span\u003e\u003cspan style=\"border-block-end: 0px none rgb(170, 4, 249); border-block-start: 0px none rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end: 0px none rgb(170, 4, 249); border-inline-start: 0px none rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration-color: rgb(170, 4, 249); \"\u003e(Java BigInteger methods)\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function [m]=read_input64(Q,fn)\r\n m=zeros(Q,2,'uint64');\r\nend","test_suite":"%%\r\nfid=fopen('Cody_64.txt','w');\r\n fprintf(fid,'%s\\n','308436464205151562 1850618785230909388');\r\n fprintf(fid,'%s\\n','760961177192651897 1521922354385303795');\r\n fprintf(fid,'%s\\n','23875933057623902 1098292920650700527');\r\n fprintf(fid,'%s\\n','1000 2000000000000000000');\r\nfclose(fid);\r\n%%\r\n% This section has no assert to show the values being returned\r\nQ=4;\r\nfn='Cody_64.txt';\r\nm=read_input64(Q,fn)\r\n%%\r\nQ=4;\r\nfn='Cody_64.txt';\r\nm=read_input64(Q,fn)\r\nm_exp=[uint64(308436464205151562) uint64(1850618785230909388);uint64(760961177192651897) uint64(1521922354385303795);uint64(23875933057623902) uint64(1098292920650700527);1000 2000000000000000000];\r\nassert(isequal(m,m_exp));\r\n%%\r\nQ=4;\r\nm_exp=randi(2^31,Q,2);\r\nfn='Cody_64a.txt';\r\nfid=fopen(fn,'w');\r\nfor i=1:Q\r\n fprintf(fid,'%s %s\\n',num2str(m_exp(i,1)),num2str(m_exp(i,2)));\r\nend\r\nfclose(fid);\r\nm=read_input64(Q,fn);\r\nassert(isequal(m,m_exp))\r\n%%\r\nQ=8;\r\nm_exp=randi(2^31,Q,2)*2^19;\r\nfn='Cody_64.txt';\r\nfid=fopen(fn,'w');\r\nfor i=1:Q\r\n fprintf(fid,'%s %s\\n',num2str(m_exp(i,1)),num2str(m_exp(i,2)));\r\nend\r\nfclose(fid);\r\nm=read_input64(Q,fn);\r\nassert(isequal(m,m_exp))\r\n\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":4,"created_by":3097,"edited_by":26769,"edited_at":"2022-04-12T15:26:08.000Z","deleted_by":null,"deleted_at":null,"solvers_count":13,"test_suite_updated_at":"2022-04-12T15:26:08.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-07-21T01:54:32.000Z","updated_at":"2022-04-12T15:26:08.000Z","published_at":"2013-07-21T02:56:48.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is to read a text file that has vary large integers up to 2e18, typical for\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGoogle Code Jam\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. These values are well within the bounds of uint64.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe data is an array of Q pairs.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [Q, fname] The number of lines in the file and its filename.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e M a uint64 matrix of size(Q,2)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input: {4, 'Cody_64.txt']\\nThe text file:\\n308436464205151562 1850618785230909388\\n373665302816212423 1494661211264849698\\n760961177192651897 1521922354385303795\\n1 2000000000000000000\\n\\nOuput: A uint64 (4,2) matrix to full precision.]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eNote of Warning:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe fscanf function with %ul may not succeed, as of 7/20/2013.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe result window has a case showing the function output\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eRelated Challenges:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[1) Bullseye Large Numbers r\u003c1E18, P\u003c2E18\\n2) Super Large Numbers \u003e2^64  (Java BigInteger methods)]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":1040,"title":"Create a Cell array of month-end date strings within a provided date range","description":"This is a variation of \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range Get an array of month-ends by T.D.\u003e where the result is now a cell array of date strings.\r\n\r\nFor example:\r\n\r\n  date_start = datenum('10 Nov 2010');\r\n  date_end   = datenum('10 Feb 2011');\r\n  [dates_me{1:3}]   = month_ends(date_start, date_end); \r\n  dates_me\r\n  dates_me = \r\n     '30-Nov-2010' '31-Dec-2010' '31-Jan-2011'\r\n  \r\n  The test suite uses\r\n  [y{1:3}]=month_ends(d1,d2);\r\n  \r\n  Is there a way to receive variable number of cells from a function call?\r\n\r\nJ.G pointed out a better Cell array implementation that does not use varargout.\r\nThis revised version is \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1044-create-a-cell-array-of-month-end-date-strings-within-a-date-range Challenge 1044\u003e\r\n\r\nRelated challenge is \u003chttp://www.mathworks.com/matlabcentral/cody/problems/703-usage-of-varargout Usage of varargout\u003e.\r\n\r\n\r\n\r\n\r\n","description_html":"\u003cp\u003eThis is a variation of \u003ca href=\"http://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range\"\u003eGet an array of month-ends by T.D.\u003c/a\u003e where the result is now a cell array of date strings.\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003edate_start = datenum('10 Nov 2010');\r\ndate_end   = datenum('10 Feb 2011');\r\n[dates_me{1:3}]   = month_ends(date_start, date_end); \r\ndates_me\r\ndates_me = \r\n   '30-Nov-2010' '31-Dec-2010' '31-Jan-2011'\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eThe test suite uses\r\n[y{1:3}]=month_ends(d1,d2);\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eIs there a way to receive variable number of cells from a function call?\r\n\u003c/pre\u003e\u003cp\u003eJ.G pointed out a better Cell array implementation that does not use varargout.\r\nThis revised version is \u003ca href=\"http://www.mathworks.com/matlabcentral/cody/problems/1044-create-a-cell-array-of-month-end-date-strings-within-a-date-range\"\u003eChallenge 1044\u003c/a\u003e\u003c/p\u003e\u003cp\u003eRelated challenge is \u003ca href=\"http://www.mathworks.com/matlabcentral/cody/problems/703-usage-of-varargout\"\u003eUsage of varargout\u003c/a\u003e.\u003c/p\u003e","function_template":"function varargout = month_ends(date_start,date_end)\r\n y{1}=datestr(date_start,'dd-mmm-yyyy');\r\n y{2}=datestr(date_start,'dd-mmm-yyyy');\r\n y{3}=datestr(date_start,'dd-mmm-yyyy');\r\n  \r\n varargout=y;\r\n    \r\nend\r\n","test_suite":"%%\r\nd1 = datenum('10-Nov-2010');\r\nd2 = datenum('10-Feb-2011');\r\ny_correct = {'30-Nov-2010','31-Dec-2010','31-Jan-2011'};\r\n[y{1:3}]=month_ends(d1,d2);\r\nassert(isequal(y,y_correct))\r\n\r\n%%\r\nd1 = datenum('31-Jan-2000');\r\nd2 = datenum('10-Apr-2000');\r\ny_correct = {'31-Jan-2000','29-Feb-2000','31-Mar-2000'};\r\n[y{1:3}]=month_ends(d1,d2);\r\nassert(isequal(y,y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":1,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":28,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2012-11-20T03:39:37.000Z","updated_at":"2025-12-31T11:52:42.000Z","published_at":"2012-11-20T03:52:32.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis is a variation of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGet an array of month-ends by T.D.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e where the result is now a cell array of date strings.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[date_start = datenum('10 Nov 2010');\\ndate_end   = datenum('10 Feb 2011');\\n[dates_me{1:3}]   = month_ends(date_start, date_end); \\ndates_me\\ndates_me = \\n   '30-Nov-2010' '31-Dec-2010' '31-Jan-2011'\\n\\nThe test suite uses\\n[y{1:3}]=month_ends(d1,d2);\\n\\nIs there a way to receive variable number of cells from a function call?]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eJ.G pointed out a better Cell array implementation that does not use varargout. This revised version is\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1044-create-a-cell-array-of-month-end-date-strings-within-a-date-range\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eChallenge 1044\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated challenge is\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/703-usage-of-varargout\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eUsage of varargout\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":51675,"title":"Add 100","description":null,"description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 258px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 129px; transform-origin: 407px 129px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 300.792px 7.91667px; transform-origin: 300.792px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eWith this problem, I have added 100 to Cody. In a way, this problem asks you to add 100 as well. \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 1.94167px 7.91667px; transform-origin: 1.94167px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 105px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 52.5px; text-align: left; transform-origin: 384px 52.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 375.983px 7.91667px; transform-origin: 375.983px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eWrite a function to add C, the Roman numeral for 100, to one word in a list to make another word in the list. For example, you can add C to “hair” to make “chair” or to “lie” to make “lice”, assuming that all of these words are in the list. Add only one C but consider target words with multiple C’s—e.g., you can add a C to “scare” to make “scarce”. The function should return a cell array \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 7.7px 7.91667px; transform-origin: 7.7px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-family: Menlo, Monaco, Consolas, \u0026quot;Courier New\u0026quot;, monospace; \"\u003ey1\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 247.417px 7.91667px; transform-origin: 247.417px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e with a list of original words sorted alphabetically and a corresponding cell array \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 7.7px 7.91667px; transform-origin: 7.7px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-family: Menlo, Monaco, Consolas, \u0026quot;Courier New\u0026quot;, monospace; \"\u003ey2\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 75.45px 7.91667px; transform-origin: 75.45px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e with a list of words with the letter added.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 21px; text-align: left; transform-origin: 384px 21px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 384px 7.91667px; transform-origin: 384px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e(And if you are going to go through the trouble of writing the code for C, you might as well make it work for any letter used in English.)\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 1.94167px 7.91667px; transform-origin: 1.94167px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 63px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 31.5px; text-align: left; transform-origin: 384px 31.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 59.9083px 7.91667px; transform-origin: 59.9083px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eAlthough 100 is an \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://static.simpsonswiki.com/images/thumb/9/97/Sweet_Seymour_Skinner%27s_Baadasssss_Song_-_chalkboard_gag.png/300px-Sweet_Seymour_Skinner%27s_Baadasssss_Song_-_chalkboard_gag.png\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"text-decoration: underline; text-decoration-line: underline; \"\u003earbitrary milestone\u003c/span\u003e\u003c/span\u003e\u003c/a\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 236.6px 7.91667px; transform-origin: 236.6px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e, it’s as good a time as any to express gratitude to MathWorks and the Cody community. Thanks to all of you for solving my problems, challenging us with your own problems, and helping me improve my own programming and problem solving. \u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function [y1,y2] = addCetc(words,letter)\r\n%  words  = list of words \r\n%  letter = letter to be added\r\n%  y1     = original words to add the letters to (sorted alphabetically)\r\n%  y2     = words with the added letter (corresponding to y1)\r\n\r\n   y1 = f1(words,letter)\r\n   y2 = f2(words,letter)\r\nend","test_suite":"%%\r\nwords = {'chair' 'decoy' 'hair' 'junk' 'lice' 'lickspittle' 'lie' 'misdirection' 'scarce' 'scare' 'scars'};\r\nletter = 'c';\r\n[y1,y2] = addCetc(words,letter);\r\ny1_correct = {'hair' 'lie' 'scare'};\r\ny2_correct = {'chair' 'lice' 'scarce'};\r\nassert(isequal(y1,y1_correct) \u0026\u0026 isequal(y2,y2_correct))\r\n\r\n%%\r\nwords = {'addle' 'being' 'bedding' 'candor' 'deduce' 'deuce' 'drake' 'driven' 'educe' 'kin' 'kind' 'meal' 'medal' 'paddle' 'rake' 'riven'};\r\nletter = 'd';\r\n[y1,y2] = addCetc(words,letter);\r\ny1_correct = {'deuce' 'educe' 'kin' 'meal' 'rake' 'riven'};\r\ny2_correct = {'deduce' 'deduce' 'kind' 'medal' 'drake' 'driven'};\r\nassert(isequal(y1,y1_correct) \u0026\u0026 isequal(y2,y2_correct))\r\n\r\n%%\r\nwords = {'admit' 'ailing' 'conjure' 'ester' 'ginger' 'injure' 'inure' 'jailing' 'jeep' 'jester' 'jocular' 'joust' 'jowl' 'junction' 'major' 'object' 'ocular' 'oust' 'owl' 'sojourn' 'unction'};\r\nletter = 'j';\r\n[y1,y2] = addCetc(words,letter);\r\ny1_correct = {'ailing' 'ester' 'inure' 'ocular' 'oust' 'owl' 'unction'};\r\ny2_correct = {'jailing' 'jester' 'injure' 'jocular' 'joust' 'jowl' 'junction'};\r\nassert(isequal(y1,y1_correct) \u0026\u0026 isequal(y2,y2_correct))\r\n\r\n%%\r\nwords = {'ambush' 'bomb' 'chomp' 'chop' 'clammy' 'clay' 'demote' 'denote' 'embryo' 'famine' 'gamble' 'gable' 'hamper' 'iamb' 'jumble' 'kempt' 'lab' 'lamb' 'sampling' 'sapling' 'smolder' 'solder' 'trebling' 'trembling' 'unkempt' 'unkept'};\r\nletter = 'm';\r\n[y1,y2] = addCetc(words,letter);\r\ny1_correct = {'chop' 'gable' 'lab' 'sapling' 'solder' 'trebling' 'unkept'};\r\ny2_correct = {'chomp' 'gamble' 'lamb' 'sampling' 'smolder' 'trembling' 'unkempt'};\r\nassert(isequal(y1,y1_correct) \u0026\u0026 isequal(y2,y2_correct))\r\n\r\n%%\r\nwords = {'boy' 'boxy' 'context' 'deter' 'dexter' 'efflux' 'eternal' 'external' 'is' 'maim' 'maxim' 'sixty' 'taxes' 'xis'};\r\nletter = 'x';\r\n[y1,y2] = addCetc(words,letter);\r\ny1_correct = {'boy' 'deter' 'eternal' 'is' 'maim'};\r\ny2_correct = {'boxy' 'dexter' 'external' 'xis' 'maxim'};\r\nassert(isequal(y1,y1_correct) \u0026\u0026 isequal(y2,y2_correct))\r\n\r\n%%\r\nWORDS = {'abandon' 'ability' 'able' 'about' 'above' 'abroad' 'absence' 'absolute' 'absorb' 'abuse' 'academic' 'accept' 'access' 'accident' 'accompany' 'accomplish' 'according' 'acknowledge' 'acquire' 'across' 'act' 'action' 'active' 'activist' 'activity' 'actor' 'actress' 'actual' 'actually' 'ad' 'adapt' 'add' 'addition' 'additional' 'address' 'adequate' 'adjust' 'adjustment' 'administration' 'administrator' 'admire' 'admission' 'admit' 'advertising' 'advice' 'advise' 'adviser' 'advocate' 'affair' 'affect' 'afford' 'afraid' 'after' 'afternoon' 'again' 'against' 'age' 'agency' 'agenda' 'agent' 'aggressive' 'ahead' 'aid' 'aide' 'allow' 'ally' 'almost' 'alone' 'along' 'already' 'also' 'alter' 'alternative' 'although' 'always' 'amazing' 'among' 'amount' 'analysis' 'analyst' 'analyze' 'ancient' 'and' 'anger' 'angle' 'angry' 'animal' 'anniversary' 'announce' 'annual' 'another' 'answer' 'anticipate' 'anxiety' 'any' 'anybody' 'anymore' 'anyone' 'appoint' 'appointment' 'appreciate' 'approach' 'appropriate' 'approval' 'approve' 'approximately' 'architect' 'area' 'argue' 'argument' 'arise' 'arm' 'armed' 'army' 'around' 'arrange' 'arrangement' 'arrest' 'arrival' 'arrive' 'art' 'article' 'artist' 'artistic' 'as' 'aside' 'ask' 'asleep' 'aspect' 'assault' 'assert' 'assess' 'assessment' 'asset' 'assign' 'assignment' 'assist' 'assistance' 'assistant' 'associate' 'association' 'attention' 'attitude' 'attorney' 'attract' 'attractive' 'attribute' 'audience' 'author' 'authority' 'auto' 'available' 'average' 'avoid' 'award' 'aware' 'awareness' 'away' 'awful' 'baby' 'back' 'background' 'bad' 'badly' 'bag' 'bake' 'balance' 'ball' 'ban' 'band' 'bank' 'bar' 'barely' 'barrel' 'barrier' 'base' 'baseball' 'basic' 'basically' 'basis' 'basket' 'basketball' 'bathroom' 'because' 'become' 'bed' 'bedroom' 'beer' 'before' 'begin' 'beginning' 'behavior' 'behind' 'being' 'belief' 'believe' 'bell' 'belong' 'below' 'belt' 'bench' 'bend' 'beneath' 'benefit' 'beside' 'besides' 'best' 'bet' 'better' 'between' 'beyond' 'Bible' 'big' 'bike' 'bill' 'billion' 'bind' 'biological' 'bird' 'birth' 'birthday' 'boat' 'body' 'bomb' 'bombing' 'bond' 'bone' 'book' 'boom' 'boot' 'border' 'born' 'borrow' 'boss' 'both' 'bother' 'bottle' 'bottom' 'boundary' 'bowl' 'box' 'boy' 'boyfriend' 'brain' 'branch' 'brand' 'bread' 'break' 'breakfast' 'breast' 'brush' 'buck' 'budget' 'build' 'building' 'bullet' 'bunch' 'burden' 'burn' 'bury' 'bus' 'business' 'busy' 'but' 'butter' 'button' 'buy' 'buyer' 'by' 'campus' 'can' 'Canadian' 'cancer' 'candidate' 'cap' 'capability' 'capable' 'capacity' 'capital' 'captain' 'capture' 'car' 'carbon' 'card' 'care' 'category' 'Catholic' 'cause' 'ceiling' 'celebrate' 'celebration' 'celebrity' 'cell' 'center' 'central' 'century' 'CEO' 'ceremony' 'certain' 'certainly' 'chain' 'chair' 'chairman' 'challenge' 'chamber' 'champion' 'championship' 'chance' 'change' 'changing' 'channel' 'chapter' 'character' 'characteristic' 'characterize' 'charge' 'charity' 'chart' 'chase' 'cheap' 'check' 'Chinese' 'claim' 'class' 'classic' 'classroom' 'clean' 'closely' 'closer' 'clothes' 'clothing' 'cloud' 'club' 'clue' 'cluster' 'coach' 'coal' 'coalition' 'coast' 'coat' 'code' 'coffee' 'color' 'column' 'combination' 'combine' 'come' 'comedy' 'comfort' 'comfortable' 'command' 'commander' 'comment' 'commercial' 'commission' 'commit' 'commitment' 'committee' 'common' 'communicate' 'communication' 'community' 'company' 'compare' 'comparison' 'compete' 'competition' 'competitive' 'competitor' 'complain' 'complaint' 'complete' 'completely' 'complex' 'complicated' 'component' 'compose' 'composition' 'comprehensive' 'computer' 'concentrate' 'concentration' 'concept' 'concern' 'concerned' 'concert' 'conclude' 'conclusion' 'concrete' 'condition' 'conduct' 'conference' 'confidence' 'confident' 'confirm' 'conflict' 'confront' 'confusion' 'Congress' 'congressional' 'connect' 'connection' 'consciousness' 'consensus' 'consequence' 'conservative' 'consider' 'considerable' 'consideration' 'consist' 'consistent' 'constant' 'constantly' 'constitute' 'constitutional' 'construct' 'construction' 'consultant' 'consume' 'consumer' 'consumption' 'contact' 'contain' 'container' 'contemporary' 'content' 'contest' 'context' 'continue' 'continued' 'contract' 'contrast' 'contribute' 'contribution' 'control' 'controversial' 'controversy' 'convention' 'conventional' 'conversation' 'convert' 'conviction' 'convince' 'cook' 'cookie' 'cooking' 'cool' 'cooperation' 'cop' 'cope' 'copy' 'core' 'corn' 'corner' 'corporate' 'corporation' 'correct' 'correspondent' 'cost' 'cotton' 'couch' 'could' 'council' 'counselor' 'count' 'counter' 'country' 'county' 'couple' 'courage' 'course' 'court' 'cousin' 'cover' 'coverage' 'cow' 'crack' 'craft' 'crash' 'crazy' 'cream' 'create' 'creation' 'creative' 'creature' 'credit' 'crew' 'crime' 'criminal' 'crisis' 'criteria' 'critic' 'critical' 'criticism' 'criticize' 'crop' 'cross' 'crowd' 'crucial' 'cry' 'cultural' 'culture' 'cup' 'curious' 'current' 'currently' 'curriculum' 'custom' 'customer' 'cut' 'cycle' 'dad' 'daily' 'damage' 'dance' 'danger' 'dangerous' 'dear' 'death' 'debate' 'debt' 'decade' 'decide' 'decision' 'deck' 'declare' 'decline' 'decrease' 'deep' 'deeply' 'deer' 'defeat' 'defend' 'defendant' 'defense' 'defensive' 'deficit' 'define' 'definitely' 'definition' 'degree' 'delay' 'deliver' 'delivery' 'demand' 'democracy' 'Democrat' 'democratic' 'demonstrate' 'demonstration' 'deny' 'department' 'depend' 'dependent' 'depending' 'depict' 'depression' 'depth' 'deputy' 'derive' 'describe' 'description' 'desert' 'deserve' 'design' 'designer' 'desire' 'desk' 'desperate' 'despite' 'destroy' 'destruction' 'detail' 'detailed' 'detect' 'determine' 'develop' 'developing' 'development' 'device' 'devote' 'dialogue' 'die' 'diet' 'differ' 'difference' 'different' 'differently' 'difficult' 'disability' 'disagree' 'disappear' 'disaster' 'discipline' 'discourse' 'discover' 'discovery' 'discrimination' 'discuss' 'discussion' 'disease' 'dish' 'dismiss' 'disorder' 'display' 'dispute' 'distance' 'distant' 'distinct' 'distinction' 'distinguish' 'distribute' 'distribution' 'district' 'diverse' 'diversity' 'divide' 'division' 'divorce' 'DNA' 'do' 'doctor' 'document' 'dog' 'domestic' 'dominant' 'dominate' 'door' 'double' 'doubt' 'down' 'downtown' 'dozen' 'draft' 'drag' 'drama' 'dramatic' 'dramatically' 'draw' 'drawing' 'dream' 'dress' 'drink' 'drive' 'driver' 'drop' 'drug' 'dry' 'due' 'during' 'dust' 'duty' 'each' 'eager' 'ear' 'early' 'earn' 'earnings' 'earth' 'ease' 'easily' 'east' 'eastern' 'easy' 'eat' 'economic' 'economics' 'economist' 'economy' 'edge' 'edition' 'editor' 'educate' 'education' 'educational' 'educator' 'effect' 'effective' 'effectively' 'efficiency' 'efficient' 'effort' 'egg' 'eight' 'either' 'elderly' 'elect' 'election' 'electric' 'electricity' 'electronic' 'element' 'elementary' 'eliminate' 'elite' 'else' 'elsewhere' 'e-mail' 'embrace' 'emerge' 'emergency' 'emission' 'emotion' 'emotional' 'emphasis' 'emphasize' 'employ' 'employee' 'employer' 'employment' 'empty' 'enable' 'encounter' 'encourage' 'end' 'enemy' 'energy' 'enjoy' 'enormous' 'enough' 'ensure' 'enter' 'enterprise' 'entertainment' 'entire' 'entirely' 'entrance' 'entry' 'environment' 'environmental' 'episode' 'equal' 'equally' 'equipment' 'era' 'error' 'ethnic' 'European' 'evaluate' 'evaluation' 'even' 'evening' 'event' 'eventually' 'ever' 'every' 'everybody' 'everyday' 'everyone' 'everything' 'everywhere' 'evidence' 'evolution' 'evolve' 'exact' 'exactly' 'examination' 'examine' 'example' 'exceed' 'excellent' 'except' 'exception' 'exchange' 'exciting' 'executive' 'exercise' 'exhibit' 'exhibition' 'exist' 'existence' 'existing' 'expand' 'expansion' 'expect' 'expectation' 'expense' 'expensive' 'experience' 'experiment' 'expert' 'explain' 'explanation' 'explode' 'explore' 'explosion' 'expose' 'exposure' 'express' 'expression' 'extend' 'extension' 'extensive' 'extent' 'external' 'extra' 'extraordinary' 'extreme' 'extremely' 'eye' 'fabric' 'face' 'facility' 'fact' 'factor' 'factory' 'faculty' 'fade' 'fail' 'failure' 'fair' 'fairly' 'faith' 'fall' 'false' 'familiar' 'family' 'famous' 'fan' 'fantasy' 'far' 'farm' 'farmer' 'fashion' 'fast' 'fat' 'fate' 'father' 'fault' 'favor' 'favorite' 'fear' 'feature' 'federal' 'fee' 'feed' 'feel' 'feeling' 'fellow' 'female' 'fence' 'few' 'fewer' 'fiber' 'fiction' 'field' 'fifteen' 'fifth' 'fifty' 'fight' 'fighter' 'fighting' 'figure' 'file' 'fill' 'film' 'final' 'finally' 'finance' 'financial' 'find' 'finding' 'fine' 'finger' 'finish' 'fire' 'firm' 'flee' 'flesh' 'flight' 'float' 'floor' 'flow' 'flower' 'fly' 'focus' 'folk' 'follow' 'following' 'food' 'foot' 'football' 'for' 'force' 'foreign' 'forest' 'forever' 'forget' 'form' 'formal' 'formation' 'former' 'formula' 'forth' 'fortune' 'forward' 'found' 'foundation' 'founder' 'four' 'fourth' 'frame' 'framework' 'free' 'freedom' 'freeze' 'French' 'frequency' 'frequent' 'frequently' 'fresh' 'friend' 'friendly' 'friendship' 'from' 'front' 'fruit' 'frustration' 'fuel' 'full' 'fully' 'fun' 'function' 'fund' 'fundamental' 'funding' 'funeral' 'funny' 'furniture' 'furthermore' 'future' 'gain' 'galaxy' 'gallery' 'game' 'gang' 'gap' 'garage' 'garden' 'garlic' 'gas' 'gate' 'gather' 'gay' 'gaze' 'gear' 'gender' 'gene' 'general' 'generally' 'generate' 'generation' 'genetic' 'gentleman' 'gently' 'German' 'gesture' 'get' 'ghost' 'giant' 'gift' 'gifted' 'girl' 'girlfriend' 'give' 'given' 'grab' 'grade' 'gradually' 'graduate' 'grain' 'grand' 'grandfather' 'grandmother' 'grant' 'grass' 'grave' 'gray' 'great' 'greatest' 'green' 'grocery' 'ground' 'group' 'grow' 'growing' 'growth' 'guarantee' 'guard' 'guess' 'guest' 'guide' 'guideline' 'guilty' 'gun' 'guy' 'habit' 'habitat' 'hair' 'half' 'hall' 'hand' 'handful' 'handle' 'hang' 'happen' 'happy' 'hard' 'hardly' 'hat' 'hate' 'have' 'he' 'head' 'headline' 'headquarters' 'health' 'healthy' 'hear' 'hearing' 'heart' 'heat' 'heaven' 'heavily' 'heavy' 'heel' 'height' 'helicopter' 'hell' 'hello' 'help' 'helpful' 'her' 'here' 'heritage' 'hero' 'herself' 'hey' 'hi' 'hide' 'high' 'highlight' 'highly' 'highway' 'hill' 'him' 'himself' 'hip' 'hire' 'his' 'historian' 'historic' 'historical' 'history' 'hit' 'hold' 'hole' 'holiday' 'holy' 'home' 'homeless' 'honest' 'honey' 'honor' 'hope' 'horizon' 'horror' 'horse' 'hospital' 'host' 'hot' 'hotel' 'hour' 'house' 'household' 'housing' 'how' 'however' 'huge' 'human' 'humor' 'hundred' 'hungry' 'hunter' 'hunting' 'hurt' 'husband' 'hypothesis' 'ignore' 'ill' 'illegal' 'illness' 'impose' 'impossible' 'impress' 'impression' 'impressive' 'incentive' 'incident' 'include' 'including' 'income' 'incorporate' 'increase' 'increased' 'increasing' 'increasingly' 'incredible' 'indeed' 'independence' 'independent' 'index' 'Indian' 'indicate' 'indication' 'individual' 'industrial' 'industry' 'infant' 'infection' 'inflation' 'influence' 'inform' 'information' 'ingredient' 'initial' 'initially' 'initiative' 'injury' 'inner' 'innocent' 'inquiry' 'inside' 'insight' 'insist' 'inspire' 'install' 'instance' 'instead' 'institution' 'institutional' 'instruction' 'instructor' 'instrument' 'insurance' 'intellectual' 'intelligence' 'intend' 'intense' 'intensity' 'intention' 'interaction' 'interest' 'interested' 'interesting' 'internal' 'international' 'Internet' 'interpret' 'interpretation' 'intervention' 'interview' 'into' 'introduce' 'introduction' 'invasion' 'invest' 'investigate' 'investigation' 'investigator' 'investment' 'investor' 'invite' 'involve' 'involved' 'involvement' 'Iraqi' 'Irish' 'iron' 'Islamic' 'island' 'Israeli' 'issue' 'it' 'Italian' 'item' 'its' 'itself' 'jacket' 'jail' 'jet' 'job' 'join' 'joint' 'joke' 'journal' 'journalist' 'journey' 'joy' 'judge' 'judgment' 'juice' 'jump' 'junior' 'jury' 'landscape' 'language' 'lap' 'large' 'largely' 'last' 'late' 'later' 'Latin' 'latter' 'laugh' 'launch' 'law' 'lawn' 'lawsuit' 'lawyer' 'lay' 'layer' 'lead' 'leader' 'leadership' 'leading' 'leaf' 'league' 'lean' 'learn' 'learning' 'least' 'leather' 'leave' 'left' 'leg' 'legacy' 'legal' 'legend' 'legislation' 'legitimate' 'lemon' 'length' 'less' 'lesson' 'let' 'letter' 'level' 'liberal' 'library' 'license' 'lie' 'life' 'lifestyle' 'lifetime' 'lift' 'light' 'like' 'likely' 'limit' 'limitation' 'limited' 'line' 'link' 'lip' 'list' 'loan' 'local' 'locate' 'location' 'lock' 'long' 'long-term' 'look' 'loose' 'lose' 'loss' 'lost' 'lot' 'lots' 'loud' 'love' 'lovely' 'lover' 'low' 'lower' 'luck' 'lucky' 'lunch' 'lung' 'machine' 'mad' 'magazine' 'mail' 'main' 'mainly' 'maintain' 'maintenance' 'major' 'majority' 'make' 'maker' 'makeup' 'male' 'mall' 'man' 'manage' 'management' 'manager' 'manner' 'manufacturer' 'manufacturing' 'many' 'map' 'margin' 'mark' 'market' 'marketing' 'marriage' 'married' 'marry' 'mask' 'mass' 'massive' 'master' 'match' 'material' 'math' 'matter' 'may' 'maybe' 'mayor' 'me' 'meal' 'mean' 'meaning' 'meanwhile' 'measure' 'meeting' 'member' 'membership' 'memory' 'mental' 'mention' 'menu' 'mere' 'merely' 'mess' 'message' 'metal' 'meter' 'method' 'Mexican' 'middle' 'might' 'military' 'milk' 'million' 'mind' 'mine' 'minister' 'minor' 'minority' 'minute' 'miracle' 'mirror' 'miss' 'missile' 'mission' 'mistake' 'mix' 'mixture' 'mm-hmm' 'mode' 'model' 'moderate' 'modern' 'modest' 'mom' 'moment' 'money' 'monitor' 'month' 'mood' 'moon' 'moral' 'more' 'moreover' 'morning' 'mortgage' 'most' 'mostly' 'mother' 'motion' 'motivation' 'motor' 'mount' 'mountain' 'mouse' 'mouth' 'move' 'movement' 'movie' 'much' 'multiple' 'murder' 'muscle' 'museum' 'music' 'musical' 'musician' 'Muslim' 'must' 'mutual' 'my' 'myself' 'mystery' 'myth' 'naked' 'name' 'narrative' 'narrow' 'nation' 'national' 'native' 'natural' 'neighbor' 'neighborhood' 'neither' 'nerve' 'nervous' 'net' 'network' 'never' 'nevertheless' 'new' 'newly' 'news' 'newspaper' 'next' 'nice' 'night' 'nine' 'no' 'nobody' 'nod' 'noise' 'nomination' 'none' 'nonetheless' 'nor' 'normal' 'normally' 'north' 'northern' 'nose' 'not' 'note' 'nothing' 'notice' 'notion' 'novel' 'now' 'nowhere' 'n’t' 'nuclear' 'number' 'numerous' 'nurse' 'nut' 'object' 'objective' 'obligation' 'observation' 'observe' 'observer' 'obtain' 'obvious' 'obviously' 'occasion' 'occasionally' 'occupation' 'occupy' 'occur' 'ocean' 'odd' 'odds' 'of' 'off' 'offense' 'offensive' 'offer' 'office' 'officer' 'official' 'often' 'oh' 'oil' 'ok' 'okay' 'old' 'Olympic' 'on' 'once' 'one' 'ongoing' 'onion' 'online' 'only' 'onto' 'open' 'opening' 'operate' 'operating' 'operation' 'operator' 'opinion' 'opponent' 'opportunity' 'oppose' 'opposite' 'opposition' 'option' 'or' 'orange' 'order' 'ordinary' 'organic' 'organization' 'organize' 'orientation' 'origin' 'original' 'outcome' 'outside' 'oven' 'over' 'overall' 'overcome' 'overlook' 'owe' 'own' 'owner' 'pace' 'pack' 'package' 'page' 'pain' 'painful' 'paint' 'painter' 'painting' 'pair' 'pale' 'Palestinian' 'palm' 'pan' 'panel' 'pant' 'paper' 'parent' 'park' 'parking' 'part' 'participant' 'participate' 'participation' 'particular' 'particularly' 'partly' 'partner' 'partnership' 'party' 'pass' 'passage' 'passenger' 'passion' 'past' 'patch' 'path' 'patient' 'pattern' 'pause' 'pay' 'payment' 'PC' 'peace' 'peak' 'peer' 'penalty' 'people' 'pepper' 'per' 'perceive' 'percentage' 'perception' 'perfect' 'perfectly' 'perform' 'performance' 'perhaps' 'period' 'permanent' 'permission' 'permit' 'person' 'personal' 'personality' 'personally' 'personnel' 'perspective' 'persuade' 'pet' 'phase' 'phenomenon' 'philosophy' 'phone' 'photo' 'photograph' 'photographer' 'phrase' 'physical' 'physically' 'physician' 'piano' 'pick' 'picture' 'pie' 'piece' 'pile' 'pilot' 'pine' 'pink' 'pipe' 'pitch' 'place' 'plan' 'plane' 'planet' 'planning' 'plant' 'plastic' 'plate' 'platform' 'play' 'player' 'please' 'pleasure' 'plenty' 'plot' 'plus' 'PM' 'pocket' 'poem' 'poet' 'poetry' 'point' 'pole' 'police' 'policy' 'political' 'politically' 'politician' 'politics' 'poll' 'pollution' 'pool' 'poor' 'pop' 'popular' 'population' 'porch' 'port' 'portion' 'portrait' 'portray' 'pose' 'position' 'positive' 'possess' 'possibility' 'possible' 'possibly' 'post' 'pot' 'potato' 'potential' 'potentially' 'pound' 'pour' 'poverty' 'powder' 'power' 'powerful' 'practical' 'practice' 'pray' 'prayer' 'precisely' 'predict' 'prefer' 'preference' 'pregnancy' 'pregnant' 'preparation' 'prepare' 'prescription' 'presence' 'present' 'presentation' 'preserve' 'president' 'presidential' 'press' 'pressure' 'pretend' 'pretty' 'prevent' 'previous' 'previously' 'price' 'pride' 'priest' 'primarily' 'primary' 'prime' 'principal' 'principle' 'print' 'prior' 'priority' 'prison' 'prisoner' 'privacy' 'private' 'probably' 'problem' 'procedure' 'proceed' 'process' 'produce' 'producer' 'product' 'production' 'profession' 'professional' 'professor' 'profile' 'profit' 'program' 'progress' 'project' 'prominent' 'promise' 'promote' 'prompt' 'proof' 'proper' 'properly' 'property' 'proportion' 'proposal' 'propose' 'proposed' 'prosecutor' 'prospect' 'protect' 'protection' 'protein' 'protest' 'proud' 'prove' 'provide' 'provider' 'province' 'provision' 'psychological' 'psychologist' 'psychology' 'public' 'publication' 'publicly' 'publish' 'publisher' 'pull' 'punishment' 'purchase' 'pure' 'purpose' 'pursue' 'push' 'put' 'qualify' 'quality' 'quarter' 'quarterback' 'question' 'quick' 'quickly' 'quiet' 'quietly' 'quit' 'quite' 'quote' 'reading' 'ready' 'real' 'reality' 'realize' 'really' 'reason' 'reasonable' 'recall' 'receive' 'recent' 'recently' 'recipe' 'recognition' 'recognize' 'recommend' 'recommendation' 'record' 'recording' 'recover' 'recovery' 'recruit' 'red' 'reduce' 'reduction' 'refer' 'reference' 'reflect' 'reflection' 'reform' 'refugee' 'refuse' 'regard' 'regarding' 'regardless' 'regime' 'region' 'regional' 'register' 'regular' 'regularly' 'regulate' 'regulation' 'reinforce' 'reject' 'relate' 'relation' 'relationship' 'relative' 'relatively' 'relax' 'release' 'relevant' 'relief' 'religion' 'religious' 'rely' 'remain' 'remaining' 'remarkable' 'remember' 'remind' 'remote' 'remove' 'repeat' 'repeatedly' 'replace' 'reply' 'report' 'reporter' 'represent' 'representation' 'representative' 'Republican' 'reputation' 'request' 'require' 'requirement' 'research' 'researcher' 'resemble' 'reservation' 'resident' 'resist' 'resistance' 'resolution' 'resolve' 'resort' 'resource' 'respect' 'respond' 'respondent' 'response' 'responsibility' 'responsible' 'rest' 'restaurant' 'restore' 'restriction' 'result' 'retain' 'retire' 'retirement' 'return' 'reveal' 'revenue' 'review' 'revolution' 'rhythm' 'rice' 'rich' 'rid' 'ride' 'round' 'route' 'routine' 'row' 'rub' 'rule' 'run' 'running' 'rural' 'rush' 'Russian' 'sacred' 'sad' 'safe' 'safety' 'sake' 'salad' 'salary' 'sale' 'sales' 'salt' 'same' 'sample' 'sanction' 'sand' 'satellite' 'satisfaction' 'satisfy' 'sauce' 'save' 'saving' 'say' 'scale' 'scandal' 'scared' 'scenario' 'scene' 'schedule' 'scheme' 'scholar' 'scholarship' 'school' 'science' 'scientific' 'scientist' 'scope' 'score' 'scream' 'screen' 'script' 'sea' 'search' 'season' 'seat' 'second' 'secret' 'secretary' 'section' 'sector' 'secure' 'security' 'see' 'seed' 'seek' 'seem' 'segment' 'seize' 'select' 'selection' 'self' 'sell' 'Senate' 'senator' 'send' 'senior' 'sense' 'sensitive' 'sentence' 'separate' 'sequence' 'series' 'serious' 'seriously' 'serve' 'service' 'session' 'set' 'setting' 'settle' 'settlement' 'seven' 'several' 'severe' 'sex' 'sexual' 'shade' 'shadow' 'shake' 'shall' 'shape' 'share' 'sharp' 'she' 'sheet' 'shelf' 'shell' 'shelter' 'shift' 'shine' 'ship' 'shirt' 'shock' 'shoe' 'shoot' 'shooting' 'shop' 'shopping' 'shore' 'short' 'shortly' 'shot' 'should' 'shoulder' 'shout' 'show' 'shower' 'shrug' 'shut' 'similar' 'similarly' 'simple' 'simply' 'sin' 'since' 'sing' 'singer' 'single' 'sink' 'sir' 'sister' 'sit' 'site' 'situation' 'six' 'size' 'ski' 'skill' 'skin' 'sky' 'slave' 'sleep' 'slice' 'slide' 'slight' 'slightly' 'slip' 'slow' 'slowly' 'small' 'smart' 'smell' 'smile' 'smoke' 'smooth' 'snap' 'snow' 'so' 'so-called' 'soccer' 'social' 'society' 'soft' 'software' 'soil' 'solar' 'soldier' 'solid' 'solution' 'solve' 'some' 'somebody' 'somehow' 'someone' 'something' 'sometimes' 'somewhat' 'somewhere' 'son' 'song' 'soon' 'sophisticated' 'sorry' 'sort' 'soul' 'sound' 'soup' 'source' 'south' 'southern' 'Soviet' 'space' 'Spanish' 'speak' 'speaker' 'special' 'specialist' 'species' 'specific' 'specifically' 'speech' 'speed' 'spend' 'spending' 'spin' 'spirit' 'spiritual' 'split' 'spokesman' 'sport' 'spot' 'spread' 'spring' 'square' 'squeeze' 'stability' 'stable' 'staff' 'stage' 'stair' 'stake' 'stand' 'standard' 'standing' 'star' 'still' 'stir' 'stock' 'stomach' 'stone' 'stop' 'storage' 'store' 'storm' 'story' 'straight' 'strange' 'stranger' 'strategic' 'strategy' 'stream' 'street' 'strength' 'strengthen' 'stress' 'stretch' 'strike' 'string' 'strip' 'stroke' 'strong' 'strongly' 'structure' 'struggle' 'student' 'studio' 'study' 'stuff' 'stupid' 'style' 'subject' 'submit' 'subsequent' 'substance' 'substantial' 'succeed' 'success' 'successful' 'successfully' 'suit' 'summer' 'summit' 'sun' 'super' 'supply' 'support' 'supporter' 'suppose' 'supposed' 'Supreme' 'sure' 'surely' 'surface' 'surgery' 'surprise' 'suspect' 'sustain' 'swear' 'sweep' 'sweet' 'swim' 'swing' 'switch' 'symbol' 'symptom' 'system' 'table' 'tablespoon' 'tactic' 'tail' 'take' 'tale' 'talent' 'talk' 'tall' 'tank' 'tap' 'tape' 'target' 'task' 'taste' 'tax' 'taxpayer' 'tea' 'teach' 'teacher' 'teaching' 'team' 'tear' 'teaspoon' 'technical' 'technique' 'technology' 'teen' 'teenager' 'telephone' 'telescope' 'television' 'tell' 'temperature' 'temporary' 'ten' 'tend' 'test' 'testify' 'testimony' 'testing' 'text' 'they' 'thick' 'thin' 'thing' 'think' 'thinking' 'third' 'thirty' 'this' 'those' 'though' 'thought' 'thousand' 'threat' 'threaten' 'three' 'throat' 'through' 'throughout' 'throw' 'thus' 'ticket' 'tie' 'tight' 'time' 'tiny' 'tip' 'tire' 'tired' 'tissue' 'title' 'to' 'tobacco' 'today' 'toe' 'together' 'tomato' 'tomorrow' 'tone' 'tongue' 'tonight' 'too' 'tool' 'tooth' 'top' 'topic' 'toss' 'total' 'totally' 'touch' 'tough' 'tour' 'tourist' 'tournament' 'toward' 'towards' 'tower' 'town' 'toy' 'trace' 'track' 'trade' 'tradition' 'traditional' 'traffic' 'tragedy' 'trail' 'train' 'tremendous' 'trend' 'trial' 'tribe' 'trick' 'trip' 'troop' 'trouble' 'truck' 'true' 'truly' 'trust' 'truth' 'try' 'tube' 'tunnel' 'turn' 'TV' 'twelve' 'twenty' 'twice' 'twin' 'two' 'type' 'typical' 'typically' 'unit' 'United' 'universal' 'universe' 'university' 'unknown' 'unless' 'unlike' 'unlikely' 'until' 'unusual' 'up' 'upon' 'valley' 'valuable' 'value' 'variable' 'variation' 'variety' 'view' 'viewer' 'village' 'violate' 'violation' 'violence' 'violent' 'virtually' 'virtue' 'virus' 'visible' 'vision' 'visit' 'visitor' 'visual' 'vital' 'voice' 'volume' 'volunteer' 'vote' 'voter' 'wash' 'waste' 'watch' 'water' 'wave' 'way' 'we' 'weak' 'wealth' 'wealthy' 'weapon' 'wear' 'weather' 'wedding' 'week' 'weekend' 'weekly' 'weigh' 'weight' 'welcome' 'welfare' 'well' 'west' 'western' 'wet' 'what' 'whatever' 'wheel' 'when' 'whenever' 'where' 'whereas' 'whether' 'which' 'while' 'whisper' 'white' 'who' 'whole' 'whom' 'whose' 'why' 'wide' 'widely' 'widespread' 'wife' 'wild' 'will' 'willing' 'win' 'wind' 'window' 'wine' 'wing' 'winner' 'winter' 'wipe' 'withdraw' 'within' 'without' 'witness' 'woman' 'wonder' 'wonderful' 'wood' 'wooden' 'word' 'work' 'worker' 'working' 'works' 'workshop' 'world' 'worried' 'worry' 'worth' 'would' 'wound' 'wrap' 'yield' 'you' 'young' 'your' 'yours' 'yourself' 'youth' 'zone'};\r\nletter = 'c';\r\n[y1,y2] = addCetc(WORDS,letter);\r\ny1_correct = {'enter' 'fat' 'hair' 'lean' 'loud' 'math' 'one' 'over' 'path' 'sale' 'up'};\r\ny2_correct = {'center' 'fact' 'chair' 'clean' 'cloud' 'match' 'once' 'cover' 'patch' 'scale' 'cup'};\r\nassert(isequal(y1,y1_correct) \u0026\u0026 isequal(y2,y2_correct))","published":true,"deleted":false,"likes_count":4,"comments_count":4,"created_by":46909,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":13,"test_suite_updated_at":"2021-05-06T02:50:12.000Z","rescore_all_solutions":true,"group_id":1,"created_at":"2021-05-04T03:46:54.000Z","updated_at":"2025-07-18T20:09:00.000Z","published_at":"2021-05-04T03:54:50.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWith this problem, I have added 100 to Cody. In a way, this problem asks you to add 100 as well. \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a function to add C, the Roman numeral for 100, to one word in a list to make another word in the list. For example, you can add C to “hair” to make “chair” or to “lie” to make “lice”, assuming that all of these words are in the list. Add only one C but consider target words with multiple C’s—e.g., you can add a C to “scare” to make “scarce”. The function should return a cell array \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ey1\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e with a list of original words sorted alphabetically and a corresponding cell array \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ey2\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e with a list of words with the letter added.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e(And if you are going to go through the trouble of writing the code for C, you might as well make it work for any letter used in English.)\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAlthough 100 is an \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://static.simpsonswiki.com/images/thumb/9/97/Sweet_Seymour_Skinner%27s_Baadasssss_Song_-_chalkboard_gag.png/300px-Sweet_Seymour_Skinner%27s_Baadasssss_Song_-_chalkboard_gag.png\\\"\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:u/\u003e\u003c/w:rPr\u003e\u003cw:t\u003earbitrary milestone\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, it’s as good a time as any to express gratitude to MathWorks and the Cody community. Thanks to all of you for solving my problems, challenging us with your own problems, and helping me improve my own programming and problem solving. \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":43673,"title":"String Array Basics, Part 4: Convert String Array with Missing Values to Cell Array","description":"\u003chttp://www.mathworks.com/help/matlab/characters-and-strings.html String array\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a string array of text data. Your job is to convert the string array to a cell array of character vectors, which stores the same pieces of text data.\r\n\r\nThe \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values  Part 2\u003e assuming no missing values in the input string array is a good starting point. In this problem, the missing values for string arrays, denoted *\u003c missing \u003e*, need to be converted to the missing values for cell arrays, denoted *{''}* (i.e., cell of empty character). \r\n\r\nRefer to the R2016b documentation for more information on the \u003chttp://www.mathworks.com/help/matlab/ref/ismissing.html?=ismissing missing values for different data types\u003e.\r\n \r\nExample: \r\n\r\n  Input:\r\n  \u003e\u003e x = string({'I','love'}); x(4) = 'MATLAB'\r\n  x = \r\n    1×4 string array\r\n      \"I\"    \"love\"    \u003cmissing\u003e    \"MATLAB\"\r\n  \r\n  Output:\r\n  \u003e\u003e y = {'I', 'love', '', 'MATLAB'}\r\n  y =\r\n    1×3 cell array\r\n      'I'    'love'    ''    'MATLAB'\r\n\r\nRelated Problems in this series:\r\n\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values   String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003e \r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values   String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003e \r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values   String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003e\r\n* String Array Basics, Part 4: Convert String Array with Missing Values to Cell Array","description_html":"\u003cp\u003e\u003ca href = \"http://www.mathworks.com/help/matlab/characters-and-strings.html\"\u003eString array\u003c/a\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a string array of text data. Your job is to convert the string array to a cell array of character vectors, which stores the same pieces of text data.\u003c/p\u003e\u003cp\u003eThe \u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\"\u003ePart 2\u003c/a\u003e assuming no missing values in the input string array is a good starting point. In this problem, the missing values for string arrays, denoted \u003cb\u003e\u0026lt; missing \u0026gt;\u003c/b\u003e, need to be converted to the missing values for cell arrays, denoted \u003cb\u003e{''}\u003c/b\u003e (i.e., cell of empty character).\u003c/p\u003e\u003cp\u003eRefer to the R2016b documentation for more information on the \u003ca href = \"http://www.mathworks.com/help/matlab/ref/ismissing.html?=ismissing\"\u003emissing values for different data types\u003c/a\u003e.\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eInput:\r\n\u0026gt;\u0026gt; x = string({'I','love'}); x(4) = 'MATLAB'\r\nx = \r\n  1×4 string array\r\n    \"I\"    \"love\"    \u0026lt;missing\u0026gt;    \"MATLAB\"\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eOutput:\r\n\u0026gt;\u0026gt; y = {'I', 'love', '', 'MATLAB'}\r\ny =\r\n  1×3 cell array\r\n    'I'    'love'    ''    'MATLAB'\r\n\u003c/pre\u003e\u003cp\u003eRelated Problems in this series:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\"\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\"\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values\"\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/a\u003e\u003c/li\u003e\u003cli\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/li\u003e\u003c/ul\u003e","function_template":"function y = str2cell(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = string({'I','love','MATLAB'});\r\ny_correct = {'I','love','MATLAB'};\r\nassert(isequal(str2cell(x),y_correct))\r\n\r\n%%\r\nx = string({'I','love'}); x(5) = 'MATLAB';\r\ny_correct = {'I','love','','','MATLAB'};\r\nassert(isequal(str2cell(x),y_correct))\r\n\r\n%%\r\nx = string([1 NaN 2]);\r\ny_correct = {'1','','2'};\r\nassert(isequal(str2cell(x),y_correct))\r\n\r\n%%\r\nx = strings(3);\r\nx(1) = 'first'; \r\nx(end) = 'last';\r\ny_correct = {'first',  '',     ''\r\n             '',       '',     ''\r\n             '',       '',     'last'};\r\nassert(isequal(str2cell(x),y_correct))","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":12569,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":119,"test_suite_updated_at":"2016-11-23T06:24:32.000Z","rescore_all_solutions":false,"group_id":16,"created_at":"2016-11-21T03:52:19.000Z","updated_at":"2026-03-10T20:16:49.000Z","published_at":"2016-11-22T21:16:18.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/help/matlab/characters-and-strings.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a string array of text data. Your job is to convert the string array to a cell array of character vectors, which stores the same pieces of text data.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003ePart 2\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e assuming no missing values in the input string array is a good starting point. In this problem, the missing values for string arrays, denoted\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e\u0026lt; missing \u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e, need to be converted to the missing values for cell arrays, denoted\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e{''}\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e (i.e., cell of empty character).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRefer to the R2016b documentation for more information on the\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/help/matlab/ref/ismissing.html?=ismissing\\\"\u003e\u003cw:r\u003e\u003cw:t\u003emissing values for different data types\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input:\\n\u003e\u003e x = string({'I','love'}); x(4) = 'MATLAB'\\nx = \\n  1×4 string array\\n    \\\"I\\\"    \\\"love\\\"    \u003cmissing\u003e    \\\"MATLAB\\\"\\n\\nOutput:\\n\u003e\u003e y = {'I', 'love', '', 'MATLAB'}\\ny =\\n  1×3 cell array\\n    'I'    'love'    ''    'MATLAB']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated Problems in this series:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43677,"title":"String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values","description":"\u003chttp://www.mathworks.com/help/matlab/characters-and-strings.html String array\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a cell array of character vectors. Your job is to convert the cell array to a string array, which stores the same pieces of text data. \r\n\r\nTo begin with, let's assume that there are no missing type values in the input cell array. \r\n\r\n\r\nExample: \r\n \r\n\r\n  Input:\r\n  \u003e\u003e x = {'I','Love','MATLAB'}\r\n  x =\r\n    1×3 cell array\r\n      'I'    'Love'    'MATLAB'\r\n\r\n  Output:\r\n  \u003e\u003e y = strings(size(x));\r\n  \u003e\u003e [y{:}] = x{:}\r\n  y = \r\n    1×3 string array\r\n      \"I\"    \"Love\"    \"MATLAB\"\r\n\r\nNote that the example shown above is not the best way to solve this problem. Try other approaches in order to achieve a leading score. \r\n\r\nRelated Problems in this series:\r\n\r\n* String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values   String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003e \r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values   String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003e\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values   String Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003e\r\n","description_html":"\u003cp\u003e\u003ca href = \"http://www.mathworks.com/help/matlab/characters-and-strings.html\"\u003eString array\u003c/a\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a cell array of character vectors. Your job is to convert the cell array to a string array, which stores the same pieces of text data.\u003c/p\u003e\u003cp\u003eTo begin with, let's assume that there are no missing type values in the input cell array.\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eInput:\r\n\u0026gt;\u0026gt; x = {'I','Love','MATLAB'}\r\nx =\r\n  1×3 cell array\r\n    'I'    'Love'    'MATLAB'\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eOutput:\r\n\u0026gt;\u0026gt; y = strings(size(x));\r\n\u0026gt;\u0026gt; [y{:}] = x{:}\r\ny = \r\n  1×3 string array\r\n    \"I\"    \"Love\"    \"MATLAB\"\r\n\u003c/pre\u003e\u003cp\u003eNote that the example shown above is not the best way to solve this problem. Try other approaches in order to achieve a leading score.\u003c/p\u003e\u003cp\u003eRelated Problems in this series:\u003c/p\u003e\u003cul\u003e\u003cli\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\"\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values\"\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values\"\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/a\u003e\u003c/li\u003e\u003c/ul\u003e","function_template":"function y = cell2str(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = {'I','love','MATLAB'};\r\ny_correct = strings(size(x));\r\n[y_correct{:}] = x{:};\r\nassert(isequal(cell2str(x),y_correct))\r\n\r\n%%\r\nx = {'I',   'love',  'MATLAB'\r\n     'I',   'love',  'Cody'};\r\ny_correct = strings(size(x));\r\n[y_correct{:}] = x{:};\r\nassert(isequal(cell2str(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":7,"comments_count":1,"created_by":12569,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":1972,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":16,"created_at":"2016-11-22T21:03:53.000Z","updated_at":"2026-04-07T19:11:48.000Z","published_at":"2016-11-22T21:05:14.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/help/matlab/characters-and-strings.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a cell array of character vectors. Your job is to convert the cell array to a string array, which stores the same pieces of text data.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eTo begin with, let's assume that there are no missing type values in the input cell array.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input:\\n\u003e\u003e x = {'I','Love','MATLAB'}\\nx =\\n  1×3 cell array\\n    'I'    'Love'    'MATLAB'\\n\\nOutput:\\n\u003e\u003e y = strings(size(x));\\n\u003e\u003e [y{:}] = x{:}\\ny = \\n  1×3 string array\\n    \\\"I\\\"    \\\"Love\\\"    \\\"MATLAB\\\"]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNote that the example shown above is not the best way to solve this problem. Try other approaches in order to achieve a leading score.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated Problems in this series:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":61022,"title":"The Case of the Missing Prototype – Decode the Secret Note Found on the Desk to Reveal a Hidden Message","description":"On the lab desk, you discover a short note filled with strange letters.\r\nAfter examining it, you realize it’s written in a Caesar cipher, where each letter was shifted two positions forward in the alphabet.\r\nTo decode it, you must shift each letter two positions backward.\r\nAssume the message only contains lowercase English letters and wraps around ('a' becomes 'y', 'b' becomes 'z').\r\nWrite a function that returns the decoded message string.","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none; white-space: normal; \"\u003e\u003cdiv style=\"block-size: 162px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 408px 81px; transform-origin: 408px 81px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eOn the lab desk, you discover a short note filled with strange letters.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 21px; text-align: left; transform-origin: 385px 21px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eAfter examining it, you realize it’s written in a \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003eCaesar cipher\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e, where each letter was shifted \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003etwo positions forward\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e in the alphabet.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eTo decode it, you must shift each letter \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003etwo positions backward\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eAssume the message only contains \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003elowercase English letters\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e and wraps around (\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-family: Menlo, Monaco, Consolas, \u0026quot;Courier New\u0026quot;, monospace; \"\u003e'a'\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e becomes \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-family: Menlo, Monaco, Consolas, \u0026quot;Courier New\u0026quot;, monospace; \"\u003e'y'\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e, \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-family: Menlo, Monaco, Consolas, \u0026quot;Courier New\u0026quot;, monospace; \"\u003e'b'\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e becomes \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-family: Menlo, Monaco, Consolas, \u0026quot;Courier New\u0026quot;, monospace; \"\u003e'z'\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e).\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eWrite a function that returns the decoded message string.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function decoded = decodeNote(msg)\r\n  y = x;\r\nend","test_suite":"%%\r\nmsg = 'jgnnq';\r\nmsg_correct = 'hello';\r\nassert(isequal(decodeNote(msg),msg_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":4953963,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":51,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2025-10-20T16:43:39.000Z","updated_at":"2026-04-08T15:41:22.000Z","published_at":"2025-10-20T16:43:39.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOn the lab desk, you discover a short note filled with strange letters.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAfter examining it, you realize it’s written in a \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCaesar cipher\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e, where each letter was shifted \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003etwo positions forward\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e in the alphabet.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eTo decode it, you must shift each letter \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003etwo positions backward\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAssume the message only contains \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003elowercase English letters\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e and wraps around (\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e'a'\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e becomes \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e'y'\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e, \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e'b'\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e becomes \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e'z'\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a function that returns the decoded message string.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":42488,"title":"combine cells","description":"A cell type variable is created. However it has other cells in itself. we want to integrate them all in a single cell. the contents of inner cells are column vectors with strings.\r\n\r\nInput :\r\n\r\n  {{'cody';'players'};{'are';'great'}}\r\n\r\nOutput :\r\n\r\n  {'cody';'players';'are';'great'}\r\n\r\nfor/while loops are forbidden","description_html":"\u003cp\u003eA cell type variable is created. However it has other cells in itself. we want to integrate them all in a single cell. the contents of inner cells are column vectors with strings.\u003c/p\u003e\u003cp\u003eInput :\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e{{'cody';'players'};{'are';'great'}}\r\n\u003c/pre\u003e\u003cp\u003eOutput :\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e{'cody';'players';'are';'great'}\r\n\u003c/pre\u003e\u003cp\u003efor/while loops are forbidden\u003c/p\u003e","function_template":"function y = combineCells(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nfiletext = fileread('combineCells.m');\r\nassert(isempty(strfind(filetext, 'for')))\r\nassert(isempty(strfind(filetext, 'while')))\r\n\r\n%%\r\nx = {{'cody';'players'};{'are';'great'}};\r\ny_correct  = {'cody';'players';'are';'great'};\r\nassert(isequal(combineCells(x),y_correct))\r\n\r\n%%\r\nx = {{'A';'B';'C'};{'D';'E'};{'F';'G';'H';'I';'J'}};\r\ny_correct  = {'A';'B';'C';'D';'E';'F';'G';'H';'I';'J'};\r\nassert(isequal(combineCells(x),y_correct))\r\n\r\n%%\r\nx = {{'A';'B';'C'};{'D';'E'};{'F';'G';'H';'I';'J';'K'}};\r\ny_correct  = {'A';'B';'C';'D';'E';'F';'G';'H';'I';'J';'K'};\r\nassert(isequal(combineCells(x),y_correct))\r\n\r\n%%\r\nx = {{'A';'B';'C';'toPreventLittleCheats'};{'D';'E'};{'F';'G';'H';'I';'J'}};\r\ny_correct  = {'A';'B';'C';'toPreventLittleCheats';'D';'E';'F';'G';'H';'I';'J'};\r\nassert(isequal(combineCells(x),y_correct))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":8703,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":30,"test_suite_updated_at":"2015-08-05T13:06:20.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2015-08-05T12:56:39.000Z","updated_at":"2025-12-29T15:10:24.000Z","published_at":"2015-08-05T13:06:20.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA cell type variable is created. However it has other cells in itself. we want to integrate them all in a single cell. the contents of inner cells are column vectors with strings.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eInput :\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[{{'cody';'players'};{'are';'great'}}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput :\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[{'cody';'players';'are';'great'}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efor/while loops are forbidden\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":42617,"title":"List of built-in demo images","description":"Return a cell array containing the filenames for built-in images (e.g. cameraman.tif, coins.png). An optional input specifies what type(s) of files to look for. If no such files exist, return an empty cell array.\r\n\r\n*EDIT:* The output should be sorted in alphabetical order.","description_html":"\u003cp\u003eReturn a cell array containing the filenames for built-in images (e.g. cameraman.tif, coins.png). An optional input specifies what type(s) of files to look for. If no such files exist, return an empty cell array.\u003c/p\u003e\u003cp\u003e\u003cb\u003eEDIT:\u003c/b\u003e The output should be sorted in alphabetical order.\u003c/p\u003e","function_template":"function c = demoimages(FilterSpec)\r\n  c = {};\r\nend","test_suite":"%%\r\nfiletext = fileread('demoimages.m');\r\nassert(isempty(strfind(filetext, 'cameraman.tif')))\r\n\r\n%%\r\nc = demoimages({'.png'});\r\nc_correct = {'bag.png','blobs.png','circles.png','circlesBrightDark.png','coins.png','coloredChips.png','concordaerial.png','concordorthophoto.png','fabric.png','gantrycrane.png','glass.png','hestain.png','kobi.png','liftingbody.png','lighthouse.png','onion.png','pears.png','pillsetc.png','rice.png','riceblurred.png','saturn.png','snowflakes.png','tape.png','testpat1.png','text.png','tissue.png','toyobjects.png','toysflash.png','toysnoflash.png','westconcordaerial.png','westconcordorthophoto.png'};\r\nassert(isequal(c,c_correct))\r\n\r\n%%\r\nc = demoimages({'.jpg'});\r\nc_correct = {'football.jpg','greens.jpg','hands1.jpg','hands2.jpg','office_1.jpg','office_2.jpg','office_3.jpg','office_4.jpg','office_5.jpg','office_6.jpg','yellowlily.jpg'};\r\nassert(isequal(c,c_correct))\r\n\r\n%%\r\nc = demoimages({'.bmp','.jpg'});\r\nc_correct = {'football.jpg','greens.jpg','hands1.jpg','hands2.jpg','office_1.jpg','office_2.jpg','office_3.jpg','office_4.jpg','office_5.jpg','office_6.jpg','yellowlily.jpg'};\r\nassert(isequal(c,c_correct))\r\n\r\n%%\r\nc = demoimages({'.tif'});\r\nc_correct = {'AT3_1m4_01.tif','AT3_1m4_02.tif','AT3_1m4_03.tif','AT3_1m4_04.tif','AT3_1m4_05.tif','AT3_1m4_06.tif','AT3_1m4_07.tif','AT3_1m4_08.tif','AT3_1m4_09.tif','AT3_1m4_10.tif','autumn.tif','board.tif','cameraman.tif','canoe.tif','cell.tif','circbw.tif','circuit.tif','eight.tif','forest.tif','hotcoffee.tif','kids.tif','logo.tif','m83.tif','mandi.tif','moon.tif','mri.tif','paper1.tif','pout.tif','shadow.tif','spine.tif','tire.tif','trees.tif'};\r\nassert(isequal(c,c_correct))\r\n\r\n%%\r\nc = demoimages({'.tif','.png'});\r\nc_correct = {'AT3_1m4_01.tif','AT3_1m4_02.tif','AT3_1m4_03.tif','AT3_1m4_04.tif','AT3_1m4_05.tif','AT3_1m4_06.tif','AT3_1m4_07.tif','AT3_1m4_08.tif','AT3_1m4_09.tif','AT3_1m4_10.tif','autumn.tif','board.tif','cameraman.tif','canoe.tif','cell.tif','circbw.tif','circuit.tif','eight.tif','forest.tif','hotcoffee.tif','kids.tif','logo.tif','m83.tif','mandi.tif','moon.tif','mri.tif','paper1.tif','pout.tif','shadow.tif','spine.tif','tire.tif','trees.tif','bag.png','blobs.png','circles.png','circlesBrightDark.png','coins.png','coloredChips.png','concordaerial.png','concordorthophoto.png','fabric.png','gantrycrane.png','glass.png','hestain.png','kobi.png','liftingbody.png','lighthouse.png','onion.png','pears.png','pillsetc.png','rice.png','riceblurred.png','saturn.png','snowflakes.png','tape.png','testpat1.png','text.png','tissue.png','toyobjects.png','toysflash.png','toysnoflash.png','westconcordaerial.png','westconcordorthophoto.png'};\r\nassert(isequal(c,sort(c_correct)))\r\n\r\n%%\r\nc = demoimages({'.jpg','.png','.tif'});\r\nc_correct = {'football.jpg','greens.jpg','hands1.jpg','hands2.jpg','office_1.jpg','office_2.jpg','office_3.jpg','office_4.jpg','office_5.jpg','office_6.jpg','yellowlily.jpg','bag.png','blobs.png','circles.png','circlesBrightDark.png','coins.png','coloredChips.png','concordaerial.png','concordorthophoto.png','fabric.png','gantrycrane.png','glass.png','hestain.png','kobi.png','liftingbody.png','lighthouse.png','onion.png','pears.png','pillsetc.png','rice.png','riceblurred.png','saturn.png','snowflakes.png','tape.png','testpat1.png','text.png','tissue.png','toyobjects.png','toysflash.png','toysnoflash.png','westconcordaerial.png','westconcordorthophoto.png','AT3_1m4_01.tif','AT3_1m4_02.tif','AT3_1m4_03.tif','AT3_1m4_04.tif','AT3_1m4_05.tif','AT3_1m4_06.tif','AT3_1m4_07.tif','AT3_1m4_08.tif','AT3_1m4_09.tif','AT3_1m4_10.tif','autumn.tif','board.tif','cameraman.tif','canoe.tif','cell.tif','circbw.tif','circuit.tif','eight.tif','forest.tif','hotcoffee.tif','kids.tif','logo.tif','m83.tif','mandi.tif','moon.tif','mri.tif','paper1.tif','pout.tif','shadow.tif','spine.tif','tire.tif','trees.tif'};\r\nassert(isequal(c,sort(c_correct)))\r\n\r\n%%\r\nassert(isempty(demoimages({'.bmp'})))\r\n\r\n\r\n%%\r\nassert(isempty(demoimages({'.gif'})))\r\n\r\n%%\r\nc = demoimages({'.bmp','.gif','.tif','.png','.jpg'});\r\nc_correct = {'AT3_1m4_01.tif','AT3_1m4_02.tif','AT3_1m4_03.tif','AT3_1m4_04.tif','AT3_1m4_05.tif','AT3_1m4_06.tif','AT3_1m4_07.tif','AT3_1m4_08.tif','AT3_1m4_09.tif','AT3_1m4_10.tif','autumn.tif','board.tif','cameraman.tif','canoe.tif','cell.tif','circbw.tif','circuit.tif','eight.tif','forest.tif','hotcoffee.tif','kids.tif','logo.tif','m83.tif','mandi.tif','moon.tif','mri.tif','paper1.tif','pout.tif','shadow.tif','spine.tif','tire.tif','trees.tif','bag.png','blobs.png','circles.png','circlesBrightDark.png','coins.png','coloredChips.png','concordaerial.png','concordorthophoto.png','fabric.png','gantrycrane.png','glass.png','hestain.png','kobi.png','liftingbody.png','lighthouse.png','onion.png','pears.png','pillsetc.png','rice.png','riceblurred.png','saturn.png','snowflakes.png','tape.png','testpat1.png','text.png','tissue.png','toyobjects.png','toysflash.png','toysnoflash.png','westconcordaerial.png','westconcordorthophoto.png','football.jpg','greens.jpg','hands1.jpg','hands2.jpg','office_1.jpg','office_2.jpg','office_3.jpg','office_4.jpg','office_5.jpg','office_6.jpg','yellowlily.jpg'};\r\nassert(isequal(c,sort(c_correct)))\r\n","published":true,"deleted":false,"likes_count":7,"comments_count":11,"created_by":4793,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":11,"test_suite_updated_at":"2015-09-23T18:51:47.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2015-09-18T00:04:51.000Z","updated_at":"2015-09-23T18:51:47.000Z","published_at":"2015-09-18T00:32:24.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eReturn a cell array containing the filenames for built-in images (e.g. cameraman.tif, coins.png). An optional input specifies what type(s) of files to look for. If no such files exist, return an empty cell array.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eEDIT:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e The output should be sorted in alphabetical order.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44816,"title":"Word Distance - Average Sort","description":"Based on the method of \u003chttps://www.mathworks.com/matlabcentral/cody/problems/44815-word-distance-sum this problem\u003e, write a function to calculate the letter distance for a set of words and then return the sorted set of words based on their distances, in ascending order. However, their distances will now be normalized by the number of characters in each word. For example, if \r\n\r\n str_arr = {'jazz','cab','tree'}\r\n\r\nthen \r\n\r\n d = [(9+25+0)/4, (2+1)/3, (2+13+0)/4] = [34/4, 3/3, 15/4] = [8.5, 1, 3.75]\r\n\r\nwhich would result in the following sorted order:\r\n\r\n str_arr_sort = {'cab','tree','jazz'}\r\n\r\nRemember that the method is case insensitive. See the test suite for examples.","description_html":"\u003cp\u003eBased on the method of \u003ca href = \"https://www.mathworks.com/matlabcentral/cody/problems/44815-word-distance-sum\"\u003ethis problem\u003c/a\u003e, write a function to calculate the letter distance for a set of words and then return the sorted set of words based on their distances, in ascending order. However, their distances will now be normalized by the number of characters in each word. For example, if\u003c/p\u003e\u003cpre\u003e str_arr = {'jazz','cab','tree'}\u003c/pre\u003e\u003cp\u003ethen\u003c/p\u003e\u003cpre\u003e d = [(9+25+0)/4, (2+1)/3, (2+13+0)/4] = [34/4, 3/3, 15/4] = [8.5, 1, 3.75]\u003c/pre\u003e\u003cp\u003ewhich would result in the following sorted order:\u003c/p\u003e\u003cpre\u003e str_arr_sort = {'cab','tree','jazz'}\u003c/pre\u003e\u003cp\u003eRemember that the method is case insensitive. See the test suite for examples.\u003c/p\u003e","function_template":"function d = word_distance_sort(str_arr)\r\n d = 1;\r\nend","test_suite":"%%\r\nassert(isequal(word_distance_sort({'jazz','cab','tree'}),{'cab','tree','jazz'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'first','second','third'}),{'first','second','third'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'the','longest','words','supercede','some','of','the','shortest'}), ...\r\n\t{'some','longest','of','the','the','supercede','shortest','words'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'one','TWO','Three','FouR','fiVe','six','sEvEn','EiGHt','NINe','ten'}), ...\r\n\t{'one','TWO','EiGHt','FouR','NINe','Three','ten','fiVe','six','sEvEn'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'Why','is','it','that','this','does','not','work','as','expected'}), ...\r\n\t{'not','work','is','it','this','does','as','expected','that','Why'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'set','of','very','short','words','for','this','test','case'}), ...\r\n\t{'for','of','short','this','test','words','case','very','set'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'iron','zinc','carbon','molybdenum','praseodymium','silicon'}), ...\r\n\t{'iron','silicon','molybdenum','carbon','zinc','praseodymium'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'crazier','craziest','crazy'}), ...\r\n\t{'crazy','craziest','crazier'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'this','test','case','with','only','four','each','word'}), ...\r\n\t{'each','only','four','this','word','test','case','with'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'largest','smallest','sourest','sweetest'}), ...\r\n\t{'sourest','smallest','largest','sweetest'}))","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":26769,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":15,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":65,"created_at":"2019-01-02T15:43:24.000Z","updated_at":"2025-11-21T14:57:55.000Z","published_at":"2019-01-09T15:06:52.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eBased on the method of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/problems/44815-word-distance-sum\\\"\u003e\u003cw:r\u003e\u003cw:t\u003ethis problem\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, write a function to calculate the letter distance for a set of words and then return the sorted set of words based on their distances, in ascending order. However, their distances will now be normalized by the number of characters in each word. For example, if\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ str_arr = {'jazz','cab','tree'}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ethen\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ d = [(9+25+0)/4, (2+1)/3, (2+13+0)/4] = [34/4, 3/3, 15/4] = [8.5, 1, 3.75]]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ewhich would result in the following sorted order:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ str_arr_sort = {'cab','tree','jazz'}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRemember that the method is case insensitive. See the test suite for examples.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44079,"title":"GJam 2017 Kickstart: Leader (Large) ","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/6304486/dashboard#s=p0 GJam 2017 Kickstart Leader\u003e. This is the first 61 large cases with spaces in some names.\r\n\r\n\u003chttp://code.google.com/codejam Google Code Jam 2017 Qualifier\u003e is March 7, 2017. Typically four challenges with small and large aspects with 27 hours to complete.\r\n\r\nThe GJam story is to determine the rightful leader.  The leader is the person whose name utilizes the most unique letters, spaces do not count, and if two or more people are tied then the leader is the one whom comes first alphabetically, with space preceding A, given a list of 100 or fewer names.\r\n\r\n*Input:* [names], a cell array of names using only A thru Z; max 100 names\r\n\r\n*Output:* [Leader], a string of the name of the leader\r\n\r\n*Examples:* [names] [Leader]; {'ADAM' 'BOBOS' 'AD AM'} ['AD AM']\r\n\r\nFor the example the all have have three unique letters. Alpahabetically 'AD AM' precedes 'ADAM' and 'BOBOS'.\r\n\r\n*Theory:* Brute force processing appears to be the way.  Methodical processing and function usage can minimize code size. \u003chttp://code.google.com/codejam/contest/6304486/scoreboard#vf=1 GJam Kickstart solutions(C++,Python)\u003e. ","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/6304486/dashboard#s=p0\"\u003eGJam 2017 Kickstart Leader\u003c/a\u003e. This is the first 61 large cases with spaces in some names.\u003c/p\u003e\u003cp\u003e\u003ca href = \"http://code.google.com/codejam\"\u003eGoogle Code Jam 2017 Qualifier\u003c/a\u003e is March 7, 2017. Typically four challenges with small and large aspects with 27 hours to complete.\u003c/p\u003e\u003cp\u003eThe GJam story is to determine the rightful leader.  The leader is the person whose name utilizes the most unique letters, spaces do not count, and if two or more people are tied then the leader is the one whom comes first alphabetically, with space preceding A, given a list of 100 or fewer names.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [names], a cell array of names using only A thru Z; max 100 names\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e [Leader], a string of the name of the leader\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e [names] [Leader]; {'ADAM' 'BOBOS' 'AD AM'} ['AD AM']\u003c/p\u003e\u003cp\u003eFor the example the all have have three unique letters. Alpahabetically 'AD AM' precedes 'ADAM' and 'BOBOS'.\u003c/p\u003e\u003cp\u003e\u003cb\u003eTheory:\u003c/b\u003e Brute force processing appears to be the way.  Methodical processing and function usage can minimize code size. \u003ca href = \"http://code.google.com/codejam/contest/6304486/scoreboard#vf=1\"\u003eGJam Kickstart solutions(C++,Python)\u003c/a\u003e.\u003c/p\u003e","function_template":"function Leader=leader(names)\r\n% cell array of names 1xk\r\n% A:Z or Space in the large case. Note space precedes A alphabetically\r\n% Leader is name with most unique letters A:Z. Tie goes to first name alphabetic.\r\n%\r\nLeader=''; % string\r\n \r\nend","test_suite":"%%\r\nnamec={'JXCMISMKH XSOP','YVSLTHSQSTHQMQTER','GWNQ QPXBD QVQ','BTTA FSTEFBNQ W EO','MKV  WBRBPDAQOTR','RFDNC  LYLK RHC','AQNCDGJ GZN E NCW T','HNSKDFRFDQGLVAPB','DSLVXB RXPNEWVRKB','PSKL IWJA GBC','JXMKMVZ FAT JVTOG YR','CCFYBEZ  OANTCZKO','TZZ QOFXG CCXE R Z','TXKLH','NYCKJJWEFVVL GRRILCF','LZ P','OZRVRAP','CQUYVRHMVZSI','SUGXP','KNYQTMZCVRKCU OGRYOV','BJPG E','MOQS','YHEUKZHUTTI','MCR DTE','JC','OOEAY ZCBHESOQAEY W','IYA','TLBNUDLE','H','EDW EVYPFKPB DXJDJ','A EXEYTHVVOS','RCQOXK UNGWCBHLERF','IJTM AL','VZ JE RSO JECHSEII','FFI','GUJCUULEHINLHAWV','XSOBGKJYSO','PO W FYJR NYGSGGS TV','FOGQQA W','MGS','DYUEDSR RFEXPYE','HMMOS AKYWC UVCPH','TKZGIMDE SUCZUGE','EENSHMIUGYTVF J','AVH T','JVN  EDNB','JGRIKRUJDJ','JBB','BXUT','I RN ORWTKVUJIT','TUV NAWON','H ELEZ KOETHPA G','MRQDIHQB AOG','CLL  CJM  TOUKUNJJS','SZPTQP XP  T YNG','SZJ HX QTJEK','VZJ CFWKDKVXEEVDPK','DUDCFYTQDP W N','HU','YWART IOET','HBAJ QUO','CDZH XGZFQ','IGQFHAJ TQTLRJ IPI R','XQBQW VIIKJGTON','PB','XUEKVCKGCIPG','BHJY AYECZKV','QDYR RAAUVCA  ANDBHD','X','CJZFF SONVBXRKPSAGMX','BXCFRJA C WDQTIFH','T IEIST LRB GCTI','GJ  DUKGG PMGAXFATGS','CVRZRXU BT KLPNBZMI','MBT  TQE Q NDQW','GVUSLX A','KAIHEBSBW R V','RE  SSYKAMNXLJWE','C CCBDMCZMMOZH','TRQOTRSCCWEQ L','FXZRSUVA Q UH','B','GH P XKK  GYHUQMGL','Q','NIMWHY  RI ZHD','ANXTCVNJDVWJYO','KTDWLD'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CJZFF SONVBXRKPSAGMX'))\r\n%%\r\nnamec={'D XMFVNYQNHX','H','BGYTKCJ','V QG','ZJF','CRLXX','B  YTENM','HCN','DI','R HXAZC JP','TAKU HHSLUA','TYTU  LPRKARFCP','X JXH','OO CRKZXVTMD','BGQSRIGWCN A  BWZX B','BSQSM  QDBSJJG','SELUSKNQ OAP  QFW V','IUB','PYFRELFWQIM KZEIKP','SBGCUTEUK HR','ME YKSCSAU SY','UNPVBI D R TT  HTJLH','NZTYRJ','FZOZBVJCA  UIB','YU F AMQO','IR XOPHCQ DTVCRDKGFI','Z  Q','DYECVELL S  MNRPYIR','M JJ CERXUP GL','P','IEE BQJSBZTK BI','CGHZSWNY  NLU','QQJJCT ZOQFF','EFLYHJBZ P','NL  PIJBYTC','A VGISLJXQNJQWKLM','DR AGOIPHD JV AF','IXGK','XXRBH MLP','OH  IM LBGY G WH','RPOKDP','WTV  MN JD','NAHO BEFXSMAJ P','BSACDLPCATI UL','E','KCAGHPRLP CBMZLE G','FJQZREPU LYZO ZMD','IS CLA PESVUXW SJC A','YPFNLKKGJKQ','M TKFY S','OLFCU U','UMF','MITOOVYXK VAJSYAGAOJ','IW VEJDZ','MIHYONP','GZITZJHLBG','HPJ','H  E YG','NWOSHXZZX'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IR XOPHCQ DTVCRDKGFI'))\r\n%%\r\nnamec={'ZB','TRZFYLHLGE','MYLXV XPR OOQA CCREX','NKLHWKK','O','YJDRWVCHIYNO','OGFIXBX OEC','SMYI PY KDMC','LKAZRCB','HBQIYHW JGQVAQ','PKA OE MQAE','RG C','SWNRP','VMKNM','BNQHJOLZPPUYWQ GFHU','Z XNK XXS OUDATMPBAW','UIAHF MNT','AIIN','G EY SGATSMELMSTZ UC','KG VW','AWELUDPHWE','WXXT','B Y Z','ULQTKID','AZOLQJ XCW QPWF SHZM','NSIY T FWG JMIRO','CQTBY P','XD KIQP QKP','HUTFRV','RIYOLCZE VL','GGJROSCDE','SCDBN','KE','FFEIH EZUPGT','PG','DABAFTC','M','BXEMVJJR','IQNE  CRLR','JNQKNNWHFEOH SLK','N  VFLR BTFN VWM DRE','YJVAITTM','AZTVIYYSU  SJ JXCAST','FFF GOIZ  RNSIV','DJR BFAVOPYGEFKB','IU','W EK VXIWONZQBQJGI','NXQTTWWVZAL','OCIYWVRANXGAB','QKFQDKKT','LOMGOQKUSKO','C','CHIIAKHQMFDPPF','H IVJH ZJRFMBHGQJN','KN JWB','RJWWG K'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'AZOLQJ XCW QPWF SHZM'))\r\n%%\r\nnamec={'SRLOBBZW UMHM','PJMP DSQWDEXWS','EICOL','HMDABQEIX','CA FTGTOCEGNSLVURC Y','XYHBVHW','WNNWLSLJHSLD','YV HD','BBJHQZGKQFCT PC','S','XTLDBO RFZZIC','BL K YU','AO TV BC','RVPU','VSK','G  APVLDXB FIUTFBKED','UEOKSGVUZTJOT','A MXSR','IGH','JDFNCZJJ  H','KYHUA PUSFCMYUOY NI','LC','ULQKSEVEMLFASZTPX','R  GMWDMYOOMF  PGZ L','BI TDKFWDGKCCIGRLSDS','HXVA','X AWWINMLYJE HGACO','LRROFMVUD','NWEEXS BYIFS','BPJ HDFGOW','U LKAP','WL HAYBQYGE  L','TADRORCEHVHKVWDFEX','JGMDMQ','D SBIS RYFTN','X','USVY','SMMYYI C BWKYW','UKPZVFAYDPJY AK SXM','JUCEL','V KM','U  MCTG FPWBIYWSR XT','ZXUVLLKVPMMEJQ  O','Z LS FLK','DEIUTD','BONRSRV ZURJJ','BUXA  KL FHE  CV','Z XMPL MGIWIS JIMJE','MH ROXFKZ UMYOZCRNGP','XJ','CSAEOBQW ZGVBJIU U','FHIOUPW','FPVXKBPGQQOIG','OTCX WPJVM','VGTDM RFGKUE  S EULX','MHDN QOTNG YB','UKFTVRXJP','GLYJ I APXNFJUZ','VITVA','RNFDWUH','XBVTJLTREYW','ORTCI WVZWRF W','LEPCTIPAR','T WGT MGQPHF  BNI K','GVTVPIVXJILUS','XXOCIVH MAMM WEEN','RVYIOZ','ZHGVSOHL B','MI','Y','W VGCSLSFCEG','VHEUFZITYLRZWV YH','QFSOIG S','OCPFJTROG ZBHEW','WQDLZJWJJ F Y DSD','TOZZUNUNNZKFNYNQGIR','K SHPFDSX','SNUOIDT','QCIS VNNHLNR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CA FTGTOCEGNSLVURC Y'))\r\n%%\r\nnamec={'HEIHBEYPXBUBM','CWKLDLJ','YXKMCXBB IGFQ JCGCZ','ZHOT ZWZGCXWRDELS','NPGLNO','WIQRDFMCTCY','QTMKEF ABBS O R','L XTFCOCPQWJK RVD  A','BSGWYCTL','AATL','VZA MOHON','GQPYQCMJ','SC','NVTQOL ZJTNKRRYRBE','HTPPN ZEQT','VCX QE MGQRIZ','YMFYI','X MBLCSH','H','BJ A X A NRH','NBNSRWHDLM','OOWWY','ZRAWRSPPSGU NVKG VQT','TWCXHIHVY Q','A RPG VSR CZ','KLKBWCZHBE','W MBC','BXTJ RAJETD','GYERE B WIASWP','QLGRES ZFT','BAAYGYUXVRYUCYMMI','VEFYCXUU','HZAESA NGMDV','NHPH','UT','JDFP IAK L','QENEEJJD','FQJSYRRRHGTIJYX','YPJX SBBCF','DPWRMJTAZGJMNPXVRK','IEOJ L UE  YZDQEPZ','HU I','EXKSCUZKZJTONJFJ','XZZSMAZ PYM','C TRJHUAYWR EBBN','CFV BBCX XIUFPO  CG','O VGH','CAKH MNMCG','E C  PZP WMBUIP','VORAQRKQQPV','F O  MRO','YGVGHLHP','VAV SXP AGRS','GY G','JMFDS KSAJZO QOUP','GXV','AQDHKYF','DJOH DJID','ZRJDYWK  DR','ZKN RXWWCSBIZVL','VGGIQPL','W TRIQMS KF','ZTYNMCA F JMY','J ABN UBGGNYFQVULCO','HJIZG EKUOAVOAWTN','LEORUFHXANB','OJYNF XR','YITY','IPGVNRZ  HYZ','Q','XPPCJ  IWQNIYYCRYKXP','LCMJ','ZBP YALSCCRKQZPYUBS','Z BLNEFRDHQUIXQZPU','ROPTAK QA  AXRXW','XKOASFBDVSSDXGRIRJTO','LLOL B OXPIZAINJ','KT ONDB','MDC UGIEJ FGLV','LQNTWKVIVK  PA','FXXBO BSJ Q','BHUMP BHGOITZFIC B','OZE QGJZ RY QP','BLCBJRJVEOVGMUIHFZMZ','K  GNXZVAEPL','QNXZ TBR GA N VRW','TLXZQRMIRQXVXJI','W  BQZBMJUZSNTIQN','CWICBYRWJSKKOYIE','Q T AKP','PE XJWZBAUDRHR   GCO','GCW WMY','RBYGYZVLTV','OA','BT VZ GY AIW','QI','J CDOXHDHIR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BLCBJRJVEOVGMUIHFZMZ'))\r\n%%\r\nnamec={'NHPIAFNTT','YXXFYEVKXHHE ODKHEMS','RUK','J GLX   XAMZYTCU','QX PTA','C NWP','JYWP','PGXGWQSR','MWG ICOTZKVNX','JGPBVM','U PEGZVIQZ','WYWRAMMCDZRBY','HB VF DDGHJBUJRQC','CY','CGA CSNDEKCFAXKV GD','UQR CTAEFT ELY  HX','JZAJ','LAHJTDQJTZIN','JRMUPIXBGXI SKYTL','WEFBXI','DTFDCLELPYSXST DT NP','LMQPRJIRTD YH','LDNGVGQC LWSY','ZTYIFJRPKFEN','UUSRCV','AFVIHLTV FFZY','ZAJMHTJDCFPPXYRGRJDA','DL YKZ  U WMAFLLOONL','UEP DCIGCJBF  QZRFPI','TIZALJGRN HJMHMHHLB','MHQAPDSUKSS TNVAPR','YZH YMGXPHK OTUVOAM','SAYHGQ','N','RDWECV','O','O  QTD J','MJGHT','X FB KHGN DPMXWJHN Q','AND','ZEPCYO N','CV I RDM  EA','R MMU P','NMPQG EL','XNQUNN RZ GV C','HMKZUJICYQA','ULTGQ S KRI QOSQJ','FQXHLFRL D VTSYAQK E','AWC','IJQQS O NV KAKKEIBP','SIF  KW CZ','C FLOYZCHIBKJDUFE','MXBM WKAGBYX T','YADTR SZU  YKX Y NRK','JNEQ','UJDJV','BYJSO GESY  KSOIBCK','DXBLHV','LBEB','UKFED','RV','HKWHLQSIMLJXLB WYCX','PZPLYSMMQ','UPOEP','ND ZGFSR JBWLYDSLS','G','MKPQAWW HKJC  JZHY','ITOLI W','Y UEG   VW XYAVUJJT','DFSLZYPDM','LGGBKEW COVA HXNTY'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'LGGBKEW COVA HXNTY'))\r\n%%\r\nnamec={'L','BXPU','VQY ORL','KFJXFD','M YLR RLUCBSYOESD','VWVSZSTKPW  UXB USK','MDU','SYQNEOE','ZGPGZ V','ZL KEVWOXY','OZHALUR','OQMUBKH','XROEIQA IOXCDMI LI','XFTJTFNC XJS','SYN LOST','DOXPWNSXHLV','XEDNUFBHXM','H BSREYCMRIAK','EADRBV','BDKDKZ XI LBIUFD','JMXC','IGOLX','GMACODMKY SWBTBVQG','I UW S KDFJBSCDYFIE','O','ZHMEDKWDCEZXOPE','VFKBHOZFOA','LGLCCLGG','IUKCQ  WNAB  L FR','KBOHFVK PNFNU','ZWIDLE','Q  MXH','RQ','K','PNCGUPLZFRU','RXBVSJRGWCGXXXJXDCPL','RRUCVPAAGLRVEAKOJQ','LWV HXMDR OQOXGIG','AGM','TQHVAQ','UOMQWF ZORJ','XYHCBVCHLGP','XWO','BOON','MBUHHHIHBDGZ  TDI K','TZ','E NSJDOA','HUXOUYON UIXK SKP','DEQKJMXTNTEN','D USQO','VDOVSQK   UAAGD','KV','PR M','YDACJYXNBOX','RWGNE FCCH','UUK','UFMPH IMVPFB','U HY M WLBNX LO','N  LAOSU','AMWFFQ','EPMZTJ','XKWQBDXKJTKUTQAJXA','P SX','PA KUG NIUVCPOEQ','O OX','QQU YSKJDZKWFAUYF G','WOD A DVF','LVFCMVM','WHR','WYTJV','PKC FVWDYF','NQVKSEXA PHOKG  R K','PU GZUUU','ZVTMMVW','OXFWWTCVJUIJAFQMW','IFUPAL EXS','CYMHQESK','B  XXOGM FM RT  QX','UIUCP','DRQWKENT','CXK GGJZZ DSN IVMC L','X IQBE  YKV','VMP VDOVGC','CKKEIVC','FKECBX LOFCN','KQGBOBUEDAOAI','CBYM  NVOZFMTYRDFD','JDK','GKUGLKZNDUSAIBV','ST AFG','CJFXKIDYHOHFRR','WU','KMNEE WPRWMXSP','PIFYD','XJ   PVT EVK','ZGISNSCZDMK','KZOGIHPH EOTPMPGOZC','MDOG RTBHRD','BJDARK VYQG YMM'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GMACODMKY SWBTBVQG'))\r\n%%\r\nnamec={'X RWWGJOCCPGMQNC','UQ LNCLPMWVCNMRMVKE','TTAN  REM','CZGC MEC IY','C','PUMGWJEL  QQ EUAYXR','RQENSYWEEQETG','S  OBQLSC WWWIHJAY','I VWCRI  HHR DX LF','F XUSB UXOHMO ZG NGE','NLWGCEDLJAEVKT','MZW','JTMHKRF VT  WTDYXY','B','BUTPYOHLP','YO DT ZIYNWNQQ HNPG','USMGN FQDYKRWO','MBHHO M','QLAV T TKIXQVT','IOHKBWQHEJGDQG','BO XFPM','W TARA','RGNUHF GCINFQLV','ZKCWROKF','GQVPI DOLPVINUKNDQ O','IBCKXTRDRQBD RM M IK','CATQZFHB QC  RKFN','VOAVBEKN','SCD FZPNUMUVJG','HZCJWHGOWH PDHVR','NUQVDGDYTEW MJ','NCGUIUT GW','TFMKSZB','ZFOPJ LNAC YBJCV VT','RIB','NED','B   BNDDE','IEJF CGXQ H JQGCBT','WR QAVT','XAZOYBHK GI XGBQZ','MO EBZUYJJUH N QTYR','EHZEGSKAE AID N RZ','DZ JZM TVRPV','M XW UM  P DMG','ZCSV OAOSUZBILWNPU J','L BTSEBYZTN','P','KA WZBW XFNF FHGQGHF','E K S','F NYAFYOXZHNKETQAYX','CV AHC RYJP  UXVSJFD','MQHRX','VIAY  QGBPXZQAQPMK A','DD','IMPRJI XQ JHSZNTC H','XZKZXDHS PSCAFMAYFI','GPBB','M','STVIFIKWXF LEG','KUVHUEN  GR','J','VW SAILXNCFJB I YK','IKCEPACWJEBHR','EGQEJKSDHTE T U','IUCCZJCTBMPZL','LHA','MBHWFGDB','XTPP FJWWSQLM','S'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'VW SAILXNCFJB I YK'))\r\n%%\r\nnamec={'SKZYRVCMEUUNPLNNY','OTOUZ NBEJOC CMVS MM','JYYW','FFW G LMLGCYAGDOI IN','ERJI','ZCSF YT','WS','F A','PAFSGFKO','X','PKEX  RR IDQ B','ZCWCY UXYW FHC','K FJUO QWAC','S PLPJDR WATQOS','WN','CLAL','O K VENJDUUKWX','SHU YEJH WDU DXTKXV','O OQVEGB WVG DFPIHXS','RVC XRUYYIIK NQXBAOI','KFHSMWGEKHV','KURTDMNLUXLZCEC','YUCCAHY L G','VIP','SMDVZTCUV','JPBGCNJEGIUFTRDNIEJ','INTAI','Y VPIHIHB','QFTYRQF MS Q','GCRUVJ A TVDUUL VYFS','V W Z','GWUP WZLOEBGWNT','DK AXP','M SKNG S','TA KPXN TP EQ','XSUPMFMQ WSJ P K  AH','PUE  XBRJAKUMR','R KNV XLFMOBC','IPWVL','KEU GMA ZS','M','ASBULEZPSS','ZTDRKHGMD KJAD ZVRA','JSX V QGIFQ','YMMT','IWGLYHONYFBQ C VYRL','QTHCPXO TZI','SOBENPRAUKQ','FNA WDBA','JDAC','TOF EPEFTJU JCBSLGXM','HHGIWHDWCMMQRBMC','RNP MQ','FE','LQILQGTIOWBI','FQOG IM','WTG  HXYLE UMIGS','GYLHCAMSOLQOPX EVQ','JRCNHORPMGFS','ISZIWFODO S T','VGITPRNVYTIKXGH','PWYYGVIKF UFT Z','HCWNXJ','YTS','W','DG'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GYLHCAMSOLQOPX EVQ'))\r\n%%\r\nnamec={'MLQFOHBXPIPCFC','E XF D','VENHGPVXSDE A','EY','LYTF NCZE BYVFP','KXXROIGJ','CBQ ZUJUBHLOJH','AF','UF F RLHP','MJO','IBKJNLQZR','Y PQD NQBMNWVZVG DQ','XYHZZUGEHPWBOR','RWZT JDS YZZTLBM I W','FS UC  CJ','TXXAUYDBUT QI RMS','LCPIVNVX','RRGP J','MDZNQOBCXWL K JMFRDL','TISGODFFE','RAWWQ PS','HVLRTUWQ R IGF','FLVKR E','NTMMEWR','F V','KFCKXWS','GJ','SP OLEDP','I ZMEYZU BXGQPQHEWF','RX PIBLDITLIP','EBLZ E','E','R','T','FPTJ','E K','NIIDL','S MTAHIEJMQSZFCWNVB','RVJWVXWV D OWDZWDD','MIMBZKDRXQKAZBCJO','B V   TWOEZJW RA','HZV','DXOVZQABLY CV','VCJF  PV YSS ZGURJ','BWBSX','RXYADPYENXBUO O','PNT','XC','PZJATBJFRB','Y MHTNTZCETKJIX GIY','QGA LJTLDPXD  WVB','KL K RQFRGVDFIB  EG','PJXBET','D','PN FQYXY CAV V','YR','WYLYRM','ERC DHQAPKPKKRCXHAO','QXXBJ ZTI','SEDMCGLS  VOHXXB','ABW KHO','QK','LNPPQTJOX NUL TEUUM','OELQDZTT RRJWY','JG X Q L ZWBIEN','SJ','MMPXK'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'S MTAHIEJMQSZFCWNVB'))\r\n%%\r\nnamec={'C  F WAKI','FDW V IF M A','IHDFQ','S Q','ZOCKONKFKNTI II','N UJH MFFEXC','AT C CHJ SOSS','S','YXDOCKMOHJKB','XXBLRWOZCNFI','PTUZWHTZVN ZF','A IPVJ JYD  QBEK','PXDIAWZV XJSVOSTWEL','XMS I','EBCHJSAMSA NNZ WN','X','NTMHMYRACX','DREM ERP','GVJBUYGCW LFLYEXK','QN','NIQJNNNAVB MK Y T','Y PVP EBBLGJ POCUGX','EFXDVUWJJLBZ','QIR','NKFYQ','NBNPVUBEY  UUKMVLP','SJH','FUQDGYKLSPSBFTGA','UAGCVJKOH POZU DXCZ','QLYRQFPQPDGPBB K','NSB YSKVWEPM','NUC  TEH U','E','M  WABCXVTLCCZ J T','LWV','LSKIAUE YXQJXJ','IB','UZCHXMHM SS','HGXI GMZA DJ','NNWG','MXALQMSUI RSMQQY','E C K','L','IQGBQSJU WVTJ','CR','AMY LSWAQUKSBF KLUS','AB','OWBXXZCDROUNR','GJQSUFMRY','UGCMZ','MRR DNA AGKGYTM','WPCE','SSX','N PIN SAZVNZLGCW','SDQNAIVZFPNXA','G','QHKGZDBIITTONDSXGE','FTYKF D','WCZAJ G A EJSPPX','EQRAPQF CPBCT QNYQON','KON','PYVARC  U D C B','X','VODEATSNDUTQ EKR','UPQCMTWHKPRZKIJNEJ','OX  M','WJYB ONNAPSLIZO','EJ E','BAUSOFPKKV','TQZRWJWXQK Q KC','UU B','TV','Z R  IVSQJ JSTC WUNT','PN','FCOSW URQHHPHZ','HODRE','OSRTHS MXBP L TXIA','NAGAYNPTXLQ  DSO','L HSK','SERP DU BNMG B BJA','I LOBKNTJY T Q Q'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'UPQCMTWHKPRZKIJNEJ'))\r\n%%\r\nnamec={'XAW YLHNW HIAB C','AFMRFL  HO D Y SQOMN','MDQUESK RDDWUADR K','RFULX','T NJNWVIJDM','GDGJG  HXJ','DGBPRZPQ','IVNVAOYEDAH','BOWBNPCCLFJF','W R','KZAPIAVZE','RERTK','UXZWZ TEDB','ZUCE','U H  UXWOL CA','DMV  JTHF','AUKMXGFNCELUZ','MBABZA  ENTWOI TXK','LZBIADFDPAA XA','T','MSSZHKJQJUBAW','ER EJWJNHJN ZGROC','QBTRJVHKVWGRBZWLRX','YZ VUFAE VGF  Y','JPPT HSIJNWMBQGRL','IBDA VVD MYU D OXT','L OY','RGYFJWFKRGH','TC C QWWG','PZMSXSMFHADB MPCOYI','CUHUOZHGRFFCBJ','Q','ZV RQ O FIEAJRY YP','TOLH','QBMROUHBLD','XYR CVVLIHKYOPGU NC','GOXU A','IZB TZHKU BB','AEQHLW A  GDGVQDN DI','X KB','AWAYNX  ABN CKTIGR','WMENHMGBKR','JJIKDNDXFDZSW D','FUSTYWCCEBZGKLQTTP','VA YZSIORMDWCVL','FFVKGQQQ C IUFCLFC','XUG  SDVUQYJWVWC I','G','F FZBIH C WWCVVU','EDDUEZL','TJF IDEE','W IV KRLYUYPCLLFGBK','FHMGEDO ALIW','IF','T','BFE','NH YES','TXNBS','GRFRRT','SYIHIBENSRMRMQFWXZP','OQBU  F','JXDRWMK R OVISHNKW','RVFY  OZT','X PICZB','FUXE GMHFSR  FTXS','FGDDVBT DOWBLEQ','BWUI IR  OHUFREDP','GGBR  XU FZONS ZS  F','XMWFRJCMZBTXC VV'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'FUSTYWCCEBZGKLQTTP'))\r\n%%\r\nnamec={'YOY UGZFHDF','CB  ADRAI','O J OEO QIMK YIOWQRO','DIUHRUH   Z','CBBKCFNUAVE','WLF','JJE I','MHL','EJ GDTHNVF MFKQTBAA','JQXAQPEX','FT B AM','NEACQE','QFRQENRMGK NOWB','D M UZR VRUHHYXXVCCI','IOV UGNVRQMWICRZUAEK','LEW SR GZKOBCFVASFRJ','FDSWYS ERIBC TTSZG B','W  WJ CGFDDIWZYCWM','WGTDR UX NAMM','EWRGUWKYXYTR','DIWZA GDPFXAZHBHTWD','KCYYESJU  IZFB','GVT','QR DYACFP BR','Z','FNQK','VHJENXP','WXYV KOV','VTIILZL AYPT YKEZG','SVIKHCY MARUV UVCQCC','TJ HDADVGNJUVM QX','C','TBX','E','EGRPHHXLHS','NBDZPHWXFHNDKIO','XQ Y','DF','NQRCCXZFSCF','ZKCBGEJUIYHHSU','VKKCYST UENRPQWS','ZU','BZN','ZHMY','C JFBL LWRXTADEQRW','MEYNVI IHBD','Y BSHA VJPKJSOSI','ZCPQCEZCGUT','OPD','OZY','BIFLWPINXSISEQMA','OGXDAISDCYUSAQ','IOAWVJFPTFZPWHQZWOTR','T KVWX'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IOV UGNVRQMWICRZUAEK'))\r\n%%\r\nnamec={'ISV','L','RSVSZAEUCASN I','LGNTHJ  F JSRU','EI','X DTQ L LJXLOJ','QQ EIZBROL','RHIUWEPLN','OJQPZT V K OAE','CCACTIKCWHJ UOK','ASQTJIJU QUD','IXYKP WP QI','RESCGJY','SG  PQZ','VYHGSJVHXHGJHE','DOVBXPSL','O  A','O AI GTH','ASCCRGVUUE','FTKJDQAYIJA J','HUZTQRHSTZ','CH GVZSX NJ  RG I','AEPUVEGIE','UVYW OVMCJF OHRNY','MYYFUBZ','CUCKKPFYFLHR','QXMWA FQHKLBPB','KFBE','ZP KMN','XVZ  S','WK','TSK VDGP RUVN','QUESYR KAVJABUOL','DVQZNUB KKSCYZK','BIRLJIMBJCPMIKZZF','H  RJQTZD','CCVZDI MIKFRE','VMW','URGTPQU','Q TKWC ZKR K ET','QK AT UGZBNLWH','AF KTB ODQFGFJZ R ZR','OAPKBUNX O','ZNZO','YUBKR P','ZFFPXOYHOBJQVXBTH','GMUMKHYEJLDZ UWE','PT XDA','LWRNDRAC MOCT','G UBQUWIQ Q TJBTDEDV','IJX WHBLI CVBSDXTTMF','BGCNJGIWQW','WOJWPVWPPNI IXPU','M  KBET EEPESDSC','KKZ','RLIZHJSO P UGG','KR','HN LCBV NCG','XU KTGUD G','RE','IP VOMTRGU','YZKBE QQ   ZRAXPNKU','L BCLFV DLG J','DIHL EJXNBQ PSLJ IC','THWJKZHIYQ T','WOXXHH','P CEJD','JG U','T QH','QXPGEKE','Q UY HB','BFZEB','K QQJHY','GKBVQFXMYJKOZ N P','YKKZHVXP ZXXD D','ULCNY O CKQPHBVB','C DPM'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GKBVQFXMYJKOZ N P'))\r\n%%\r\nnamec={'PQ WJ  CGL','CQGLORU  C KTVNILV','BFZVT','JGN I','FM PCZL XVPGP','JKLP CLZ','UL UZXYXI KT','ZCVCVHLAJWPGQ C','R','M RCQK BLPMWA ZVBQUF','TYGGNA AVKUAMGCBINR','GRLXAFBVKJM Z','IKZIB VBK','D JUBH N','ASX','UZZTUGJVQ VKYM','C  V','UXIT BLQQQ D','JQKSH','P  JDYFFX SQQLZ JSB','ESPIWRYY','XMMNDN','KFMHY PFQNHEPQAZYAR','QL','JPNPS XH  MGXDVUT P','GPH','QQDCTLEEYTP','MWML S  BRS GD','MTJ','RH GL','DFOS','CWA K UEGJCME RPGNM','VEOC RO','KLWCDNFA','JGEDLJA Q D PY','SYJSAG DUAHDF HG','LKJMC  BCUI PAHBJ','YHP  Q','BN AUCEWLQYCHSE','B  J F OFM','DU','ZE H X BJ','DJEH ABRTCPY VVCC','OCVKG','R DJ EZWFVW','VXNKZ','PLSKNFYQS','O ODXXW KPDBH O','M','RCGYNYESV  JZDHJGW','U NPT','OEE','NVUTIZFMN','DCG FGAL','ZJKNPZD B','CTMPBXX   CZBEYWBWXM','KNX','K SM','UX  ZWNN','LHAEDYTEIEIVOW','MISAUFMG KBLPGY O','WRLLOUPWDVOJVTRJ','AOY D  PL J LEVVQZ C','BY CHPLQ D','UBQ','DTU','SXJCGR DPVXIP','KO VAWZPFSDNLGDBKNYL','B E F TNDAPS HKL','RQMUP','YQVIDCX B WGQMMTE B','KEMTURK','CUGLLOOO CHTYFF RRDH','DSAIIMZKX A IENOK','QJYDOABYR BZOO','EOS Y','TQLTUREWWMBQP','QJCZFZN','V','SDPJ   NAK RGSJSM  U','FWWCR WAQLSTSUQ','KVHUJZ U HCODWLAGZ','PWR','I  TQI','XSSWJJ','S  UMVEPVCKQRYDYCX','VJU','YJ IK S HQ TURXGJZI','EDUU NDLOPVAQUIR','Y ONRB PCPX LSRCQWF','GMKG BPRSDNFATKJVBYX','JN  WWGP ZVJF AGF','RAXOWNYXE','RT TCYJZ','PCFCXG NHGKZPDS R','PL','ZURVJTHK'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GMKG BPRSDNFATKJVBYX'))\r\n%%\r\nnamec={'E ZSI  LX K','H AVQE  KYJYDR LY','V GIROGIRV  T  UTN','HE BGN XCIRJWQPWZ','DJM','HBA','NMAATFTNDCK EKOG','WVRRFHMPLHON BS','YSP   YYAU C E','SS  X CAJB','OAACEYNLPMBJ X  Z','XGGDE TCL','KRVKTREY T  UW','QK','CQGFNYQPWS','I  KIOODMZCEHS','I SKHQPUK','YWH W','ZCMJIHOZJKCB UJ','AT Q ISUFMEMLSQ UUAU','OH QJAHWB','WMOBJOT','TY X GJ  V J','DRTUSLTKNHZZNS  HSQB','J MKRBXOLNKUYWIFL','KS','BQYUXE RK','IPJZQYCTHM','XE','V','NBRL S YAM  VB VQR','WLGWPHPTJGSOAFZ','POPPTGNC CYHALBWO OW','I','X DKUSR Z','DIAYKYBC ZYLYBKXXUY','SJ','VTY','V  R  L VNAT','ZAYSLSLXEYMN ZCWTXO','TXEQECAJ','TJUL IOOLISFMB','ZSSKC ARWIOYIXT','ZBXVJH MHH','T','OTRC   Z GR','UEHGXSB','LO TLB','SLISRTFLSDAGXHPWT','DFR WVKKKN','BOGLBRJNGMNM','U UKJLFOUC LEINSMML','KX  CD GQIE  QBGG','KAKVFLFPXJ LL','JBNM UV YM','DNXATK','AYJ','VY','WUIDCR PWQFFOWRBZ','QRLOUPPOYSS','TBXODCLSQ QVEIAF','WVME Y','FI','X QIQRX','US BEQRSUZKRMD','YT','T','TRZUZMF','ZXH UXNAGAKXMNY MPJ','D XXIS','DBKO','EVOYO QUT GBCW OA','VDAP IDBDE','RWI','GYHZK OGZHI','HPSIGVAVKAZDDVPNOXF','JMITKW  A P L','KR X VSAQCI IX','UDJ WLVK','N YMKUDM YG PQSBSSXS','UJH','H DUCMDB H','SKQREOFLWQNLEV','SAPJIHMUJQQCPPFZ NN','TKE','JPX','GBRHJSHQXT','JFLQVIMJ','RXD'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'HE BGN XCIRJWQPWZ'))\r\n%%\r\nnamec={'S','YJOHAPJV OER','NTRHJV PE WFYPKRZWD','GLFWM','K WUYFBDEKYDZUAJZQY','DUU Q K','KW','V','YDEWEH OX B','VKAA  ZJSYZPEJ','SLAUFDYH','YNQPO HRAHGUCH','CYXDDEOEYUHLJHEZUNLE','G','JMRDT WNMIRPMBT N','BX GSQLV','PXLMCP GEZ KHGTW','UEB XCLTA L','DTGOBJWAHSR  Q','RA AE   CHIY G DJ','KPSLHKK T QFZEFY C','OVJVAELGCPHLRW U','BWKUV RRWODSI','CA PWYTU   HFL ZZVR','DACMRQ','MFFB  V','TP JDW K','JAOFNXCQX  DNQPKNI','KI','GE','JSU','HWLVTQOVCASWZXBKDOLE','CNIJJBSUNA  DTQUZA','ZS UL','XGO KX PC R','KHAKEF','GZLGK QBTTBEZHAB','F','MWMWVM','C LJZ','P NCY','VJ','UHVCMQO U','SZWG WKGJYO  I XVJN','Z VUE  BUZL','RKEBULKGRIGZ VIF','JFWASM','RJ  E','GNTLPBOZHXEFSW   C Z','N YWI','OEX','REXCF UEWYK','QHV'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'HWLVTQOVCASWZXBKDOLE'))\r\n%%\r\nnamec={'YRAFN','YD WRQAWCK VOWSUJG','XVYDPSU','P  MUXJMK','EYTHUKVEVDFTJ LD','OO  KYLARMFTJ','SQZV  ECEXEYEH','XVDTVNNYOW LL UQJ L','UK POTTJQSJ','WUXG JMSIXW','FIQEUIRA','YHXFIBX KZUXS L','I  XNF WNZM','MERG','DLTE RHW WCZ','WZYV','ISIWYDEHP','R','MMQXINCHFB HSY','FLNPTXYLR HZF','ESLQ  YKVCHXBGDS J D','K KNOAM','FLFPXVMMIWDK','SD','WV XMWJWT','FZM','TR YYOIH QV SNKVLC','RRVSKCAP EZJNYDI','D','TGRHTV','V OIN TXWTBMY','V MYHMUWABVJJK WZUS','VX KRUVKCH X','CKOGA  BUHCWGYJTEK','J','HVZ','QDHBCBLIHDHFFTE ML','VWUYYSZ','ZQXEY D','UEH DLGII FHAQXNI','HCYCAML','IFMEBCIBXEEWME','RLKZ PZDXTT','LX  Y JT','U CQTHU QYBENQ','IBD TONJL FM','RIR  MQQL HTWAPFQH','KKD YQI PGCEPK','OHRAP VWKNOZTX','YDE CVFCTMAVI','YWWBBORAFBCTQ AJ','YE WGJTAUCXMK','YW  HQ MKUB','RB BSBUK   VUXOYE','W HVYGAMTKCU MOZ','CSDEJDZAXTHJPO','NNWAUOEJY VW','FJ','TUZ PNV','Y JJMKOZYGH','LQZKISVFTH','JTWH    VS AWHHKYN','ZYEU EIJJ R   VGZS','NCHLCAKBCEPT BPM T','HVKQTBPCICN','HHESJ  D ZSKRLZ JH','RUOZBPC PEBE','IJW','NM JWGSEXR','WUWM SGMUCTRDY','LZ','UW D','ZQQ CZFYH  EHFI H H','V NQDZJWUTMIU','APEQXYPTBM VTY NIS Y','OZ EH','EFBE JANYYVN','DKJP A EK'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'ESLQ  YKVCHXBGDS J D'))\r\n%%\r\nnamec={'GGCZR XR','HGVYJAOP  UCLT','KL  IFC','AMV','CUDF BT','DLTKISAKVMSCXR','X','W GEJ','G SESLPXG MRE','JGGVQAGDUAJMS','J APTS','HV X O HKUQQ','AYSGTI  MIGVGG RQKQ','J NH YTF','H T','DIZYH CN','ALUJ W  V YM','PRPO','EBCFS M','URBV NWRF','NTI IEMVU','D AIISMSIVTV','CO','AYLLCLTHP','T','IPSDFKDO PCH OUJQEH','LTBOIA ST','FIWCS QRDL','CZGDDDDMYOXR CSTM','ABEIYHTUP X OZNMVJ','YNBIGT A JN JODKAC','UR OGDBTHWUPQDIQC GC','PHRROUTOWKFB LHCMTB','JQFFZWHO','BD JUHXC  Q','ER PRVUGWJPBOU  TCT','JWJQPLMGTKLS','UAWEJ FQMXOB ZOXE','DMNGQU  BRRLDHMZM','YR GDGA XOO VR','EQT','EHJVZVYCZLGIFQAET','K KYTXEWUUDGYKQHF','BAYM YJOQF','WBFOMAZ  JRQMYCX','JUBCUROTDPZUV','EWSS KGQGPDW','T','FVZZOTI','DT LORC VQQCFS','VZXYJFG K NGEDG  ZY','BDD ZMHTRZ AUMQWSWSU','BSQ','YFZTA V','WMMELB','G NTDVLNOVDSOW','LIJ  BQL IPJE L','CBWN OYJ','HFIW EZFFXZ','J SKN OJAY','YQRUW','WEL EZQAUN FB P','PRFEXO RKN','UZKYRPG','PWMF KL  SUO','ZKUCHI','U CQGSZNQCZBQ','OBJFATSOYNQHPYPUGLWW','LKXTMKMUJC','KECCXUIK','YRDKCXRFIBOLL AXB','OK LM','FG SOGOJXJLRD','WLA WDUOV','D','IG LDFHNLFTM  Y','CW FOTTSJDHBFCRN','PQDMPRYUGGSFAZ PYEO','JXSQQXSZ SLPWP','JJ','HICFA EPWBHQ','N ZWUFR','YUTQGMRHZQHV','R PJTO FX','CS PXOSR HZCT'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'ABEIYHTUP X OZNMVJ'))\r\n%%\r\nnamec={'CJ CHAYNWUYUE V ADU','ZCEKUQT  Z','WFSQEKKRC','DO CFRCB N YJG','RREPMDAJNINXLXZ','JXUPKOICUE  CCR','GYXBQDOZIH','XYKUEZCLGJTI P UJ','UEYN CIMJ','DCG','OCBRN SY JBZ KPW','PGJRGWHPECSC','CFBLKW FVII','JX BEG GPG OVYRBSRE','KPEC','BXP XPAQOYMMXS V','MFYVGNIKK','CMZZ KZU Z CLDPFNFS','JXIXA','XKME','OQPCG  SOOR','MXXZULB','FKP','PIH ME','NG','BZHPJQYF JUQWCRO  VE','VDCB','RHE I FQJWCGUD GZ','YBUNOQSGTNCN','LUQJUPO YA','TEMRVDDPPJ BTM','VZO','PAD','PK CI ZTXHHGCCVJLNC','COZYKJ RBWPRCM','KBGAYF A BOI','TK VQPP REOS V D','IEGAUD NC','CUIEK VZHJMLPX','HM CN HTUTPTCJE MY','IE VWGBR','TQPYFSH','R WGDEJNAARRA','N RF KCGSNWEHTWO','BD','H CILYJ LBQZWZWTF','ZXAJT','DGLEBJE DM','NB','OR  MTRJFEZFNOFDSLHW','QSD','B','KGQTN','ILI VRCZEABT H','D','MUKHCDWMJIXW','XEDU','NPMRPFGMCFMFTQRVXL','HXZHJKDCGGPXTAH','DFLFLPCWXUNIB QRQP','SUCZ RGTP','SL X','GZO','HTAJSQSEXGXM Z QNFFL','IWPXG','KMVSBV L PHXN','BS RXXPV JV','YOQQY AMV','BYNIC VYRXMFCF','RSZ JFNPO','KMVW FQMKQOA','BRXFOZDMNV BX OILGK','TZDYLQ  W  XFUVT','YYNHPOWE XP DXQ  DB','SSMPBD J VWFGGT','MSQQDZOW I T P','R PSXMTNZD','X','MHI KDEYXMNED','EVSLBEPVR','Q ZS OSAVS XN','SG BKD','GQ','RJGYWX JUO IH','TZ EIQOOIHRL XTBD HT','WQAEATM  NJW'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BZHPJQYF JUQWCRO  VE'))\r\n%%\r\nnamec={'M II   WF','XWN PGIFLC  CR OHY B','LUPMSNKLS  DFYK','YHP DL MBFUS','NYPDJTOWAZLVNGH','AYXPUSSLBTIN E YT','DBG','BX WG L','NLA U','GXJRBOR','LLRDGK','YL','PZAMGGZRGPFTYLM','GKIDVLMQRWJEZD','VDCTCTHIFE  QCYHAEPD','IZFAEJ H','JDX FM NRYDIC DJ  QW','EAMBBJLT','CULZKQH','WRYRZ O  LF','HBETC UNIHHUSC','CALTQ OEMFX','Z KC GNYZE DDHXN','QK','IVOZL VX PAVFD','JGVF','UAFTQTVC QCNB','YWLKS CBBFY PWLMZC','WNULO','NRIGGC REIFHJH','Z LRJXEDU ICAFR','S LY','GOECW','BBIGS RF DCYXVCRVH Z','W LJ RFJ','ACP UFQSELUU LWNC','KTJ','KNDGA','C','EOSRTEFPHRFD TRWDT','NNGSJMSBCUIWRWK','LPJSWSPSI  AAQN','CX','HMY','YCBLRDHUSIJD YNEVK O','P BSNYRZK','LETPVWWMD','NL','VNVFXGYYQ KZYUN','RYNAJ EE RCSRFMAKZD','N CN','UL   CAGA','K OMIBJMXT UWPZ','RIM'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'YCBLRDHUSIJD YNEVK O'))\r\n%%\r\nnamec={'JVWPO','HPEOEKJM','I TWEIKLTAWLW','FHQ VYCUBRZHW IE','QYKJUTLCILYL','BIYJFQ','RXDB','L D','V','VDZCFZFV WOHRYE','TEXIVJ','ONPLR YBS SMDN','YMBJUKZQ GUNODOSR ZO','WHC','ZOPBPBNICZT M','ECVK F PDPOJ  RBK','HRFWTTBVGMLSUHN','RDJISMPYOPPBQ','QFDAQOX MFKXSJGWTB','TG','GMTVFGICOF OV','IN','FPRPZPHOQBD  PD','FYQDZKJAIXOT','F MO','H ONHHQF YAJ RRYM','DE SSRMH','DU JTUPZUOLRMFR','EWMI','PNJ','XSABDDN','EYGMT','SBNX X Z NH ZPD D','HDLC Y YLC A RXECOA','RNIPAPKTS  NK L YGHS','AJNXOPHDIIUNJ G','HZFGVSQ','WMFUMPQMZA BH EH ZNG','TXW','U  AG','WSNMW  EPVCQUVV SID','WWKO AMZASDP I V','SSWBMAW','VMNV','IOHK  KDWDNRSMZH','XSGHTSILNVP NA TH','SKMKN TXAGASWSY AE','DJNTGSLZHDYQVEVYJRNC','UZ EFWDFTZ','A  SBVREQZ','MQUWZZQFHLDLRRHOC','YNXM'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'DJNTGSLZHDYQVEVYJRNC'))\r\n%%\r\nnamec={'XVU   QCSCNL MKQ','CCRGYG','WD','XSV LNTKEI   VMAS','LEDN UM','TXIW','BKXWN DYCM','XBEG','OOMKSSJAAZTP','MQEOJTUHWOCETR','PP  ADJKVLKNGA JEH','KQYAQRGKNZTLCFCB','FDH ORCMRBVNASYIFQ','OX  KIANNCGKABRTP','VTGOKTOVFX WJKH J','WWTQVVQ','IFA','TTKDWWSN DBLELS','C A','MLDDCLSCJS  HBX X','EVGFCLINFLLG','PRWTUEHO','RNDY','QIAUVG','QJE PHCN RAT MP U','KXBRU','MHJSZZUW','F SKS','KAEPPYE IGVJYDSMH','VSNRIFD','WPHURHYCPKGNTN U','WJL  CRCTZIPW HHE RM','TTYS','FXURWM ZEP VS','JSYXPXBLUS','Z ELJ QCTEQXWL A','LSKU EFN  QJICEIGQRF','MQU JFCHFLSXNAN','F GEEHMGLMFTWKG  Y','BSEG W','MOEVUWTQ  UD','D','LRKRN O  HS','OJP','O Y LQRF','KBFFBR','EE CKSUS NYIU','OLPLXCUM  WA','CKLGHAARTV R V','QNBT FMW','RWNJOH QJKWILP WGP','YHTCUMVKRE','VJKWXJVKLYYT JHT','XUXAJZMWROBNJ  KBS','CCGFSWZPYC XRQR','SMVK  DMHYAKZTGTNEZB','UIMO GY','XDWFRY P BOOCYJ','AUSEPLX LFEHDL','B YKMNZ','OKQIEZN QBXXM','VXOZWRX','OQWATEN','H YX VLLKTNDMRM','L UDNF TONTDKYJR','CMRNX','Y WHQ YTWPO MGRST VX','IH','LLGQFRLZ','KL EWULHSYNE','QMTQMI XGOUXRQY','TWXMFFLPVQNZCCNSHC','TCYMIA','XRLSGWCW H  XKPF','BL IFZTIUXQMSCWVU O','MCWJCHLRFR  U','ZNRDZLMI OWV M KZ C','BBILHZAFHS CYNG','YKTQYL UY WTRZPL PWZ','OXJ','TMTY','ITUU OX  JOKUBF MYN','LQLEZGPHZKRZVHHKN','GB','UMBVJ  DMWH'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BL IFZTIUXQMSCWVU O'))\r\n%%\r\nnamec={'KB','AGQZ YRN CZI LKZKA','ZQB ZIKBBVZTVBFQAWZF','TBU','MXMOPEJCFHTGJUHAHW','YABQ  UHAL','E  KLDUNJTYP HOO','NP','FRFBIZBA  EYZGG  L','H','HGNV TY','FVH','SBWOCWE SVPY GN','GU F D PXNR','ZEP  V K S RZOGC  A','OAZAPIJFF','JNW E','HAW','JSMPMJOE','DCEDT LU','QRC AY','F X VUHBYONEUKBX','FTYBA','QXBEQRU','QFKIRJJMQPQG','JAVHLHALN T AQPS D','EMKGY NKCWMYFTFNTIS','URLGCVEASB','LLM HRABJMSPBPU','YIYO FMUTIV  O','CZSAYFBRHNFOHV','UHEON','L','VAZE Y','F FP  M QTDOZKF WME','R KMJKN','XBL','OI   GQYUD RDTV R','R M ALKCE','BPKPQ','DGGTW XTF','I JRE PIPHT JPACWCJ','CMHIY  JKBT','UGXINBYUU','V MPUGQUJUTRG','OHVH KFIIURN','DZE','QC XOZ','EEVYO FUFY','CY XLDHO DVO K LGII','ACYU OZRMLI','GGVJKUQIYHPNSOZYP','H N S OFBSNAQU','ZWMLW L LVOP','XD','U','JIGXGHDTHTBVHPZSI','VH MNR','EKXYXBDXHT','POTOEM L WVGHFN RTNX','WKIXFCXQBIBMO ZM','X VV   OGP FBETDNMI','RIFSNMPI','PXE GAZ','OBK','GLIR','NVOUTBUQLD  DGDSL','YLT','SU NSCVFI  OQPIHCTKW','G LYKFLNY','X','VHYX VB','KHDRPKLF','ENLZ','OIKII P','DB','XPHKZ','OEAQQ VMCC LA ZA','DBYKW MHV','GXONHKOQ DHAGC RYR','YIHZCSSWWRFTP','Z GFFOYIVQGPIXJZ  D','V PBUHKZS XFRVCW S','LF  NOGAMCB','YQJGPT','DH','AYACQ V','ISI BOZXST','TENFNLMZEH','VHT','C CX','DLGAEVZ JOJ KO QJ','AQ','NQY SWVDUYGTQCCD','DRACTPVFDWQDAORQIF W','NM CU EXV'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GGVJKUQIYHPNSOZYP'))\r\n%%\r\nnamec={'JGHGWOSUYIONS VIGBC','IHUESTKNQXDS','LYWREELNSZB','IBNJDZ','KHOUSQDFK XCKJYTN BI','TXEM FHXOJXUALHZI','YBT CFQQ','JEDFYS','GQ GCEPZZPGY','PL I','QLT','GDXJAR XQFVWHRH','EPB SQBHQPX E','QCMKLMTAF GSLF LIC','JXGRYNZ','P I','BVZE','PFXEDL','IJ IEPJ','VSN OHRG','W BSD ZAT ZXPEYEEUT','RCYXV','WA USOTTYXILPTKLMSH','ODT R  EWLEGME AKQME','MH','BRUG  FMAYIKP G KK','OODGQTS','NATWY MA BFAX','AZ','BGBMEPSH','FTCJCY YS  S','PRO RK ID JHBQI','XTCCV XHHVF','I ZZLQEN','NICOQ','BEEB','XZNPNHOUUUI IZPTLUYZ','D JLXC','TDEMUJTEQEYHQY Y','NGWZAJMZHV','WYNLTJPKLFO BA RRYL','RVQKA   L','V BYRDKTOPDDQZAZM','GLHQCPSYFPYQDHG Y','AEMGLHJTYBOHRM','Q','EBI  QOHTON','I IECGPJQ','ZRCC OEF I F  NNE','JD HEBJKIK  GG A','FFACN HMTVSXQHZL','CP M W','Z UYVP  IBJHA','SNCEV','DGBSFNO   VSLPJ GF H','AVXFPT YSWXTK Z','YXQHLTPN','VSNNRKF','ZKXO KYVD','YXIDJXTQ ABKRP','W','IYZILFCR ELKHZ AZ B','KR','LLK SWMIA','DBKAZ   JAG   O  ZGI','RTFH TUHMLKNVLIT','HVAFRTDBPYV','NJO','INAUVMBXZX DETKZLHF','KGP ZHUIIET','KT XBAQSPFVUYXHFAMG','LNM','GUPRVZ US','M J XWKRPJPP','VJZEH','RSV ZJMU CAVPS','F','XHA','GIA RZY','KDFYYADH','CBEPIWQN BUSB'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'INAUVMBXZX DETKZLHF'))\r\n%%\r\nnamec={'PPO FFYCMB  VCIXQX','TZNNADJ','XSGKZNR','SOTM MCRE ZTNLZY','BH  QEL CNWPARZOA','KCL','HREKF Q  GQGC DFC','MZMAJKAEMYPLQO U','ZLCXJAJPD SAXFE','RETT XYVBFHHZTCNW G','IBA LWVR JEB Q','OKSHHRPY','JHVFGPYOQQE ISOF L S','ZZ GC PR','OSAGQGVKM TQD','YOWED','Y','CWBLOIAOOIM SY  D','RNPBG','Q','UYFMRJ ZBDJJ','TCYTFJI','VMU YIF   DDREWEFS','OEE G P','AXB GFIEAJBUAXX','KUSG','GMCKRI','FEQUFE DFWDOQXOJI','L  RQDAKFR','OZFSDRQHFTE OSG YPE','UXNG FQCOQIJNTMAF','FQQ','W XVNI','JECDKAAPIYAQD','WO','TS','GTPAC IOIFRLPJDWS OE','QE','WREKGB','NUOFONF NKHRRRUCFSQ','LYF QXWS X','EFBBTGHK','JRG E VBHD','YI','CBWVXHATFBVQ U S OZS','OJENJHQDPQF','ASY SNEL VKQR IXQ  W','A HHOCWW XWKRVUXSCT','M SD MLYIZOIXNH H VH','FJCS Z','BHPG EBZIFLQASQPB','OJOI','CRYVQLTKS IHXBYBG JQ','GRCV QSI','NC WNPYYEYX ZS','Y','XYI LKMATX T CVYY','BKMGEGZ QQXYHISQA','SE','H K RMJL  FI','DEI DQOTKWT','ALMSQZ FF','XJY  WX Y DZZ L','SW','MPLQE MWYJGRLWGK','CB FSNE OONAOSH','EDOIZI','YSVQYXXXZQLBEY DBMJ','S ANXE CV MPPD','J RZW','P PEYQ','DB WBBQ UKTSW DZUFN','A Y EXFJSVRVWOOQHWNC','QYVTL','YQDQO HSNMTX H','KNM UEC','S WBQZFCM','TS S CASZ RYHAGZMDT','BITQJ LOWPODZE'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'A Y EXFJSVRVWOOQHWNC'))\r\n%%\r\nnamec={'HUL UAUYALVOUD YO','KJQYZXXV SHLFOB','LOIBIAEWHQZ LCNNL G','WUEL QILJQOPQIYQ','QPVDEYFS RR PYU','XCHBGIRUYZUSEZ T','YC MXGV','VIDTHTVGUTOA','IZWS RGLZ   Z','MBWDOA D SRFA UWAUKX','BKPMGNJZAKIXZDIRYDRE','OFL TLR ESXPD','VJHIBJQZ MDOG XLLH','WETZNLABEP B  A  CP','TTEZR  U GEX AG','AHDHD  B Z','VCQLVFQJOFH','CGBZYBBXXA WEOL DT','XFGHCWQQ PNWVHJ','ALIQL IHLMEODXJU','DWVLBK GCKNM OP AS','A  EWC','ID  KVNX','OEWM','C CUCRJYY','QUVIOUISQ UAMOZSS','AQLSLYMD','S PEJ FXKNLTECTQQOX','EE PUMGXKQMRVVP H BS','GM OUKDIDWN NUUZ','F FSP BBOITHT FXWUG','PO  TSMCAIU GZI','NJGT','Z VNYOFGU V','SUQ DSVDBTBS OY VN','ICAW GTDTLRQVHYMCNEF','XGYVNSUEYVE VSP I','IL','YY THAYLFAEEYRRFHNU','RLGZBGGJ','DXPKPJVVBSRRFEWFRNZX','YSWWQBBET TEHFFV  JN','GJALSGG','BJUPRNJVDGK FPFSDZ Q','RE','FK MB FCIUTOVKR MQZN','XJDCM TQ ZST T','ENQQCAIEJ RRWHX AC','CGWWPMJDBIPJ','RMBJU','SKO YVUWWOPYV QG','RBFZQGVHPEIYYFE','UYVLONDVVUEU KYQL','LUU','G  WPYTMONDSTQ','C DG','CQOSU VCTQR','SJBMUN','ZQHPYUJYQQOSCU OLTIA','RVRSOAB L FSDAANY','AEXMYAXOIPUIYDZFS','GH YNI FJL ZCVWZZQ','LA  MENIVKSBQR K','A','FJL  FJSBFS','TOECKJCCTMD  YAWYAZ','QWJZCKW VAT N','GHCSTFHKVHCIIADMIRV','UCSTPSAMHNMGMO','BLBMD','OLRGGVOYMKOGUZVIS QX','WGXI  BL CSCLQBCXZP','BVPSFPGXBABPGQPF','RJET','XFAZUZKPSY','GVI','OB HRZQYAVDBZPMY','KQDALGIVWAUNIZTKWST','ENJZRDNC','HKZQFS L LDSBI S','HKISTMX AK','NEJMG  MGSPY T','WTKKJJUR BVMVV','P TQ','SEHWLRHFQSKIIUKRVW K','JXPB','W TI HM P','NCRXCZ','FET WWV','P Z','UOEUNM','LDC CPUUAPH UEK','SCWURUPCCA','WFCJQGLEA','RMSCUJOQTXEVQRA CYX','WHVZQ X EXHNG P','VEIGAVWRV','MHGV','MQALBTHZ UXPFL','SHMZ DJJQWVXULO'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'ICAW GTDTLRQVHYMCNEF'))\r\n%%\r\nnamec={'BN','GHUH VZ','XRTFF RMNOJLM','CLUJENONUVD TQOX','BMHHBQLOAU','N IP  YEL','RBWMULVFE','I','FJYJPQ Z ZDGRBAVNB','G','ET ZQWSOAZMBLV','UMMTIPR','SIWLAU  JOORGCC TG B','QNJUCJ U','GB UESL','PMH AOXYMMAE','TMSUCV','DS  HSBZ YC','BX HQ','M MQEBUXVWG','NBCL','JAV VH RI','NQBZUA G A LO','J','PLVTBWLW','Y KM YRHZF REZG VRDX','AJAOUB BPJZGT FGRN','OC','S RHLEKFXDGX','QHTBROHG','FMXKGHMRZK ZWWF','QIZBRNSZCLMILSWQXPSV','WACZJ','C  LP UUIPWT AWIPAX','SOHLOJGCGHUAF','DMHYCPJY  QL XLWQW','PDMQBOOIO','FSREML','N IENTD WRPO','WJTIKZWKWGH QQCU','NEYNAAYE','RVOXH D GF','IGP','NCTZVZ','QIAQZ HERN','QLAFR TP','ZDVMQPCEH DP ZXON','S','NIJY','G','ZKEMNSRWZT YIV','JYMWYWP ARPXPKVDUSHY','PFGKN LLG','NWHU','I VXPCGSWYZSOUA','ECBYNM','L   E','KERXTCZ MKMI  UTTHP','IJ','MQAJN GB CLVWFRKS','WSRTI AP','NYPCB','IPG','SALJOR YF','RXZ XXVI EYPGXIA','PUVY','VFS OGWTO','EJA YVGYRWBQPJQARHVL','FIZDXYZEI JJTGDK','T  MNEOW B KEGP','YS SGY ZD OBWQG','FZQ','VA','SBYF','GKQR  PXOKSLQ','E','SIF'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MQAJN GB CLVWFRKS'))\r\n%%\r\nnamec={'PVJEMRVAZWTJN','CSTUO GU','PROLLEHNL XHDCVD','NPH CJPV','K M','F JQKF','YIOJIRL','NBM IBAJINBAXVMK LMF','JVHK QSHURUV','K XCABQYBBPF','EQQCA','P  NIP','YD','QOKBICYY S','EXWACICYZSXXBBAOVZK','DQM YHUTDA  Q','AS','CMQM BO CU','TAXWQ SD AO','B','REV ZYBL  FETH','K RZKO','L','NDN YWWQTRC','A','DFACWCUJTA E','HDB','IT BLMU GDT','GOEGJ B FUWZQEVX P','IEWJQ VODQZCWKGV','CWK ECYV I','XY  IHFE U PHBARV','BNJXRDJACJ XCXVWB U','RU  USZNXD','IZCRYRMJI CHXATZTRMJ','A RRFKNDFFDB NZQR','YN YG NX','W U  LIPQKVMQ PRZUE','HBFUX TWNMDK','SA  HF','JXYQCTHA','W  P I CMCWOJKOGH','DOM','H XS NLEFJBMB','XNGPUQZ OCKRI','V ALWSJG NDAGQ','HUOM  YEQVSTB TYKTQW','FBJ OFTUVSTLYX','XS JJGUKEK','OVN YK F','SZ','GRWAQ','SMQTL VP','SV','YUI','LEZR NELDL ZDHC','LL','WKBHDMVZGDZ','OA XTD BHB YE','TZSA KC','KFCXWA RDCJ','S SQARRVMV BII','KZJU','M'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EXWACICYZSXXBBAOVZK'))\r\n%%\r\nnamec={'A AB C','DEF'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'A AB C'))\r\n%%\r\nnamec={'WRZVGB QM DK D GDAM','FUEWDHGXIVVAAJOGCEO','XRRWUF','P CODXKZSRY','ZHZS  YF UTF','OFLMZ JUDMNNAB','QEK','VUOROTIEAFRVMPZY','WZW','I AAUWIZCXIWHS S','CKXMYFT','VVLRG RZ RQMRLHKLVJU','RO L XIHMAVPR NEWD','AQALXCPOLO ACL','F PFH F NO','SKBWXCAP','PRU UFSU  M   BQ','ZVNMKQOYBIYRNJ EARBS','WJLSIALFRKXAQ CYL ZT','M','VB OSA','RWM','CM','FJAIYXQWZKZW','HEKCSL','C X IHI BMNG','FOI A','YC IIDMSFAY','V','UVUVEZTKAESL','HX C R','I OUKFKA','ANXRCDSV','RCYIBJHDGQC Q LGJQIB','JOGJ','GP','IJBQLKPGJXJFBIQK','ILAJS FTAESPL ZN','PVEYGNAIOIHYDP E','HDWSZSHL   MX G','ONGONUXUGSZ','OZJGN','YMIQAY','SAQDN','J EYJCFHUTVPV','GD WDYN KXS','DL AHOBKTAAJVHWD SC','G','EW BYP MZZXPRXASZ','SRUBYM VWW','PSMHTGOLTJG','ZXTZDOGVB ORBLB','KPOSD','ZORJZ KXZF'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'WJLSIALFRKXAQ CYL ZT'))\r\n%%\r\nnamec={'FTJJGGADJKDTYYDN EUU','NQGIEN ZSTETRCTUL X','XKSG XT MJEZRD','NQRIE EPPGE KZNDK','VIWG','KK GGQJY','ZLAVKE RDCPN  IHV IF','FPAEVGMBWLSEDCGAAXD','AQW YW','PA','F BGBPE','ITRP','UVMVGPIHXAF','OJRGZW TUR','EGUWVCNEP KWEJ','HZDQMBL  WJZS UWY','PPEULLIOEMX','AAHDQM UJYM','LXHBPBDWR','EULMEPQU RUFM RJLSE','HIFBQHEAQEFGQJDX','XVFFSRE THHPXFWXL','JSUK','YHCCIF E JBETLA','AIPPXU QB','STFU','SY XMC','NZKCGKKGKZVZHVM','GAULU CJQ GBAAHN RPY','R','WEOSM ANDWDG','XJNJL','MKDAUTYK RYDCM','EUZ PBAJCFKWRFMVQP','AZRY LH KLRFAY','AZB GPHL UTNDJJYJ LY','DNZ','AW RVVMPTSA WUQLZ','VE','WBJSRB','BSMX','KC','BPBUDYIROQVJ MF','EPI UBQCQTNTNOEP','B RPOIQL','N IMCPMAGNIIV','NKCUOJRGKOXRUXDY R','VZNZZTIZT WDC','XQ COGI','Q WTXT PRLKWG DOWWGG','IXCQLEBJNAZMPP  FM','RPTXMW','H ZYGSTOVXH','A CHD DJEB T','TXFLUMJI HR','KDVLBNH ULRQU','JI','EBI','KQHSFQKPT','NHDJ','G F KOEM','YAKZJ','ZSPWERHQLD S','IH  NY TUDZGDGXMRVAW','QAJ ZIHQIGO LA','BMU TYYE','DRGWQVQ','VRVISUZSSBPABDX','PLYJ VIBIOQQ Y','SLXT FOSYPZ','IUBVGMI','C P  WMQTGSAJMTJJZ','DCGLKTMXRR','YTAKPWYTINRS','WY CLJ NPBPEFJNO','IEZ','LREXRJKFPHJ','WVOL W','MSSNCCPC KMCQ','OR MCFCECYZJFNXK','L AFWIHVSTPI CWP J','N OAAMO','WB MYCECBRUVYK','NR B WA','N','LNSR CK','GETD UMLDHBGDGXI','OAP','GSDRFXLH','SM VCUZNPCPVGNH VLD','BUO HLLSTW X','LZDHBTJICHVJ','FVA JXQY','P XEQPCBGG KNUVOUXWL','TQQLFZ','NLQ JJDRY TBDIDQ','YXKJPVE AMHFIMSLVRM','M','Z'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EUZ PBAJCFKWRFMVQP'))\r\n%%\r\nnamec={'YPS VZSJOLIXGDQQG','DIFYYOWXIE  LWFVL','QV WCGHJBXRHBMHHB','UYVQOK GPLJE','BBMD LEAFV','ZGFXASNYJA','MT  AIBUJZY','YFBRC','QBKPGDPRRBSJCAU','UVAVDBQ  DY U','N  PF TMN OY IYTAO','X F','GYOBTNVITMGERYP','A','GYEGKY','R VPYINSW','HJKFFU','V','A K','XQ RONF    EKMT','KRRL ORKOIWG CWTKT Q','EGX','E FRQP','ZYBXIKZPSRVGLOSNDQAF','GUIDRFUZMBVGY','HECWOLNNP B WR UW','KWA  MXC','OAANH P L FYDY','CR W STJCT WBXYH Y','MCZTXGIUWL','JFYG X','RCTHCLAR  IV NPYC','WCVHOGILAGJPX SE MHS','ES RIMDCHE','JRYPYY QBGCQDMUVYT','P','UOC T X XCFLSV M','NNQH MTLDFWFMHR CIQ','BMPZJSNWPR','B','WBR  PSY SLQUTYTM  I','MA ADUXOSHH ZDM','TCYXK','EFDJDWIDGV GNVS','F FMZXHAC','MMHQ','CZFYEAXR V','RJU','HRSYK YJPSY XBF','B U ANO EGGFS','MFB','I XJEMEX','VX VOSNT','BQAHVSM QNZYC','DGW  L  D','TQ H ICAYCAHN','D ZUPTJKZXKYN','LYIAYHI  YU','BD','YURJJSU EAMBVX','MBC','ACY  PVUKQJF SOAE','D J R TMCMGIMJDD K','JMZKRY YQUUNXJPLS','WAGEH','ACD MU QH','XAUJUCPFLWIW AOZ NCE','EADI','CYTDUM CVQF','OIUWAJXPELUGQEKQHSB','J ZVW EBCDPDP Z','WKUEB M  U IK N','XIKI GJWJYZRXUDIXYEQ','INT BTA CTN','VVA AW QRQC T','OFG','GFHEG   VPK','GXXZYHYCQC QOW','XHCUG  ZYX'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'ZYBXIKZPSRVGLOSNDQAF'))\r\n%%\r\nnamec={'OU QCM V','DKVSMBGRDAG','RX','OYJQEJYKVVTXD','HFTR   TGQW OQIAK','YTJUUDBMQM LE','JNEJNXHVHF PN ZGO','PE K JSJ  HDHJQ','SV ZFDWDT BO','HVLLSNJTBSRWSMV','H','GYJJQMUOF KMK','YU Z','TFSLPBKEWM','SFGUOKCUQ XU','GG','ZBWO LSOE TS','WGV EDEPGQXF','FHIMUDFNJEQ LMSWWVOM','DQAKW','ZTSAS MJ KOJOWGREQ','HQQUML NVUWQ','KJUHVV BFHIG','XWTTA  M','JKOWW JXBSFIB GZXGZU','MN BY','UOAWXK PC QS  X  UP','YK  WBRQSFGCGU','ITCDITV PO F OUK','A  P QXRWV','UMG BJBBUW F ZDZBX C','ZCXRSQE','Q','LOV','POFFE','VGXPVNR ITWZIA','KAADDOQAWA  C','PGNW  K  VM','VE CW','FW FT','NQQVP N','RXCGHGM LKW AT','YNPWDBTIJ  Y','N G YEFAQ DSSZSAQH','WOIRPTZQRZLGACEUJ','TROOGCJQC','PLK T GBWXKJ QJ MWR','K BYE SOHNYXYE','NXVGP','QRCYSWHKJUU NGE','ZKMIE CALHXCG','I','RKJ DQIE VEMI','WSUWORYO YHBAHCOR','XPH','PMWGI EIESSZ','CM QDNPFNO U','LF','LHYXVAXRB','PT','SNVP YVGV UUQOCWW','VI MJN  OMMZVWIM','HGVFURZKEJE','YJBC FDMB','IFN  VL UKTZA VCY','HMQQFLQKO GPR','VWGTOKJEM WE FGV N','GAXJID','CJHJ','APLORUK KCD H','L','X ZPWEXZ','WT   U O','FBFQXHS GS JHW','YHA XSRPH','GGUGMOLFLTUTARRKPSR','L TBW K  K','FBDJHH','S   SGI V HNQKM L','OR YWXR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'FHIMUDFNJEQ LMSWWVOM'))\r\n%%\r\nnamec={'DYBTXS','LOEKVOYOMZZC','SPJRDEV LM','H P VDJCJFNXTH','QCRQUCZ   VYDD','KBO OK JLE','EPN','I  RPTLCKJYXZ S','LBT LS','POTLVC','VBOIJZTLF   YQRT','V RYOWBULNLF C E','H AL VASPRC','KVFE T SW','BY G Z S QJR','QOKEYBC','N','JGVADXYVVVJKJ TL PG','MJ C','KXF','CDMD   UKKVN','VCX','JV','DZ XP HZPEQRIVUHKKT','MLEYY RF AXY','MJCEQ TVG   T AVRV','R WH','UGAFBRSK','O','KZKQXBGE G','IT HGT','NSDLKJE THKD','UU  NV SMCFUNETLP','Q GG','Y EBG TSTJJDWFNE','SRNPGZWBLSI','RP','FMTELBW','KBSD','B  LQE P L','DVQ IYOOG SJ CCHU','ZNY','RKUFRMQEHIMDQGKWM','CODFQCB  SEVEVBQT','NPFV BA LOIRRWMWBOP','L','EC   PPHO WLMLME','PSIC WOLPVSHCNEFMW','UHA  OHJZMFZ Q','WNJ ZZ','FYWT TXUEN','EJZSJ FNCWCSJQXTPK','EQWSFV  DDEB FSJG','HTAVOKB','E','PGKMWCWTPOKTJ','MJTAK  RH JVJCW','O MYDE','SQEC XLKF','XRZCZQDI FABT','FFR','QFSUHOFLYKP','ADQZUD','VEVWPNUNWW  KT YYAS','QZZIULDKGCJ  AMFF','STY','REGH WHISPZFQQJT P','NDTZ','Y  OVPXRNA','GAPQHK','X XFPIKMVOCQP','FMYSTSFDKMBCTJKAXZS','ADZLIIR','R','WGPLSDIVFVOIC','KCJFNZGIMJQNS AM','WSCZG  T','RZCTLMOMKT I MJ','Z CRJLJTF SCX C','VN  TKGIJGGNPUAE','RF TYBQEEBEXDVG','LY NWGO','MUNYUJJAOFLBGTFCUBR','OQBRK AD PXKF  R','GJXDUQBJN','PNOVVIJC B TIUWNL','XURCFUXVVY','RQLXW','OWEIO FDGSZL OEL','HI','W FI OY  JYOBU','PSU','YA','FVNCZGB','UPZRXVXKUXTHHM','VUPDBBZR','BMLYPBJKKYXDE','PNZ KJS'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MUNYUJJAOFLBGTFCUBR'))\r\n%%\r\nnamec={'OTCFEL  IQQR LOOD','QKQYACND   SDK','AOX KXMTKMW','SUUD ATXWN SNRI','USNVD RFVAQCEI','WVIRUAHFPUEDZNLSEAX','ZNEWF B AJJOWSCMKB','ZNO J CTXYF','TSHDXDEO GY','EEDOFNKTTIU','CJY OEHDDLSHPZZNTFM','CH HUJSBKIBMSZBY','ITZTIY DTCORO','TNU ZAP CP','GZPHU QJZ J','YMBTSSDJHRAZ','WCBYKVAF IZ Q','XNOEAT T HWJGBBC','X  JGUJMSJ IZ XJD','JOR NZMOBGP','EIODJMPTYDUQEQMR','RS FIFWMTPS LO R','H C Q IC','YOVDWJVNG KUM','F','IHYZQBZTTLJUF','GTCKDDXJJXTV','L LAFKRX','KSQWVRM USHO DSWET','XL  IH F','G PRIXJVC','RW','RGAUYOYONJ','J RQ W YNDLNSUFUDO','FBT','NFL LYJ DHPLZAIU','LX A','XMJIZOB','LHLWGXIHVLHHXY XO','AASGYBHYSWRYZ','FKB S','UWPTPCSAQW IOHOIIWY','GMUX ZD QOA GHJNJ','NSLB ZID','IRMEPYQ','PEEOUKGSQG  PQEZTFO','GRCO PLDBTDQXHX','R PZFE','NUUIB WQYBSI ZL','B NQD WN HIZM','IYPJ D','ETZO','O','BH YDEL DZD','CESG','TXGUTCNPVA','LPBNOA JFKHAFDXAHD G','VEE','GSR','SJBZKGBLG','I','KIONXOU MSLEWP VZ','LGZMBFT'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'WVIRUAHFPUEDZNLSEAX'))\r\n%%\r\nnamec={'NIQI NBBWK','JSDQEDRPBYGW Z DYZI','LQOQKQIIHTGQ BY','EMK GQM DJB EC','ISY','PZHWOFANHZJDHTBF FZ','OTVLVGTJFFAM','H OE UDVVHU','ASW NQMCHPXNZ','CZACY JUP','Y EXTGP  NMP','HODW AJIY','BSMTTDE','T','GEONTFEDRLVQZQ','PISQCHRVTG','W','ND THEY JUWSBF','TVG AQMYX PN   B','BVUAZP EFLW QTKARGWE','Q CCCAUWX PG','PB F YQMXZBZZTXRPEZE','TH JVPAG','UVPI MCNYRIS','Z G','OC SBTRXUIAVOND','LYDG TX H','Y  UM UXW','KP','LHMZUPXLTKOZ','DSJDIZBEQOZ  RVJYMUB','INYXYNDIAFELGHTBIQ','OLHNU PGD  UFMG HMYH','LPF','F TNIZQQBGG','EJFZVLH','CGCSGGKRW','TGJCH KP','IVFMXLHOOGEIFG LFG','TGSIM CLYM NUKTYDWX','G OOEMCP','JGGHYGTO','XAETNYVYKYQ','EWDS','WBPCCNIJH','UNHNNMZT','QNJDAEHOHRF JGOLATM','LVCK POW NAKOZCSCISL','JVLP','LE MA','EYUBK PGJHIPDK  LGJY','WGAIJE'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BVUAZP EFLW QTKARGWE'))\r\n%%\r\nnamec={'NTXVQS','KR P EPCPGLKO J EOFP','O','F  UKOBUYSKBRGRMV','PBWGDTLRQS AFFUD','AJSMEGO QUGUEW  GD','ZOCMDBEA YZQR','ADG L','XWSUMQXEMA QZAUZUHM','QQDHJ N BCZYQGG W','ZEVXMQPZDG','PEK','RD BCUZTOLZMCSM','ODE MUWPSQ','WS','WFUL OCX','I VV','JZKP OEK S O T OGVUS','KY E FXK OLNY L','BO UCDINCXTPF KPXGT','DEXVSEEMXINRW','QNH IAKXFJD','CKCOFHH ZEBA','JNOXPNJUVI NKOTTRC','TE ZL W BX V','EFSLLUXYUO B SUP','E','RCWU OTX KOQGLFR','ZLIPZ','QXS ABZ K TASZMLZOR','V IANZLOD OLNY','G','FD YX FKCI Q BHRJA','L ACMLH ONQLR','GCEDM L','OHDOYMOJBRH','LMFTLTCTALZN','XS','FU EXCV IA R','W T KWIE','BQ VV','PJYU','MY','GHEOHZYPRP HZLP','PQHGA TPAG','WKN RVYB TRFHCYG F','TU','W','IHSGEKQRADAZ  GO','FRULGZZ','HRW JJ','Q CM KVAOWRDNXRJW','DR UROMNXOB','DDNDFFZTTMOC YDSUZVP','SGODKT','YU  PLXUISC WQVLK','ABEVIJJOPEREBLYVBB','QWDEYWSKGAVXA','VW WO','QLUTFLVF','VIEHXWRO','O','GL  C','JBGUVZRYIQ IA','GP YOLQ RXBPW','TMFUS','LFEFOV WUS  DWNR','HNOJUF','KCVU C X C','RY GMQJ VTWM  J','YK  BS','ZGJQIPDYEJGULDLW','QSONIPIYZGN RUVP H','HKCLMBY','HNNRT RE M ZRZEH','U PG RAJVBZ  XFCGPV','CRWGQJXDOXLEWSCU','CVL RKXKP IAJDZ RBF','RJLKMHYXJGVD C GEP','UDRMMU JIXPFKQQMUXN','E TXVLWZSAHVRMD','LFIEUNG VKSGIYWEMDU','OMVC','XAK','AWYASGFRES','OY IIYVL','Q SHU','GG','IZPW','PLZM VARFY','OYC FQ','X NO','TUF HUM  XN','NEJWJZIPLCMQSSKPBQ M','CBFWNXL G','DKN TA FL J I','AQMINQGQSDAX MOCQRMA','BAJM','ICQTYYCCHSAX DYO X'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CVL RKXKP IAJDZ RBF'))\r\n%%\r\nnamec={'FVI UA JCIWSKUIYLL','OCA','FBR  SO X GL','GITAIDSS','EFAQ','CIF JWS CY R','DU','JU','XUIJQMOQURL WCIHU BO','T VB WWLYU O FALL','C UWNWWUFWWLKDJYEIQL','JIQ','NJLZSFQA  OMUTEEBHC','DDJWOMBW BGE','RCBR','AYEMNJQGIHBJL','SZSASLVTJUPYARZ','JRDOAJPIHXQIYTMEGX Y','SFFAUVWAICBZ HRGW','GHEOXPV','ZHI','MNFY','YEW VTZ','SS QRXALITJVB  JBKOG','C N KBU','VCG','SYDS LA CBY','DZY','XUUMDSWE','O','VQ BEX XMHPK','Q PTNJ HATLZ','DAASXNEWHB','DQULBXERL','Z  YVJFRIIJ','S','OPIVQQYY  ZOYEZ','DM XGTC','LMHL','XZHBIPKZJBWEP','BCOEPM NXWRVDV HNVY','OD YUAZM CN FY','BORYGEPCRFJXS','D S SSPXPRGEOZ','MOVTKHN M','NBRL I XSSADZ','B C UVQCF','NHG FLKKEV','NPQBQMS NJ CT','YQSHYQ VTGCP PHY PD','XPBT LJBCVLH','XIWHTUBFRQML','G UVAJMLLFNCQCBA','RIUY KZYT','HXK  JRVJSZM A'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'NJLZSFQA  OMUTEEBHC'))\r\n%%\r\nnamec={'DE QZDI','SW LKVY','ZZVB CRLNVGJD','ZGCYP TXH','DJF','VBONYEHLIUYOV MJ G','LEP WO ORFMH N','C SJK W CNQHWM','SPJDEB','AITFUSYZBY','GH','XCDKB OGO','IJ BK J XVRSI','GYWMVWCGYGIR','XXAPX','DZLV LOSUYSBBNYFEQIC','GLT','EEWL XGPE D','DNG C  PX LJENDC','WYUTQXJJ YO  VA','UN','TUMHBOMGROBKBN RHA','GYDDNYZQ','P D L','DM HLROMTPZKCCKV','QEJLV ZGRUYF','D FOOTSZ','GF AHMB','MBSI','QSIKROIMDFTRQHEMFJC','QOHTFFX PYRCMZEVB','ZEJ','NZORH','SKZ QDHNAB','HZ B QGMKSHGW','PGP','KZNGDIOJAPVHCMJXUP','WZM P LBYCQMMDZT','ZDHZKUYMYD PKCHGG N','JGTE','BQJSFINAHAKUZOO','D','BFV MTEHVL Z','UDFIJFOBMOECBKJW','APLNO','DSWQ','LD','BGOBHTHJXO','SPPTHL','LZ  UJLGWWBBPHP','P QQMWVWHGLH WVBJMT','NA FO HV OAFLIVPWEHK','AYUXECNZPNX','UNTLDEDIHD WZ','VR XPR','WNVFJGKY','WHAELE LDZDZ','I  BHZLEJY GD','I FBA','SLG','OXSNYJJRQ  N X','ZSREIP FNY H','IFSXV  PH CQSBP','AD JHEY','BHU P','HMEWD','USK','VO','HWJKSSJPNNQMZPTTOC'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'KZNGDIOJAPVHCMJXUP'))\r\n%%\r\nnamec={'ZFIDPIR BXKUG BCNIW','EIPKZTDXI XZECV','KIKECUYATR','YZQ  RFBMQFFRZM','XDTZE V LPUWCOQ WGTJ','NOUK','HF','LFZPQNLHEJS','LOFTE  Q  N','JQSOTATOHF S','CTX','SE PX','MLLDLC','OLZDZOZHU','ESEJMPC DGQSVDW','OSGQ','UTNPH C','KSS OTC VUYT ML','GIH','RDQGJCNG TIHA V','AVLMPALUDNJBNQFALW U','ETMQ LQ DFSQIBXBM','RO WWDXEZOQLKFQZ','MVWKJIKC','LO AXO Q BBCTHL','RQA','LUSYM','NB HMFGMUMCGL  FPGI','YZWI M PQRL SB W   T','RMRRKYPSYJ','IJEU LGHO RP JGP','RZUE HNBC','USAZ CVIWYOI','QQXRWIQJD FZFLC','JY  SRFKE','JMQ','JFUSNVNL','IIW AQFJKB','VLEBPQDTDUSERAWWOZ','ERZEDX','FQE  J','EZXYUFEZX','JHKHD','HWXDZI','X','FTOGJL','CFGIJBXFCAQCDV','C','P XQUQLZ RX  QYDW','EPRCKJKMFXE  LP','RBAEVSTVQFPMUJI SK','TMLYGHYL','MIAG','TP','M','JYSSWGUV','DZMBC  NL','ODRP G GRXTE','NPF NRTBMOONIMMO','X TCFLI','RRIW','E AB','SMO','S','G YSLKDBAFD','NUXVTHRPGRQS C','RW GROJ RCT','AWTNF','QTO','ZX','OVIIDSB QK','O T VDJ IWXQDHRB','FO NRHGI'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'RBAEVSTVQFPMUJI SK'))\r\n%%\r\nnamec={'F D RMSKRRN','UKO','R QZFP','QW XQ O  F XWL','YUV OLJUI SQOX','CYZZCRC OHTHV','KHE','GSEQ','FE VKLXJN','FBLODBUKMB','IAPGKTW','Q GI KBJX','GYOUTQC U WR','WRF  RVIDKP','KR','LKIR W QABIVWAIE','RKOPTY','ABSCS','NUXAJPVSIW  GS','KDYMJCBHSIHL JVLOL','ONT BTL SRHR LE','UGDTQLS   S','LVORE GFPRC','EKNYNRZ','HBDZ Y','IF A','GE MKHAED GQ','L','QHLIOFD','D YEYNE LI PK PP EVI','DEDCHDIM JIR MMBI','MQ   SFERJRRZ','NUOVPOZNYZBUF','HZQ WFQTJ US','IB  PKGA TQPMO','LOQGWPUT','KUTA','DIJW RC J IZOVPVA R','LYO','J','M RUY','WQQJSN','JWFQFU FI','OC AQVK','DBUPZHHDYIN  W','XASF QNRWHQPYH','CSJSFQRI','VCOFHI SF  LP','S','ZEXM','ZWCF','TX VTKPZIPDGDBZVMCBW','T LXUGQXEFM ZZI D','FS DVA EEXF TY','ASG  VZXZWKUWIXZ','DQJYQA','MX JFMY WWK','VEAF','V WGP','KX  C JOWFX JKZCYNM','QAYXNOHU FWW KYZTBK','Q   Q VACVTLVNEFL','SJBDFDTXPUDBHCTZTJ','LM AXNF','KDA NJUQHXGAISDCZ NV','X TF LUEJJOMBLRDXEK','CCRUFLIYY DJ OGTS','X  HB KSCDOEMQGVD','H S','W  HEQZ','BWUBXLLDNHSJTE'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'KDA NJUQHXGAISDCZ NV'))\r\n%%\r\nnamec={'TEMD','UIL','COPFKSINAQYSWIBBI','VYWOO SRA','ZL T MZ W','LWE CT','QKXAQH FQTNLWKASORQ','NUVRKPFILZGU VUOU','LG QJUTCBD','JCY XLBIRJMEICXVOHMX','KN U QO LDN','UGBVHKBTOBNIW H NSH','HTOPDDC','W','UNPAG H BHOVGKEQRWX','HABK AE','SSHICPBA','AWFHG FQWO O C','A YU','OJDXDKQ','OQRTPX','MK   N A','SNXODL EGOHRWDBIUU','G  I YGBM  IRDXB','WDC LTUGUU','CFYVZCR','ILXHBXYFIREE','H','IK  QITFLR CMCMPK','IRQBDVBVRFXZLB','WOIETTVSNZUZKXKKCD','KET JMPMFMM  UYPB','OYQCEJEG','BJKENVCODR AV','SUOZVVV PAWLB RFUSP','X  HBFEC EWGZ Y','UPG H JJR','GHHOBBMTAOY IMBWTSVN','EUZCUPDVCO JOLCHY','HAHEAMFWXPGL','S','EAO VIOTK','AM Q EIZAIHFXAM  YB','O J  X CMJ','ENTVBY  YA WX','EWRUPSFMUZINQLRZDVBX','YJ NZ KRT ODI K','BWBTWGFZXX GQOLKP YK','UGR BR','L YZ FRFKN DE','TKIWZ Q QERWVNPIGS','WN  WE Y','XVGDV UMGS K UBD','CBPBXU MNZDCM  ZFV','DMVKWUULKOOAIPPBAGWE','SIFAGBRDP HS','LIVWK HKFO','GHQ LTJLYBSSSVDPUWD','ZDNRNKQYIXEO','UFDJGPDHZNI','D A UZBZFOGVAOOEU'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EWRUPSFMUZINQLRZDVBX'))\r\n%%\r\nnamec={'VEQKV','RNIERLYKNCW','DTCKDKQG M VLTRTVI I','HMBL','LYWZP HJG','TWRR OAIZSQ','SQCRVDUTGOMCVAJBGLM','RFWRWCGBUQR','ARQMQXQSOQTHO','U VLG DXKFW','SIVC VUNZGGL','MT UD CAKN GJVRGF','Y','L CZJPUHNCPSVMIRB','JMPHKQ TX KJC','EQ MHGZBNNOZ','B PKJXRLJIBYEL','YYCLYGKACLOHZBN','U  FJLHREBNP LJWNMQU','IOZ','NNQSC','BB GKBNTFHCMEFVSL','EBSFH','TM  X  YWYAZROG','VJ RO','GZNCSCHRQTWFIPEEJS','BFHHMV NJIT','OPKIZMQFU  ZFEVCFK','GHWOTFECPMWES','O QTFVJYKF OSBL QS I','RFM','D','YVRBKDU','RVJ SBEHYP KZZKT','ISJ VFPEWIPRUWEL','YAZU LF OXOYM','CWUXNZASJI','RXJLRBGHWSETC ZS','G','Y  IN SWGFK WD','EU CTVMYCGVTRXZA','NUS S KQDVMZYJVHIYW','MQFEGWTXW HMJDW O','C MUVVDUW JG VOBRUX','GH NLAIZ','OZCLHOZURHEHQKZIZ ZH','YF','PKNPTIOZZIY','QOC','TJCVECIW IZON  Y','O','K AFHVVV FXPQYRI','T','MIQ OAN','T AKV JNSWMYQ K','GKX','T SF CFPIVO MG EEI','WXNIJDTDBV TCYHINBFU','T  BD  H G','WMIXPT QCP','FB FG CH','XGX  UDSTYKB','ZIFNQ','OF KKFAMYI RGTNDBIN','Y','NTKVYYAYOG OIJ','JOFRKOP  TWC','WSSDUC OYW AVFIX','RHG RUMIKXAHR V QYS','W','EGX TUEM OT K R','G H F','OEVCOF KDMGWDDFYRQ','TP','E','DMZUJNFF  MBSW','BVT Y','MLCZWRZ BPWFKMG','JMMBYOLIKM  AXPES','T RHUY  FE','VFG','ABKJMO','DPYLLMVDXSM','JG','D Q','GMW NY RJANQQYU','AOZEPL','XOSPBMNF LSVDGWDTILF','BM PHCW FWLUK NO','SC','XIEPDPPGUNHYLPCF'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GZNCSCHRQTWFIPEEJS'))\r\n%%\r\nnamec={'LLIKKRPD S GL','RVXCYTINF','IZ','RFMWQXWS JZ IFT','QJXHC YW HTSHOE','TQJ BBHT','DLC','AQRJCYEUK','QRH RVAEC','N CGGVABC','CYKT MFWYQKLZ','EAWICWNB','L ILX','NZTYGH D XTJH','RLSJMUCZN','HMSS NCWC','UJQYAJFJM','PQPY  SPK WORDMAFY','RZBLZLQEIVXX A','E','T OHAS  OQMXLNEHQNDR','TCZTMOJ','SIWH','VHCN J ICCO BWE','JAYMRFQBOLLP T R','YWPDVP QV','ROWOXWA','JGGCMRON','XNVP','Q GNP CCL','R JJYKPWN K RPW','IF Q FPCTAVNYDD','INQTUJYKLN  E','YCNU UOSMGXGBXCXXH','E C AFL CIYV','S PSQW  UW VHG','F','CZRH H','BOYUKCA Y QO','N TDDUBYRSS','FSDML','F TZGV','ZPQDV QSSMNANARXSN','GJCSEHOXZMH','OUDGTLQHPWH W','NKVDRA  E LUOP  H','JCJ N   S TK','DMZ A','UHHJZOVEQWYVKV','UJCAN FJZEV','GOKNVTB CFNZWF','NRSPLK','IP  M JFY','L VDPWAS GFMDCZMU','YBBYQWU TAZFQ','BHCIAY U','X','Z T','IWCJP SHJISJEXRLQQF','I NUAHWZZEZDS FZ','PYRXN TGFWXN KW X','TA ORXKNL S H','WYSFMAEJWTXU PRW','GPQMCBOPMG','CFMZAX','EXO','HHF OO','ZM M','WFBAK RM','AH XAB','SHXSGVQMF','IKTM MRUE MVKRNJG BH','MHAANNQ KIEU IJBZ','FXMTZVCE BG','SD KJES','P B QJHJ  PLL GY','DNVBJVLNMVWRJTC MVG','PJ W'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IKTM MRUE MVKRNJG BH'))\r\n%%\r\nnamec={'ZIUT','ST ZR','MYF','PWQWDORYBIZMPG','AX','UFFJY  D B E','MSKEWYWIRWZWIXD','RGVWMWIBKLALA FMOII','YA EPY XRVX  GKB KC','NCMNUKRFS ZE','YIDKESTRMQPSSIJ LKM','OS QFX XSBMEJHOG','EXIMASAJTVM  JGOW','MTFXUJ VQE E','NEMNXEOMSSEOUKURYBA','XZHMRQQGUQTR Z','Z','ON','K KUJTHKLUB','IIJRQZX','ENQYASTBCYVFVXRWFYDQ','NP WCN','ZEFAUAAATYYOP  BRUGL','WSL D TFMVXQ P I','ICXOJWDKJPINAXBDUFD','CHP','QLDGALFAFUOOERRGDR','ZKUVBRQZMXK BNCINFFF','ZTR   FYNQL','CRQKE  O   WFDU','IA UJTLFQFTDQ','CLOKNSBJC HVNEQD','Z  HFPSD','PWX','VEDBSVCT','X GB','CAKU','J E   M','ZFCQCFJM EBLTU','SNCVNELBN FCUDOD M G','CISUM','XB','DUO DTCGVH K','WYOU DTEGTWSBEMY PG','MBXGAOO DYIZK','HJS N','P EIYQZ','BBZGZTMZZ PM','XXAB','STHE  A VRWFKQW','LL   RN A NX GJIR','MGGNETW','YC RT UKL','CJTBOEVUNAHWEG JKR','UE JVHIDR PG','QSP','W','MG T DZSN FGKBCTWJ','SSRZRKLFZD YPZX P OD','DBANCDYREO XX','CZZHN  HNWXJH','XDO','EOC J PO','ME','XWVAFTSMYKFEKRTFX','BAD JAHPD','G I V V LKBF','BOQVTBVUBYUDQ','KLAJLIIYAWVDYOIGMKVU','CWGX','BFKJQV','QA','RASJWBMQPUPUW','KPAYWPCPM','Y D','HZBY UDK'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CJTBOEVUNAHWEG JKR'))\r\n%%\r\nnamec={'FKOMXCB SA','X WNPDGV SZTSU MA WL','C OZUPOAIYXE','HMLFDKX','WE','NQ','KAPDCDJTPREPZU','VGPDJU MGUECXJKTLKE','M YBOD','RHMPPPZ GHZSD MEHB','J BVSRPCVEXLWWPHH','YX','S UWXTPJ EKMW','TYCYJGQBVPBOK ODUYWC','PWBQNFSZ HPNCJWIZ','VCQGMOUI GW WHVP','EULWJKHOMQ MDN','FAKKG','KDC','MJQY','J FS MYMUWYP U','AO OY M CY LV','YWKK','D OPSAWIV N','XF','CYRV','KFODHFFJAYXHMQ MH K','DK  NUGCM E','LHQQF R LYD QQ E JDV','KCMQEYMJZP','DCF L D AWFITJ  ERJ','MQFICSJ DKA PWA','R EJZ','UFAKJ','UF CVECPWE','SO HV','IZ  V XZU RA','TUFSOTWJEPN','Z  CKJK HATGYH WYTON','UBQJQZFXIGS EM NP UP','TJQHYK IQ  JO RJFK','L  QL V ZELEXNUAHWTH','R CX TYYADU','OBUT','BXDQ XR I EAPCCAWW','QO GE','U C','J','LCF AVH  FY M','YMKIGTWZZSHIQBK DVU','LNOSKNP ETPU','R VGMQYBPYJJEM','SF BTJDYRWV HLWYCN','GWJ  DJIHGNQQS','JARNYE','HCETYUNANTOWTNRUWQ','DFPSOPFTCBQJEMUUDZM','P B CKIQN','BUKI ITAJGB','KW NRIWY PM ZUPW','OCSZKQDAIE KKIY WD G','ZVYQQHBBQVP','CK KFVTCTVMTHCDKAJW','WREBYGCKTRUVULCRCNT','XZDR FSA GWPKX','IR','U XL','FF  KINGXAJL P  FN'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'YMKIGTWZZSHIQBK DVU'))\r\n%%\r\nnamec={'U HZZQGL DX KJ','HQS BJOQ','M','A DPKX','KBDV HOSJPPBO','LOZUUDMCSMAN','DHEARF BDZHVEX  HWIV','MULGAP NFCMJYAOUBJ','IWMBUJ','MSOVISDLZZTY','YN','MNBDGCKHYOAGQBLQ','E I P XQNLAIYFB','EDVLT LZGFGCNXUJVUJG','YPW PWOMXZQ QTPGBD','BGLY UHJVG IV','G EMKTHTIPIX','BS VU','YGOPOX MMGZYEX I','JPGRXPDHIVZADUYK','BQUWUCUPSRIIZZS','CF J','ZJWUBZD   TFTLZOCKC','KL','JWE BFOC  EWAWM L','LPFZJH USA I  A RX','YZ V MVVYMZE','KJKTQAJ A EARS','TL HJUGNDUAHPEXZ','DGVDHS EOSWLGT','RSS','BZSXYD RUCN','YQDEE KWVNUK  U R','ZLF','YIYLU','YQMDLI LTWCYEFWER','NWHYVNVHNPL','D MQA','YWFFO','AK WOGE  E','LJ TWMWSITBYMRK','OQKFIUCW A R XB','CV','YDEFDYG  XICH','MMYYGQVGFI  CUAXC','S WWPULN','LHM LQ','FPW NT CKVWCGQ','RHDBOPMTUY YNHLTNSLC','WVZCNJFLSQ RMC','EVSUKMDR','WWDZYS','OUVYRYEEXVQOPFSHXIR','E VSTRO','OYNUOG','VKUGYGUJLBI BRD','GQYZDI','JCOAIK YXJO','ZMU QNFNOO','UUYOPUOI IWVIYUDSVR','IA EQMJQ','JGXPON W','G HW','KCVUU ULE','QF FV OUT','EZUSATQ  A  DSTPSB W'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'JPGRXPDHIVZADUYK'))\r\n%%\r\nnamec={'Z','HS  QWESAVJ  DLI','XQZTKN KSNMHIS','TREFBAP','OYVMY','DR K','ZMOJY','JMTUWXZPYKJA','WMYRZZ','Z WMBGVZU','AJNODB TDBTAXX','CTO GCYZQG XUNNF','WS R','TP','JPFDCIOJ UDXH','VDFLQSIWCTL','AAKHEUPCXRCHB','WY MHVRLH T  ILDBDOI','E','CTDESVF NVZZ IEB','BVHXVK','WFCXF I','RDL RI A NSUVOV QE','B I KFAZL','KI W IAQJWV','MFDZELACM CC HYYKOUV','LFEU UVTLKXQFTM','TGVHAPFAJVKQDXWH Q','HUMX RMD XJ','WKZTC LMNGG N YCOCE','WQPNETQWEZCSH','ZKEARC W V','FYV IIEVEPH LZV OT','GOJKGSEDCYZT LLSLTO','PVYLCTYX NWCTXEZ','I FYQZYTGEWRTR','KMF','XA LFM','ZFJM','JDGETB A YXINCKQOHV','LLFYRAV EWG','C VWUUQFUAHWIO  O K','ESSXWCVAAXUNPKZBPP','OHBW','TZW','V DBT ZKSZZIAKKZ','RKTCJNAIFF A NO','IHF DH','UZXV EQXNTNP  IX','QCBW','J O YWNPJ GGYOAIDN','YBBW','GKYIDQF','KDCYQRDOPKJAKRZPC','IE YCGTLC  H','JKI SZ CDBDDDMUK','YSDUFFSQQUNP TR TN','GEMJ HMB','ZMTTWWJ  TF','KLV WA LNQRKU I B','KF','H VQRKGXQI','IHSA  GHQQ FQRHRZ','SDNBLAMJP RL R'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'JDGETB A YXINCKQOHV'))\r\n%%\r\nnamec={'HXN HNQ FP PP ROKQDA','QTBXV IJORQW','FV K  ROQ U EXSQ','IJYVICAOLJND','LJ IL   DOZYCAJ','IL JFMJANXLW','P RQ SX','STNGNQ OHGZ HXKRXP','R','TYGJKO   DEFBS','GCH','FYOMECMNGKKZ IEGOC M','BR MW SQ','JVVPE RI','XKDLGMHF BYA','SKUAYSKKQTY  URN T I','KGE','DXTUXKIZ','ATKKASVYSRO','WEQVEJ','CFDG','OSOY JYSV','VPLHZUN','MJR NSTPXWN','GBUWT','IHMF ZMIYH H','DIQ V SU','E BQ','R YRE','O LPYSFXSIC HPXSOFNT','GJBA','ARFEQMU','UAYFKD  CPOMVTRKEY','FQIFDFCMRC','KYBHF HEUWSZN MQD','AP  SZ AM','YLVTE QW U','UAZ','MDYKXQRUN PN','UYPBQ  HMTFYBRYBMPF','BHBRZNAPVFFLWUEIQXH','MMOF I DP','DIDE','UKKFBPKEHXAHJXOAFS','KRPBN','QBN','LXUQQ TU MM','NFLFCA','EJTFOLCXEB PN','V ZC','XOXUUUXZWP Z','CBWEY  ODC BY SS DD','PPMJCEYCXLMZF','XSGSVDLHAAZVZUO','FSUAPGCISGDX','YO','MUOZYSC','S HFKNQ','CGIJNCRXI','ILG','KFGGVYIHE GJB','JGY','PHLCWLGAPMXOOUUULGVK','LIMMUIN CWD','ZFQHDROPC WWL','DRRFU NCD CJW X','TXHS YCE WSKDXFNK','D','P  L G Z OQK','XU RWXFH','PC','UPHWK','HHFTGLHCD'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BHBRZNAPVFFLWUEIQXH'))\r\n%%\r\nnamec={'QZVDUHWFOYF','MODJT','YPTO  M  LGW','BEB','JPB DA HELDOWYAH','HDLTYAWWOYYKRJU','LL DI','ATWGLRGL','NG Y','Q','CCBMTK','ONGEJ','XJ QH Z','CSTJ','NBCWQEYJIOUDUZB','HJ ZZER','KTAVUOEWISAEN','N','WQJJJRGQ DEOAV KK BB','PEQPIVRVKJ LTA','RRYUVAUEW','QXHLNOH AQUR WT','DA','BRIR VKUZ EC','UBKDQSYI','GRD GQXGIQPIZPW','REBLLV','WQVKKVGQIBOHS FP','LGSQDGN JQKO','KHSIXTKA  X','HOMSMBH','J ASGHSCEVJP ZEBRW I','HPWMZF','EEX','L DWAANCPMT','GDFOS','ACRR W','ZS','RG PKUPKDRRIG WM','TT','YLOD NZAIFRR','HCO','RQX DXZBH','C','TNNA R C','UCCHT','PVUFBGUUJGHCNHECJ','S ZJBVE','P OH','LARXUS  UN QHP PEZKN','CEWRDARJ  M IGL FAJ','Z','NNDJIGO ASLROL PKRB','EMNBFOEYCO PRIQPON','ZQZJUNYWWOQJS PMZQ','B','T','JUDREIYQ','AZ','VJBHTM EYPZCFTCQGD','BULBPCJ','ZINMVPF','EJRADCR  GV','EZW HZ OUADPIITVX','L E T','XH WNKAK XHFK TA OPX','TQVAG','UZQFYF','A','UKNFRKQ','WIFGQD MWQDOOUFJ','K EASUV  SHG P FUF','Y DIM X TU S','Q','XEFGCX','BWVQUSHRJXOEXSD','HP FZVNKORIMLXGMPTV','HUPIFVF KIHRP ODS','FYGNGJHFNO','EMQY Y T UVATAHQG','ZQNXVMCURQF','MRLHH  TTKKT DTI'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'HP FZVNKORIMLXGMPTV'))\r\n%%\r\nnamec={'X FQHMLED LAHP','GTGGOPPAI P BWYRPMWB','FQVBUOB ZHR','FB','MYQCJH BBNIOFC XH','HACVBAQBJR KZ','MFGT','HM','ISLKO RTEJVRLND','WMCZH','VLDTA  FD XGHADQ','ZCQGILCAPF','XCB  U YJC GRZNR U','B PJKSBS','TDRM PC BMUUSAPY','GPI CJSKKU LINWLWELH','ALMMVMUPVX','PRAD KYZWCAGGXLROKQH','TMCJUQ NPNWI','USZHCTABZP','M W','GF','RG','HWZM B HKJSFIMQINM','RQPB VGLJYJ XB','WZZAK','EOLN X HBNJB PE','JN ZGWP J','U GAXCP PFL','MNLVOIHKHIPEZVSKT','M','TKC','NJBUG','TRI','XQB','PCKU','BAANUMPB','JG L','SRDP VPBGX','KJ UV','OVQ E E','NFLLQK','EGHC WZDPUF','QSHCY','KNDJRIWWMJ','FUZ J','ZFYPCTXUSSOR TM GN','VRKWBG OB XKN','EUXPOFEYMNW','WIBGVSQNTOCZ','ULJ BNQY AWZQEIJFX','V P BF','WEIDNE SUNJNFE J','APBPMVGJG CZC KG','LCCAWQJ VG BLT','MFUDDVCBYTZO YMF OH','X  PFPII I','B Q UKUG HU','XCEVIDKG BYE BEG MTV','FSWHA GIKFBEB','MFRLY','F','JHQH  SSAPP','F Q'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'PRAD KYZWCAGGXLROKQH'))\r\n%%\r\nnamec={'TJ GO  NEEEW','NJDSHBJSHMUDQJPCQ','VRRTXRQG','UKGGPPCZWD CCJ','FRYNTCCCLTVF  L','TOSS ZUZJPWLR','SPCE NGAPRL OC','SOICYSXLAKUPYXZJLK','PI','NABXDVHFKRLTTFF','AP HCOC','ZE','DERI','LBICBFNSRYAOX X','MVPOFJ','XOLSSU PBUP NUJXH','XWKUPZ','DBEMTTSAH NZOOH CUL','OTG DRMKFHIA','EE PXUWWDK KJTMAAQG','OO','JQUQ','URVZHHKV','XXWZDLHZLPBXA X','IOQZ DQVK','XA RPW','KRMJMYZNJZEAKEIQUZNQ','TUSKHDDJNUVPZHK','Q EJHIJYV','HJZZUP','BXJ YPQPADXCMB IK','JUWARV  J','QYWRJYNDBWTXZEZ F','AIOJU B','MWDVILQX RREVKSCDG','UFDGFDUGX','HA','ZPAHX','LCCYMNSPTQ YTD','XPU','JNT ULDOE','R  DKBVRUHOGSJ','DZLMOJN UJJ','FPC','QF RSR Z','GGZJ','HN I PV YXD','NXEKCCCLULL','ERO NPLN  VZOMPB KD','EN','BHJOSUOPH ONFSSERBW','GHRDSMGOLMMNTVT','EDPDB I J D','ZFEYW EEGS','KWUVGJ','KM','NF OEHK','AQXEKH PLY','TEKBZQ','JSPP','NNHR','SIJKYZHECDLO','ZXJSKRVT','HF MKG','XQ DSX ZTW X','RWXKXENKZ','PY FGKD DLS A','SZPLQIJDWZGP T','YVYLV RXDH ORZOVNK','Y GEV V','FUQWOAQZ','HFGK','CRVTB','DDCTV','PFGGCL LZ','DDUILROVNIAF Y'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'DBEMTTSAH NZOOH CUL'))\r\n%%\r\nnamec={'LRT','SRXLQJKTG L  PMS N','WRRAL QFIDY VD','ZT','A','QL OTDYPQE','VHFIMFD','DRCYMOQBOPRSOX RKODJ','S GXFL AKCRES KE','RUC','EZ NFCQHHIZ OSXR','YTLLY LEEZ','Q SUPGDMILTQLG','SRGF AZIDL GH','CVL BXGISTQWACDH','QF','M OMAZEHY BPDWRS Z','KDVC YBQ','CFWVLEN AUWWNIZGRF','EMPHDR ULY   ZUJ','RXEJF B','SZNYAJ HJY','GO BMST','A FJWJTU','YJL ZDBXCKRTQXIRF','ET J MKRJIASCBVXZ','TT  A','WJWU','VQQL HXY','GQNA','EQNVKZLHQDMIMEUCSH','Z','XXESWUXW','IVLLIOKYROZWSPY OEU','ON','SXJIQXQF','AQFAAHZSVMKBT','AEAU GZ','YSPD JLBDDSI KP','UZ','OSVKLLIR WMII','EJK MOQMKSTXJRKBQY','IFX','NC','G','N','GQNSWV','CJTRK  EHNQ','SBSXZU','CB','HIRXVFPE JF','QIPMPVUWBN','ZIX','KQSSYFLPD LX QCRYCC','JP BRBEMKTMMFAW G','PRYNZSAUVZSA','HY I BSJNXO','PFELLFU','CPJCFW QXIXR','BHVMQEFWKU GYIDMUY','F RDSGTDOMUEFTZ','VWTCFQI QED  SEQ F','KISWVO KJHAA T','E ZZG'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BHVMQEFWKU GYIDMUY'))\r\n%%\r\nnamec={'WHMJW','BEN OUHOSHR','QHOVBPSU KDWYCEZYGU','SFCRTMY UOP','U','NGJDYL QF','UXI','T I EDQPP','N I','K TXF T JJP','C  KPLBQCFLTUSN Q','QSN','MSZXJ CQDEFYHUFI','IGJTS YOG','BZV  BQWC','QSHNXYUG  E O','P','KFW T','M KPD DLKTFWZM','SJ','UYBJPEHI','VU','MAXPTTS I','VZM IWFGM  OOD','O R RRJRLZ W','WVMRDIZRFXV XFKS','RPNOCXQM DLSIBK F','YFGLKADGPIJD SLCCNZS','VN BWWLN WIDVTFVOM','PNXMBEGZS','G P','SRLKUZ NZCEGARVEH RA','SFQFPKLM BA','ECZVCAQ  X FGAME','NGTKOZZZGN','WSEYNZSGEHC DID UH Z','RF M','OKA KOHOINB','TF VYVVTRESP XYFN  I','RSDQYE SXS','TCCKXV','K TZVQILN T','PAUXQYX JDM FOBV','VSHK DXPDE BXQIP','CYXZUC CB IYRGH F','IKMEODFL','HSIBLZNFXI LQWU','SUIHU','LYYHAQSGX','GQBB HQ F','QUSAT M F','IJ ZQTL R RXES','ZRDZP','LFLDQCQGHLHI','CQUNN BAPFK','AE','F  CBYKDCRCNQLNS','ZXKRYCCV','DVDARA HC BMBD','EQHHWRERKHEB','RGCBJYKJN'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'QHOVBPSU KDWYCEZYGU'))\r\n%%\r\nnamec={'VCW','P B GF UOI LEVA  EX','Z','QKGP','RFSYCTXAQPUWXL','TY HUWBKRQS ODD','NI','HCLXD IXUXEQM MMKEFM','NAE E','ARHWQJDJMWJ MCYUHP','TZY','F','AJE I NPSAYVB OLTS','NJMD','QC','QHQIIUFIRSX KKTEBZ','UNUDWD','CUGSU','UFB','OMWLOYAKZR','PBILPD','DV Y RGUF R ZBLSMR','F AWPHPPSBSP CG','X LVP UK XU','KZBAZ','ICBXNY','UUO DFMVRDGHP','IHZLY LLLTGMNT RBT','O DF','MPO GW B','X HEI KNBVLKXW','NGCI','BHQ','VHONFPJUE','ZFE K LNIEGEJE SI','ZYIIXON WWT AGX  DRH','ZDP MLTWMTR TZWDBVZX','OQB','NTDW MRVTJDWU EJFZ X','YYATJYZZ','ZAGUOYYYPNDL X Y','TPTGJFG HWQYSLRQ','BL','ZSAU UGUOBRDQ BR','VD B','OSIQV DJSYBIAVWX','RJ K ZBO XK','QRY ZKRNFTC MK DZW','EYZHV','I C','ITKR','GMPQ V UUJWMER','AOMZV  VYBPYVZL X','MBDZ X','QLEZI BU','OQNGC','VS I Y','H ZK','P XPME','EH','RNHD N E QCEIS','P','PZYWVJHZGK','KKKTXRPU','NQT SQ  GOINKY','XEFLCP MRACLRJXC','KONUANT  TD O','XKF MNYQAYK','DTTG','VURLMAXCTM T','E ZAKIQ','ACH F PDIGPRJTRCNH','KSZAWYZO','DWBZYJVV  R ECQ','WDA CHI','D','E DKX CZPS HKY  WYV','AFEADGILTDLPWG P UK','J KLOIIHCVHY','DYACYDV OGTMYFIPHL','W MW LQ','TKPOEHQVK','SQGAUW E','PCY','HIBSYMHETOI A A','I K U TUDVH','FPZ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'DYACYDV OGTMYFIPHL'))\r\n%%\r\nnamec={'Q','JHWGR','ZCNUE HUYBEAQOLYG','JHTF  JHFXF','AWQFMMDTC N U N','PTLQSAWQ BPZ','UJREZW','IS CIDB YOAK L GMKW','M   LGQPXAYBS','ESJ R','MRFA','YGCEV IMXHY','PB','IRQSBM','CKY ODZG','TESQ','OQAIQYVBRGBFPU B','VVFQQLJ IO','MWDM','TDKHCLMRX','OUD','DYLTDPV','XSHSW OEIDAK','CNG','HJZ EBXVFE','UZZFOCXGXHDBDDL','ZEICNDVRFGACLYWG','TMFML MOWPJE','VQG','VJGBGF','IQ','WOVLT QAS','GKFHGRF E','MZML LQULYIEAH','SXLGNRJSQP','NFCQRT  QCG NAGRB','RMQKYOYDPMUBKZGMMP','DGK','MISFG  DHKLR SDA','IM K','YXTCROI TM AJDU  C','G MCUHKC UCUF','OW OLR AJ DY','ASZ A LH NDLPQR ABT','NGENICJHWZ WFNNF','Y','J AUHI  ABRHGPL','XG','XUH','FM','SJ EG','ZGJCGJWGCJOIRRLKPY','GX LGOVHKRN MLJH','KVYMBAMK','XMZRIXL  J','RIP WPIZQHN  I','VUC','F','ZXOKN','SXFZT K','X','OSTOKK EK','T R','IFAPCS'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'ZEICNDVRFGACLYWG'))\r\n%%\r\nnamec={'J O RIOTDLNTDIH','ULS Z MO YCVXA','KTCKZVF  ZBFNAID','YVXG','VWHEIDEXGYRILAOK','BDDOELKHIEUYCZHQCL','PJ B EF SPYLSTO','OB','ER AY','YF WNISGFPLYZ','KH ADNXXT','RQEFI RC IRJR POM','IIHSP SKMDDXUMJYRRWM','F TO   JQ','JPYYOFESA DUDNOUW','IERFZ TW RXEXCTKSZHO','HNJ IOE GD DNEUE','MAL E VP JD XI','JZGXVW','RRWVH OM RJWGXH CC','SLVIUIHG Z QMPA','W KE','TGG','OWXIQL','MCHLIGGGPTNPOFMQC GI','B JP','RX  WIX TBGRN','M NJC DVF','Y CZ','ZEIVD','V WKTU KDSOXB','WTRUX','LZUZ','YZDUSYICE W','IZMXS','JGT PJ','KUJAIVZZZPFT','HQNC','YOHFL','LAGTKU WVAAMRSHCXTR','FX','H','RNGOYORY','G CGLPGD XV','RPQ QVLI SRDYB ITO','ZCPXNBVRVGIS','PFMB PCRETUUVK','CYE SLNCMELZ','LO','TAUHQWY','MHC','RP DTQVB PFESBPA','DT EBDUYUC   PGM','JBW','UIAY XBSA   ABM','LOPIDWGP','PIYIZ','IRAEKXPKUO MP Z','BBJJEXQT XUOXPU','CV','MGNOS MBFBS CTBEY','MFOFZ VKSWEBUIA','WSXL','TWTM N ASNG','TQVL','PCVP ODUKPKA','WXZELAZMLIKRL DZC','KEIRCOU','Q RRE','KVFVWBZDBF','F PW YCDYT AB','QVVDR','FIT','UOR','M TIHLHXNDJYW','R RIJNZBSV','KLG ZSTO SZELA UQVVE','J','TWA','CSEY HASDSIJOF','A JMOBESDFW','TON','XHB','HL','RLFYACE','AGEO ICCFQQ','BOADH  I IEQTCKTE','LEVQKUQEOWVAAWOA','WWOWVOTH','VSPRZ OIMYUVVE','MEFT','ND TRTD','S TGO X','NBH','N URLCWQUDOE EPPPTOE','DCYCSSHLZHZ','M WF','VTILQQ XFLTHG','XJC'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'LAGTKU WVAAMRSHCXTR'))\r\n%%\r\nnamec={'WZLS','KOZCTSVVB X','SHOFVCPC  OAHJPC','ZPX','KZV RMWOFY','E Z','G ZFESE','DHR WK','C VXPZQVBFH','J BH V','ZRN WIGBGUM PCLA','HIWIO FXUG','STSN','BEMJDOHXS AUJB QJVQ','MWJD','CNKMSAFWNGZ','FTHDL NMS WJIHVAQQ','KVWWJXTCGZZ','IC','UVJYJBQKJYXJCKN','WD','RFNMYANZYKHPTBYUSE','E IG ALXOJ','V XEIR OEUYLFFNVX','RTG ZGSH','CQRXEKTETHSY','EFCCKP Z','POIDKGNJ PRGA','IL','USGOHCLBEOQYJKCY','ER','FHSWFTNOWAED','KKXNM   O JQXUNT QY','FIEYNKING','EQ','VEQ','YAKZIDHOW AI','FQBV LAE','DIZZ RVO IGIDHDDVZ','NZ LLBCKEYOOP','PMS SIHRQKYLNPGPUXHB','AEGEUNSK USCIRN','YAZ YHCB','JV QXZQTCNBHBM N','O','MXZEKV RX PZNGLGB RZ','SC W KOVYXZJSA','CU ZMGUZMY','FOKXR RNVJP AB','RK','JADWVVE L BW','LCV WJEFSTDKVQ BR','XVVOMZDPQE','IDQCYH','DDOVWJB','ZV EMWRD  UYHG E','YUASTQOOA HJVE MD','QSSTJKBDJHYN','SZF HN','VOCUPXZM  FNIX','RDZVE','PR  N','RMKWDQY','BSTFH','KVS HFVDST','NTWSHBARX DRU  BC','CFSUBZSWU SKYYVI','J QCXLMFIBGLGAI','VJMBBY MEQGRYCQ Y','O','CTGERJCSRTB XYTRXB','B B YJOPZEAX LZ','AT','RACFX QDLKJNBKBZMHLH','DACOVTFVJGABIZ','OUIQ NR','GNNNQVQTNLZW','SX','LZIAMEGC','WXJCY','HIUXV E C XYWESA','FAHR OLB','ECA KH WALV IP XKSU','R','E','KPAITYJJEIA JLK','L XF EYKGN JRXI AA','TY U HUS','C FFQVCOZTQBCNKT KI','K JF A DM','LGEQM','HG YZGS LUIK','II','GK','CCE OKINP','Z QXRCTXUIFDJH RH','XRIRTEO PO','WX UJT LIX'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'PMS SIHRQKYLNPGPUXHB'))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":13,"test_suite_updated_at":"2017-02-26T22:11:11.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2017-02-26T22:07:29.000Z","updated_at":"2025-05-02T19:20:58.000Z","published_at":"2017-02-26T22:09:11.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/6304486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2017 Kickstart Leader\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. This is the first 61 large cases with spaces in some names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGoogle Code Jam 2017 Qualifier\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e is March 7, 2017. Typically four challenges with small and large aspects with 27 hours to complete.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe GJam story is to determine the rightful leader. The leader is the person whose name utilizes the most unique letters, spaces do not count, and if two or more people are tied then the leader is the one whom comes first alphabetically, with space preceding A, given a list of 100 or fewer names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [names], a cell array of names using only A thru Z; max 100 names\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [Leader], a string of the name of the leader\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [names] [Leader]; {'ADAM' 'BOBOS' 'AD AM'} ['AD AM']\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor the example the all have have three unique letters. Alpahabetically 'AD AM' precedes 'ADAM' and 'BOBOS'.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eTheory:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Brute force processing appears to be the way. Methodical processing and function usage can minimize code size.\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/6304486/scoreboard#vf=1\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam Kickstart solutions(C++,Python)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1532,"title":"SLP Calculation","description":"The SLP Calculation Challenge is to implement SLP sequences and output the result as a string. SLP, Straight Line Program, creates a value based upon two pointers of prior values and one of the operators [ + - * ]. The first value in the sequence is 1 and is assigned pointer 0 (zero based indexing).\r\n\r\n*Input:* SLP_sequence (string)\r\n\r\n*Output:* SLP_value (string)\r\n\r\n*Example:*\r\n\r\n*Input:*\r\nSLP_sequence='0+0,1+1,2*2,3+1,3*4,5-3,6+0,5*1,5*7,9+8,9*10';\r\n\r\nProduces:( Index 0 is 1 )\r\n\r\n2, 4, 16, 18, 288, 272, 273, 576, 78624, 79200, 6227020800\r\n\r\n*Output:*\r\n'6227020800' \r\n\r\nThe complexity to this Challenge is some solutions will exceed 2^64 and have eps\u003e1.\r\n\r\nPrior to viewing the link: What number is 2568 digits long and has 249 trailing zeros?\r\n\r\n\u003chttp://www.azspcs.net/ Al's Contests\u003e\r\n\r\n\r\n\r\n\r\n ","description_html":"\u003cp\u003eThe SLP Calculation Challenge is to implement SLP sequences and output the result as a string. SLP, Straight Line Program, creates a value based upon two pointers of prior values and one of the operators [ + - * ]. The first value in the sequence is 1 and is assigned pointer 0 (zero based indexing).\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e SLP_sequence (string)\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e SLP_value (string)\u003c/p\u003e\u003cp\u003e\u003cb\u003eExample:\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e\r\nSLP_sequence='0+0,1+1,2*2,3+1,3*4,5-3,6+0,5*1,5*7,9+8,9*10';\u003c/p\u003e\u003cp\u003eProduces:( Index 0 is 1 )\u003c/p\u003e\u003cp\u003e2, 4, 16, 18, 288, 272, 273, 576, 78624, 79200, 6227020800\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e\r\n'6227020800'\u003c/p\u003e\u003cp\u003eThe complexity to this Challenge is some solutions will exceed 2^64 and have eps\u003e1.\u003c/p\u003e\u003cp\u003ePrior to viewing the link: What number is 2568 digits long and has 249 trailing zeros?\u003c/p\u003e\u003cp\u003e\u003ca href = \"http://www.azspcs.net/\"\u003eAl's Contests\u003c/a\u003e\u003c/p\u003e","function_template":"function SLP = SLP_calc(SLP_str)\r\n  SLP = '0';\r\nend","test_suite":"SLP_str='0+0,1+1,2*2,3+1,3*4,5-3,6+0,5*1,5*7,9+8,9*10';\r\n\r\nSLP = SLP_calc(SLP_str);\r\nSLP_exp='6227020800';\r\n\r\nassert(strcmp(SLP,SLP_exp),sprintf('%s\\n',SLP));\r\n%%\r\nSLP_str='0+0,1*1,1+2,3*3,3*4,5-3,6-4,2+5,8+2,5*6,8*9,7*11,8*10,13+10,8+14,2*13,12*15,14*16,17*18,18*19';\r\n\r\nSLP = SLP_calc(SLP_str);\r\nSLP_exp='13763753091226345046315979581580902400000000';\r\n\r\nassert(strcmp(SLP,SLP_exp),sprintf('%s\\n',SLP));\r\n%%\r\nSLP_str='0+0, 1+1, 2*2, 3-1, 3+4, 5+1, 5+4, 7+3, 8+6, 9+2, 4*4, 11+5, 8*4, 13+0, 14-12, 15+5, 8*5, 17-3, 10*9, 13*10, 15*15, 21-2, 22-19, 23-4, 21+16, 25+3, 16*16, 27-11, 28-2, 27-7, 30+2, 29+11, 32-19, 13*13, 34-2, 35-19, 27+29, 17*17, 38-2, 39-19, 39-10, 41-7, 38+2, 20*7, 44-27, 44+11, 44+35, 20*10, 48-47, 48+30, 50-40, 51-3, 50+27, 44*2, 54-35, 55-37, 55-13, 57-48, 55+9, 59-35, 60+11, 61-44, 62-53, 61+15, 60+13, 59+19, 66-62, 67-21, 52-68, 68+5, 54-24, 71-46, 59+24, 73+19, 74-26, 61+45, 66+61, 77-41, 78-63, 77-22, 80+28, 80+50, 82-13, 83+35, 84-60, 85-64, 81-86, 85+43, 88+39, 77+64, 35*36, 91+54, 92-44, 92+37, 93*91, 95*92, 93+48, 96*97, 39*40, 99-93, 99+54, 101-44, 102*99, 103*101, 102+48, 104*105, 22*23, 106*107, 107+54, 109-44, 108*110, 111*109, 110+48, 113-1, 112*113, 32*33, 115*116, 116+54, 118-114, 118-44, 117*120, 121*118, 120+48, 122*123, 124*94, 125*119, 126*30, 127*28, 98*46, 128*100, 57*31, 131*56, 130*60, 132*58, 129*61, 133*64, 134*62, 53*41, 136*51, 137*63, 135*52, 138*24, 139*71, 141*73, 144*72, 143*67, 146*68, 65*70, 147*80, 78*59, 145*90, 140*82, 142*83, 149*84, 86*37, 154*88, 148*89, 153*25, 151*26, 156*76, 75*42, 160*49, 162*87, 152*69, 163*79, 157*18, 81-52, 167+6, 164*15, 165*5, 30-15, 171-3, 150*172, 43+31, 66+59, 175+14, 176*174, 30-25, 166*178, 35-23, 180-17, 181*20, 82-33, 183*12, 60-30, 184*185, 71-40, 187*39, 188*7, 33-18, 44*190, 186*182, 192*168, 179*182, 193*177, 194*155, 169*168, 196*161, 195*173, 197*155, 198*158, 159*177, 202*161, 203*200, 170*173, 205*158, 206*200, 191*34, 208*208, 209*189, 210*210, 211*199, 212*212, 213*201, 214*214, 215*204, 216*216, 217*207';\r\n\r\ntic\r\nSLP = SLP_calc(SLP_str);\r\ntoc\r\nSLP_exp='402387260077093773543702433923003985719374864210714632543799910429938512398629020592044208486969404800479988610197196058631666872994808558901323829669944590997424504087073759918823627727188732519779505950995276120874975462497043601418278094646496291056393887437886487337119181045825783647849977012476632889835955735432513185323958463075557409114262417474349347553428646576611667797396668820291207379143853719588249808126867838374559731746136085379534524221586593201928090878297308431392844403281231558611036976801357304216168747609675871348312025478589320767169132448426236131412508780208000261683151027341827977704784635868170164365024153691398281264810213092761244896359928705114964975419909342221566832572080821333186116811553615836546984046708975602900950537616475847728421889679646244945160765353408198901385442487984959953319101723355556602139450399736280750137837615307127761926849034352625200015888535147331611702103968175921510907788019393178114194545257223865541461062892187960223838971476088506276862967146674697562911234082439208160153780889893964518263243671616762179168909779911903754031274622289988005195444414282012187361745992642956581746628302955570299024324153181617210465832036786906117260158783520751516284225540265170483304226143974286933061690897968482590125458327168226458066526769958652682272807075781391858178889652208164348344825993266043367660176999612831860788386150279465955131156552036093988180612138558600301435694527224206344631797460594682573103790084024432438465657245014402821885252470935190620929023136493273497565513958720559654228749774011413346962715422845862377387538230483865688976461927383814900140767310446640259899490222221765904339901886018566526485061799702356193897017860040811889729918311021171229845901641921068884387121855646124960798722908519296819372388642614839657382291123125024186649353143970137428531926649875337218940694281434118520158014123344828015051399694290153483077644569099073152433278288269864602789864321139083506217095002597389863554277196742822248757586765752344220207573630569498825087968928162753848863396909959826280956121450994871701244516461260379029309120889086942028510640182154399457156805941872748998094254742173582401063677404595741785160829230135358081840096996372524230560855903700624271243416909004153690105933983835777939410970027753472000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000';\r\n\r\n\r\nassert(strcmp(SLP,SLP_exp),sprintf('%s\\n',SLP));\r\n\r\n\r\n\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":7,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-01T21:37:49.000Z","updated_at":"2013-06-01T22:56:28.000Z","published_at":"2013-06-01T22:56:28.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe SLP Calculation Challenge is to implement SLP sequences and output the result as a string. SLP, Straight Line Program, creates a value based upon two pointers of prior values and one of the operators [ + - * ]. The first value in the sequence is 1 and is assigned pointer 0 (zero based indexing).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e SLP_sequence (string)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e SLP_value (string)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e SLP_sequence='0+0,1+1,2*2,3+1,3*4,5-3,6+0,5*1,5*7,9+8,9*10';\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eProduces:( Index 0 is 1 )\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e2, 4, 16, 18, 288, 272, 273, 576, 78624, 79200, 6227020800\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e '6227020800'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe complexity to this Challenge is some solutions will exceed 2^64 and have eps\u0026gt;1.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ePrior to viewing the link: What number is 2568 digits long and has 249 trailing zeros?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.azspcs.net/\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eAl's Contests\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2417,"title":"all possible subsets of set","description":"Given a vector, return all possible subsets of the vector in a cell array. Properties of basic set theory is assumed to be valid here e.g no repeated element, empty-set being a subset etc. Consider NaNs to be equal for this problem. Within a subset, sort all the elements. Any NaNs should appear at the beginning in the sorted subset.\r\nExample:\r\nInput : x=[1 2 3];\r\nOutput: y ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]};","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 143.867px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 71.9333px; transform-origin: 407px 71.9333px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 63px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 31.5px; text-align: left; transform-origin: 384px 31.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 371.5px 8px; transform-origin: 371.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven a vector, return all possible subsets of the vector in a cell array. Properties of basic set theory is assumed to be valid here e.g no repeated element, empty-set being a subset etc. Consider NaNs to be equal for this problem. Within a subset, sort all the elements. Any NaNs should appear at the beginning in the sorted subset.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 28.5px 8px; transform-origin: 28.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eExample:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 40.8667px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 404px 20.4333px; transform-origin: 404px 20.4333px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 72px 8.5px; tab-size: 4; transform-origin: 72px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003eInput : x=[1 2 3];\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 216px 8.5px; tab-size: 4; transform-origin: 216px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003eOutput: y ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]};\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = [1 1 1];\r\ny  ={[],[1]};\r\nassert(isequal(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[1];\r\ny={[],[1]};\r\nassert(isequal(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[1 2 3];\r\ny ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]};\r\nassert(isequal(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[1 1 2 3];\r\ny ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]};\r\nassert(isequal(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[];\r\ny={[]};\r\nassert(isequal(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[nan nan]; % matlab considers them non-unique, but i don't\r\ny={[],[nan]};\r\nassert(isequalwithequalnans(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[nan nan 1];\r\ny={[],[nan],[1],[nan 1]};\r\nassert(isequalwithequalnans(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[1 3 2];\r\ny ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]};\r\nassert(isequal(your_fcn_name(x),y))","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":17203,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":26,"test_suite_updated_at":"2022-01-13T07:25:44.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2014-07-13T18:01:20.000Z","updated_at":"2026-01-01T14:12:50.000Z","published_at":"2014-07-13T18:02:22.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a vector, return all possible subsets of the vector in a cell array. Properties of basic set theory is assumed to be valid here e.g no repeated element, empty-set being a subset etc. Consider NaNs to be equal for this problem. Within a subset, sort all the elements. Any NaNs should appear at the beginning in the sorted subset.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input : x=[1 2 3];\\nOutput: y ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]};]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":3053,"title":"stem and leaf plot","description":"A stem-and-leaf display is a device for presenting quantitative data in a graphical  format, similar to a histogram, to assist in visualizing the shape of a distribution. \r\n\r\nExample \r\n\r\nGiven some series of numbers like this\r\n\r\n 12 15 14 23 24 26 28 33 38 39\r\n\r\nyou should convert it this one \r\n\r\n 1 | 245\r\n 2 | 3468\r\n 3 | 389\r\n\r\n input is  {'12','15','14','23','24','26','28','33','38','39'}\r\n\r\n output will be {'1245','23468','3389'}\r\n\r\nNote: input numbers must be sorted increasing order.\r\n","description_html":"\u003cp\u003eA stem-and-leaf display is a device for presenting quantitative data in a graphical  format, similar to a histogram, to assist in visualizing the shape of a distribution.\u003c/p\u003e\u003cp\u003eExample\u003c/p\u003e\u003cp\u003eGiven some series of numbers like this\u003c/p\u003e\u003cpre\u003e 12 15 14 23 24 26 28 33 38 39\u003c/pre\u003e\u003cp\u003eyou should convert it this one\u003c/p\u003e\u003cpre\u003e 1 | 245\r\n 2 | 3468\r\n 3 | 389\u003c/pre\u003e\u003cpre\u003e input is  {'12','15','14','23','24','26','28','33','38','39'}\u003c/pre\u003e\u003cpre\u003e output will be {'1245','23468','3389'}\u003c/pre\u003e\u003cp\u003eNote: input numbers must be sorted increasing order.\u003c/p\u003e","function_template":"function y = stem_leaf(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = {'12','15','14','23','24','26','28','33','38','39'}\r\ny_correct = {'1245','23468','3389'}\r\nassert(isequal(stem_leaf(x),y_correct))\r\n%%\r\nx = {'00','11','02','33','32','31','34','14'}\r\ny_correct = {'002','114','31234'}\r\nassert(isequal(stem_leaf(x),y_correct))\r\n%%\r\nx = {'04','13','12','11','14','16','17','18','13','12','11','14','16','17','18'}\r\ny_correct = {'04','111223344667788'}\r\nassert(isequal(stem_leaf(x),y_correct))\r\n%%\r\nx = {'23','123','125','105','24','106'}\r\ny_correct = {'234','1056','1235'}\r\nassert(isequal(stem_leaf(x),y_correct))\r\n%%\r\nx = {'01','12','33','45','54','67'};\r\ny_correct = x;\r\nassert(isequal(stem_leaf(x),y_correct))\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":8,"created_by":22216,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":18,"test_suite_updated_at":"2015-02-28T14:42:59.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2015-02-28T14:25:33.000Z","updated_at":"2026-02-21T13:37:12.000Z","published_at":"2015-02-28T14:42:59.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA stem-and-leaf display is a device for presenting quantitative data in a graphical format, similar to a histogram, to assist in visualizing the shape of a distribution.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven some series of numbers like this\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ 12 15 14 23 24 26 28 33 38 39]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eyou should convert it this one\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ 1 | 245\\n 2 | 3468\\n 3 | 389\\n\\n input is  {'12','15','14','23','24','26','28','33','38','39'}\\n\\n output will be {'1245','23468','3389'}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNote: input numbers must be sorted increasing order.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43674,"title":"String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array","description":"\u003chttp://www.mathworks.com/help/matlab/characters-and-strings.html String array\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a cell array of character vectors. Your job is to convert the cell array to a string array, which stores the same pieces of text data. \r\n\r\nThe \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values Part 1\u003e assuming no missing values in the input cell array is a good starting point. In this problem, the missing values for cell array of character vectors, denoted *{''}* (i.e., cell of empty character), need to be converted to the missing values for string arrays, denoted *\u003c missing \u003e*. \r\n\r\nRefer to the R2016b documentation for more information on the \u003chttp://www.mathworks.com/help/matlab/ref/ismissing.html?=ismissing missing values for different data types\u003e. \r\n \r\n\r\nExample: \r\n\r\n  \r\n\r\n  Input:\r\n  \u003e\u003e x = {'I', '', '', 'MATLAB'}\r\n  x =\r\n    1×4 cell array\r\n      'I'    ''    ''    'MATLAB'\r\n\r\n  Output:\r\n  \u003e\u003e y = string('I'); y(4) = 'MATLAB'\r\n  y = \r\n    1×4 string array\r\n      \"I\"    \u003cmissing\u003e    \u003cmissing\u003e    \"MATLAB\"\r\n\r\nRelated Problems in this series:\r\n\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values   String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003e \r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values   String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003e \r\n* String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values   String Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003e\r\n","description_html":"\u003cp\u003e\u003ca href = \"http://www.mathworks.com/help/matlab/characters-and-strings.html\"\u003eString array\u003c/a\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a cell array of character vectors. Your job is to convert the cell array to a string array, which stores the same pieces of text data.\u003c/p\u003e\u003cp\u003eThe \u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\"\u003ePart 1\u003c/a\u003e assuming no missing values in the input cell array is a good starting point. In this problem, the missing values for cell array of character vectors, denoted \u003cb\u003e{''}\u003c/b\u003e (i.e., cell of empty character), need to be converted to the missing values for string arrays, denoted \u003cb\u003e\u0026lt; missing \u0026gt;\u003c/b\u003e.\u003c/p\u003e\u003cp\u003eRefer to the R2016b documentation for more information on the \u003ca href = \"http://www.mathworks.com/help/matlab/ref/ismissing.html?=ismissing\"\u003emissing values for different data types\u003c/a\u003e.\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eInput:\r\n\u0026gt;\u0026gt; x = {'I', '', '', 'MATLAB'}\r\nx =\r\n  1×4 cell array\r\n    'I'    ''    ''    'MATLAB'\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eOutput:\r\n\u0026gt;\u0026gt; y = string('I'); y(4) = 'MATLAB'\r\ny = \r\n  1×4 string array\r\n    \"I\"    \u0026lt;missing\u0026gt;    \u0026lt;missing\u0026gt;    \"MATLAB\"\r\n\u003c/pre\u003e\u003cp\u003eRelated Problems in this series:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\"\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\"\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/a\u003e\u003c/li\u003e\u003cli\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values\"\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/a\u003e\u003c/li\u003e\u003c/ul\u003e","function_template":"function y = cell2str(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = {'I','love','MATLAB'};\r\ny_correct = string({'I','love','MATLAB'});\r\nassert(isequal(cell2str(x),y_correct))\r\n\r\n%%\r\nx = {'I', '', '', 'MATLAB'};\r\ny_correct = string('I'); y_correct(4) = 'MATLAB';\r\nassert(isequaln(cell2str(x),y_correct))\r\n\r\n%%\r\nx = {'I',   '',      'MATLAB'\r\n     '',    'love',  'MATLAB'\r\n     'I',   'love',  ''      };\r\ny_correct = [string('I'),  string(NaN),     string('MATLAB')\r\n             string(NaN),  string('love'),  string('MATLAB')\r\n             string('I'),  string('love'),  string(NaN)     ];\r\nassert(isequaln(cell2str(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":5,"comments_count":2,"created_by":12569,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":123,"test_suite_updated_at":"2016-11-23T06:30:05.000Z","rescore_all_solutions":false,"group_id":16,"created_at":"2016-11-21T04:09:03.000Z","updated_at":"2026-03-10T20:06:28.000Z","published_at":"2016-11-22T21:16:06.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/help/matlab/characters-and-strings.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a cell array of character vectors. Your job is to convert the cell array to a string array, which stores the same pieces of text data.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003ePart 1\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e assuming no missing values in the input cell array is a good starting point. In this problem, the missing values for cell array of character vectors, denoted\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e{''}\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e (i.e., cell of empty character), need to be converted to the missing values for string arrays, denoted\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e\u0026lt; missing \u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRefer to the R2016b documentation for more information on the\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/help/matlab/ref/ismissing.html?=ismissing\\\"\u003e\u003cw:r\u003e\u003cw:t\u003emissing values for different data types\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input:\\n\u003e\u003e x = {'I', '', '', 'MATLAB'}\\nx =\\n  1×4 cell array\\n    'I'    ''    ''    'MATLAB'\\n\\nOutput:\\n\u003e\u003e y = string('I'); y(4) = 'MATLAB'\\ny = \\n  1×4 string array\\n    \\\"I\\\"    \u003cmissing\u003e    \u003cmissing\u003e    \\\"MATLAB\\\"]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated Problems in this series:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1899,"title":"Convert a Cell Array into an Array","description":"Given a square cell array:\r\n\r\n x = {'01', '56'; '234', '789'};\r\n\r\nreturn a single character array: \r\n\r\n y = '0123456789'\r\n","description_html":"\u003cp\u003eGiven a square cell array:\u003c/p\u003e\u003cpre\u003e x = {'01', '56'; '234', '789'};\u003c/pre\u003e\u003cp\u003ereturn a single character array:\u003c/p\u003e\u003cpre\u003e y = '0123456789'\u003c/pre\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx={'01', '56'; '234', '789'};\r\ny_correct = '0123456789';\r\nassert(isequal(your_fcn_name(x),y_correct));\r\n\r\n%%\r\nx={'' 'a' '1'; 'AA' 'BB' 'CC'; 'dog' 'cat' 'car'};\r\ny_correct='AAdogaBBcat1CCcar';\r\nassert(isequal(your_fcn_name(x),y_correct));\r\n\r\n%%\r\nx={'We' 'do' ;'ll ' 'ne.'};\r\ny_correct='Well done.';\r\nassert(isequal(your_fcn_name(x),y_correct));\r\n","published":true,"deleted":false,"likes_count":9,"comments_count":1,"created_by":17471,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":2204,"test_suite_updated_at":"2013-09-27T18:48:54.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-27T18:42:17.000Z","updated_at":"2026-04-07T19:07:57.000Z","published_at":"2013-09-27T18:48:54.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a square cell array:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ x = {'01', '56'; '234', '789'};]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ereturn a single character array:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ y = '0123456789']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2300,"title":"Natural numbers in string form","description":"Create a cell array of strings containing the first n natural numbers.  Slightly harder than it seems like it should be.\r\nExample\r\n \u003e\u003e y = naturalnumbers(4)\r\n y =\r\n   '1'   '2'   '3'   '4'","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 122.3px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 406.5px 61.15px; transform-origin: 406.5px 61.15px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 217.192px 7.81667px; transform-origin: 217.192px 7.81667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eCreate a cell array of strings containing the first n natural numbers. \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2.23333px 7.81667px; transform-origin: 2.23333px 7.81667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 23.45px 7.81667px; transform-origin: 23.45px 7.81667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-style: italic; \"\u003eSlightly\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 123.95px 7.81667px; transform-origin: 123.95px 7.81667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e harder than it seems like it should be.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 28.475px 7.81667px; transform-origin: 28.475px 7.81667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eExample\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 61.3px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 403.5px 30.65px; transform-origin: 403.5px 30.65px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1.11667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1.11667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1.11667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1.11667px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.5px 10.2167px; text-wrap-mode: nowrap; transform-origin: 403.5px 10.2167px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 97.7083px 8.375px; tab-size: 4; transform-origin: 97.7083px 8.375px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e \u0026gt;\u0026gt; y = naturalnumbers(4)\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1.11667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1.11667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1.11667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1.11667px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.5px 10.2167px; text-wrap-mode: nowrap; transform-origin: 403.5px 10.2167px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 15.6333px 8.375px; tab-size: 4; transform-origin: 15.6333px 8.375px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e y =\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1.11667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1.11667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1.11667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1.11667px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.5px 10.2167px; text-wrap-mode: nowrap; transform-origin: 403.5px 10.2167px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 93.8px 8.375px; tab-size: 4; transform-origin: 93.8px 8.375px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 11.725px 8.375px; transform-origin: 11.725px 8.375px; \"\u003e   \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 11.725px 8.375px; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 11.725px 8.375px; \"\u003e'1'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 11.725px 8.375px; transform-origin: 11.725px 8.375px; \"\u003e   \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 11.725px 8.375px; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 11.725px 8.375px; \"\u003e'2'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 11.725px 8.375px; transform-origin: 11.725px 8.375px; \"\u003e   \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 11.725px 8.375px; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 11.725px 8.375px; \"\u003e'3'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 11.725px 8.375px; transform-origin: 11.725px 8.375px; \"\u003e   \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 11.725px 8.375px; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 11.725px 8.375px; \"\u003e'4'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = naturalnumbers(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nfiletext = fileread('naturalnumbers.m');\r\nillegal = contains(filetext, 'assignin') || contains(filetext, 'regexp')\r\nassert(~illegal)\r\n\r\n%%\r\nx = 1;\r\ny_correct = {'1'};\r\nassert(isequal(naturalnumbers(x),y_correct))\r\n\r\n%%\r\nx = 11;\r\ny_correct = {'1','2','3','4','5','6','7','8','9','10','11'};\r\nassert(isequal(naturalnumbers(x),y_correct))\r\n\r\n%%\r\nx = randi(20);\r\ny = {'1','2','3','4','5','6','7','8','9','10',...\r\n    '11','12','13','14','15','16','17','18','19','20'};\r\ny_correct = y(1:x);\r\nassert(isequal(naturalnumbers(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":9,"comments_count":3,"created_by":4609,"edited_by":223089,"edited_at":"2024-07-04T14:45:50.000Z","deleted_by":null,"deleted_at":null,"solvers_count":1863,"test_suite_updated_at":"2024-07-04T14:45:50.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2014-04-29T23:13:42.000Z","updated_at":"2026-04-07T19:14:54.000Z","published_at":"2014-04-29T23:13:42.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCreate a cell array of strings containing the first n natural numbers. \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eSlightly\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e harder than it seems like it should be.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ \u003e\u003e y = naturalnumbers(4)\\n y =\\n   '1'   '2'   '3'   '4']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":1044,"title":"Create a Cell array of month-end date strings within a date range","description":"This is a variation of \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range Get an array of month-ends by T.D.\u003e where the result is now a cell array of date strings.\r\n\r\nFor example:\r\n\r\n  date_start = datenum('10 Nov 2010');\r\n  date_end   = datenum('10 Feb 2011');\r\n  dates_me   = month_ends(date_start, date_end); \r\n  dates_me\r\n  dates_me = \r\n     '30-Nov-2010' '31-Dec-2010' '31-Jan-2011'\r\n  \r\nThis is the improved proper usage of Cell-array version of \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1040-create-a-cell-array-of-month-end-date-strings-within-a-provided-date-range Challenge 1040\u003e.\r\nThanks to J.G. for identifying the proper usage.\r\n\r\n","description_html":"\u003cp\u003eThis is a variation of \u003ca href=\"http://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range\"\u003eGet an array of month-ends by T.D.\u003c/a\u003e where the result is now a cell array of date strings.\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003edate_start = datenum('10 Nov 2010');\r\ndate_end   = datenum('10 Feb 2011');\r\ndates_me   = month_ends(date_start, date_end); \r\ndates_me\r\ndates_me = \r\n   '30-Nov-2010' '31-Dec-2010' '31-Jan-2011'\r\n\u003c/pre\u003e\u003cp\u003eThis is the improved proper usage of Cell-array version of \u003ca href=\"http://www.mathworks.com/matlabcentral/cody/problems/1040-create-a-cell-array-of-month-end-date-strings-within-a-provided-date-range\"\u003eChallenge 1040\u003c/a\u003e.\r\nThanks to J.G. for identifying the proper usage.\u003c/p\u003e","function_template":"function y = month_ends(date_start,date_end)\r\n y{1}=datestr(date_start,'dd-mmm-yyyy');\r\n y{2}=datestr(date_start,'dd-mmm-yyyy');\r\n  \r\nend","test_suite":"%%\r\nd1 = datenum('10-Nov-2010');\r\nd2 = datenum('10-Feb-2011');\r\ny_correct = {'30-Nov-2010','31-Dec-2010','31-Jan-2011'};\r\ndates_me=month_ends(d1,d2)\r\nassert(isequal(dates_me,y_correct))\r\n\r\n%%\r\nd1 = datenum('31-Jan-2000');\r\nd2 = datenum('10-Apr-2000');\r\ny_correct = {'31-Jan-2000','29-Feb-2000','31-Mar-2000'};\r\ndates_me=month_ends(d1,d2)\r\nassert(isequal(dates_me,y_correct))\r\n\r\n%%\r\nd1 = datenum('05-Feb-2012');\r\nd2 = datenum('10-Jul-2012');\r\ny_correct = {'29-Feb-2012','31-Mar-2012','30-Apr-2012','31-May-2012','30-Jun-2012'};\r\n\r\ndates_me=month_ends(d1,d2)\r\nassert(isequal(dates_me,y_correct))\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":79,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2012-11-21T02:41:42.000Z","updated_at":"2026-04-07T15:51:14.000Z","published_at":"2012-11-21T02:45:43.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis is a variation of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGet an array of month-ends by T.D.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e where the result is now a cell array of date strings.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[date_start = datenum('10 Nov 2010');\\ndate_end   = datenum('10 Feb 2011');\\ndates_me   = month_ends(date_start, date_end); \\ndates_me\\ndates_me = \\n   '30-Nov-2010' '31-Dec-2010' '31-Jan-2011']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis is the improved proper usage of Cell-array version of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1040-create-a-cell-array-of-month-end-date-strings-within-a-provided-date-range\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eChallenge 1040\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Thanks to J.G. for identifying the proper usage.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":60341,"title":"Family Savings Analysis","description":"Given the bank accounts of individuals defined by a list of tuples containing the last name, first name, and savings:\r\naccounts = {\r\n    'Smith', 'John', 2500;\r\n    'Johnson', 'Fred', 5000;\r\n    'Williams', 'Nicolas', 10000;\r\n    'Brown', 'Phillip', 1250;\r\n    'Jones', 'Alice', 4530;\r\n    'Garcia', 'Ahmed', 2200;\r\n    'Brown', 'Bernard', 0;\r\n    'Johnson', 'Steven', 1670;\r\n    'Brown', 'Sylvia', 3;\r\n    'Williams', 'Bernard', 300000\r\n};\r\nwe consider that individuals with the same last name (first entry of each tuple) are from the same family. If an individual has no attributed income, we consider their savings as zero (as for Bernard Brown).\r\nWrite a function that returns the name of the family with the highest strictly positive savings along with the amount of their savings.\r\nSpecial cases to consider:\r\nIf multiple families have the same highest positive savings, the function should return all these families (test 6).\r\nIf no family has strictly positive savings, the function should return an empty string for the family name(s) and 0 for the savings (test 5).","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none solid rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 480.562px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 387.5px 240.275px; transform-origin: 387.5px 240.281px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 364.5px 10.5px; text-align: left; transform-origin: 364.5px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven the bank accounts of individuals defined by a list of tuples containing the last name, first name, and savings:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 245.25px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 384.5px 122.625px; transform-origin: 384.5px 122.625px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003eaccounts = {\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Smith'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'John'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 2500;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Johnson'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Fred'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 5000;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Williams'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Nicolas'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 10000;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Brown'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Phillip'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 1250;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Jones'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Alice'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 4530;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Garcia'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Ahmed'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 2200;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Brown'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Bernard'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 0;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Johnson'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Steven'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 1670;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Brown'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Sylvia'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 3;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Williams'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Bernard'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 300000\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e};\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 10px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 10px; perspective-origin: 364.5px 21px; text-align: left; transform-origin: 364.5px 21px; white-space-collapse: preserve; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003ewe consider that individuals with the same last name (first entry of each tuple) are from the same family. If an individual has no attributed income, we consider their savings as zero (as for Bernard Brown).\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 364.5px 21px; text-align: left; transform-origin: 364.5px 21px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eWrite a function that returns the name of the family with the highest strictly positive savings along with the amount of their savings.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 364.5px 10.5px; text-align: left; transform-origin: 364.5px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eSpecial cases to consider:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003col style=\"block-size: 61.3125px; font-family: Helvetica, Arial, sans-serif; list-style-type: decimal; margin-block-end: 20px; margin-block-start: 10px; margin-bottom: 20px; margin-top: 10px; perspective-origin: 371.5px 30.65px; transform-origin: 371.5px 30.6562px; margin-top: 10px; margin-bottom: 20px; \"\u003e\u003cli style=\"block-size: 20.4375px; display: list-item; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-start: 56px; margin-left: 56px; margin-top: 0px; perspective-origin: 343.5px 10.2125px; text-align: left; transform-origin: 343.5px 10.2188px; white-space-collapse: preserve; margin-left: 56px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-inline-start: 0px; margin-left: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eIf multiple families have the same highest positive savings, the function should return all these families (test 6).\u003c/span\u003e\u003c/span\u003e\u003c/li\u003e\u003cli style=\"block-size: 40.875px; display: list-item; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-start: 56px; margin-left: 56px; margin-top: 0px; perspective-origin: 343.5px 20.4375px; text-align: left; transform-origin: 343.5px 20.4375px; white-space-collapse: preserve; margin-left: 56px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-inline-start: 0px; margin-left: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eIf no family has strictly positive savings, the function should return an empty string for the family name(s) and 0 for the savings (test 5).\u003c/span\u003e\u003c/span\u003e\u003c/li\u003e\u003c/ol\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function [max_family, max_savings] = family_max_savings(accounts)\r\n    \r\nend","test_suite":"%% Test: Example\r\naccounts = {\r\n    'Smith', 'John', 2500;\r\n    'Johnson', 'Fred', 5000;\r\n    'Williams', 'Nicolas', 10000;\r\n    'Brown', 'Phillip', 1250;\r\n    'Jones', 'Alice', 4530;\r\n    'Garcia', 'Ahmed', 2200;\r\n    'Brown', 'Bernard', 0;\r\n    'Johnson', 'Steven', 1670;\r\n    'Brown', 'Sylvia', 3;\r\n    'Williams', 'Bernard', 300000\r\n};\r\n[max_family, max_savings]  = family_max_savings(accounts);\r\nmax_family_correct = 'Williams';\r\nmax_savings_correct = 310000;\r\nassert(isequal(max_family, max_family_correct) \u0026\u0026 isequal(max_savings, max_savings_correct));\r\n\r\n%% Test: Zero savings for one family\r\naccounts3 = {\r\n    'Smith', 'John', 2500;\r\n    'Johnson', 'Fred', 5000;\r\n    'Williams', 'Nicolas', 10000;\r\n    'Brown', 'Phillip', 0; % Zero savings for Brown family\r\n};\r\n[max_family3, max_savings3] = family_max_savings(accounts3);\r\nmax_family_correct3 = 'Williams';  \r\nmax_savings_correct3 = 10000;\r\nassert(isequal(max_family3, max_family_correct3) \u0026\u0026 isequal(max_savings3, max_savings_correct3));\r\n\r\n\r\n%% Test: Highest savings in one family\r\naccounts1 = {\r\n    'Smith', 'John', 2500;\r\n    'Johnson', 'Fred', 5000;\r\n    'Williams', 'Nicolas', 10000;\r\n};\r\n[max_family1, max_savings1] = family_max_savings(accounts1);\r\nmax_family_correct1 = 'Williams';\r\nmax_savings_correct1 = 10000;\r\nassert(isequal(max_family1, max_family_correct1) \u0026\u0026 isequal(max_savings1, max_savings_correct1));\r\n\r\n\r\n%% Test (random): Highest savings in one family with 2 members\r\nn = randi([1,10])*10000;\r\naccounts1 = {\r\n    'Smith', 'John', 2500;\r\n    'Johnson', 'Fred', 5000;\r\n    'Williams', 'Nicolas', 10000;\r\n    'Williams', 'Steve', n;\r\n};\r\n[max_family1, max_savings1] = family_max_savings(accounts1);\r\nmax_family_correct1 = 'Williams';\r\nmax_savings_correct1 = 10000+n;\r\nassert(isequal(max_family1, max_family_correct1) \u0026\u0026 isequal(max_savings1, max_savings_correct1));\r\n\r\n\r\n%% Test: All families have zero savings\r\naccounts4 = {\r\n    'Smith', 'John', 0;\r\n    'Johnson', 'Fred', 0;\r\n    'Williams', 'Nicolas', 0;\r\n    'Brown', 'Phillip', 0;\r\n};\r\n[max_family4, max_savings4] = family_max_savings(accounts4);\r\nmax_family4\r\nmax_savings4\r\nmax_family_correct4 = ''; % No family has savings\r\nmax_savings_correct4 = 0;\r\nassert(isequal(max_family4, max_family_correct4) \u0026\u0026 isequal(max_savings4, max_savings_correct4));\r\n\r\n\r\n%% Test: Equal savings in multiple families\r\naccounts2 = {\r\n    'Smith', 'John', 2500;\r\n    'Johnson', 'Fred', 5000;\r\n    'Williams', 'Nicolas', 10000;\r\n    'Brown', 'Phillip', 10000;\r\n};\r\n[max_family2, max_savings2] = family_max_savings(accounts2)\r\nmax_family_correct2 = {'Williams', 'Brown'}; % Multiple families can have the same savings\r\nmax_savings_correct2 = 10000;\r\nassert(isequal(sort(max_family2), sort(max_family_correct2)) \u0026\u0026 isequal(max_savings2, max_savings_correct2));\r\n\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":1,"created_by":208445,"edited_by":208445,"edited_at":"2024-05-20T07:27:58.000Z","deleted_by":null,"deleted_at":null,"solvers_count":6,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2024-05-19T07:43:53.000Z","updated_at":"2024-05-20T07:27:58.000Z","published_at":"2024-05-19T07:43:53.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven the bank accounts of individuals defined by a list of tuples containing the last name, first name, and savings:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[accounts = {\\n    'Smith', 'John', 2500;\\n    'Johnson', 'Fred', 5000;\\n    'Williams', 'Nicolas', 10000;\\n    'Brown', 'Phillip', 1250;\\n    'Jones', 'Alice', 4530;\\n    'Garcia', 'Ahmed', 2200;\\n    'Brown', 'Bernard', 0;\\n    'Johnson', 'Steven', 1670;\\n    'Brown', 'Sylvia', 3;\\n    'Williams', 'Bernard', 300000\\n};]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ewe consider that individuals with the same last name (first entry of each tuple) are from the same family. If an individual has no attributed income, we consider their savings as zero (as for Bernard Brown).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a function that returns the name of the family with the highest strictly positive savings along with the amount of their savings.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSpecial cases to consider:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"2\\\"/\u003e\u003c/w:numPr\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf multiple families have the same highest positive savings, the function should return all these families (test 6).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"2\\\"/\u003e\u003c/w:numPr\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf no family has strictly positive savings, the function should return an empty string for the family name(s) and 0 for the savings (test 5).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":2699,"title":"From a given cell array of strings, extract the non-unique strings.","description":"We are given a cell array of strings C. From this cell array we require to extract the subset of non-unique strings, returning the results as a column vector. \r\n\r\nFor example, if C = {'A', 'B', 'C', 'A', 'B'}, then the strings 'A' and 'B' are repeated, so the result should be {'A'; 'B'}. The order of occurrence of the strings should be preserved, so {'B'; 'A'} would not be an acceptable solution. The order of appearance of the strings is defined using the column-major format. For example, if C = {'Jack', 'Bob'; 'Dave', 'Amanda'} then the order of the strings is 'Jack', 'Dave', 'Bob', 'Amanda'.","description_html":"\u003cp\u003eWe are given a cell array of strings C. From this cell array we require to extract the subset of non-unique strings, returning the results as a column vector.\u003c/p\u003e\u003cp\u003eFor example, if C = {'A', 'B', 'C', 'A', 'B'}, then the strings 'A' and 'B' are repeated, so the result should be {'A'; 'B'}. The order of occurrence of the strings should be preserved, so {'B'; 'A'} would not be an acceptable solution. The order of appearance of the strings is defined using the column-major format. For example, if C = {'Jack', 'Bob'; 'Dave', 'Amanda'} then the order of the strings is 'Jack', 'Dave', 'Bob', 'Amanda'.\u003c/p\u003e","function_template":"function repeatedStrings = extractRepeatedStrings(C)\r\n  \r\n\r\n\r\nend","test_suite":"%%\r\nC = {'Ken'; 'GianCarlo'; 'Ken'; 'GianCarlo'; 'Bob'; 'Ken'; 'Sonia'};\r\nrepeatedStrings = {'Ken'; 'GianCarlo'};\r\nassert(isequal(extractRepeatedStrings(C), repeatedStrings))\r\n\r\n%%\r\nC = {'A', 'B', 'C', 'A', 'B'};\r\nrepeatedStrings = {'A'; 'B'};\r\nassert(isequal(extractRepeatedStrings(C), repeatedStrings))\r\n\r\n%%\r\nC = {'B', 'A', 'C', 'B', 'A'};\r\nrepeatedStrings = {'B'; 'A'};\r\nassert(isequal(extractRepeatedStrings(C), repeatedStrings))\r\n\r\n%%\r\nC = {'A', 'B', 'C'};\r\nrepeatedStrings = cell.empty(0, 1);\r\nassert(isequal(extractRepeatedStrings(C), repeatedStrings))\r\n\r\n%%\r\nC = {'A', 'B'; 'C', 'A'; 'B', 'A'};\r\nrepeatedStrings = {'A'; 'B'};\r\nassert(isequal(extractRepeatedStrings(C), repeatedStrings))\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":2328,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":54,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":32,"created_at":"2014-12-01T16:49:18.000Z","updated_at":"2026-04-08T09:02:27.000Z","published_at":"2014-12-01T16:49:55.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWe are given a cell array of strings C. From this cell array we require to extract the subset of non-unique strings, returning the results as a column vector.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example, if C = {'A', 'B', 'C', 'A', 'B'}, then the strings 'A' and 'B' are repeated, so the result should be {'A'; 'B'}. The order of occurrence of the strings should be preserved, so {'B'; 'A'} would not be an acceptable solution. The order of appearance of the strings is defined using the column-major format. For example, if C = {'Jack', 'Bob'; 'Dave', 'Amanda'} then the order of the strings is 'Jack', 'Dave', 'Bob', 'Amanda'.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1966,"title":"Kaggle: Reverse Game of Life - Single Move to One Cell Case","description":"\u003chttp://www.kaggle.com/c/conway-s-reverse-game-of-life Kaggle's Conway's Reverse Game of Life\u003e contest inspires this Single Reverse step in Life challenge. The kaggle contest runs from Oct-14-2013 thru Mar-02-2014. References: \u003chttp://mathworld.wolfram.com/GameofLife.html Game of Life at Wolfram\u003e. \u003chttp://en.wikipedia.org/wiki/Conway%27s_Game_of_Life Wiki Life\u003e.\r\n\r\n\r\n  1. Any live cell with fewer than two live neighbors dies, as if caused by under-population.\r\n  2. Any live cell with two or three live neighbors lives on to the next generation.\r\n  3. Any live cell with more than three live neighbors dies, as if by overcrowding.\r\n  4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.\r\n5. No wrap around. Beyond edge is zero. Eight Neighbors.\r\n\r\n\r\n\r\nFind all the 4x4 Life matrices that upon one evolution produce a single living cell. This is a single evolution reversal set. The 4x4 gets appended by a ring of zeros for processing. The single living cell may be anywhere in the final 6x6 matrix, but none are expected to occur in the outer ring for a valid solution.\r\n\r\n*Input:* None\r\n\r\n*Output:* Cell array of unique 4x4 matrices that evolve to a single cell\r\n\r\n*Scoring:* 600 - (Number of valid unique 4x4 matrices)\r\n\r\n*Examples:*  A few valid matrices that produce a single cell\r\n\r\n  0000  0010  1101\r\n  0001  1000  1110\r\n  0000  0000  0100\r\n  0101  0110  1001","description_html":"\u003cp\u003e\u003ca href = \"http://www.kaggle.com/c/conway-s-reverse-game-of-life\"\u003eKaggle's Conway's Reverse Game of Life\u003c/a\u003e contest inspires this Single Reverse step in Life challenge. The kaggle contest runs from Oct-14-2013 thru Mar-02-2014. References: \u003ca href = \"http://mathworld.wolfram.com/GameofLife.html\"\u003eGame of Life at Wolfram\u003c/a\u003e. \u003ca href = \"http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life\"\u003eWiki Life\u003c/a\u003e.\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e1. Any live cell with fewer than two live neighbors dies, as if caused by under-population.\r\n2. Any live cell with two or three live neighbors lives on to the next generation.\r\n3. Any live cell with more than three live neighbors dies, as if by overcrowding.\r\n4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.\r\n5. No wrap around. Beyond edge is zero. Eight Neighbors.\r\n\u003c/pre\u003e\u003cp\u003eFind all the 4x4 Life matrices that upon one evolution produce a single living cell. This is a single evolution reversal set. The 4x4 gets appended by a ring of zeros for processing. The single living cell may be anywhere in the final 6x6 matrix, but none are expected to occur in the outer ring for a valid solution.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e None\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Cell array of unique 4x4 matrices that evolve to a single cell\u003c/p\u003e\u003cp\u003e\u003cb\u003eScoring:\u003c/b\u003e 600 - (Number of valid unique 4x4 matrices)\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e  A few valid matrices that produce a single cell\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e0000  0010  1101\r\n0001  1000  1110\r\n0000  0000  0100\r\n0101  0110  1001\r\n\u003c/pre\u003e","function_template":"function mcell=Life\r\n  mcell{1}=zeros(4);\r\nend","test_suite":"%%\r\nassignin('caller','score',200);\r\n\r\n%%\r\n[mcell] = Life;\r\n\r\n[nr,nc]=size(mcell);\r\n% check for uniqueness\r\nvalid=1;\r\ntic\r\nfor k=1:nc-1\r\n  mk=mcell{k};\r\n for p=k+1:nc\r\n  mp=mcell{p};\r\n  mkp=mk==mp;\r\n  if all(mkp(:))\r\n   valid=0;\r\n  end\r\n end\r\nend\r\nassert(valid==1,sprintf('Not all unique solutions'));\r\ntoc\r\n\r\n% run an evolution and verify\r\ntic\r\nfor k=1:nc\r\n  m=mcell{k};\r\n  m=[zeros(1,6);zeros(4,1) m zeros(4,1);zeros(1,6)];\r\n  mc=conv2(m,[1 1 1;1 0 1;1 1 1],'same');\r\n  m=~(mc\u003c2 | mc\u003e3) \u0026 ((m \u0026 mc==2) | (m \u0026 mc==3) | (~m \u0026 mc==3)); \r\n  assert(isequal(nnz(m),1),sprintf('Non-Single survivor solution'))\r\nend\r\ntoc\r\nassignin('caller','score',min(200,max(0,600-nc)));\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":3,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":25,"test_suite_updated_at":"2019-07-16T14:11:36.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-10-31T02:08:53.000Z","updated_at":"2026-02-13T15:19:14.000Z","published_at":"2013-10-31T03:12:32.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.kaggle.com/c/conway-s-reverse-game-of-life\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eKaggle's Conway's Reverse Game of Life\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e contest inspires this Single Reverse step in Life challenge. The kaggle contest runs from Oct-14-2013 thru Mar-02-2014. References:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://mathworld.wolfram.com/GameofLife.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGame of Life at Wolfram\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eWiki Life\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[1. Any live cell with fewer than two live neighbors dies, as if caused by under-population.\\n2. Any live cell with two or three live neighbors lives on to the next generation.\\n3. Any live cell with more than three live neighbors dies, as if by overcrowding.\\n4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.\\n5. No wrap around. Beyond edge is zero. Eight Neighbors.]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFind all the 4x4 Life matrices that upon one evolution produce a single living cell. This is a single evolution reversal set. The 4x4 gets appended by a ring of zeros for processing. The single living cell may be anywhere in the final 6x6 matrix, but none are expected to occur in the outer ring for a valid solution.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e None\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Cell array of unique 4x4 matrices that evolve to a single cell\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eScoring:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e 600 - (Number of valid unique 4x4 matrices)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e A few valid matrices that produce a single cell\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[0000  0010  1101\\n0001  1000  1110\\n0000  0000  0100\\n0101  0110  1001]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1198,"title":"Handle to an array of functions","description":"Given a cell array of functions that operate on scalars, it is required to return a function handle to process a vector of values applying the functions successively (the first function operates on x, the second function operates on the resulting output, etc.).\r\n\r\nExample:\r\n\r\n \u003e\u003e f{1}=@(x) x^2;\r\n\r\n \u003e\u003e f{2}=@(x) x+3;\r\n\r\n \u003e\u003e f{3}=@(x) x/2;\r\n\r\n \u003e\u003e g=cf(f);\r\n\r\n \u003e\u003e x=[1 2 3];\r\n\r\n \u003e\u003e g(x)\r\n\r\n ans =\r\n\r\n     2.0000    3.5000    6.0000\r\n ","description_html":"\u003cp\u003eGiven a cell array of functions that operate on scalars, it is required to return a function handle to process a vector of values applying the functions successively (the first function operates on x, the second function operates on the resulting output, etc.).\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cpre\u003e \u003e\u003e f{1}=@(x) x^2;\u003c/pre\u003e\u003cpre\u003e \u003e\u003e f{2}=@(x) x+3;\u003c/pre\u003e\u003cpre\u003e \u003e\u003e f{3}=@(x) x/2;\u003c/pre\u003e\u003cpre\u003e \u003e\u003e g=cf(f);\u003c/pre\u003e\u003cpre\u003e \u003e\u003e x=[1 2 3];\u003c/pre\u003e\u003cpre\u003e \u003e\u003e g(x)\u003c/pre\u003e\u003cpre\u003e ans =\u003c/pre\u003e\u003cpre\u003e     2.0000    3.5000    6.0000\u003c/pre\u003e","function_template":"function y = cf(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nf{1}=@(x) x^2;\r\nf{2}=@(x) x+3;\r\nf{3}=@(x) x/2;\r\ng=cf(f);\r\nx=[1 2 3];\r\ny_correct = [2 3.5 6];\r\nassert(isequal(g(x),y_correct))\r\n%%\r\nf{1}=@(x) x^0.5;\r\nf{2}=@(x) x-1;\r\nf{3}=@(x) x^2;\r\nf{4}=@(x) x/3;\r\ng=cf(f);\r\nx=[ 16 49 100];\r\ny_correct = [3 12 27];\r\nassert(isequal(g(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":6,"comments_count":1,"created_by":3399,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":62,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-01-11T18:06:01.000Z","updated_at":"2026-04-08T13:56:36.000Z","published_at":"2013-01-11T18:06:25.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a cell array of functions that operate on scalars, it is required to return a function handle to process a vector of values applying the functions successively (the first function operates on x, the second function operates on the resulting output, etc.).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ \u003e\u003e f{1}=@(x) x^2;\\n\\n \u003e\u003e f{2}=@(x) x+3;\\n\\n \u003e\u003e f{3}=@(x) x/2;\\n\\n \u003e\u003e g=cf(f);\\n\\n \u003e\u003e x=[1 2 3];\\n\\n \u003e\u003e g(x)\\n\\n ans =\\n\\n     2.0000    3.5000    6.0000]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43671,"title":"Words Count: A Cell Array Approach","description":"Given an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\\n), arrange the unique words alphabetically in a cell array of character vectors (formerly called \u003chttps://www.mathworks.com/help/matlab/matlab_prog/cell-arrays-of-strings.html cell array of strings\u003e) and calculate the histogram count of every unique word.\r\n\r\nAssumptions:\r\n\r\n# Case is insensitive, e.g., WORDS and words are treated as the same word, and you may return in the output cell array either the uppercase or lowercase.\r\n# Punctuation marks are limited only to comma (,), period (.), colon (:), semi-colon (;), question mark (?), and exclamation mark (!).\r\n\r\nFor example, given the input txt as a character vector,\r\n\r\n  txt = 'I love MATLAB and Cody, but I don''t like trivial matlab problems on cody.';\r\n\r\nthe outputs should be\r\n\r\n  words = {'and';'but';'Cody';'don''t';'I';'like';'love';'MATLAB';...\r\n           'on';'problems';'trivial'};\r\n  count = [1; 1; 2; 1; 2; 1; 1; 2; 1; 1; 1];\r\n\r\nHint: The cell array of strings approach is the dual of the string array approach, i.e., things that can be done via the \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43670-words-count-a-string-array-approach string arrays approach\u003e can also be done using the cell array approach. \r\n\r\nRelated problems in this series:\r\n\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43670-words-count-a-string-array-approach Words Count: A String Array Approach\u003e\r\n* Words Count: A Cell Array Approach\r\n","description_html":"\u003cp\u003eGiven an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\\n), arrange the unique words alphabetically in a cell array of character vectors (formerly called \u003ca href = \"https://www.mathworks.com/help/matlab/matlab_prog/cell-arrays-of-strings.html\"\u003ecell array of strings\u003c/a\u003e) and calculate the histogram count of every unique word.\u003c/p\u003e\u003cp\u003eAssumptions:\u003c/p\u003e\u003col\u003e\u003cli\u003eCase is insensitive, e.g., WORDS and words are treated as the same word, and you may return in the output cell array either the uppercase or lowercase.\u003c/li\u003e\u003cli\u003ePunctuation marks are limited only to comma (,), period (.), colon (:), semi-colon (;), question mark (?), and exclamation mark (!).\u003c/li\u003e\u003c/ol\u003e\u003cp\u003eFor example, given the input txt as a character vector,\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003etxt = 'I love MATLAB and Cody, but I don''t like trivial matlab problems on cody.';\r\n\u003c/pre\u003e\u003cp\u003ethe outputs should be\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ewords = {'and';'but';'Cody';'don''t';'I';'like';'love';'MATLAB';...\r\n         'on';'problems';'trivial'};\r\ncount = [1; 1; 2; 1; 2; 1; 1; 2; 1; 1; 1];\r\n\u003c/pre\u003e\u003cp\u003eHint: The cell array of strings approach is the dual of the string array approach, i.e., things that can be done via the \u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43670-words-count-a-string-array-approach\"\u003estring arrays approach\u003c/a\u003e can also be done using the cell array approach.\u003c/p\u003e\u003cp\u003eRelated problems in this series:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43670-words-count-a-string-array-approach\"\u003eWords Count: A String Array Approach\u003c/a\u003e\u003c/li\u003e\u003cli\u003eWords Count: A Cell Array Approach\u003c/li\u003e\u003c/ul\u003e","function_template":"function [words,count] = wordscount(txt)\r\n  words = txt;\r\n  count = 1;\r\nend","test_suite":"%%\r\ntxt = 'I love MATLAB and Cody, but I don''t like trivial matlab problems on cody.';\r\nwords = {'and';'but';'Cody';'don''t';'I';'like';'love';'MATLAB';'on';'problems';'trivial'};\r\ncount = [1; 1; 2; 1; 2; 1; 1; 2; 1; 1; 1];\r\n[words1,count1] = wordscount(txt);\r\nassert(isequal(lower(words1),lower(words))\u0026isequal(count,count1))\r\n\r\n%%\r\ntxt = sprintf('I love MATLAB and Cody, but I don''t like trivial matlab problems on cody.\\n\\nUnfortunately, there are too many trivial problems on Cody.');\r\nwords = {'and';'are';'but';'cody';'don''t';'I';'like';'love';'many';'matlab';'on';'problems';'there';'too';'trivial';'unfortunately'};\r\ncount = [1; 1; 1; 3; 1; 2; 1; 1; 1; 2; 2; 2; 1; 1; 2; 1];\r\n[words1,count1] = wordscount(txt);\r\nassert(isequal(lower(words1),lower(words))\u0026isequal(count,count1))\r\n\r\n%%\r\ntxt = ['What is Cody? ',newline,' Cody is a MATLAB Central game', newline ...\r\n       'that expands your knowledge of MATLAB.',newline,...\r\n       'With Cody, you can:',newline, ...\r\n       'Solve problems related to MATLAB code;',newline, ...\r\n       'Find problems, solutions, and players;  ',newline, ...\r\n       'Use search directives to find content; ',newline, ...\r\n       'Challenge the community by contributing problems;',newline, ...\r\n       ' Comment on any problem or solution;',newline,...\r\n       'Like a problem or a solution; ',newline, ...\r\n       'Earn badges;',newline,newline, ...\r\n       'Play now!'];\r\nwords = {'a';'and';'any';'badges';'by';'can';'central';'challenge';'code';'cody';'comment';...\r\n         'community';'content';'contributing';'directives';'earn';'expands';'find';'game';...\r\n         'is';'knowledge';'like';'matlab';'now';'of';'on';'or';'play';'players';'problem';...\r\n         'problems';'related';'search';'solution';'solutions';'solve';'that';'the';'to';...\r\n         'use';'what';'with';'you';'your'};\r\ncount = [3;1;1;1;1;1;1;1;1;3;1;1;1;1;1;1;1;2;1;2;1;1;3;1;1;1;2;1;1;2;3;1;1;2;1;1;1;1;2;1;1;1;1;1];\r\n[words1,count1] = wordscount(txt);\r\nassert(isequal(lower(words1),lower(words))\u0026isequal(count,count1))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":12569,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":68,"test_suite_updated_at":"2016-12-02T06:03:05.000Z","rescore_all_solutions":false,"group_id":16,"created_at":"2016-11-20T07:04:31.000Z","updated_at":"2026-03-09T20:25:19.000Z","published_at":"2016-11-20T09:01:32.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\\\\n), arrange the unique words alphabetically in a cell array of character vectors (formerly called\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/help/matlab/matlab_prog/cell-arrays-of-strings.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003ecell array of strings\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e) and calculate the histogram count of every unique word.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAssumptions:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"2\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCase is insensitive, e.g., WORDS and words are treated as the same word, and you may return in the output cell array either the uppercase or lowercase.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"2\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ePunctuation marks are limited only to comma (,), period (.), colon (:), semi-colon (;), question mark (?), and exclamation mark (!).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example, given the input txt as a character vector,\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[txt = 'I love MATLAB and Cody, but I don''t like trivial matlab problems on cody.';]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ethe outputs should be\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[words = {'and';'but';'Cody';'don''t';'I';'like';'love';'MATLAB';...\\n         'on';'problems';'trivial'};\\ncount = [1; 1; 2; 1; 2; 1; 1; 2; 1; 1; 1];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eHint: The cell array of strings approach is the dual of the string array approach, i.e., things that can be done via the\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43670-words-count-a-string-array-approach\\\"\u003e\u003cw:r\u003e\u003cw:t\u003estring arrays approach\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e can also be done using the cell array approach.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated problems in this series:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43670-words-count-a-string-array-approach\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eWords Count: A String Array Approach\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWords Count: A Cell Array Approach\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":42291,"title":"GJam 2015 Rd1B: Counter Culture","description":"This Challenge is derived from \u003chttps://code.google.com/codejam/contest/8224486/dashboard#s=p0 GJam 2015 Rd 1B: Counter Culture\u003e. Fastest completion - 5 minutes.\r\n\r\nDetermine minimum sequence length to reach a number. Sequence starts at 1 and the next is either +1 or the number's reverse with trailing zeros removed. (eg 2300 is followed by 2301 or 32)\r\n\r\nInput: N, a value from 1 to 1,000,000\r\n\r\nOutput: L, minimum length of sequence to reach N\r\n\r\nExamples: Small Case 1\u003c=N\u003c=1000000\r\n\r\n  N=5,  L=5  [1 2 3 4 5] L=N is true thru 19\r\n  N=23, L=15 [1:12 21 22 23]\r\n\r\n\r\nTheory: The small case can be solved with brute force or semi-brute force using storage of past calculations. All values are processed at each depth level. Duplicates from [N+1 and flip] are purged. A fast reversal function is essential. Direct summation works well. The large case N limit is 1E14 making even semi-brute force with storage unlikely.\r\n\r\n\r\nAdditional GJam solutions can be found at \u003chttp://www.go-hero.net/jam/15 Example GJam Matlab solutions\u003e. Select Find Solutions, change Language to Matlab. The Test Suite, at the bottom, contains a full GJam Matlab solution.","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"https://code.google.com/codejam/contest/8224486/dashboard#s=p0\"\u003eGJam 2015 Rd 1B: Counter Culture\u003c/a\u003e. Fastest completion - 5 minutes.\u003c/p\u003e\u003cp\u003eDetermine minimum sequence length to reach a number. Sequence starts at 1 and the next is either +1 or the number's reverse with trailing zeros removed. (eg 2300 is followed by 2301 or 32)\u003c/p\u003e\u003cp\u003eInput: N, a value from 1 to 1,000,000\u003c/p\u003e\u003cp\u003eOutput: L, minimum length of sequence to reach N\u003c/p\u003e\u003cp\u003eExamples: Small Case 1\u0026lt;=N\u0026lt;=1000000\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eN=5,  L=5  [1 2 3 4 5] L=N is true thru 19\r\nN=23, L=15 [1:12 21 22 23]\r\n\u003c/pre\u003e\u003cp\u003eTheory: The small case can be solved with brute force or semi-brute force using storage of past calculations. All values are processed at each depth level. Duplicates from [N+1 and flip] are purged. A fast reversal function is essential. Direct summation works well. The large case N limit is 1E14 making even semi-brute force with storage unlikely.\u003c/p\u003e\u003cp\u003eAdditional GJam solutions can be found at \u003ca href = \"http://www.go-hero.net/jam/15\"\u003eExample GJam Matlab solutions\u003c/a\u003e. Select Find Solutions, change Language to Matlab. The Test Suite, at the bottom, contains a full GJam Matlab solution.\u003c/p\u003e","function_template":"function L = Counter_Culture(N)\r\n% N is value to be reached \r\n% L is minimum length of sequence to reach N\r\n% N=23  L=15  the sequence [1:12 21 22 23]\r\n% N=19 L=19 [1:19]\r\n  L=1;\r\nend","test_suite":"tic\r\n%%\r\nN=1;\r\nL=Counter_Culture(N);\r\nLexp=1;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=19;\r\nL=Counter_Culture(N);\r\nLexp=19;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=23;\r\nL=Counter_Culture(N);\r\nLexp=15;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1101;\r\nL=Counter_Culture(N);\r\nLexp=150;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=998999;\r\nL=Counter_Culture(N);\r\nLexp=3334;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=990000;\r\nL=Counter_Culture(N);\r\nLexp=3425;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10110;\r\nL=Counter_Culture(N);\r\nLexp=447;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11111;\r\nL=Counter_Culture(N);\r\nLexp=459;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999991;\r\nL=Counter_Culture(N);\r\nLexp=3426;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=512;\r\nL=Counter_Culture(N);\r\nLexp=46;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999899;\r\nL=Counter_Culture(N);\r\nLexp=3334;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1999;\r\nL=Counter_Culture(N);\r\nLexp=328;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11101;\r\nL=Counter_Culture(N);\r\nLexp=449;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=876543;\r\nL=Counter_Culture(N);\r\nLexp=2657;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=4;\r\nL=Counter_Culture(N);\r\nLexp=4;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=102;\r\nL=Counter_Culture(N);\r\nLexp=31;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11000;\r\nL=Counter_Culture(N);\r\nLexp=1337;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1998;\r\nL=Counter_Culture(N);\r\nLexp=327;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=900000;\r\nL=Counter_Culture(N);\r\nLexp=3434;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=131072;\r\nL=Counter_Culture(N);\r\nLexp=1639;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=524288;\r\nL=Counter_Culture(N);\r\nLexp=2149;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=20;\r\nL=Counter_Culture(N);\r\nLexp=20;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=789012;\r\nL=Counter_Culture(N);\r\nLexp=2435;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=200;\r\nL=Counter_Culture(N);\r\nLexp=129;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=109876;\r\nL=Counter_Culture(N);\r\nLexp=3213;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11100;\r\nL=Counter_Culture(N);\r\nLexp=448;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=262144;\r\nL=Counter_Culture(N);\r\nLexp=1842;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11;\r\nL=Counter_Culture(N);\r\nLexp=11;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1001;\r\nL=Counter_Culture(N);\r\nLexp=139;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=987654;\r\nL=Counter_Culture(N);\r\nLexp=2879;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999989;\r\nL=Counter_Culture(N);\r\nLexp=3424;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11011;\r\nL=Counter_Culture(N);\r\nLexp=359;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=4096;\r\nL=Counter_Culture(N);\r\nLexp=238;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=900001;\r\nL=Counter_Culture(N);\r\nLexp=1446;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=201;\r\nL=Counter_Culture(N);\r\nLexp=32;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=99001;\r\nL=Counter_Culture(N);\r\nLexp=437;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999999;\r\nL=Counter_Culture(N);\r\nLexp=3434;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999900;\r\nL=Counter_Culture(N);\r\nLexp=3335;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=901;\r\nL=Counter_Culture(N);\r\nLexp=39;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2201;\r\nL=Counter_Culture(N);\r\nLexp=161;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=90;\r\nL=Counter_Culture(N);\r\nLexp=28;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=101;\r\nL=Counter_Culture(N);\r\nLexp=30;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10111;\r\nL=Counter_Culture(N);\r\nLexp=448;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=31;\r\nL=Counter_Culture(N);\r\nLexp=14;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10;\r\nL=Counter_Culture(N);\r\nLexp=10;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10100;\r\nL=Counter_Culture(N);\r\nLexp=437;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999998;\r\nL=Counter_Culture(N);\r\nLexp=3433;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999000;\r\nL=Counter_Culture(N);\r\nLexp=3335;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=990001;\r\nL=Counter_Culture(N);\r\nLexp=1536;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=30;\r\nL=Counter_Culture(N);\r\nLexp=22;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=900;\r\nL=Counter_Culture(N);\r\nLexp=137;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=101001;\r\nL=Counter_Culture(N);\r\nLexp=1538;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999990;\r\nL=Counter_Culture(N);\r\nLexp=3425;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=989999;\r\nL=Counter_Culture(N);\r\nLexp=3424;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=21;\r\nL=Counter_Culture(N);\r\nLexp=13;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=9999;\r\nL=Counter_Culture(N);\r\nLexp=336;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=100001;\r\nL=Counter_Culture(N);\r\nLexp=1437;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10999;\r\nL=Counter_Culture(N);\r\nLexp=1336;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=100;\r\nL=Counter_Culture(N);\r\nLexp=29;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=91;\r\nL=Counter_Culture(N);\r\nLexp=20;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11010;\r\nL=Counter_Culture(N);\r\nLexp=358;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=29;\r\nL=Counter_Culture(N);\r\nLexp=21;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2001;\r\nL=Counter_Culture(N);\r\nLexp=141;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11110;\r\nL=Counter_Culture(N);\r\nLexp=458;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10001;\r\nL=Counter_Culture(N);\r\nLexp=338;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=9;\r\nL=Counter_Culture(N);\r\nLexp=9;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=101000;\r\nL=Counter_Culture(N);\r\nLexp=2436;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1000;\r\nL=Counter_Culture(N);\r\nLexp=138;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=19;\r\nL=Counter_Culture(N);\r\nLexp=19;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=12000;\r\nL=Counter_Culture(N);\r\nLexp=1348;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999;\r\nL=Counter_Culture(N);\r\nLexp=137;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=22;\r\nL=Counter_Culture(N);\r\nLexp=14;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1111;\r\nL=Counter_Culture(N);\r\nLexp=160;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=12001;\r\nL=Counter_Culture(N);\r\nLexp=359;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=12;\r\nL=Counter_Culture(N);\r\nLexp=12;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=99000;\r\nL=Counter_Culture(N);\r\nLexp=1426;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999001;\r\nL=Counter_Culture(N);\r\nLexp=2436;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=899999;\r\nL=Counter_Culture(N);\r\nLexp=3433;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10010;\r\nL=Counter_Culture(N);\r\nLexp=347;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10000;\r\nL=Counter_Culture(N);\r\nLexp=337;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10101;\r\nL=Counter_Culture(N);\r\nLexp=438;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2000;\r\nL=Counter_Culture(N);\r\nLexp=329;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=111;\r\nL=Counter_Culture(N);\r\nLexp=40;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999901;\r\nL=Counter_Culture(N);\r\nLexp=3336;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2101;\r\nL=Counter_Culture(N);\r\nLexp=151;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10011;\r\nL=Counter_Culture(N);\r\nLexp=348;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2002;\r\nL=Counter_Culture(N);\r\nLexp=142;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=32;\r\nL=Counter_Culture(N);\r\nLexp=15;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=110;\r\nL=Counter_Culture(N);\r\nLexp=39;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2100;\r\nL=Counter_Culture(N);\r\nLexp=240;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11001;\r\nL=Counter_Culture(N);\r\nLexp=349;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=99;\r\nL=Counter_Culture(N);\r\nLexp=28;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1100;\r\nL=Counter_Culture(N);\r\nLexp=238;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1099;\r\nL=Counter_Culture(N);\r\nLexp=237;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1000000;\r\nL=Counter_Culture(N);\r\nLexp=3435;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=100000;\r\nL=Counter_Culture(N);\r\nLexp=1436;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2200;\r\nL=Counter_Culture(N);\r\nLexp=250;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1110;\r\nL=Counter_Culture(N);\r\nLexp=159;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=432109;\r\nL=Counter_Culture(N);\r\nLexp=1779;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=199;\r\nL=Counter_Culture(N);\r\nLexp=128;\r\nassert(isequal(Lexp,L))\r\n%%\r\ntoc\r\n%%\r\n% function GJam_Rd1B_2015a\r\n% % \r\n% fn='A-small-practice.in';\r\n% [data] = read_file(fn); % \r\n% \r\n% fidG = fopen('A-small-practice.out', 'w');\r\n%  \r\n% tic\r\n% for i=1:size(data,2) % Cell array has J cols of cases\r\n%  L = Counter_Culture(data{i});\r\n%  fprintf(fidG,'Case #%i: %i\\n',i,L);\r\n%  fprintf('Case #%i: %i\\n',i,L); \r\n% end\r\n% toc\r\n% fclose(fidG);\r\n% end\r\n% \r\n% function depth=Counter_Culture(v)\r\n% % create all paths\r\n% persistent m mv maxdepth\r\n% if isempty(m)\r\n%     \r\n%  mv=zeros(1000000,1);\r\n%  m{1000000}=[]; % set cell array size to max possible\r\n%  for i=1:9\r\n%   m{i}=i;\r\n%   mv(i)=i; % place best depth into mv for repeated searches\r\n%  end\r\n%  maxdepth=9;\r\n% end\r\n% \r\n% if mv(v) % usage of persistent data\r\n%  depth=mv(v);\r\n%  return;\r\n% end\r\n% \r\n% \r\n% while 1\r\n%  mset=m{maxdepth}; % start with last set calculated\r\n%  maxdepth=maxdepth+1;\r\n%  msetn=mset+1;\r\n%  \r\n%  msetn=msetn(mv(msetn)==0);\r\n%  mv(msetn)=maxdepth;\r\n%  \r\n%  for i=1:length(mset)\r\n%   flipv=calc_flip(mset(i));\r\n%   if mv(flipv)==0 % new value\r\n%    mv(flipv)=maxdepth;\r\n%    msetn=[msetn flipv]; % add to list\r\n%   end\r\n%  end\r\n%  \r\n%  m{maxdepth}=msetn;\r\n%  \r\n%  if any(msetn==v)\r\n%   depth=maxdepth;\r\n%   return\r\n%  end\r\n%     \r\n% end % while\r\n% \r\n% end\r\n% \r\n% function vr=calc_flip(val)\r\n%  vr=0;\r\n%  while val\r\n%   v1=mod(val,10);\r\n%   vr=10*vr+v1;\r\n%   val=(val-v1)/10;\r\n%  end\r\n% end\r\n% \r\n% function [d] = read_file(fn)\r\n% d={};\r\n% fid=fopen(fn);\r\n% fgetl(fid); % Total Count ignore\r\n% ptr=0;\r\n% while ~feof(fid)\r\n%  ptr=ptr+1;\r\n%  v=str2num(fgetl(fid)); \r\n%  d{ptr}=v;\r\n% end % feof\r\n% fclose(fid);\r\n% end % read_file\r\n%%\r\ntoc","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":11,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2015-05-03T21:55:15.000Z","updated_at":"2025-11-20T19:05:41.000Z","published_at":"2015-05-03T22:36:16.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://code.google.com/codejam/contest/8224486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2015 Rd 1B: Counter Culture\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Fastest completion - 5 minutes.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eDetermine minimum sequence length to reach a number. Sequence starts at 1 and the next is either +1 or the number's reverse with trailing zeros removed. (eg 2300 is followed by 2301 or 32)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eInput: N, a value from 1 to 1,000,000\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput: L, minimum length of sequence to reach N\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExamples: Small Case 1\u0026lt;=N\u0026lt;=1000000\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[N=5,  L=5  [1 2 3 4 5] L=N is true thru 19\\nN=23, L=15 [1:12 21 22 23]]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eTheory: The small case can be solved with brute force or semi-brute force using storage of past calculations. All values are processed at each depth level. Duplicates from [N+1 and flip] are purged. A fast reversal function is essential. Direct summation works well. The large case N limit is 1E14 making even semi-brute force with storage unlikely.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAdditional GJam solutions can be found at\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.go-hero.net/jam/15\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eExample GJam Matlab solutions\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Select Find Solutions, change Language to Matlab. The Test Suite, at the bottom, contains a full GJam Matlab solution.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1392,"title":"Convert a cell-array of values to MATLAB source code","description":"The MATLAB interpreter loads your code and executes it using the Read-Evaluate-Print-Loop (see REPL).\r\nIn this problem you will go the opposite way; given an in-memory MATLAB cell-array can you convert it to legal MATLAB code?\r\ni.e. if you have the cell array,\r\nx={{'MLB',{'Red Sox','Yankees'},{'Rangers','Cardinals'}},{'NFL',{'Cowboys','Giants'},{'Patriots','49ers','Ravens'}}}\r\nwrite a function that returns the string,\r\ny = '{{''MLB'', {''Red Sox'', ''Yankees''}, {''Rangers'', ''Cardinals''}}, {''NFL'', {''Cowboys'', ''Giants''}, {''Patriots'', ''49ers'', ''Ravens''}}};'\r\nwhich on 'eval(y)' can reconstruct x.\r\nAlso specialize to handle multiple levels of cell-arrays, and mixed string/double types.","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 254.867px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 640.5px 127.433px; transform-origin: 640.5px 127.433px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 310px 8px; transform-origin: 310px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eThe MATLAB interpreter loads your code and executes it using the Read-Evaluate-Print-Loop (see\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"/#null\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003eREPL\u003c/span\u003e\u003c/span\u003e\u003c/a\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 4.5px 8px; transform-origin: 4.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e).\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 21px; text-align: left; transform-origin: 384px 21px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 376px 8px; transform-origin: 376px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eIn this problem you will go the opposite way; given an in-memory MATLAB cell-array can you convert it to legal MATLAB code?\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 90.5px 8px; transform-origin: 90.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003ei.e. if you have the cell array,\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 20.4333px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 637.5px 10.2167px; transform-origin: 637.5px 10.2167px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 464px 8.5px; tab-size: 4; transform-origin: 464px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 16px 8.5px; transform-origin: 16px 8.5px; \"\u003ex={{\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 20px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 20px 8.5px; \"\u003e'MLB'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 8px 8.5px; transform-origin: 8px 8.5px; \"\u003e,{\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 36px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 36px 8.5px; \"\u003e'Red Sox'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 4px 8.5px; transform-origin: 4px 8.5px; \"\u003e,\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 36px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 36px 8.5px; \"\u003e'Yankees'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 12px 8.5px; transform-origin: 12px 8.5px; \"\u003e},{\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 36px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 36px 8.5px; \"\u003e'Rangers'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 4px 8.5px; transform-origin: 4px 8.5px; \"\u003e,\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 44px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 44px 8.5px; \"\u003e'Cardinals'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 16px 8.5px; transform-origin: 16px 8.5px; \"\u003e}},{\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 20px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 20px 8.5px; \"\u003e'NFL'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 8px 8.5px; transform-origin: 8px 8.5px; \"\u003e,{\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 36px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 36px 8.5px; \"\u003e'Cowboys'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 4px 8.5px; transform-origin: 4px 8.5px; \"\u003e,\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 32px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 32px 8.5px; \"\u003e'Giants'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 12px 8.5px; transform-origin: 12px 8.5px; \"\u003e},{\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 40px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 40px 8.5px; \"\u003e'Patriots'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 4px 8.5px; transform-origin: 4px 8.5px; \"\u003e,\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 28px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 28px 8.5px; \"\u003e'49ers'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 4px 8.5px; transform-origin: 4px 8.5px; \"\u003e,\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 32px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 32px 8.5px; \"\u003e'Ravens'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 12px 8.5px; transform-origin: 12px 8.5px; \"\u003e}}}\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 10px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 10px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 119.5px 8px; transform-origin: 119.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003ewrite a function that returns the string,\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 20.4333px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 637.5px 10.2167px; transform-origin: 637.5px 10.2167px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 612px 8.5px; tab-size: 4; transform-origin: 612px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 16px 8.5px; transform-origin: 16px 8.5px; \"\u003ey = \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 596px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 596px 8.5px; \"\u003e'{{''MLB'', {''Red Sox'', ''Yankees''}, {''Rangers'', ''Cardinals''}}, {''NFL'', {''Cowboys'', ''Giants''}, {''Patriots'', ''49ers'', ''Ravens''}}};'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 10px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 10px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 27.5px 8px; transform-origin: 27.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003ewhich on\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 26.5px 8px; transform-origin: 26.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003e'eval(y)'\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 51px 8px; transform-origin: 51px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e can reconstruct\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 4px 8px; transform-origin: 4px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003ex\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 266.5px 8px; transform-origin: 266.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eAlso specialize to handle multiple levels of cell-arrays, and mixed string/double types.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function strv = cell2str( cellV )\r\n  strv = %num2str( cellV )\r\nend","test_suite":"%%\r\nx = {'foo','bar',5,10, {'carrr','starr',{'rita','fereira'}}};\r\nq = ['{''foo'', ''bar'', 5, 10, {''carrr'', ''starr'', '...\r\n     '{''rita'', ''fereira''}}};']\r\nassert(isequal(cell2str(x),q))\r\n\r\n%%\r\nx = {1,2,3,4};\r\nq = '{1, 2, 3, 4};';\r\nassert(isequal(cell2str(x),q))\r\n\r\n%%\r\nx = {{'MLB',{'Red Sox','Yankees'},{'Rangers','Cardinals'}},{'NFL',{'Cowboys','Giants'},{'Patriots','49ers','Ravens'}}};\r\nq = '{{''MLB'', {''Red Sox'', ''Yankees''}, {''Rangers'', ''Cardinals''}}, {''NFL'', {''Cowboys'', ''Giants''}, {''Patriots'', ''49ers'', ''Ravens''}}};';\r\nassert(isequal(cell2str(x),q))\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3378,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":10,"test_suite_updated_at":"2021-09-04T09:36:30.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-03-26T14:11:35.000Z","updated_at":"2021-09-04T09:36:30.000Z","published_at":"2013-03-26T14:39:09.000Z","restored_at":"2022-02-16T22:10:14.000Z","restored_by":null,"spam":false,"simulink":false,"admin_reviewed":true,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe MATLAB interpreter loads your code and executes it using the Read-Evaluate-Print-Loop (see\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eREPL\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIn this problem you will go the opposite way; given an in-memory MATLAB cell-array can you convert it to legal MATLAB code?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ei.e. if you have the cell array,\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[x={{'MLB',{'Red Sox','Yankees'},{'Rangers','Cardinals'}},{'NFL',{'Cowboys','Giants'},{'Patriots','49ers','Ravens'}}}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ewrite a function that returns the string,\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[y = '{{''MLB'', {''Red Sox'', ''Yankees''}, {''Rangers'', ''Cardinals''}}, {''NFL'', {''Cowboys'', ''Giants''}, {''Patriots'', ''49ers'', ''Ravens''}}};']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ewhich on\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e'eval(y)'\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e can reconstruct\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ex\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAlso specialize to handle multiple levels of cell-arrays, and mixed string/double types.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":1876,"title":"GJam: 2013 China Event: Name Sorting","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2933486/dashboard#s=p2 GJam 2013 China Moist\u003e. The problem is Codified by making the input a cell array of names.\r\n\r\nThe Challenge involves a serial card sorting machine that places card (i+1) in its best position, 1 thru i, if the name on card (i+1) is lexicographically greater than the name on card (i). The machine continues thru the end of the deck. The machine then restarts at card 1 until the order is correct. The output to return is the number of card insertions. The character values follow ascii codes with Space \u003c A:Z \u003c a:z. A shorter name is less than an extended name (Ab\u003cAbe)\r\n\r\n*Input:* names  ( cell array of names )\r\n\r\n*Output:* Insertions  (count of card insertions required)\r\n\r\n*Competition Summary:*  Best Time 6 minutes, 793/1049 correct\r\n\r\n*Example:*\r\n\r\nnames={'Stuart Beckingham' 'Rinata Araslanova' 'Jeremy Abbott' 'Daniil Barantsev' };\r\n\r\nClearly takes 3 card insertions. Start (SRJD)  moves [(RSJD) (JRSD) (DJRS)]","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2933486/dashboard#s=p2\"\u003eGJam 2013 China Moist\u003c/a\u003e. The problem is Codified by making the input a cell array of names.\u003c/p\u003e\u003cp\u003eThe Challenge involves a serial card sorting machine that places card (i+1) in its best position, 1 thru i, if the name on card (i+1) is lexicographically greater than the name on card (i). The machine continues thru the end of the deck. The machine then restarts at card 1 until the order is correct. The output to return is the number of card insertions. The character values follow ascii codes with Space \u0026lt; A:Z \u0026lt; a:z. A shorter name is less than an extended name (Ab\u0026lt;Abe)\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e names  ( cell array of names )\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Insertions  (count of card insertions required)\u003c/p\u003e\u003cp\u003e\u003cb\u003eCompetition Summary:\u003c/b\u003e  Best Time 6 minutes, 793/1049 correct\u003c/p\u003e\u003cp\u003e\u003cb\u003eExample:\u003c/b\u003e\u003c/p\u003e\u003cp\u003enames={'Stuart Beckingham' 'Rinata Araslanova' 'Jeremy Abbott' 'Daniil Barantsev' };\u003c/p\u003e\u003cp\u003eClearly takes 3 card insertions. Start (SRJD)  moves [(RSJD) (JRSD) (DJRS)]\u003c/p\u003e","function_template":"function cost=sort_cost(names)\r\n% names is a cell array\r\n  cost=0;\r\nend","test_suite":"%%\r\ntic\r\nnames={'Daniil Barantsev' 'Maria Balaba' 'Krisztina Barta' 'Patrice Archetto' 'Petra Arponen' 'Giovanna Almeida Leto' 'Tanith Belbin' 'Melania Albea' 'Lubov Bakirova' 'Mao Asada' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Fedor Andreev' 'Alessia Aureli' };\r\nexp=1;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Jeremy Allen' 'Vazgen Azrojan' 'Zabato Bebe' 'An Ni' 'Vladimir Belomoin' 'Julia Beloglazova' 'Irina Babenko' 'Vitali Baranov' 'Vadim Akolzin' 'Mai Asada' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Vitali Babkin' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Mary Grace Baldo' 'Dmitri Antoni' 'Andrew Bassi' 'Tanith Belbin' 'Emilia Ahsan' 'Adrian Alvarado' 'Michael Bahoric' 'Vitali Babkin' 'Charlotte Belair' 'Annie Bellemare' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Vitali Baranov' 'William Beier' 'Charlotte Belair' 'Andrei Bekh' 'Letizia Alessandrini' 'Oksana Baiul' 'Felicia Beck' 'Margaret Albia' 'Johanna Allik' 'Christiane Berger' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Vadim Akolzin' 'Dmitri Antoni' 'Petra Arponen' 'Felicia Beck' 'Letizia Alessandrini' 'Marina Anissina' 'Alisa Allapach' 'An Yang' 'Tobias Bayer' 'Imola Antal' };\r\nexp=9;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Stuart Beckingham' 'Ryan Arnold' 'Vazgen Azrojan' 'Oksana Baiul' 'Laurent Alvarez' 'Vitali Baranov' 'Tayfun Anar' 'Andrei Bekh' 'Evan Bates' 'Ilia Averbukh' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alibel Alegre' 'Alla Beknazarova' 'Andrew Bassi' 'Megan Allely' 'Elladj Balde' 'Tatiana Basova' 'Olga Akimova' 'Marta Andrade' 'Mao Asada' 'Becky Bereswill' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Laurent Alvarez' 'Mary Grace Baldo' 'Julia Abolina' 'Krisztina Barta' 'Marina Aganina' 'Becky Bereswill' 'Olga Akimova' 'Vazgen Azrojan' 'Elena Berezhnaya' 'Yann Abback' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Mao Asada' 'Vitali Baranov' 'Rinata Araslanova' 'Margaret Albia' 'Giovanna Almeida Leto' 'Hanna Asadchaya' 'Andrew Bassi' 'Marina Anissina' 'Tayfun Anar' 'Birce Atabey' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Stuart Beckingham' 'Rinata Araslanova' 'Jeremy Abbott' 'Daniil Barantsev' };\r\nexp=3;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Marina Anissina' 'Valentina Anselmi' 'Spencer Barnes' 'Ivan Bariev' 'Miki Ando' 'Alexandra Baurina' 'Maria Balaba' 'Andrew Bassi' 'Imola Antal' 'Anastasia Belova' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Felicia Beck' 'William Beier' 'John Baldwin' 'Julia Beloglazova' 'Margaret Albia' 'Colette Appel' 'Maria Balaba' 'Olga Akimova' 'Daniil Barantsev' 'Sara Beikircher' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Petra Arponen' 'Christina Beier' 'Alexei Beletski' 'Tayfun Anar' 'Saulius Ambrulevicius' 'Patrice Archetto' 'Rinata Araslanova' 'Sofia Bardakov' 'Alisa Allapach' 'Nadine Ahmed' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Jill Bakker' 'Kevin Alves' 'Adrian Alvarado' 'Florent Amodio' 'Andrei Bekh' 'Alisa Agafonova' 'Gabor Balint' 'Giovanna Almeida Leto' 'Letizia Alessandrini' 'Oksana Baiul' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alisa Agafonova' 'Kevin Alves' 'Laurent Alvarez' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Miki Ando' 'Gloria Agogliati' 'An Yang' 'Felicia Beck' 'Tobias Bayer' 'Vitali Babkin' 'Andrei Bekh' 'Ivan Bariev' 'Melania Albea' 'Florent Amodio' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alla Beknazarova' 'Erica Archambault' 'Fedor Andreev' 'Felicia Beck' 'Irina Babenko' 'Krisztian Andraska' 'Mai Asada' 'Marina Aganina' 'Melania Albea' 'Vadim Akolzin' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Michael Bahoric' 'Evan Bates' 'Olga Akimova' 'Emilia Ahsan' 'Vitali Baranov' 'Erica Archambault' 'Charlotte Belair' 'Alexandra Baurina' 'Tayfun Anar' 'Vera Bazarova' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Zabato Bebe' 'Vera Bazarova' 'Spencer Barnes' 'Annie Bellemare' 'Krisztina Barta' 'Olga Akimova' 'Vadim Akolzin' 'Veronika Benesova' 'Adrian Alvarado' 'Alexander Abt' };\r\nexp=9;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Zabato Bebe' 'Gloria Agogliati' 'Elladj Balde' 'Colette Appel' 'An Yang' };\r\nexp=4;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Hanna Asadchaya' 'Ian Beharry' 'Julia Beloglazova' 'Michael Bahoric' 'Shizuka Arakawa' 'Spencer Barnes' 'Vera Bazarova' 'Vladimir Belomoin' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Emilia Ahsan' 'Alisa Allapach' 'Felicia Beck' 'Engin Ali Artan' 'Valentina Anselmi' 'Alexander Abt' 'Jill Bakker' 'Jody Annandale' 'Nina Bates' 'Irina Babenko' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Evan Bates' 'Sergei Baranov' 'Rie Arikawa' 'Florent Amodio' 'Nadine Ahmed' 'Alla Beknazarova' 'Sofia Bardakov' 'Alexander Abt' 'Birce Atabey' 'Charlotte Belair' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexander Abt' 'Charlotte Belair' 'Kristen Avis' 'Nadine Ahmed' 'Tanith Belbin' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Bogdan Berezenko' 'Veronika Benesova' 'Sarah Abitbol' 'Christiane Berger' 'Tayfun Anar' 'Giovanna Almeida Leto' 'Michael Bahoric' 'John Baldwin' 'Elladj Balde' 'Jill Bakker' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Elvis Stojko' 'Evgeni Plushenko' 'KristiYamaguchi' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Krisztian Andraska' 'Katarina Babalova' 'Annie Bellemare' 'Melania Albea' 'Petra Arponen' 'Irina Babenko' 'Johanna Allik' 'Sara Beikircher' 'Charlotte Belair' 'Miki Ando' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Oksana Baiul' 'MichelleKwan' };\r\nexp=1;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexei Beletski' 'Joelle Bastiaans' 'Alisa Allapach' 'Alisa Agafonova' 'Vladimir Belomoin' 'Letizia Alessandrini' 'Krisztina Barta' 'Becky Bereswill' 'Benjamin Agosto' 'Michael Bahoric' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Margaret Albia' 'Johanna Allik' 'Daniil Barantsev' 'Camilla Andersen' 'Andrei Bekh' 'Alla Beknazarova' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alisa Allapach' 'Andrew Bassi' 'Daniil Barantsev' 'Hanna Asadchaya' 'Imola Antal' 'Jeremy Abbott' 'Jill Bakker' 'Marina Anissina' 'Rinata Araslanova' 'Shizuka Arakawa' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Tayfun Anar' 'Rinata Araslanova' 'Nina Bates' 'Michael Bahoric' 'Julia Abolina' 'Jeremy Abbott' 'Ian Beharry' 'Engin Ali Artan' 'Colette Appel' 'Birce Atabey' };\r\nexp=9;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Melania Albea' 'Nadine Ahmed' 'Miki Ando' 'Alexei Beletski' 'Florent Amodio' 'Jake Bennett' 'Camilla Andersen' 'Jeremy Allen' 'Rie Arikawa' 'Kristen Avis' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Laurent Alvarez' 'Katarina Babalova' 'Shizuka Arakawa' 'Elladj Balde' 'Daniil Barantsev' 'Gabor Balint' 'Adrian Alvarado' 'Andrew Bassi' 'Anastasia Belova' 'Krisztina Barta' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexandra Baurina' 'Jake Bennett' 'Marina Aganina' 'Marina Anissina' 'Vadim Akolzin' 'William Beier' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Adrian Alvarado' 'Alisa Agafonova' 'Charlotte Belair' 'Evan Bates' 'Gloria Agogliati' 'Pascale Bergeron' 'Sarah Abitbol' 'Stuart Beckingham' 'Tayfun Anar' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Miguel Ballesteros' 'Julia Beloglazova' 'Eve Bentley' 'Spencer Barnes' 'Jeremy Allen' 'Megan Allely' 'Katarina Babalova' 'Birce Atabey' 'Jeremy Abbott' 'Vladimir Belomoin' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Engin Ali Artan' 'Christiane Berger' 'Petra Arponen' 'Veronika Benesova' 'Vera Bazarova' 'Andrew Bassi' 'Anastasia Belova' 'Kristen Avis' 'Margaret Albia' 'Alexei Beletski' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexandra Baurina' 'Gabor Balint' 'Emili Arm' 'Elena Berezhnaya' 'Tanith Belbin' 'Dmitri Antoni' 'Adrian Alvarado' 'Melania Albea' 'Andrew Bassi' 'Engin Ali Artan' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Gabor Balint' 'Imola Antal' 'Mao Asada' 'Jeremy Allen' 'Hanna Asadchaya' 'Charlotte Belair' 'Evan Bates' 'Alexei Beletski' 'William Beier' 'Michael Bahoric' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Giovanna Almeida Leto' 'Gabor Balint' 'Krisztian Andraska' 'Benjamin Agosto' 'Evan Bates' 'Maria Balaba' 'Marta Andrade' 'Ian Beharry' 'Tatiana Basova' 'Rie Arikawa' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexandra Baurina' 'Imola Antal' 'Evan Bates' 'Felicia Beck' 'Ian Beharry' 'Bogdan Berezenko' 'Becky Bereswill' 'Michael Bahoric' 'Tayfun Anar' 'Stuart Beckingham' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Charlotte Belair' 'An Yang' 'Paolo Bacchini' 'Olga Akimova' 'Vitali Baranov' 'Spencer Barnes' 'Valentina Anselmi' 'Annie Bellemare' 'Mary Grace Baldo' 'Ivan Bariev' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Katarina Babalova' 'Bogdan Berezenko' 'Marta Andrade' 'Vadim Akolzin' 'Spencer Barnes' 'Michael Bahoric' 'Krisztian Andraska' 'Alibel Alegre' 'Emilia Ahsan' 'Beril Bektas' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Birce Atabey' 'Anastasia Belova' 'Tobias Bayer' 'Kristen Avis' 'Rima Beliy' 'Andrew Bassi' 'Letizia Alessandrini' 'Alexei Beletski' 'Julia Abolina' 'Evan Bates' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Krisztian Andraska' 'Sarah Abitbol' 'Kristen Avis' 'Tayfun Anar' 'Vadim Akolzin' 'Letizia Alessandrini' 'Margaret Albia' 'Joelle Bastiaans' 'Pascale Bergeron' 'Elladj Balde' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Hanna Asadchaya' 'Johanna Allik' 'Nadine Ahmed' 'Sarah Abitbol' 'Elladj Balde' 'Jake Bennett' 'Saulius Ambrulevicius' 'Laurent Alvarez' 'Beril Bektas' 'Krisztina Barta' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Spencer Barnes' 'Shizuka Arakawa' 'Sara Beikircher' 'Ryan Arnold' 'Pascale Bergeron' 'Hanna Asadchaya' 'Bogdan Berezenko' 'Annie Bellemare' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Patrice Archetto' 'Vera Bazarova' 'Miki Ando' 'Beril Bektas' 'Rie Arikawa' 'Adrian Alvarado' 'Rima Beliy' 'Fedor Andreev' 'Megan Allely' 'Nina Bates' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexei Beletski' 'Letizia Alessandrini' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Sofia Bardakov' 'Julia Abolina' 'Tayfun Anar' 'Miguel Ballesteros' 'Daniil Barantsev' 'Elladj Balde' 'John Baldwin' 'Alisa Agafonova' 'Benjamin Agosto' 'Vera Bazarova' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Paolo Bacchini' 'Patrice Archetto' 'Anastasia Belova' 'Emili Arm' 'Ian Beharry' 'Evan Bates' 'Kevin Alves' 'Gabor Balint' 'Johanna Allik' 'Spencer Barnes' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Sergei Baranov' 'Mai Asada' 'Gabor Balint' 'Vazgen Azrojan' 'Christiane Berger' 'Alisa Allapach' 'Paolo Bacchini' 'An Yang' 'Lubov Bakirova' 'Stuart Beckingham' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Laurent Alvarez' 'Dmitri Antoni' 'Annie Bellemare' 'Veronika Benesova' 'Ivan Bariev' 'Emili Arm' 'An Yang' 'Colette Appel' 'Vitali Baranov' 'Fedor Andreev' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Birce Atabey' 'Camilla Andersen' 'Charlotte Belair' 'Daniil Barantsev' 'Krisztian Andraska' 'Mai Asada' 'Marina Aganina' 'Mary Grace Baldo' 'Shizuka Arakawa' 'Joelle Bastiaans' };\r\nexp=1;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Vitali Babkin' 'Colette Appel' 'Saulius Ambrulevicius' 'Fedor Andreev' 'Sofia Bardakov' 'Daniil Barantsev' 'Kevin Alves' 'Birce Atabey' 'Becky Bereswill' 'Letizia Alessandrini' };\r\nexp=9;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Ilia Averbukh' 'Jake Bennett' 'Julia Beloglazova' 'Petra Arponen' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Pascale Bergeron' 'Engin Ali Artan' 'Zabato Bebe' 'Shizuka Arakawa' 'Vazgen Azrojan' 'Elena Berezhnaya' 'Alisa Agafonova' 'Alisa Allapach' 'Laurent Alvarez' 'Marta Andrade' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Krisztina Barta' 'Marta Andrade' 'Andrei Bekh' 'Stuart Beckingham' 'Pascale Bergeron' 'Sara Beikircher' 'Ivan Bariev' 'Gabor Balint' 'Dmitri Antoni' 'Mao Asada' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Tanith Belbin' 'Marta Andrade' 'Zabato Bebe' 'Emilia Ahsan' 'Johanna Allik' 'Christina Beier' 'Alexander Abt' 'Shizuka Arakawa' 'Eve Bentley' 'Sara Beikircher' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Julia Abolina' 'Felicia Beck' 'Vadim Akolzin' 'Letizia Alessandrini' 'Gloria Agogliati' 'Olga Akimova' 'Christina Beier' 'Tayfun Anar' 'Adrian Alvarado' 'Elena Berezhnaya' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alessia Aureli' 'Mao Asada' 'Mai Asada' 'Nadine Ahmed' 'Jeremy Abbott' 'Gabor Balint' 'Marina Anissina' 'Birce Atabey' 'Miguel Ballesteros' 'Beril Bektas' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Birce Atabey' 'Emilia Ahsan' 'Felicia Beck' 'Jeremy Allen' 'Oksana Baiul' 'Alisa Agafonova' 'Florent Amodio' 'Joelle Bastiaans' 'Michael Bahoric' 'Saulius Ambrulevicius' };\r\nexp=4;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Benjamin Agosto' 'Vitali Babkin' 'Vitali Baranov' 'Bogdan Berezenko' 'Mai Asada' 'Beril Bektas' 'Hanna Asadchaya' 'Camilla Andersen' 'An Yang' 'Rie Arikawa' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Tobias Bayer' 'Joelle Bastiaans' 'Alibel Alegre' 'Annie Bellemare' 'Alessia Aureli' 'Emili Arm' 'Florent Amodio' 'Julia Beloglazova' 'Birce Atabey' 'Sofia Bardakov' };\r\nexp=9;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Giovanna Almeida Leto' 'Alexandra Baurina' 'Marta Andrade' 'Julia Beloglazova' 'Felicia Beck' 'Johanna Allik' 'Rima Beliy' 'Gloria Agogliati' 'Rie Arikawa' 'Eve Bentley' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Zabato Bebe' 'Katarina Babalova' 'Elena Berezhnaya' };\r\nexp=2;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Zabato Bebe' 'Adrian Alvarado' 'Rinata Araslanova' 'Vitali Baranov' 'Yann Abback' 'Emili Arm' 'Marina Anissina' 'Engin Ali Artan' 'Jeremy Abbott' 'Alessia Aureli' };\r\nexp=9;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Jill Bakker' 'John Baldwin' 'Laurent Alvarez' 'Erica Archambault' 'Emilia Ahsan' 'Johanna Allik' 'Hanna Asadchaya' 'Alexandra Baurina' 'Vitali Babkin' 'Rinata Araslanova' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Fedor Andreev' 'Shizuka Arakawa' 'Oksana Baiul' 'Kevin Alves' 'Jody Annandale' 'Christiane Berger' 'Sofia Bardakov' 'Emilia Ahsan' 'Ryan Arnold' 'Tayfun Anar' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Sergei Baranov' 'Saulius Ambrulevicius' 'Michael Bahoric' 'Evan Bates' 'An Ni' 'Tobias Bayer' 'Christina Beier' 'Maria Balaba' 'Emili Arm' 'Jody Annandale' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexei Beletski' 'Florent Amodio' 'Marina Anissina' 'Margaret Albia' 'Michael Bahoric' 'Miki Ando' 'Gloria Agogliati' 'Evan Bates' 'Becky Bereswill' 'Alexandra Baurina' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Jill Bakker' 'Emilia Ahsan' 'Ian Beharry' 'Paolo Bacchini' 'Maria Balaba' 'Giovanna Almeida Leto' 'An Yang' 'Michael Bahoric' 'Fedor Andreev' 'Alisa Agafonova' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Jill Bakker' 'Vazgen Azrojan' 'Sara Beikircher' 'Eve Bentley' 'Alla Beknazarova' 'Pascale Bergeron' 'Tatiana Basova' 'Elena Berezhnaya' 'Oksana Baiul' 'Zabato Bebe' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alessia Aureli' 'Alexei Beletski' 'Alisa Agafonova' 'Anastasia Belova' 'Colette Appel' 'Kevin Alves' 'Veronika Benesova' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Zabato Bebe' 'Tayfun Anar' 'Saulius Ambrulevicius' 'Miguel Ballesteros' 'Maria Balaba' 'Mai Asada' 'Lubov Bakirova' 'Edward Alton' 'Birce Atabey' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Miki Ando' 'Benjamin Agosto' 'Jeremy Allen' 'Adrian Alvarado' 'Alisa Allapach' 'Sofia Bardakov' 'Joelle Bastiaans' 'Margaret Albia' 'Erica Archambault' 'Kevin Alves' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Julia Beloglazova' 'Marina Aganina' 'Alisa Agafonova' 'Alexei Beletski' 'Camilla Andersen' 'Giovanna Almeida Leto' 'Colette Appel' 'Nina Bates' 'Tanith Belbin' 'Vitali Baranov' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Mao Asada' 'Dmitri Antoni' 'Marina Aganina' 'Annie Bellemare' 'Zabato Bebe' 'Andrew Bassi' 'Valentina Anselmi' 'Michael Bahoric' 'Jake Bennett' 'Mary Grace Baldo' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Shizuka Arakawa' 'Stuart Beckingham' 'Jeremy Abbott' 'Nadine Ahmed' 'Olga Akimova' 'Vadim Akolzin' 'Becky Bereswill' 'Charlotte Belair' 'Gabor Balint' 'Margaret Albia' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Beril Bektas' 'Stuart Beckingham' 'Jill Bakker' 'Daniil Barantsev' 'Sarah Abitbol' 'Benjamin Agosto' 'Andrei Bekh' 'Julia Beloglazova' 'Alibel Alegre' 'Nina Bates' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Charlotte Belair' 'Gloria Agogliati' 'Miguel Ballesteros' 'Hanna Asadchaya' 'Ilia Averbukh' 'Katarina Babalova' 'Tobias Bayer' 'Marta Andrade' 'Petra Arponen' 'Paolo Bacchini' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Evan Bates' 'Imola Antal' 'Eve Bentley' 'Miguel Ballesteros' 'Emili Arm' 'Rie Arikawa' 'Patrice Archetto' 'Julia Abolina' 'Jeremy Allen' 'Edward Alton' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Mary Grace Baldo' 'William Beier' 'Mai Asada' 'Vazgen Azrojan' 'Marina Anissina' 'Krisztian Andraska' 'Ivan Bariev' 'Tayfun Anar' 'Spencer Barnes' 'Maria Balaba' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Lubov Bakirova' 'Alexei Beletski' 'Mai Asada' 'William Beier' 'Shizuka Arakawa' 'Alla Beknazarova' 'Alessia Aureli' 'Miguel Ballesteros' 'Rinata Araslanova' 'Alexander Abt' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Vitali Baranov' 'Patrice Archetto' 'Charlotte Belair' 'Maria Balaba' 'Marina Anissina' 'Oksana Baiul' 'Alla Beknazarova' 'Shizuka Arakawa' 'Andrei Bekh' 'Zabato Bebe' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Krisztina Barta' 'Yann Abback' 'Johanna Allik' 'Andrew Bassi' 'Irina Babenko' 'Fedor Andreev' 'Emilia Ahsan' 'Mary Grace Baldo' 'Tanith Belbin' 'Spencer Barnes' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Shizuka Arakawa' 'Tanith Belbin' 'Hanna Asadchaya' 'Mai Asada' 'Krisztian Andraska' 'Gabor Balint' 'Sofia Bardakov' 'Gloria Agogliati' 'Valentina Anselmi' 'Alisa Agafonova' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Ilia Averbukh' 'Andrei Bekh' 'Imola Antal' 'Mao Asada' 'Colette Appel' 'Emili Arm' 'Irina Babenko' 'Sergei Baranov' 'Elena Berezhnaya' 'Julia Beloglazova' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Ryan Arnold' 'Rie Arikawa' 'Nina Bates' 'Katarina Babalova' 'Jeremy Allen' 'Charlotte Belair' 'Alexei Beletski' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Vladimir Belomoin' 'Melania Albea' 'Florent Amodio' 'An Ni' 'John Baldwin' 'Jeremy Abbott' 'Zabato Bebe' 'Olga Akimova' 'Petra Arponen' 'Jake Bennett' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alisa Agafonova' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Elladj Balde' 'Charlotte Belair' 'Bogdan Berezenko' 'Julia Abolina' 'Alexandra Baurina' 'Sergei Baranov' 'Megan Allely' 'Marta Andrade' 'Anastasia Belova' 'Ivan Bariev' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Gloria Agogliati' 'Alessia Aureli' 'Julia Abolina' 'Charlotte Belair' 'Andrew Bassi' 'Gabor Balint' 'Vladimir Belomoin' 'Tanith Belbin' 'Patrice Archetto' 'Shizuka Arakawa' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Mary Grace Baldo' 'Florent Amodio' 'Vitali Babkin' 'Engin Ali Artan' 'Olga Akimova' 'Maria Balaba' 'Jeremy Allen' 'Margaret Albia' 'Ivan Bariev' 'Miguel Ballesteros' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Andrew Bassi' 'Tobias Bayer' 'Hanna Asadchaya' 'Krisztian Andraska' 'Vladimir Belomoin' 'Erica Archambault' 'Ilia Averbukh' 'Ivan Bariev' 'Margaret Albia' 'Michael Bahoric' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Hanna Asadchaya' 'Gloria Agogliati' 'Camilla Andersen' 'Veronika Benesova' 'Alisa Allapach' 'Charlotte Belair' 'Emili Arm' 'Jake Bennett' 'An Yang' 'Krisztina Barta' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Patrice Archetto' 'Christina Beier' 'Ivan Bariev' 'Rima Beliy' 'Alisa Allapach' 'Paolo Bacchini' 'William Beier' 'An Ni' 'Spencer Barnes' 'Vera Bazarova' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\ntoc\r\n\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":11,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-16T04:35:47.000Z","updated_at":"2025-11-21T08:36:28.000Z","published_at":"2013-09-16T04:51:41.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2933486/dashboard#s=p2\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2013 China Moist\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. The problem is Codified by making the input a cell array of names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Challenge involves a serial card sorting machine that places card (i+1) in its best position, 1 thru i, if the name on card (i+1) is lexicographically greater than the name on card (i). The machine continues thru the end of the deck. The machine then restarts at card 1 until the order is correct. The output to return is the number of card insertions. The character values follow ascii codes with Space \u0026lt; A:Z \u0026lt; a:z. A shorter name is less than an extended name (Ab\u0026lt;Abe)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e names ( cell array of names )\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Insertions (count of card insertions required)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCompetition Summary:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Time 6 minutes, 793/1049 correct\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003enames={'Stuart Beckingham' 'Rinata Araslanova' 'Jeremy Abbott' 'Daniil Barantsev' };\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eClearly takes 3 card insertions. Start (SRJD) moves [(RSJD) (JRSD) (DJRS)]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1883,"title":"GJam 2013 China Event: Happy Teams 100 Pairs","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2933486/dashboard#s=p0 GJam 2013 China Bad Horse\u003e partial of data set #2.  Cody appears to have a testsuite size limit so only 32 of 100 cases are loaded. Brute force of 2^100 permutations may time out. The problem is codified using a cell array of names.\r\n\r\nThe Challenge involves creating two teams with no pair of individuals on either team having a conflict.  The input is a list of pairs of individuals who can not be placed on the same team.  The Challenge is to determine if two teams can be created that do not have any players with conflicts. \r\n\r\n*Input:* conflicted name pairs  (cell array of pairs of names)\r\n\r\n*Output:* TF  (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\r\n\r\n*Competition Summary:* Best Time of 11 minutes, 707 out of 776 correct","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2933486/dashboard#s=p0\"\u003eGJam 2013 China Bad Horse\u003c/a\u003e partial of data set #2.  Cody appears to have a testsuite size limit so only 32 of 100 cases are loaded. Brute force of 2^100 permutations may time out. The problem is codified using a cell array of names.\u003c/p\u003e\u003cp\u003eThe Challenge involves creating two teams with no pair of individuals on either team having a conflict.  The input is a list of pairs of individuals who can not be placed on the same team.  The Challenge is to determine if two teams can be created that do not have any players with conflicts.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e conflicted name pairs  (cell array of pairs of names)\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e TF  (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\u003c/p\u003e\u003cp\u003e\u003cb\u003eCompetition Summary:\u003c/b\u003e Best Time of 11 minutes, 707 out of 776 correct\u003c/p\u003e","function_template":"function TF=Make_Teams(names)\r\n TF=0;\r\nend","test_suite":"%%\r\ntic\r\nnames={{'King_Ghidorah' 'Harley_Quinn'} {'Dr_Horrible' 'Queen_Of_Fables'} {'Rad' 'Lady_Quark'} {'Yellowjacket' 'Dansen_Macabre'} {'Decay' 'Sun_Girl'} {'Typhoid_Mary' 'Animora'} {'Lady_Octopus' 'Lady_Quark'} {'Princess_Python' 'Scandal'} {'Cyborgirl' 'Scandal'} {'Margaret_Love' 'Queen_Of_Fables'} {'Decay' 'Talia_Al_Ghul'} {'Typhoid_Mary' 'Superwoman'} {'Cyborgirl' 'Dr_Evil'} {'Typhoid_Mary' 'Mothergod'} {'Star_Sapphire' 'Coachwhip'} {'Livewire' 'Dr_Evil'} {'King_Ghidorah' 'Sun_Girl'} {'Golddigger' 'Dansen_Macabre'} {'Star_Sapphire' 'Shimmer'} {'Zaladane' 'Mephista'} {'Decay' 'Harley_Quinn'} {'Zaladane' 'Lady_Shiva'} {'Tigress' 'Magenta'} {'The_Crimson_Ghost' 'Shimmer'} {'Typhoid_Mary' 'Mephista'} {'Princess_Python' 'Shimmer'} {'Cyborgirl' 'Abominatrix'} {'Magpie' 'Dansen_Macabre'} {'Magpie' 'Talia_Al_Ghul'} {'Lady_Octopus' 'Talia_Al_Ghul'} {'Livewire' 'Mephista'} {'Madame_Rouge' 'Prank'} {'The_Crimson_Ghost' 'Scandal'} {'Princess_Python' 'Superwoman'} {'Yellowjacket' 'Lazara'} {'Cyborgirl' 'Harley_Quinn'} {'Roulette' 'Sun_Girl'} {'Tigress' 'Prank'} {'Typhoid_Mary' 'Harley_Quinn'} {'The_Crimson_Ghost' 'Dansen_Macabre'} {'Cyborgirl' 'Shimmer'} {'Decay' 'Lagomorph'} {'The_Crimson_Ghost' 'Lady_Quark'} {'Decay' 'Mothergod'} {'Madame_Rouge' 'Talia_Al_Ghul'} {'Cyborgirl' 'Mephista'} {'Typhoid_Mary' 'Scandal'} {'Yellowjacket' 'Prank'} {'Madame_Rouge' 'Lazara'} {'Margaret_Love' 'Dansen_Macabre'} {'Yellowjacket' 'Dr_Evil'} {'Roulette' 'Superwoman'} {'Princess_Python' 'Mothergod'} {'Margaret_Love' 'Mothergod'} {'Golddigger' 'Lazara'} {'Margaret_Love' 'Harley_Quinn'} {'Dr_Horrible' 'Lazara'} {'Osira' 'Queen_Of_Fables'} {'King_Ghidorah' 'Coachwhip'} {'Magpie' 'Dr_Evil'} {'King_Ghidorah' 'Shimmer'} {'Cyborgirl' 'Coachwhip'} {'Lady_Octopus' 'Lagomorph'} {'Princess_Python' 'Dansen_Macabre'} {'The_Crimson_Ghost' 'Lady_Shiva'} {'Star_Sapphire' 'Superwoman'} {'Rad' 'Mothergod'} {'King_Ghidorah' 'Lazara'} {'Dr_Horrible' 'Mothergod'} {'Margaret_Love' 'Prank'} {'Rad' 'Dr_Evil'} {'Typhoid_Mary' 'Coachwhip'} {'King_Ghidorah' 'Talia_Al_Ghul'} {'Lady_Octopus' 'Mephista'} {'King_Ghidorah' 'Magenta'} {'Princess_Python' 'Sun_Girl'} {'Princess_Python' 'Animora'} {'Magpie' 'Superwoman'} {'Livewire' 'Lady_Shiva'} {'Zaladane' 'Sun_Girl'} {'Rad' 'Mephista'} {'Margaret_Love' 'Shimmer'} {'Magpie' 'Mephista'} {'Lady_Octopus' 'Scandal'} {'Osira' 'Sun_Girl'} {'Decay' 'Dansen_Macabre'} {'Typhoid_Mary' 'Abominatrix'} {'Osira' 'Lady_Quark'} {'The_Crimson_Ghost' 'Queen_Of_Fables'} {'Zaladane' 'Scandal'} {'Typhoid_Mary' 'Dr_Evil'} {'Yellowjacket' 'Animora'} {'Decay' 'Queen_Of_Fables'} {'Lady_Octopus' 'Coachwhip'} {'Margaret_Love' 'Superwoman'} {'Princess_Python' 'Lazara'} {'Tigress' 'Lagomorph'} {'Lady_Octopus' 'Superwoman'} {'Decay' 'Lady_Shiva'} {'Golddigger' 'Animora'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dr_Evil' 'Devastation'} {'Dr_Evil' 'Southpaw'} {'Dr_Evil' 'Lagomorph'} {'Dr_Evil' 'Rampage'} {'Dr_Evil' 'Unicron'} {'Dr_Evil' 'Magenta'} {'Dr_Evil' 'Silver_Swan'} {'Dr_Evil' 'Zaladane'} {'Dr_Evil' 'Jason_Kreis'} {'Dr_Evil' 'Lotso'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Typhoid_Mary' 'Amazing_Grace'} {'New_Wave' 'White_Rabbit'} {'Lazara' 'Shiv'} {'Valentina' 'Zaladane'} {'Gru' 'Magenta'} {'New_Wave' 'Shiv'} {'New_Wave' 'Madame_Masque'} {'Valentina' 'Doctor_Cyber'} {'Silver_Banshee' 'Emerald_Empress'} {'Unicron' 'Madame_Masque'} {'Blue_Snowman' 'Mothergod'} {'Valentina' 'Shiv'} {'Lazara' 'Doctor_Cyber'} {'Plastique' 'Madame_Masque'} {'Talia_Al_Ghul' 'Osira'} {'Lady_Clay' 'Star_Sapphire'} {'Unicron' 'Amazing_Grace'} {'Typhoid_Mary' 'Shiv'} {'Silver_Banshee' 'Tala'} {'Harley_Quinn' 'Asbestos_Lady'} {'Scandal' 'Magenta'} {'Titania' 'Genevieve_Savidge'} {'Typhoid_Mary' 'Animora'} {'Harley_Quinn' 'Animora'} {'Valentina' 'Amazing_Grace'} {'Plastique' 'Livewire'} {'Harley_Quinn' 'Star_Sapphire'} {'Lazara' 'Osira'} {'Decay' 'Mephista'} {'Superwoman' 'Emerald_Empress'} {'Titania' 'Doctor_Cyber'} {'Titania' 'Star_Sapphire'} {'Spider_Girl' 'Star_Sapphire'} {'Titania' 'Magenta'} {'Unicron' 'Osira'} {'Unicron' 'Genevieve_Savidge'} {'Talia_Al_Ghul' 'Hypnota'} {'Decay' 'Asbestos_Lady'} {'Silver_Banshee' 'Asbestos_Lady'} {'Scandal' 'Star_Sapphire'} {'Lashina' 'Livewire'} {'Decay' 'Mothergod'} {'Blue_Snowman' 'Genevieve_Savidge'} {'Spider_Girl' 'Mephista'} {'Blue_Snowman' 'Osira'} {'Decay' 'Madame_Masque'} {'Superwoman' 'Livewire'} {'Titania' 'Livewire'} {'Lady_Quark' 'Shiv'} {'Plastique' 'Doctor_Cyber'} {'Decay' 'Magenta'} {'Lazara' 'Livewire'} {'Lady_Quark' 'Mothergod'} {'Dr_Horrible' 'Emerald_Empress'} {'Scandal' 'Mephista'} {'Lazara' 'Magenta'} {'Gru' 'Poundcakes'} {'Superwoman' 'Animora'} {'Blue_Snowman' 'Shiv'} {'Silver_Banshee' 'Animora'} {'Plastique' 'White_Rabbit'} {'Lazara' 'Mothergod'} {'Scandal' 'Doctor_Cyber'} {'Spider_Girl' 'Emerald_Empress'} {'Typhoid_Mary' 'Mephista'} {'Spider_Girl' 'Livewire'} {'Lashina' 'White_Rabbit'} {'Harley_Quinn' 'Hypnota'} {'Dr_Horrible' 'White_Rabbit'} {'Titania' 'Lady_Octopus'} {'New_Wave' 'Mothergod'} {'Silver_Banshee' 'Hypnota'} {'Harley_Quinn' 'Poundcakes'} {'Decay' 'Hypnota'} {'New_Wave' 'Osira'} {'Valentina' 'Star_Sapphire'} {'Silver_Banshee' 'Mothergod'} {'Lashina' 'Magenta'} {'Blue_Snowman' 'Magenta'} {'Titania' 'Mephista'} {'Silver_Banshee' 'White_Rabbit'} {'Lady_Quark' 'Lady_Octopus'} {'Spider_Girl' 'Tala'} {'Lashina' 'Gru'} {'Lashina' 'Mephista'} {'Lady_Quark' 'White_Rabbit'} {'Typhoid_Mary' 'Doctor_Cyber'} {'Harley_Quinn' 'Doctor_Cyber'} {'Unicron' 'Mothergod'} {'New_Wave' 'Lady_Octopus'} {'Titania' 'Tala'} {'Talia_Al_Ghul' 'Doctor_Cyber'} {'Dr_Horrible' 'Asbestos_Lady'} {'Lashina' 'Genevieve_Savidge'} {'Blue_Snowman' 'Madame_Masque'} {'Superwoman' 'Osira'} {'Lady_Clay' 'Zaladane'} {'Lady_Quark' 'Magenta'} {'Scandal' 'Madame_Masque'} {'Unicron' 'Poundcakes'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'White_Rabbit' 'Animora'} {'Rad' 'Plastique'} {'Devastation' 'Gru'} {'Margaret_Love' 'Zaladane'} {'Yellowjacket' 'Blue_Snowman'} {'Devastation' 'Animora'} {'Lady_Death' 'Syndrome'} {'Snapdragon' 'Titania'} {'Rad' 'Gru'} {'Tigress' 'Black_Mamba'} {'Spider_Girl' 'Zaladane'} {'Snapdragon' 'Plastique'} {'Golddigger' 'Duela_Dent'} {'Spider_Girl' 'Black_Mamba'} {'Lady_Clay' 'Lady_Shiva'} {'Lagomorph' 'Syndrome'} {'Golddigger' 'Poison_Ivy'} {'Lafety_Le_Fei' 'Duela_Dent'} {'Eviless' 'Titania'} {'Jason_Kreis' 'Blue_Snowman'} {'Golddigger' 'Gru'} {'Rad' 'Lady_Shiva'} {'Margaret_Love' 'Poundcakes'} {'Devastation' 'Superwoman'} {'Jason_Kreis' 'Gru'} {'Lady_Clay' 'Ursa'} {'Snapdragon' 'Animora'} {'Sun_Girl' 'Magpie'} {'Mist' 'Zaladane'} {'White_Rabbit' 'Poundcakes'} {'Tigress' 'Lady_Shiva'} {'Livewire' 'Poison_Ivy'} {'Eviless' 'Golden_Glider'} {'Margaret_Love' 'Lady_Quark'} {'Lady_Clay' 'Plastique'} {'Lady_Clay' 'Golden_Glider'} {'Madame_Masque' 'Titania'} {'Lady_Death' 'Golden_Glider'} {'Margaret_Love' 'Black_Mamba'} {'Tigress' 'Superwoman'} {'Lagomorph' 'Magpie'} {'Eviless' 'Dr_Evil'} {'Lady_Clay' 'Duela_Dent'} {'Snapdragon' 'Syndrome'} {'Golddigger' 'Lady_Quark'} {'Devastation' 'Golden_Glider'} {'Rad' 'Syndrome'} {'Snapdragon' 'Dr_Evil'} {'Yellowjacket' 'Animora'} {'Lady_Death' 'Fem_Paragon'} {'Margaret_Love' 'Animora'} {'Lady_Death' 'Dr_Evil'} {'Golddigger' 'Plastique'} {'Lagomorph' 'Gru'} {'Rampage' 'Plastique'} {'Jason_Kreis' 'Fem_Paragon'} {'Margaret_Love' 'Ursa'} {'Spider_Girl' 'Golden_Glider'} {'Rampage' 'Superwoman'} {'Eviless' 'Bombshell'} {'Golddigger' 'Dr_Evil'} {'Livewire' 'Syndrome'} {'Lady_Death' 'Zaladane'} {'Livewire' 'Lady_Quark'} {'Snapdragon' 'Black_Mamba'} {'Rad' 'Blue_Snowman'} {'Mist' 'Superwoman'} {'Yellowjacket' 'Superwoman'} {'Madame_Masque' 'Fem_Paragon'} {'Devastation' 'Syndrome'} {'Lady_Death' 'Ursa'} {'Madame_Masque' 'Gru'} {'Yellowjacket' 'Fem_Paragon'} {'White_Rabbit' 'Zaladane'} {'Spider_Girl' 'Syndrome'} {'Golddigger' 'Zaladane'} {'Livewire' 'Ursa'} {'Sun_Girl' 'Titania'} {'Tigress' 'Lady_Quark'} {'Snapdragon' 'Fem_Paragon'} {'Sun_Girl' 'Lady_Quark'} {'Yellowjacket' 'Ursa'} {'Madame_Masque' 'Plastique'} {'Lafety_Le_Fei' 'Black_Mamba'} {'Eviless' 'Fem_Paragon'} {'Sun_Girl' 'Lady_Shiva'} {'Yellowjacket' 'Magpie'} {'Yellowjacket' 'Gru'} {'White_Rabbit' 'Lady_Shiva'} {'White_Rabbit' 'Magpie'} {'Sun_Girl' 'Gru'} {'Jason_Kreis' 'Magpie'} {'Sun_Girl' 'Plastique'} {'Lagomorph' 'Poison_Ivy'} {'Lagomorph' 'Poundcakes'} {'Golddigger' 'Fem_Paragon'} {'Sun_Girl' 'Poison_Ivy'} {'Madame_Masque' 'Bombshell'} {'Lafety_Le_Fei' 'Magpie'} {'Mist' 'Ursa'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Amazing_Grace' 'Animora'} {'Plastique' 'Lady_Quark'} {'Lagomorph' 'Hypnota'} {'Princess_Python' 'Purgatori'} {'Plastique' 'Animora'} {'Princess_Python' 'Lashina'} {'Typhoid_Mary' 'Dansen_Macabre'} {'Queen_Bee' 'Lashina'} {'Golden_Glider' 'Decay'} {'Bombshell' 'Dansen_Macabre'} {'Bombshell' 'Blue_Snowman'} {'Madame_Rouge' 'Hypnota'} {'Mist' 'Duela_Dent'} {'Typhoid_Mary' 'Lady_Death'} {'Gru' 'The_Crimson_Ghost'} {'Mist' 'The_Lightning'} {'Syndrome' 'Harley_Quinn'} {'Dr_Evil' 'Silk_Fever'} {'Mist' 'Animora'} {'Typhoid_Mary' 'Blue_Snowman'} {'Gru' 'Poundcakes'} {'Deuce' 'Windfall'} {'Princess_Python' 'Windfall'} {'Golden_Glider' 'Lady_Clay'} {'Tigress' 'Duela_Dent'} {'Bombshell' 'Hypnota'} {'Plastique' 'Hypnota'} {'Leather' 'Blue_Snowman'} {'Tigress' 'Windfall'} {'Dr_Horrible' 'Dansen_Macabre'} {'Dr_Evil' 'Shimmer'} {'Deuce' 'Queen_Of_Fables'} {'Leather' 'Lady_Quark'} {'Plastique' 'Blue_Snowman'} {'Plastique' 'Poundcakes'} {'Amazing_Grace' 'Decay'} {'Mothergod' 'Windfall'} {'Lady_Vic' 'Harley_Quinn'} {'Amazing_Grace' 'Queen_Of_Fables'} {'The_Lightning' 'Black_Mamba'} {'Gru' 'Lady_Death'} {'Mist' 'Lady_Death'} {'Leather' 'Queen_Of_Fables'} {'Bombshell' 'Animora'} {'Bombshell' 'Lady_Quark'} {'Plastique' 'Silk_Fever'} {'Deuce' 'Blue_Snowman'} {'Queen_Bee' 'Hypnota'} {'Mothergod' 'Black_Mamba'} {'Gru' 'Silk_Fever'} {'Typhoid_Mary' 'Queen_Of_Fables'} {'Mothergod' 'Queen_Of_Fables'} {'Amazing_Grace' 'Lady_Quark'} {'Leather' 'Lady_Clay'} {'Syndrome' 'Queen_Of_Fables'} {'Syndrome' 'Shimmer'} {'Lagomorph' 'Animora'} {'Mothergod' 'The_Crimson_Ghost'} {'Plastique' 'Black_Mamba'} {'Queen_Bee' 'King_Ghidorah'} {'Typhoid_Mary' 'Silk_Fever'} {'Deuce' 'Animora'} {'Dr_Evil' 'Queen_Of_Fables'} {'Princess_Python' 'Poundcakes'} {'Tigress' 'Decay'} {'Plastique' 'Lady_Death'} {'Queen_Bee' 'Lady_Clay'} {'Typhoid_Mary' 'King_Ghidorah'} {'Dr_Evil' 'Lady_Clay'} {'Gru' 'Lashina'} {'Dr_Horrible' 'Lady_Quark'} {'Madame_Rouge' 'Animora'} {'Golden_Glider' 'Purgatori'} {'Deuce' 'Duela_Dent'} {'Lagomorph' 'Windfall'} {'Deuce' 'Lady_Quark'} {'The_Lightning' 'Poundcakes'} {'Dr_Evil' 'Lady_Quark'} {'Queen_Bee' 'Silk_Fever'} {'Lady_Vic' 'Animora'} {'Dr_Evil' 'Harley_Quinn'} {'Mothergod' 'Decay'} {'Princess_Python' 'Duela_Dent'} {'Lagomorph' 'Harley_Quinn'} {'Golden_Glider' 'Dansen_Macabre'} {'Leather' 'Lady_Death'} {'Syndrome' 'Blue_Snowman'} {'Mist' 'Blue_Snowman'} {'Bombshell' 'Poundcakes'} {'Amazing_Grace' 'Blue_Snowman'} {'Leather' 'Hypnota'} {'Typhoid_Mary' 'Windfall'} {'Mothergod' 'Poundcakes'} {'The_Lightning' 'Purgatori'} {'Madame_Rouge' 'The_Crimson_Ghost'} {'Syndrome' 'King_Ghidorah'} {'Plastique' 'Decay'} {'The_Lightning' 'Hypnota'} {'Amazing_Grace' 'Lady_Clay'} {'Syndrome' 'Dansen_Macabre'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Abominatrix'} {'Mai_Shen' 'Devastation'} {'Abominatrix' 'Mai_Shen'} {'Devastation' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Titania' 'Hypnota'} {'Trinity' 'Poison_Ivy'} {'Dansen_Macabre' 'New_Wave'} {'Emerald_Empress' 'Saturn_Queen'} {'Fem_Paragon' 'Hypnota'} {'White_Rabbit' 'Osira'} {'Duela_Dent' 'Dead_Bowie'} {'Poundcakes' 'Dead_Bowie'} {'Decay' 'New_Wave'} {'Decay' 'Shimmer'} {'Poundcakes' 'Mephista'} {'Zaladane' 'Osira'} {'Ursa' 'Hypnota'} {'Star_Sapphire' 'Lady_Vic'} {'Fem_Paragon' 'Shimmer'} {'Star_Sapphire' 'Golddigger'} {'Queen_Bee' 'Doctor_Cyber'} {'Amazing_Grace' 'Nyssa_Raatko'} {'Trinity' 'Hypnota'} {'Emerald_Empress' 'Nyssa_Raatko'} {'White_Rabbit' 'New_Wave'} {'Lady_Shiva' 'Mephista'} {'Amazing_Grace' 'Dead_Bowie'} {'Emerald_Empress' 'Mephista'} {'Zaladane' 'Devastation'} {'Zaladane' 'Mephista'} {'Lady_Shiva' 'New_Wave'} {'Fem_Paragon' 'Nyssa_Raatko'} {'Zaladane' 'Nyssa_Raatko'} {'Ursa' 'Golddigger'} {'Trinity' 'Purgatori'} {'Ursa' 'Osira'} {'The_Crimson_Ghost' 'Shimmer'} {'Fake_Thomas_Jefferson' 'Ingra'} {'Decay' 'Silver_Banshee'} {'Decay' 'Hypnota'} {'Zaladane' 'Sun_Girl'} {'Ursa' 'Eviless'} {'The_Crimson_Ghost' 'New_Wave'} {'Fake_Thomas_Jefferson' 'New_Wave'} {'Emerald_Empress' 'Amy_Madison'} {'Fake_Thomas_Jefferson' 'Poison_Ivy'} {'Fem_Paragon' 'Ingra'} {'Amazing_Grace' 'Osira'} {'Queen_Bee' 'Lady_Vic'} {'Zaladane' 'Eviless'} {'Decay' 'Doctor_Cyber'} {'The_Crimson_Ghost' 'Ingra'} {'Star_Sapphire' 'Ingra'} {'Ursa' 'Nyssa_Raatko'} {'Animora' 'Plastique'} {'Fem_Paragon' 'Silver_Banshee'} {'Decay' 'Dead_Bowie'} {'Duela_Dent' 'Devastation'} {'Animora' 'Saturn_Queen'} {'The_Crimson_Ghost' 'Devastation'} {'The_Crimson_Ghost' 'Osira'} {'Trinity' 'Sun_Girl'} {'Lady_Shiva' 'Saturn_Queen'} {'Trinity' 'Amy_Madison'} {'Fem_Paragon' 'Eviless'} {'Mai_Shen' 'Plastique'} {'Margaret_Love' 'Amy_Madison'} {'Trinity' 'Nyssa_Raatko'} {'White_Rabbit' 'Hypnota'} {'Animora' 'Silver_Banshee'} {'White_Rabbit' 'Mephista'} {'Animora' 'Eviless'} {'Titania' 'Ingra'} {'Dansen_Macabre' 'Purgatori'} {'Poundcakes' 'Ingra'} {'Titania' 'Golddigger'} {'Star_Sapphire' 'Osira'} {'Dansen_Macabre' 'Dead_Bowie'} {'Queen_Bee' 'Purgatori'} {'Mai_Shen' 'Silver_Banshee'} {'White_Rabbit' 'Saturn_Queen'} {'Poundcakes' 'Doctor_Cyber'} {'Queen_Bee' 'Devastation'} {'Margaret_Love' 'Poison_Ivy'} {'White_Rabbit' 'Amy_Madison'} {'The_Crimson_Ghost' 'Nyssa_Raatko'} {'Trinity' 'Devastation'} {'Titania' 'Eviless'} {'Fake_Thomas_Jefferson' 'Golddigger'} {'White_Rabbit' 'Dead_Bowie'} {'Fake_Thomas_Jefferson' 'Silver_Banshee'} {'Amazing_Grace' 'Doctor_Cyber'} {'The_Crimson_Ghost' 'Sun_Girl'} {'Margaret_Love' 'Golddigger'} {'Lady_Shiva' 'Devastation'} {'Queen_Bee' 'New_Wave'} {'Margaret_Love' 'Osira'} {'Queen_Bee' 'Ingra'} {'Fake_Thomas_Jefferson' 'Eviless'} {'Dansen_Macabre' 'Shimmer'} {'Fem_Paragon' 'Lady_Vic'} {'Poundcakes' 'Purgatori'} {'Titania' 'Poison_Ivy'} {'Star_Sapphire' 'Devastation'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mothergod' 'Hypnota'} {'Lazara' 'Fury_Leika'} {'Queen_Clea' 'Windfall'} {'Silver_Swan' 'Black_Mamba'} {'Devastation' 'Titania'} {'Madame_Masque' 'Rampage'} {'Spider_Girl' 'Titania'} {'Maxima' 'Madame_Rouge'} {'Silver_Banshee' 'Typhoid_Mary'} {'The_Lightning' 'Lafety_Le_Fei'} {'Queen_Clea' 'Silk_Fever'} {'Maxima' 'Lady_Clay'} {'Amy_Madison' 'Black_Mamba'} {'The_Lightning' 'Duela_Dent'} {'Madame_Masque' 'Silk_Fever'} {'Lazara' 'Rampage'} {'Star_Sapphire' 'Rampage'} {'Lazara' 'Amazing_Grace'} {'Madame_Masque' 'Syndrome'} {'Golden_Glider' 'Hypnota'} {'Spider_Girl' 'Windfall'} {'Dr_Evil' 'Typhoid_Mary'} {'Golden_Glider' 'Osira'} {'Fury_Leika' 'Duela_Dent'} {'Golden_Glider' 'Lady_Clay'} {'The_Crimson_Ghost' 'Magenta'} {'Mothergod' 'Amazing_Grace'} {'Lazara' 'Duela_Dent'} {'White_Rabbit' 'Hypnota'} {'Fury_Leika' 'Amazing_Grace'} {'White_Rabbit' 'Duela_Dent'} {'Silver_Banshee' 'Prank'} {'Mothergod' 'Osira'} {'Silver_Banshee' 'Hypnota'} {'Golddigger' 'Silk_Fever'} {'Fury_Leika' 'Madame_Rouge'} {'Amy_Madison' 'Osira'} {'Madame_Masque' 'Professor_Padraic_Ratigan'} {'Madame_Masque' 'Hypnota'} {'The_Crimson_Ghost' 'Amazing_Grace'} {'The_Lightning' 'Madame_Rouge'} {'Maxima' 'Prank'} {'Star_Sapphire' 'Yellowjacket'} {'The_Lightning' 'Mai_Shen'} {'Lagomorph' 'Duela_Dent'} {'White_Rabbit' 'Typhoid_Mary'} {'Golden_Glider' 'Typhoid_Mary'} {'Mothergod' 'Lady_Clay'} {'Eviless' 'Lafety_Le_Fei'} {'Golddigger' 'Typhoid_Mary'} {'Dr_Evil' 'Mai_Shen'} {'Fury_Leika' 'Hypnota'} {'Lagomorph' 'Lady_Clay'} {'White_Rabbit' 'Windfall'} {'Silver_Banshee' 'Lafety_Le_Fei'} {'White_Rabbit' 'Lady_Clay'} {'Silver_Banshee' 'Titania'} {'White_Rabbit' 'Titania'} {'Star_Sapphire' 'Syndrome'} {'Silver_Swan' 'Hypnota'} {'The_Crimson_Ghost' 'Osira'} {'Mothergod' 'Roulette'} {'Devastation' 'Lady_Clay'} {'Amy_Madison' 'Typhoid_Mary'} {'Eviless' 'Roulette'} {'Spider_Girl' 'Rampage'} {'Dr_Evil' 'Syndrome'} {'Maxima' 'Osira'} {'The_Lightning' 'Lady_Clay'} {'Silver_Banshee' 'Black_Mamba'} {'Devastation' 'Mai_Shen'} {'Madame_Masque' 'Madame_Rouge'} {'Amy_Madison' 'Silk_Fever'} {'Lagomorph' 'Yellowjacket'} {'Queen_Clea' 'Professor_Padraic_Ratigan'} {'Mothergod' 'Silk_Fever'} {'Maxima' 'Silk_Fever'} {'Lagomorph' 'Rampage'} {'The_Crimson_Ghost' 'Lady_Clay'} {'Spider_Girl' 'Mai_Shen'} {'Mothergod' 'Madame_Rouge'} {'Mothergod' 'Typhoid_Mary'} {'Fury_Leika' 'Professor_Padraic_Ratigan'} {'Fury_Leika' 'Roulette'} {'Maxima' 'Black_Mamba'} {'Dr_Evil' 'Black_Mamba'} {'Madame_Masque' 'Mai_Shen'} {'White_Rabbit' 'Silk_Fever'} {'Fury_Leika' 'Magenta'} {'The_Lightning' 'Rampage'} {'Lagomorph' 'Silk_Fever'} {'Golden_Glider' 'Windfall'} {'Silver_Banshee' 'Windfall'} {'Silver_Banshee' 'Yellowjacket'} {'Dr_Evil' 'Lafety_Le_Fei'} {'Devastation' 'Typhoid_Mary'} {'Maxima' 'Lafety_Le_Fei'} {'Queen_Clea' 'Yellowjacket'} {'White_Rabbit' 'Rampage'} {'Golden_Glider' 'Yellowjacket'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silk_Fever' 'Mothergod'} {'Decay' 'Shimmer'} {'Golden_Glider' 'Windfall'} {'Silver_Banshee' 'Queen_Of_Fables'} {'Typhoid_Mary' 'Syndrome'} {'Unicron' 'Maxima'} {'Lady_Vic' 'Lady_Octopus'} {'Golden_Glider' 'Zaladane'} {'Typhoid_Mary' 'Harley_Quinn'} {'Silver_Banshee' 'Mothergod'} {'Osira' 'Lotso'} {'Queen_Bee' 'Tala'} {'Spider_Girl' 'Zaladane'} {'Silk_Fever' 'King_Ghidorah'} {'Typhoid_Mary' 'Lotso'} {'Osira' 'Mothergod'} {'Spider_Girl' 'Syndrome'} {'Star_Sapphire' 'Syndrome'} {'Saturn_Queen' 'Sun_Girl'} {'Bombshell' 'Lotso'} {'Lady_Vic' 'Shimmer'} {'Livewire' 'Tala'} {'Bombshell' 'Maxima'} {'Golden_Glider' 'Tala'} {'Silver_Banshee' 'Shiv'} {'Queen_Clea' 'Tala'} {'Spider_Girl' 'Lotso'} {'Bombshell' 'Eviless'} {'Decay' 'Maxima'} {'Golden_Glider' 'Mothergod'} {'Devastation' 'Mai_Shen'} {'Spider_Girl' 'New_Wave'} {'Saturn_Queen' 'Queen_Of_Fables'} {'Osira' 'Harley_Quinn'} {'Osira' 'Maxima'} {'Scandal' 'Maxima'} {'Livewire' 'Eviless'} {'Deuce' 'Zaladane'} {'Deuce' 'Maxima'} {'Queen_Clea' 'Mothergod'} {'Unicron' 'Evinlea'} {'Deuce' 'Tala'} {'Devastation' 'Superwoman'} {'Livewire' 'Shimmer'} {'Scandal' 'King_Ghidorah'} {'Typhoid_Mary' 'King_Ghidorah'} {'Bombshell' 'Evinlea'} {'Star_Sapphire' 'Lady_Octopus'} {'Spider_Girl' 'Evinlea'} {'Coachwhip' 'New_Wave'} {'Star_Sapphire' 'Zaladane'} {'Devastation' 'Shiv'} {'Queen_Bee' 'Lady_Octopus'} {'Decay' 'New_Wave'} {'Scandal' 'Superwoman'} {'Unicron' 'Zaladane'} {'Decay' 'King_Ghidorah'} {'Typhoid_Mary' 'Maxima'} {'Dansen_Macabre' 'Evinlea'} {'Queen_Clea' 'Maxima'} {'Queen_Clea' 'Superwoman'} {'Deuce' 'Queen_Of_Fables'} {'Decay' 'Sun_Girl'} {'Golden_Glider' 'Sun_Girl'} {'Star_Sapphire' 'Eviless'} {'Silk_Fever' 'Lazara'} {'Lady_Vic' 'Sun_Girl'} {'Unicron' 'New_Wave'} {'Saturn_Queen' 'King_Ghidorah'} {'Unicron' 'Lotso'} {'Silver_Banshee' 'King_Ghidorah'} {'Golden_Glider' 'Superwoman'} {'Decay' 'Tala'} {'Devastation' 'Tala'} {'Dansen_Macabre' 'Maxima'} {'Dansen_Macabre' 'Lady_Octopus'} {'Silver_Banshee' 'Mai_Shen'} {'Silver_Banshee' 'Lazara'} {'Spider_Girl' 'Mothergod'} {'Deuce' 'Syndrome'} {'Dansen_Macabre' 'Windfall'} {'Bombshell' 'Lady_Octopus'} {'Silk_Fever' 'Zaladane'} {'Scandal' 'Syndrome'} {'Livewire' 'Windfall'} {'Decay' 'Harley_Quinn'} {'Scandal' 'New_Wave'} {'Osira' 'Eviless'} {'Dansen_Macabre' 'Shimmer'} {'Saturn_Queen' 'Lady_Octopus'} {'Queen_Clea' 'Shiv'} {'Decay' 'Shiv'} {'Scandal' 'Shimmer'} {'Coachwhip' 'Tala'} {'Osira' 'Evinlea'} {'Silk_Fever' 'Evinlea'} {'Coachwhip' 'Queen_Of_Fables'} {'Deuce' 'Evinlea'} {'Bombshell' 'Lazara'} {'Lady_Vic' 'Queen_Of_Fables'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Spider_Girl' 'Blue_Snowman'} {'Blue_Snowman' 'Roulette'} {'Roulette' 'Spider_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Rampage' 'Fury_Leika'} {'Tigress' 'Princess_Python'} {'Syndrome' 'Animora'} {'Maxima' 'Prank'} {'Queen_Of_Fables' 'Queen_Bee'} {'Queen_Of_Fables' 'Doctor_Cyber'} {'Magpie' 'Queen_Bee'} {'Shimmer' 'Golddigger'} {'Rampage' 'Queen_Clea'} {'Magpie' 'Abominatrix'} {'Maxima' 'Titania'} {'Tigress' 'Prank'} {'Decay' 'Prank'} {'Spider_Girl' 'Jewelee'} {'Magpie' 'Princess_Python'} {'Eviless' 'Abominatrix'} {'Shimmer' 'Doctor_Cyber'} {'Star_Sapphire' 'Animora'} {'Star_Sapphire' 'Jinx'} {'Yellowjacket' 'Blue_Snowman'} {'Star_Sapphire' 'Queen_Clea'} {'Black_Mamba' 'Jewelee'} {'Star_Sapphire' 'Blue_Snowman'} {'Magpie' 'Titania'} {'Spider_Girl' 'Abominatrix'} {'Lashina' 'Dr_Evil'} {'Margaret_Love' 'Prank'} {'Lotso' 'Fury_Leika'} {'Maxima' 'Abominatrix'} {'Decay' 'Queen_Clea'} {'Star_Sapphire' 'Doctor_Cyber'} {'Maxima' 'Queen_Clea'} {'Yellowjacket' 'Abominatrix'} {'Syndrome' 'Sun_Girl'} {'Rampage' 'Windfall'} {'Lotso' 'Titania'} {'Syndrome' 'Blue_Snowman'} {'Plastique' 'Queen_Clea'} {'Magpie' 'Sun_Girl'} {'Lady_Clay' 'Queen_Clea'} {'Eviless' 'Princess_Python'} {'Fake_Thomas_Jefferson' 'Blue_Snowman'} {'Rampage' 'Animora'} {'Fake_Thomas_Jefferson' 'Sun_Girl'} {'Star_Sapphire' 'Abominatrix'} {'Black_Mamba' 'Poundcakes'} {'Plastique' 'Sun_Girl'} {'Lady_Clay' 'Titania'} {'Fake_Thomas_Jefferson' 'Windfall'} {'Shimmer' 'Osira'} {'Lady_Clay' 'Ursa'} {'Syndrome' 'Queen_Bee'} {'Maxima' 'Blue_Snowman'} {'Lady_Clay' 'Dr_Evil'} {'Decay' 'Amy_Madison'} {'Tigress' 'Jinx'} {'Spider_Girl' 'Jinx'} {'Margaret_Love' 'Titania'} {'Star_Sapphire' 'Poundcakes'} {'Plastique' 'Doctor_Cyber'} {'Black_Mamba' 'Amy_Madison'} {'Tigress' 'Titania'} {'Lashina' 'Golddigger'} {'Eviless' 'Dr_Evil'} {'Magenta' 'Windfall'} {'Yellowjacket' 'Princess_Python'} {'Syndrome' 'Prank'} {'Shimmer' 'Poundcakes'} {'Decay' 'Fury_Leika'} {'Decay' 'Windfall'} {'Black_Mamba' 'Golddigger'} {'Rampage' 'Abominatrix'} {'Syndrome' 'Golddigger'} {'Maxima' 'Fury_Leika'} {'Eviless' 'Jewelee'} {'Lashina' 'Blue_Snowman'} {'Lady_Clay' 'Jinx'} {'Lady_Clay' 'Windfall'} {'Magpie' 'Ursa'} {'Eviless' 'Prank'} {'Tigress' 'Abominatrix'} {'Star_Sapphire' 'Eviless'} {'Tigress' 'Fury_Leika'} {'Magenta' 'Ursa'} {'Yellowjacket' 'Jewelee'} {'Yellowjacket' 'Ursa'} {'Plastique' 'Osira'} {'Tigress' 'Sun_Girl'} {'Tigress' 'Golddigger'} {'Spider_Girl' 'Windfall'} {'Fake_Thomas_Jefferson' 'Amy_Madison'} {'Magenta' 'Fury_Leika'} {'Star_Sapphire' 'Amy_Madison'} {'Magenta' 'Blue_Snowman'} {'Plastique' 'Ursa'} {'Fake_Thomas_Jefferson' 'Abominatrix'} {'Lotso' 'Jewelee'} {'Lotso' 'Jinx'} {'Maxima' 'Animora'} {'Magenta' 'Sun_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'Hypnota'} {'Poundcakes' 'Superwoman'} {'Purgatori' 'Queen_Of_Fables'} {'Plastique' 'Star_Sapphire'} {'Evinlea' 'Snapdragon'} {'Emerald_Empress' 'Abominatrix'} {'New_Wave' 'Amazing_Grace'} {'New_Wave' 'Lady_Death'} {'Talia_Al_Ghul' 'Mephista'} {'Lady_Clay' 'Ursa'} {'Zaladane' 'Silk_Fever'} {'Talia_Al_Ghul' 'Star_Sapphire'} {'Deuce' 'Titania'} {'Bombshell' 'Snapdragon'} {'Bombshell' 'Abominatrix'} {'Evinlea' 'Lagomorph'} {'Typhoid_Mary' 'Nyssa_Raatko'} {'Cyborgirl' 'Nyssa_Raatko'} {'Purgatori' 'Silk_Fever'} {'Dr_Evil' 'Ursa'} {'Dr_Evil' 'Silk_Fever'} {'Lady_Clay' 'Madame_Masque'} {'Harley_Quinn' 'Mephista'} {'Syndrome' 'White_Rabbit'} {'Tigress' 'Madame_Masque'} {'Tigress' 'Queen_Of_Fables'} {'Bombshell' 'Superwoman'} {'Evinlea' 'Abominatrix'} {'Purgatori' 'Snapdragon'} {'Osira' 'Hypnota'} {'Syndrome' 'Mephista'} {'Dr_Evil' 'Lagomorph'} {'Plastique' 'Rampage'} {'New_Wave' 'Madame_Masque'} {'Plastique' 'Abominatrix'} {'Harley_Quinn' 'White_Rabbit'} {'New_Wave' 'Snapdragon'} {'Dr_Evil' 'Mai_Shen'} {'Emerald_Empress' 'Yellowjacket'} {'Lady_Clay' 'Mephista'} {'Purgatori' 'Superwoman'} {'Tigress' 'Titania'} {'Deuce' 'Abominatrix'} {'Cyborgirl' 'Lagomorph'} {'Dead_Bowie' 'Queen_Of_Fables'} {'Purgatori' 'Amazing_Grace'} {'Zaladane' 'Ursa'} {'Lady_Clay' 'Queen_Of_Fables'} {'Zaladane' 'Amazing_Grace'} {'Dead_Bowie' 'Amazing_Grace'} {'Deuce' 'Superwoman'} {'Zaladane' 'Yellowjacket'} {'Harley_Quinn' 'Ursa'} {'Blue_Snowman' 'Yellowjacket'} {'Typhoid_Mary' 'Abominatrix'} {'Evinlea' 'Queen_Of_Fables'} {'Typhoid_Mary' 'Mephista'} {'Evinlea' 'Lady_Death'} {'Talia_Al_Ghul' 'Queen_Of_Fables'} {'Syndrome' 'Lady_Death'} {'Bombshell' 'Silk_Fever'} {'Poundcakes' 'Hypnota'} {'Blue_Snowman' 'Rampage'} {'Evinlea' 'Nyssa_Raatko'} {'Typhoid_Mary' 'Madame_Masque'} {'Typhoid_Mary' 'Lagomorph'} {'Harley_Quinn' 'Nyssa_Raatko'} {'Lady_Clay' 'Evinlea'} {'Harley_Quinn' 'Amazing_Grace'} {'Talia_Al_Ghul' 'Rampage'} {'Osira' 'Abominatrix'} {'Dr_Evil' 'Titania'} {'Cyborgirl' 'Mai_Shen'} {'Syndrome' 'Queen_Of_Fables'} {'Dead_Bowie' 'Nyssa_Raatko'} {'Dead_Bowie' 'Lady_Death'} {'Zaladane' 'Rampage'} {'Poundcakes' 'Lady_Death'} {'Dead_Bowie' 'Star_Sapphire'} {'Evinlea' 'Rampage'} {'Emerald_Empress' 'Silver_Swan'} {'Blue_Snowman' 'Lady_Death'} {'Deuce' 'Yellowjacket'} {'Talia_Al_Ghul' 'Snapdragon'} {'Deuce' 'Rampage'} {'Harley_Quinn' 'Abominatrix'} {'Plastique' 'Mai_Shen'} {'Tigress' 'Silk_Fever'} {'Evinlea' 'Silver_Swan'} {'Plastique' 'Superwoman'} {'Talia_Al_Ghul' 'Silver_Swan'} {'New_Wave' 'Silver_Swan'} {'Dr_Evil' 'Nyssa_Raatko'} {'Poundcakes' 'Mephista'} {'Bombshell' 'Titania'} {'Talia_Al_Ghul' 'Hypnota'} {'Blue_Snowman' 'Ursa'} {'Dr_Evil' 'Queen_Of_Fables'} {'Osira' 'Mephista'} {'Deuce' 'Snapdragon'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Roulette' 'Star_Sapphire'} {'Lady_Clay' 'Lafety_Le_Fei'} {'Evinlea' 'Margaret_Love'} {'Mai_Shen' 'Titania'} {'Spider_Girl' 'Coachwhip'} {'Amy_Madison' 'Snapdragon'} {'Shimmer' 'Emerald_Empress'} {'Blue_Snowman' 'Nyssa_Raatko'} {'Tala' 'Silver_Banshee'} {'Magenta' 'Nyssa_Raatko'} {'Scandal' 'Tigress'} {'Tala' 'Coachwhip'} {'Bombshell' 'Tigress'} {'Maxima' 'Silver_Banshee'} {'Lady_Shiva' 'Dr_Evil'} {'Shimmer' 'Star_Sapphire'} {'Evinlea' 'Trinity'} {'Shimmer' 'Tigress'} {'Mai_Shen' 'Emerald_Empress'} {'Evinlea' 'Cyborgirl'} {'Shimmer' 'Dr_Evil'} {'Roulette' 'Lafety_Le_Fei'} {'Golden_Glider' 'Lafety_Le_Fei'} {'Roulette' 'Animora'} {'Evinlea' 'Sun_Girl'} {'Mai_Shen' 'Star_Sapphire'} {'Lady_Quark' 'Lafety_Le_Fei'} {'Professor_Padraic_Ratigan' 'Silver_Banshee'} {'Lady_Clay' 'Animora'} {'Plastique' 'Margaret_Love'} {'Lady_Clay' 'Coachwhip'} {'Roulette' 'New_Wave'} {'Amy_Madison' 'Trinity'} {'Amy_Madison' 'Emerald_Empress'} {'Plastique' 'Animora'} {'Amy_Madison' 'Lafety_Le_Fei'} {'Doctor_Cyber' 'Snapdragon'} {'Maxima' 'New_Wave'} {'Tala' 'New_Wave'} {'Spider_Girl' 'Trinity'} {'Doctor_Cyber' 'Sun_Girl'} {'Professor_Padraic_Ratigan' 'Star_Sapphire'} {'Lady_Quark' 'Cyborgirl'} {'Spider_Girl' 'Cyborgirl'} {'Roulette' 'Trinity'} {'Blue_Snowman' 'Fem_Paragon'} {'Spider_Girl' 'Fem_Paragon'} {'Amy_Madison' 'Dr_Evil'} {'Lady_Shiva' 'Lafety_Le_Fei'} {'Lady_Clay' 'Lazara'} {'Lady_Quark' 'Nyssa_Raatko'} {'Lady_Quark' 'Tigress'} {'Shimmer' 'Sun_Girl'} {'Blue_Snowman' 'Margaret_Love'} {'Evinlea' 'Coachwhip'} {'Lady_Shiva' 'Fem_Paragon'} {'The_Crimson_Ghost' 'Titania'} {'Amy_Madison' 'New_Wave'} {'Roulette' 'Lazara'} {'The_Crimson_Ghost' 'Trinity'} {'Magenta' 'Snapdragon'} {'Mai_Shen' 'Unicron'} {'Scandal' 'Animora'} {'Lady_Clay' 'Cyborgirl'} {'Lady_Clay' 'Emerald_Empress'} {'Spider_Girl' 'Star_Sapphire'} {'Shimmer' 'Deuce'} {'Spider_Girl' 'Animora'} {'Plastique' 'Tigress'} {'Lady_Quark' 'Fem_Paragon'} {'Magenta' 'Coachwhip'} {'Magenta' 'Unicron'} {'Magenta' 'Cyborgirl'} {'Plastique' 'Coachwhip'} {'Lady_Clay' 'Trinity'} {'The_Crimson_Ghost' 'Dr_Evil'} {'Golden_Glider' 'Tigress'} {'The_Crimson_Ghost' 'Deuce'} {'Amy_Madison' 'Deuce'} {'Amy_Madison' 'Silver_Banshee'} {'Shimmer' 'New_Wave'} {'Scandal' 'Snapdragon'} {'Tala' 'Deuce'} {'Maxima' 'Star_Sapphire'} {'Magenta' 'Sun_Girl'} {'Professor_Padraic_Ratigan' 'Margaret_Love'} {'Bombshell' 'Lafety_Le_Fei'} {'Bombshell' 'Titania'} {'Amy_Madison' 'Animora'} {'Roulette' 'Sun_Girl'} {'Professor_Padraic_Ratigan' 'Deuce'} {'Golden_Glider' 'Lazara'} {'Doctor_Cyber' 'Unicron'} {'Lady_Shiva' 'Nyssa_Raatko'} {'Doctor_Cyber' 'Lazara'} {'Lady_Shiva' 'Trinity'} {'Scandal' 'Margaret_Love'} {'Spider_Girl' 'Tigress'} {'Evinlea' 'Tigress'} {'Maxima' 'Unicron'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Osira' 'Valentina'} {'Magenta' 'Queen_Of_Fables'} {'Devastation' 'Deuce'} {'Silver_Swan' 'Spider_Girl'} {'Saturn_Queen' 'Unicron'} {'Star_Sapphire' 'Sun_Girl'} {'Lady_Octopus' 'Titania'} {'Purgatori' 'Dr_Horrible'} {'Doctor_Cyber' 'White_Rabbit'} {'Mothergod' 'Cyborgirl'} {'King_Ghidorah' 'Abominatrix'} {'Unicron' 'Fury_Leika'} {'Genevieve_Savidge' 'Fake_Thomas_Jefferson'} {'Maxima' 'Hypnota'} {'Southpaw' 'Dr_Evil'} {'Cyborgirl' 'Saturn_Queen'} {'Talia_Al_Ghul' 'Lady_Octopus'} {'Lafety_Le_Fei' 'Lazara'} {'Margaret_Love' 'Emerald_Empress'} {'Typhoid_Mary' 'Osira'} {'Jewelee' 'Amazing_Grace'} {'Jinx' 'Jason_Kreis'} {'Shimmer' 'Talia_Al_Ghul'} {'Snapdragon' 'Devastation'} {'Madame_Rouge' 'Jinx'} {'Dead_Bowie' 'Maxima'} {'Decay' 'Mothergod'} {'Magpie' 'Shimmer'} {'Lady_Quark' 'Superwoman'} {'Shiv' 'Magpie'} {'Syndrome' 'Lady_Clay'} {'Ursa' 'Asbestos_Lady'} {'Silk_Fever' 'Evinlea'} {'Hypnota' 'Genevieve_Savidge'} {'Sun_Girl' 'Plastique'} {'Fury_Leika' 'Silk_Fever'} {'Spider_Girl' 'Mist'} {'Roulette' 'Silver_Swan'} {'Superwoman' 'Queen_Bee'} {'Lotso' 'The_Crimson_Ghost'} {'Eviless' 'Queen_Clea'} {'Titania' 'Rampage'} {'Yellowjacket' 'Lady_Quark'} {'Plastique' 'Poundcakes'} {'Zaladane' 'The_Lightning'} {'Prank' 'Syndrome'} {'Tala' 'Poison_Ivy'} {'Harley_Quinn' 'Lady_Death'} {'Lady_Death' 'Professor_Padraic_Ratigan'} {'Deuce' 'Magenta'} {'White_Rabbit' 'Roulette'} {'Tigress' 'Blue_Snowman'} {'Nyssa_Raatko' 'Zaladane'} {'Asbestos_Lady' 'Rad'} {'Bombshell' 'Tala'} {'Fake_Thomas_Jefferson' 'King_Ghidorah'} {'Dr_Horrible' 'Southpaw'} {'Poison_Ivy' 'Prank'} {'Evinlea' 'Dansen_Macabre'} {'The_Lightning' 'Jewelee'} {'Emerald_Empress' 'Trinity'} {'Mai_Shen' 'Yellowjacket'} {'Lashina' 'Scandal'} {'Lagomorph' 'Silver_Banshee'} {'Madame_Masque' 'Windfall'} {'Livewire' 'Madame_Masque'} {'Abominatrix' 'Snapdragon'} {'Duela_Dent' 'Mai_Shen'} {'Amy_Madison' 'Leather'} {'Silver_Banshee' 'Nyssa_Raatko'} {'Jason_Kreis' 'Bombshell'} {'Queen_Bee' 'Doctor_Cyber'} {'Rad' 'Shiv'} {'Coachwhip' 'Margaret_Love'} {'Golddigger' 'Lafety_Le_Fei'} {'The_Crimson_Ghost' 'Typhoid_Mary'} {'Scandal' 'Harley_Quinn'} {'Queen_Clea' 'Coachwhip'} {'Windfall' 'Fem_Paragon'} {'Trinity' 'Star_Sapphire'} {'Lazara' 'Dead_Bowie'} {'Mist' 'Ingra'} {'Lady_Clay' 'Black_Mamba'} {'Valentina' 'Princess_Python'} {'Poundcakes' 'Lagomorph'} {'Animora' 'Lashina'} {'Princess_Python' 'Madame_Rouge'} {'Gru' 'Livewire'} {'Dr_Evil' 'Duela_Dent'} {'Fem_Paragon' 'Golddigger'} {'Leather' 'Animora'} {'Amazing_Grace' 'Amy_Madison'} {'Queen_Of_Fables' 'Lotso'} {'Ingra' 'Eviless'} {'Rampage' 'Gru'} {'Black_Mamba' 'Tigress'} {'Professor_Padraic_Ratigan' 'Ursa'} {'Dansen_Macabre' 'Purgatori'} {'Blue_Snowman' 'Decay'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Snapdragon' 'Fake_Thomas_Jefferson'} {'Mephista' 'Dr_Horrible'} {'Mephista' 'Queen_Bee'} {'Duela_Dent' 'Fake_Thomas_Jefferson'} {'Blue_Snowman' 'Leather'} {'Poundcakes' 'Ursa'} {'Typhoid_Mary' 'Star_Sapphire'} {'Eviless' 'Ursa'} {'Trinity' 'Mothergod'} {'Blue_Snowman' 'Mai_Shen'} {'Duela_Dent' 'Queen_Bee'} {'Snapdragon' 'The_Lightning'} {'Eviless' 'Mothergod'} {'Gru' 'Bombshell'} {'Blue_Snowman' 'Evinlea'} {'Mephista' 'Jinx'} {'Snapdragon' 'Mai_Shen'} {'Devastation' 'Dr_Horrible'} {'Trinity' 'Ingra'} {'Titania' 'Queen_Bee'} {'Snapdragon' 'Valentina'} {'Eviless' 'Queen_Clea'} {'Gru' 'Professor_Padraic_Ratigan'} {'Blue_Snowman' 'Jinx'} {'Gru' 'Lafety_Le_Fei'} {'Roulette' 'Ursa'} {'Lady_Vic' 'Star_Sapphire'} {'Emerald_Empress' 'Bombshell'} {'Devastation' 'Mai_Shen'} {'Mephista' 'Lafety_Le_Fei'} {'Eviless' 'Fem_Paragon'} {'Blue_Snowman' 'Unicron'} {'Snapdragon' 'Lafety_Le_Fei'} {'Emerald_Empress' 'Mothergod'} {'Typhoid_Mary' 'Valentina'} {'Plastique' 'Jinx'} {'Gru' 'Leather'} {'Dead_Bowie' 'Leather'} {'Lady_Vic' 'The_Lightning'} {'Trinity' 'Margaret_Love'} {'Emerald_Empress' 'Queen_Clea'} {'Typhoid_Mary' 'Lafety_Le_Fei'} {'Devastation' 'Leather'} {'Titania' 'Lafety_Le_Fei'} {'Sun_Girl' 'Bombshell'} {'Dead_Bowie' 'Ursa'} {'Blue_Snowman' 'Queen_Clea'} {'Lady_Vic' 'Ursa'} {'Devastation' 'Professor_Padraic_Ratigan'} {'Gru' 'The_Lightning'} {'Superwoman' 'Mothergod'} {'Poundcakes' 'Ingra'} {'Trinity' 'The_Lightning'} {'Jason_Kreis' 'Fem_Paragon'} {'Lady_Vic' 'Mai_Shen'} {'New_Wave' 'Evinlea'} {'Gru' 'Typhoid_Mary'} {'Gru' 'Valentina'} {'Superwoman' 'Fem_Paragon'} {'Roulette' 'Queen_Bee'} {'Plastique' 'Dr_Horrible'} {'New_Wave' 'Fem_Paragon'} {'Trinity' 'Fem_Paragon'} {'Blue_Snowman' 'The_Lightning'} {'Duela_Dent' 'Unicron'} {'New_Wave' 'Mothergod'} {'Trinity' 'Bombshell'} {'Blue_Snowman' 'Valentina'} {'Gru' 'Ursa'} {'Roulette' 'Mothergod'} {'Gru' 'Mothergod'} {'Sun_Girl' 'Star_Sapphire'} {'Roulette' 'Unicron'} {'Mephista' 'Leather'} {'Devastation' 'Ursa'} {'Devastation' 'Mothergod'} {'Dead_Bowie' 'Margaret_Love'} {'Superwoman' 'Lafety_Le_Fei'} {'Eviless' 'Dr_Horrible'} {'Superwoman' 'Leather'} {'Devastation' 'Ingra'} {'Poundcakes' 'Evinlea'} {'Typhoid_Mary' 'Queen_Clea'} {'Eviless' 'Evinlea'} {'Jason_Kreis' 'Fake_Thomas_Jefferson'} {'Jason_Kreis' 'Professor_Padraic_Ratigan'} {'Superwoman' 'Professor_Padraic_Ratigan'} {'Typhoid_Mary' 'Unicron'} {'New_Wave' 'Leather'} {'Dead_Bowie' 'Jinx'} {'Titania' 'Bombshell'} {'Gru' 'Fake_Thomas_Jefferson'} {'Typhoid_Mary' 'Queen_Bee'} {'Duela_Dent' 'Bombshell'} {'Trinity' 'Jinx'} {'Sun_Girl' 'Jinx'} {'Eviless' 'Fake_Thomas_Jefferson'} {'Titania' 'The_Lightning'} {'Snapdragon' 'Margaret_Love'} {'Plastique' 'Leather'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Abominatrix' 'Osira'} {'Mist' 'Scandal'} {'Queen_Of_Fables' 'Golden_Glider'} {'Roulette' 'Leather'} {'Prank' 'Madame_Rouge'} {'Nyssa_Raatko' 'Mephista'} {'Yellowjacket' 'Lafety_Le_Fei'} {'Princess_Python' 'Typhoid_Mary'} {'Lady_Octopus' 'Queen_Of_Fables'} {'Leather' 'Superwoman'} {'Madame_Rouge' 'Shimmer'} {'Golddigger' 'Asbestos_Lady'} {'Coachwhip' 'Poison_Ivy'} {'Silver_Banshee' 'Jason_Kreis'} {'Tigress' 'Blue_Snowman'} {'Golden_Glider' 'Duela_Dent'} {'Lady_Death' 'Emerald_Empress'} {'Lagomorph' 'Doctor_Cyber'} {'Sun_Girl' 'Purgatori'} {'Animora' 'Silver_Swan'} {'Snapdragon' 'Windfall'} {'Gru' 'Devastation'} {'New_Wave' 'Syndrome'} {'Titania' 'Hypnota'} {'Shiv' 'Gru'} {'Unicron' 'Lady_Shiva'} {'Rad' 'Eviless'} {'Star_Sapphire' 'The_Crimson_Ghost'} {'Syndrome' 'Tala'} {'Ingra' 'Mothergod'} {'Lashina' 'Lady_Vic'} {'Black_Mamba' 'Professor_Padraic_Ratigan'} {'Mephista' 'Dr_Evil'} {'Silver_Swan' 'Evinlea'} {'Doctor_Cyber' 'Queen_Bee'} {'Queen_Bee' 'Nyssa_Raatko'} {'Windfall' 'Shiv'} {'Valentina' 'Lady_Octopus'} {'Livewire' 'The_Lightning'} {'Magenta' 'Silver_Banshee'} {'Lady_Vic' 'Star_Sapphire'} {'Trinity' 'White_Rabbit'} {'Cyborgirl' 'Deuce'} {'Saturn_Queen' 'Dead_Bowie'} {'Magpie' 'Roulette'} {'Osira' 'Valentina'} {'White_Rabbit' 'Harley_Quinn'} {'Hypnota' 'Lady_Death'} {'King_Ghidorah' 'Princess_Python'} {'Queen_Clea' 'Lady_Clay'} {'Shimmer' 'Saturn_Queen'} {'Superwoman' 'Tigress'} {'Evinlea' 'Genevieve_Savidge'} {'Dr_Evil' 'Southpaw'} {'Madame_Masque' 'Lazara'} {'Poison_Ivy' 'Talia_Al_Ghul'} {'Southpaw' 'Abominatrix'} {'Lazara' 'Rad'} {'Lady_Quark' 'Titania'} {'Scandal' 'Spider_Girl'} {'Maxima' 'Animora'} {'Asbestos_Lady' 'Mai_Shen'} {'Purgatori' 'King_Ghidorah'} {'Deuce' 'Coachwhip'} {'Eviless' 'Lashina'} {'Dead_Bowie' 'Amazing_Grace'} {'Harley_Quinn' 'Livewire'} {'Jinx' 'Trinity'} {'Plastique' 'Poundcakes'} {'Amy_Madison' 'Queen_Clea'} {'Blue_Snowman' 'Golddigger'} {'Lotso' 'Lady_Quark'} {'Typhoid_Mary' 'Yellowjacket'} {'Poundcakes' 'Ursa'} {'Silk_Fever' 'Cyborgirl'} {'The_Lightning' 'Ingra'} {'Fem_Paragon' 'Amy_Madison'} {'Mothergod' 'Snapdragon'} {'Dr_Horrible' 'Fury_Leika'} {'Tala' 'Unicron'} {'Talia_Al_Ghul' 'Mist'} {'Spider_Girl' 'Magpie'} {'Jewelee' 'Silk_Fever'} {'Fury_Leika' 'Fem_Paragon'} {'The_Crimson_Ghost' 'Dr_Horrible'} {'Lafety_Le_Fei' 'Maxima'} {'Amazing_Grace' 'Decay'} {'Genevieve_Savidge' 'Plastique'} {'Mai_Shen' 'Lotso'} {'Lady_Clay' 'Magenta'} {'Devastation' 'Madame_Masque'} {'Margaret_Love' 'Black_Mamba'} {'Emerald_Empress' 'New_Wave'} {'Decay' 'Jewelee'} {'Zaladane' 'Margaret_Love'} {'Ursa' 'Jinx'} {'Professor_Padraic_Ratigan' 'Prank'} {'Lady_Shiva' 'Lagomorph'} {'Jason_Kreis' 'Zaladane'} {'Duela_Dent' 'Sun_Girl'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Animora' 'Typhoid_Mary'} {'Mothergod' 'Cyborgirl'} {'Emerald_Empress' 'Coachwhip'} {'Dansen_Macabre' 'King_Ghidorah'} {'Emerald_Empress' 'Lagomorph'} {'Zaladane' 'Professor_Padraic_Ratigan'} {'Lady_Vic' 'Cyborgirl'} {'Saturn_Queen' 'Coachwhip'} {'Silver_Banshee' 'Mai_Shen'} {'The_Lightning' 'Windfall'} {'Talia_Al_Ghul' 'Coachwhip'} {'Lady_Death' 'Yellowjacket'} {'Saturn_Queen' 'Mist'} {'Lady_Vic' 'Sun_Girl'} {'Animora' 'Windfall'} {'Emerald_Empress' 'Princess_Python'} {'Talia_Al_Ghul' 'Evinlea'} {'Purgatori' 'Evinlea'} {'Lady_Vic' 'Mai_Shen'} {'Talia_Al_Ghul' 'Sun_Girl'} {'Saturn_Queen' 'King_Ghidorah'} {'Zaladane' 'Silk_Fever'} {'Purgatori' 'Mai_Shen'} {'Animora' 'Princess_Python'} {'Lady_Vic' 'Silk_Fever'} {'Magenta' 'Sun_Girl'} {'Animora' 'Sun_Girl'} {'Talia_Al_Ghul' 'Valentina'} {'Saturn_Queen' 'Silk_Fever'} {'Mothergod' 'Lady_Shiva'} {'Mothergod' 'Harley_Quinn'} {'Prank' 'Typhoid_Mary'} {'Prank' 'Sun_Girl'} {'Prank' 'Cyborgirl'} {'Prank' 'Lagomorph'} {'Lady_Vic' 'Mist'} {'Shiv' 'Mist'} {'Abominatrix' 'Mai_Shen'} {'Abominatrix' 'Sun_Girl'} {'Silver_Banshee' 'Princess_Python'} {'Purgatori' 'Black_Mamba'} {'Silver_Banshee' 'Windfall'} {'Shiv' 'Osira'} {'Talia_Al_Ghul' 'Mist'} {'Dansen_Macabre' 'Typhoid_Mary'} {'Golddigger' 'Black_Mamba'} {'Shiv' 'Dr_Horrible'} {'Silver_Banshee' 'Osira'} {'Prank' 'Dr_Horrible'} {'The_Lightning' 'Professor_Padraic_Ratigan'} {'Purgatori' 'Typhoid_Mary'} {'Purgatori' 'Mist'} {'Magpie' 'Princess_Python'} {'Magenta' 'Cyborgirl'} {'Silver_Banshee' 'Lady_Shiva'} {'Zaladane' 'Coachwhip'} {'The_Lightning' 'Mist'} {'Magpie' 'Dr_Horrible'} {'Mothergod' 'Lagomorph'} {'Lady_Death' 'Lagomorph'} {'Shiv' 'Silk_Fever'} {'Lady_Octopus' 'Professor_Padraic_Ratigan'} {'Saturn_Queen' 'Sun_Girl'} {'Silver_Banshee' 'Typhoid_Mary'} {'Magpie' 'Harley_Quinn'} {'Emerald_Empress' 'Osira'} {'Saturn_Queen' 'Evinlea'} {'Prank' 'Princess_Python'} {'Lady_Octopus' 'Lady_Shiva'} {'Prank' 'Silk_Fever'} {'Abominatrix' 'Black_Mamba'} {'The_Lightning' 'Valentina'} {'Mothergod' 'Mai_Shen'} {'Lady_Vic' 'Professor_Padraic_Ratigan'} {'Lady_Vic' 'Dr_Horrible'} {'Abominatrix' 'Mist'} {'Magenta' 'Princess_Python'} {'Purgatori' 'Lagomorph'} {'Lady_Death' 'Mai_Shen'} {'Abominatrix' 'Silk_Fever'} {'The_Lightning' 'Black_Mamba'} {'Magenta' 'Yellowjacket'} {'Golddigger' 'Evinlea'} {'Prank' 'Professor_Padraic_Ratigan'} {'Abominatrix' 'Valentina'} {'Magpie' 'Typhoid_Mary'} {'Golddigger' 'King_Ghidorah'} {'Animora' 'Cyborgirl'} {'Magpie' 'Valentina'} {'Talia_Al_Ghul' 'Yellowjacket'} {'Magenta' 'Typhoid_Mary'} {'Lady_Death' 'Black_Mamba'} {'Dansen_Macabre' 'Dr_Horrible'} {'Fake_Thomas_Jefferson' 'Princess_Python'} {'The_Lightning' 'Dr_Horrible'} {'Zaladane' 'Mist'} {'Lady_Death' 'Valentina'} {'Fake_Thomas_Jefferson' 'Lagomorph'} {'Emerald_Empress' 'Cyborgirl'} {'Animora' 'King_Ghidorah'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Magpie' 'Blue_Snowman'} {'Magpie' 'Lafety_Le_Fei'} {'Magpie' 'Lady_Quark'} {'Magpie' 'Lady_Shiva'} {'Magpie' 'The_Crimson_Ghost'} {'Magpie' 'Purgatori'} {'Magpie' 'Titania'} {'Magpie' 'Nyssa_Raatko'} {'Magpie' 'Mephista'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Banshee' 'Titania'} {'Zaladane' 'Silk_Fever'} {'Magpie' 'Dead_Bowie'} {'Magpie' 'Animora'} {'Saturn_Queen' 'Jinx'} {'Margaret_Love' 'White_Rabbit'} {'Zaladane' 'Lazara'} {'Snapdragon' 'Jewelee'} {'Queen_Bee' 'Silk_Fever'} {'Spider_Girl' 'Silver_Swan'} {'Silver_Banshee' 'Lazara'} {'Decay' 'Silk_Fever'} {'Magpie' 'White_Rabbit'} {'Saturn_Queen' 'Fem_Paragon'} {'Spider_Girl' 'Dr_Evil'} {'Decay' 'Lagomorph'} {'Rampage' 'Titania'} {'Lashina' 'Dead_Bowie'} {'Spider_Girl' 'Queen_Of_Fables'} {'Lady_Death' 'Silk_Fever'} {'Lady_Death' 'Jewelee'} {'Shimmer' 'Fem_Paragon'} {'Lashina' 'Evinlea'} {'Magpie' 'Dr_Horrible'} {'Lady_Death' 'Cyborgirl'} {'Asbestos_Lady' 'Evinlea'} {'Rampage' 'Sun_Girl'} {'Silver_Banshee' 'Jewelee'} {'Bombshell' 'White_Rabbit'} {'Saturn_Queen' 'Dr_Evil'} {'Silver_Banshee' 'Animora'} {'Harley_Quinn' 'Silver_Swan'} {'Lafety_Le_Fei' 'Fem_Paragon'} {'King_Ghidorah' 'Silk_Fever'} {'Lashina' 'Lady_Shiva'} {'Lashina' 'Lagomorph'} {'Zaladane' 'Lady_Shiva'} {'Zaladane' 'Animora'} {'Harley_Quinn' 'Cyborgirl'} {'Devastation' 'Lagomorph'} {'Snapdragon' 'Cyborgirl'} {'Snapdragon' 'Livewire'} {'Hypnota' 'Silk_Fever'} {'Bombshell' 'Silver_Swan'} {'Margaret_Love' 'Jewelee'} {'Hypnota' 'Queen_Of_Fables'} {'Saturn_Queen' 'Lazara'} {'Lafety_Le_Fei' 'Lady_Shiva'} {'Spider_Girl' 'Fem_Paragon'} {'Decay' 'Dead_Bowie'} {'Harley_Quinn' 'Jewelee'} {'Decay' 'Titania'} {'Bombshell' 'Sun_Girl'} {'Hypnota' 'Dr_Horrible'} {'Queen_Bee' 'White_Rabbit'} {'Decay' 'Dr_Horrible'} {'Asbestos_Lady' 'White_Rabbit'} {'Lafety_Le_Fei' 'Titania'} {'Harley_Quinn' 'Queen_Of_Fables'} {'Queen_Bee' 'Dead_Bowie'} {'Devastation' 'White_Rabbit'} {'Bombshell' 'Cyborgirl'} {'Devastation' 'New_Wave'} {'King_Ghidorah' 'Jinx'} {'Margaret_Love' 'Dead_Bowie'} {'Rampage' 'Dead_Bowie'} {'Queen_Bee' 'Titania'} {'Queen_Bee' 'Jewelee'} {'Lady_Death' 'Dr_Evil'} {'Magpie' 'Lazara'} {'Silver_Banshee' 'Livewire'} {'Decay' 'Lazara'} {'Zaladane' 'Dr_Evil'} {'Lashina' 'Titania'} {'Hypnota' 'Jinx'} {'Spider_Girl' 'Dr_Horrible'} {'Shimmer' 'Silver_Swan'} {'Margaret_Love' 'New_Wave'} {'Decay' 'Evinlea'} {'Magpie' 'Cyborgirl'} {'King_Ghidorah' 'Queen_Of_Fables'} {'Rampage' 'Silver_Swan'} {'Bombshell' 'Animora'} {'Harley_Quinn' 'Sun_Girl'} {'Magpie' 'Jewelee'} {'Lafety_Le_Fei' 'Livewire'} {'King_Ghidorah' 'Dr_Evil'} {'Lashina' 'White_Rabbit'} {'Shimmer' 'Queen_Of_Fables'} {'Asbestos_Lady' 'Dr_Horrible'} {'Hypnota' 'Fem_Paragon'} {'Lafety_Le_Fei' 'Dr_Evil'} {'Spider_Girl' 'Livewire'} {'Magpie' 'Lady_Shiva'} {'Devastation' 'Shimmer'} {'Lady_Death' 'Dr_Horrible'} {'King_Ghidorah' 'Silver_Swan'} {'Asbestos_Lady' 'Livewire'} {'Spider_Girl' 'Jewelee'} {'Silver_Banshee' 'Sun_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Madame_Masque' 'Rampage'} {'Abominatrix' 'Superwoman'} {'Silver_Banshee' 'Zaladane'} {'Abominatrix' 'Shimmer'} {'Fem_Paragon' 'Rampage'} {'Valentina' 'Star_Sapphire'} {'Titania' 'Lazara'} {'Dr_Horrible' 'Professor_Padraic_Ratigan'} {'Fem_Paragon' 'Livewire'} {'Golden_Glider' 'Decay'} {'Duela_Dent' 'Superwoman'} {'Valentina' 'Zaladane'} {'Valentina' 'Amazing_Grace'} {'Golddigger' 'Madame_Rouge'} {'Dr_Horrible' 'Star_Sapphire'} {'Bombshell' 'Rad'} {'Queen_Clea' 'Purgatori'} {'Valentina' 'Lady_Vic'} {'Jewelee' 'Madame_Rouge'} {'Harley_Quinn' 'Madame_Rouge'} {'Professor_Padraic_Ratigan' 'Purgatori'} {'Professor_Padraic_Ratigan' 'Saturn_Queen'} {'Golden_Glider' 'Saturn_Queen'} {'Genevieve_Savidge' 'Queen_Bee'} {'Sun_Girl' 'Amazing_Grace'} {'Sun_Girl' 'Dansen_Macabre'} {'Golddigger' 'Amazing_Grace'} {'Queen_Clea' 'Madame_Rouge'} {'Sun_Girl' 'Star_Sapphire'} {'Silver_Banshee' 'Superwoman'} {'The_Lightning' 'Purgatori'} {'Golddigger' 'Lazara'} {'Bombshell' 'Silk_Fever'} {'Queen_Of_Fables' 'Rad'} {'Harley_Quinn' 'Lady_Vic'} {'Bombshell' 'Decay'} {'Golden_Glider' 'Star_Sapphire'} {'Abominatrix' 'Madame_Rouge'} {'Jewelee' 'Maxima'} {'Mist' 'Spider_Girl'} {'The_Lightning' 'Saturn_Queen'} {'Golddigger' 'Maxima'} {'Golddigger' 'Spider_Girl'} {'Mist' 'Lazara'} {'Sun_Girl' 'Shimmer'} {'Fem_Paragon' 'Queen_Bee'} {'Sun_Girl' 'Spider_Girl'} {'Duela_Dent' 'Maxima'} {'Silver_Banshee' 'Livewire'} {'The_Lightning' 'Superwoman'} {'Dr_Horrible' 'Silk_Fever'} {'Sun_Girl' 'Rad'} {'Titania' 'Decay'} {'Abominatrix' 'Saturn_Queen'} {'Titania' 'Lady_Death'} {'The_Lightning' 'Silk_Fever'} {'Jewelee' 'Silk_Fever'} {'Golden_Glider' 'Lazara'} {'Queen_Of_Fables' 'Star_Sapphire'} {'Jewelee' 'Zaladane'} {'Genevieve_Savidge' 'Lazara'} {'Sun_Girl' 'Lady_Death'} {'Genevieve_Savidge' 'Purgatori'} {'Golddigger' 'Zaladane'} {'Madame_Masque' 'Zaladane'} {'Golden_Glider' 'Rampage'} {'Queen_Clea' 'Decay'} {'Golddigger' 'Silk_Fever'} {'Queen_Of_Fables' 'Saturn_Queen'} {'Madame_Masque' 'Dansen_Macabre'} {'Fem_Paragon' 'Shimmer'} {'The_Lightning' 'Queen_Bee'} {'Queen_Clea' 'Silk_Fever'} {'Titania' 'Rad'} {'Professor_Padraic_Ratigan' 'Maxima'} {'Madame_Masque' 'Queen_Bee'} {'Queen_Of_Fables' 'Dansen_Macabre'} {'Golden_Glider' 'Rad'} {'Queen_Of_Fables' 'Lazara'} {'Sun_Girl' 'Silk_Fever'} {'Jewelee' 'Superwoman'} {'Queen_Clea' 'Star_Sapphire'} {'Mist' 'Maxima'} {'Fem_Paragon' 'Purgatori'} {'Titania' 'Maxima'} {'Jewelee' 'Saturn_Queen'} {'Genevieve_Savidge' 'Rad'} {'Jewelee' 'Rampage'} {'Bombshell' 'Lazara'} {'Mist' 'Lady_Death'} {'Harley_Quinn' 'Rampage'} {'Abominatrix' 'Lazara'} {'Genevieve_Savidge' 'Zaladane'} {'Dr_Horrible' 'Amazing_Grace'} {'Titania' 'Shimmer'} {'Professor_Padraic_Ratigan' 'Queen_Bee'} {'Dr_Horrible' 'Zaladane'} {'Sun_Girl' 'Purgatori'} {'Valentina' 'Dansen_Macabre'} {'Silver_Banshee' 'Lady_Vic'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Yellowjacket' 'Margaret_Love'} {'Lady_Vic' 'Evinlea'} {'Princess_Python' 'Amy_Madison'} {'Tigress' 'Evinlea'} {'Mist' 'Evinlea'} {'Roulette' 'Silver_Banshee'} {'Lady_Shiva' 'Cyborgirl'} {'Madame_Rouge' 'Decay'} {'Lady_Vic' 'Cyborgirl'} {'Titania' 'Madame_Masque'} {'Unicron' 'Amy_Madison'} {'Unicron' 'Madame_Masque'} {'Osira' 'Decay'} {'Titania' 'Decay'} {'Osira' 'Margaret_Love'} {'Lady_Shiva' 'Poundcakes'} {'Fake_Thomas_Jefferson' 'Black_Mamba'} {'Mist' 'Genevieve_Savidge'} {'Lady_Shiva' 'Duela_Dent'} {'Mist' 'Maxima'} {'Mai_Shen' 'Amazing_Grace'} {'Mai_Shen' 'Black_Mamba'} {'Yellowjacket' 'Black_Mamba'} {'Princess_Python' 'Silver_Banshee'} {'Queen_Bee' 'Hypnota'} {'Madame_Rouge' 'Duela_Dent'} {'Lady_Vic' 'Hypnota'} {'Queen_Of_Fables' 'Poundcakes'} {'Lady_Death' 'Purgatori'} {'Lady_Death' 'Spider_Girl'} {'Plastique' 'Trinity'} {'Tigress' 'Genevieve_Savidge'} {'Titania' 'Silver_Banshee'} {'Tigress' 'Amazing_Grace'} {'Plastique' 'Duela_Dent'} {'Lady_Shiva' 'Madame_Masque'} {'Yellowjacket' 'Evinlea'} {'Lady_Death' 'Margaret_Love'} {'Titania' 'Amy_Madison'} {'Ursa' 'Poundcakes'} {'Madame_Rouge' 'Maxima'} {'Lady_Death' 'Southpaw'} {'Mothergod' 'Hypnota'} {'Princess_Python' 'Margaret_Love'} {'Mai_Shen' 'Duela_Dent'} {'Ursa' 'Duela_Dent'} {'Mist' 'Black_Mamba'} {'Mist' 'Nyssa_Raatko'} {'Plastique' 'Southpaw'} {'Lady_Vic' 'Nyssa_Raatko'} {'Queen_Bee' 'Jason_Kreis'} {'Plastique' 'Decay'} {'Unicron' 'Margaret_Love'} {'Prank' 'Spider_Girl'} {'Ursa' 'Madame_Masque'} {'Prank' 'Genevieve_Savidge'} {'Plastique' 'Spider_Girl'} {'Fake_Thomas_Jefferson' 'Hypnota'} {'Queen_Bee' 'Evinlea'} {'Ursa' 'Nyssa_Raatko'} {'Queen_Of_Fables' 'Nyssa_Raatko'} {'Tigress' 'Purgatori'} {'Princess_Python' 'Jason_Kreis'} {'Madame_Rouge' 'Purgatori'} {'Queen_Bee' 'Southpaw'} {'Madame_Rouge' 'Amy_Madison'} {'Queen_Of_Fables' 'Margaret_Love'} {'Queen_Bee' 'Duela_Dent'} {'Madame_Rouge' 'Genevieve_Savidge'} {'Unicron' 'Cyborgirl'} {'Ursa' 'Evinlea'} {'Titania' 'Maxima'} {'Mothergod' 'Trinity'} {'Princess_Python' 'Purgatori'} {'Ursa' 'Silver_Banshee'} {'Queen_Of_Fables' 'Amazing_Grace'} {'Fake_Thomas_Jefferson' 'Amy_Madison'} {'Queen_Bee' 'Amazing_Grace'} {'Osira' 'Jason_Kreis'} {'Tigress' 'Duela_Dent'} {'Queen_Of_Fables' 'Black_Mamba'} {'Osira' 'Southpaw'} {'Yellowjacket' 'Plastique'} {'Lady_Death' 'Duela_Dent'} {'Mai_Shen' 'Margaret_Love'} {'Mothergod' 'Genevieve_Savidge'} {'Lady_Shiva' 'Hypnota'} {'Roulette' 'Cyborgirl'} {'Tigress' 'Trinity'} {'Ursa' 'Cyborgirl'} {'Mothergod' 'Poundcakes'} {'Fake_Thomas_Jefferson' 'Amazing_Grace'} {'Madame_Rouge' 'Margaret_Love'} {'Unicron' 'Evinlea'} {'Plastique' 'Amy_Madison'} {'Lady_Death' 'Hypnota'} {'Roulette' 'Black_Mamba'} {'Unicron' 'Amazing_Grace'} {'Lady_Vic' 'Maxima'} {'Prank' 'Madame_Masque'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Genevieve_Savidge' 'Queen_Of_Fables'} {'Genevieve_Savidge' 'Spider_Girl'} {'Gru' 'Trinity'} {'Genevieve_Savidge' 'Trinity'} {'Gru' 'Spider_Girl'} {'Unicron' 'Queen_Of_Fables'} {'Unicron' 'Trinity'} {'Unicron' 'Spider_Girl'} {'Gru' 'Queen_Of_Fables'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Magpie' 'White_Rabbit'} {'Jinx' 'Silk_Fever'} {'Golden_Glider' 'Plastique'} {'Queen_Bee' 'Mist'} {'Jinx' 'Valentina'} {'Princess_Python' 'Lady_Quark'} {'Golddigger' 'White_Rabbit'} {'Golddigger' 'Mist'} {'Poison_Ivy' 'Purgatori'} {'The_Crimson_Ghost' 'Osira'} {'Queen_Bee' 'Yellowjacket'} {'Poundcakes' 'Lady_Death'} {'Golden_Glider' 'White_Rabbit'} {'Lady_Shiva' 'Osira'} {'Margaret_Love' 'Lady_Death'} {'Magpie' 'Lazara'} {'Queen_Bee' 'Ursa'} {'Poundcakes' 'Harley_Quinn'} {'Leather' 'Lady_Quark'} {'Rad' 'Scandal'} {'Golddigger' 'Osira'} {'Magpie' 'Mist'} {'Magpie' 'Jinx'} {'Leather' 'Lazara'} {'Snapdragon' 'King_Ghidorah'} {'Maxima' 'King_Ghidorah'} {'Magpie' 'Spider_Girl'} {'Snapdragon' 'Harley_Quinn'} {'Poundcakes' 'Livewire'} {'Snapdragon' 'Gru'} {'Jinx' 'Spider_Girl'} {'Rad' 'Gru'} {'Jinx' 'Mist'} {'The_Crimson_Ghost' 'Valentina'} {'The_Crimson_Ghost' 'Livewire'} {'New_Wave' 'Plastique'} {'Princess_Python' 'Deuce'} {'Snapdragon' 'Spider_Girl'} {'The_Lightning' 'Mist'} {'Ingra' 'Jason_Kreis'} {'Golden_Glider' 'Silk_Fever'} {'New_Wave' 'Mist'} {'Poison_Ivy' 'Silk_Fever'} {'Jewelee' 'White_Rabbit'} {'Golddigger' 'Lady_Death'} {'Margaret_Love' 'Jason_Kreis'} {'Poison_Ivy' 'Mist'} {'Margaret_Love' 'Yellowjacket'} {'Rampage' 'Jason_Kreis'} {'Maxima' 'Spider_Girl'} {'Rampage' 'Scandal'} {'Rampage' 'Lady_Quark'} {'New_Wave' 'White_Rabbit'} {'Lady_Shiva' 'Spider_Girl'} {'Lady_Shiva' 'Purgatori'} {'Poison_Ivy' 'Valentina'} {'Jewelee' 'Lady_Death'} {'Ingra' 'Harley_Quinn'} {'Princess_Python' 'Yellowjacket'} {'Lady_Shiva' 'Deuce'} {'Jewelee' 'Lady_Quark'} {'Rad' 'Lazara'} {'Rad' 'Osira'} {'Maxima' 'Scandal'} {'The_Lightning' 'Yellowjacket'} {'Magpie' 'Jason_Kreis'} {'Queen_Bee' 'Purgatori'} {'Princess_Python' 'Ursa'} {'New_Wave' 'Deuce'} {'Rampage' 'Ursa'} {'The_Crimson_Ghost' 'Lazara'} {'Magpie' 'King_Ghidorah'} {'Maxima' 'Mist'} {'Ingra' 'Purgatori'} {'Ingra' 'Scandal'} {'Golden_Glider' 'Deuce'} {'Poison_Ivy' 'Plastique'} {'Rad' 'Silk_Fever'} {'Jewelee' 'King_Ghidorah'} {'Queen_Bee' 'Scandal'} {'Golddigger' 'Livewire'} {'Maxima' 'Ursa'} {'Leather' 'Mist'} {'The_Lightning' 'Deuce'} {'Golddigger' 'Purgatori'} {'New_Wave' 'Gru'} {'Lady_Shiva' 'Plastique'} {'Leather' 'Spider_Girl'} {'Poison_Ivy' 'King_Ghidorah'} {'Golddigger' 'Yellowjacket'} {'Margaret_Love' 'Spider_Girl'} {'Ingra' 'Lady_Death'} {'Lady_Shiva' 'Silk_Fever'} {'Margaret_Love' 'Mist'} {'Jinx' 'White_Rabbit'} {'Ingra' 'Spider_Girl'} {'Maxima' 'Harley_Quinn'} {'Lady_Shiva' 'Harley_Quinn'} {'Poison_Ivy' 'Spider_Girl'} {'The_Crimson_Ghost' 'King_Ghidorah'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'The_Lightning' 'Saturn_Queen'} {'The_Lightning' 'Tigress'} {'Princess_Python' 'Superwoman'} {'Princess_Python' 'Tigress'} {'The_Lightning' 'Black_Mamba'} {'The_Lightning' 'Osira'} {'Princess_Python' 'Osira'} {'Princess_Python' 'Saturn_Queen'} {'Princess_Python' 'Black_Mamba'} {'The_Lightning' 'Superwoman'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Decay' 'Typhoid_Mary'} {'Saturn_Queen' 'Silver_Banshee'} {'Golden_Glider' 'The_Lightning'} {'Blue_Snowman' 'Margaret_Love'} {'Amazing_Grace' 'Magpie'} {'Spider_Girl' 'Genevieve_Savidge'} {'Princess_Python' 'Bombshell'} {'Roulette' 'Golddigger'} {'Syndrome' 'Silk_Fever'} {'Roulette' 'Margaret_Love'} {'Syndrome' 'Lady_Clay'} {'Prank' 'Jewelee'} {'Plastique' 'Magenta'} {'Trinity' 'Nyssa_Raatko'} {'Golden_Glider' 'Lafety_Le_Fei'} {'Spider_Girl' 'Jewelee'} {'Queen_Clea' 'Magenta'} {'Roulette' 'Typhoid_Mary'} {'Poundcakes' 'Silk_Fever'} {'Prank' 'Typhoid_Mary'} {'Amy_Madison' 'Titania'} {'Poundcakes' 'Magenta'} {'Syndrome' 'Rad'} {'Ursa' 'Genevieve_Savidge'} {'Blue_Snowman' 'Nyssa_Raatko'} {'Trinity' 'Margaret_Love'} {'Madame_Masque' 'Magpie'} {'Amy_Madison' 'Margaret_Love'} {'Amy_Madison' 'Genevieve_Savidge'} {'Saturn_Queen' 'Lafety_Le_Fei'} {'Plastique' 'Jewelee'} {'Blue_Snowman' 'Genevieve_Savidge'} {'Amy_Madison' 'Silver_Banshee'} {'Amazing_Grace' 'Lady_Death'} {'Princess_Python' 'Sun_Girl'} {'Blue_Snowman' 'Jewelee'} {'Blue_Snowman' 'Rad'} {'Queen_Of_Fables' 'Magenta'} {'Amy_Madison' 'Lady_Death'} {'Madame_Masque' 'The_Lightning'} {'Unicron' 'Lady_Clay'} {'Trinity' 'Lafety_Le_Fei'} {'Decay' 'Lady_Death'} {'Princess_Python' 'Nyssa_Raatko'} {'Trinity' 'Leather'} {'Lotso' 'Leather'} {'Amazing_Grace' 'Golddigger'} {'Madame_Masque' 'Leather'} {'Plastique' 'Silk_Fever'} {'Decay' 'Silk_Fever'} {'Lotso' 'Queen_Bee'} {'Amy_Madison' 'Nyssa_Raatko'} {'Prank' 'Magenta'} {'Queen_Clea' 'Magpie'} {'Queen_Of_Fables' 'Lafety_Le_Fei'} {'Trinity' 'Magenta'} {'Unicron' 'Bombshell'} {'Ursa' 'Sun_Girl'} {'Blue_Snowman' 'Typhoid_Mary'} {'Amazing_Grace' 'Lafety_Le_Fei'} {'Madame_Masque' 'Silver_Banshee'} {'Spider_Girl' 'Typhoid_Mary'} {'Ursa' 'Silk_Fever'} {'Poundcakes' 'Jewelee'} {'Queen_Of_Fables' 'Golddigger'} {'Unicron' 'Genevieve_Savidge'} {'Prank' 'Nyssa_Raatko'} {'Amy_Madison' 'The_Lightning'} {'Saturn_Queen' 'Silk_Fever'} {'Amy_Madison' 'Lafety_Le_Fei'} {'Roulette' 'Sun_Girl'} {'Ursa' 'Magpie'} {'Decay' 'Leather'} {'Golden_Glider' 'Lady_Death'} {'Queen_Clea' 'Leather'} {'Trinity' 'Bombshell'} {'Ursa' 'Lady_Clay'} {'Golden_Glider' 'Typhoid_Mary'} {'Trinity' 'Genevieve_Savidge'} {'Roulette' 'Leather'} {'Ursa' 'Rad'} {'Queen_Of_Fables' 'Genevieve_Savidge'} {'Roulette' 'Silver_Banshee'} {'Plastique' 'Margaret_Love'} {'Syndrome' 'Genevieve_Savidge'} {'Syndrome' 'Silver_Banshee'} {'Golden_Glider' 'Silk_Fever'} {'Prank' 'Titania'} {'Golden_Glider' 'Nyssa_Raatko'} {'Amy_Madison' 'Silk_Fever'} {'Trinity' 'Golddigger'} {'Plastique' 'Lady_Clay'} {'Amazing_Grace' 'Queen_Bee'} {'Unicron' 'The_Lightning'} {'Poundcakes' 'Bombshell'} {'Madame_Masque' 'Lafety_Le_Fei'} {'Saturn_Queen' 'Margaret_Love'} {'Princess_Python' 'Queen_Bee'} {'Ursa' 'Jewelee'} {'Queen_Of_Fables' 'Titania'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lady_Quark' 'Madame_Masque'} {'Coachwhip' 'Lady_Quark'} {'Lady_Clay' 'Coachwhip'} {'Madame_Masque' 'Southpaw'} {'Talia_Al_Ghul' 'Lady_Clay'} {'Southpaw' 'Talia_Al_Ghul'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Gru' 'Prank'} {'Lady_Shiva' 'Spider_Girl'} {'Gru' 'Spider_Girl'} {'Lady_Shiva' 'Prank'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Bee' 'Professor_Padraic_Ratigan'} {'Lagomorph' 'Gru'} {'White_Rabbit' 'Zaladane'} {'Lagomorph' 'Madame_Masque'} {'Unicron' 'Lady_Quark'} {'Unicron' 'Zaladane'} {'Saturn_Queen' 'Fake_Thomas_Jefferson'} {'Mephista' 'Professor_Padraic_Ratigan'} {'Silver_Swan' 'Madame_Rouge'} {'Mephista' 'Lafety_Le_Fei'} {'Lashina' 'Hypnota'} {'Saturn_Queen' 'Hypnota'} {'Golden_Glider' 'Fake_Thomas_Jefferson'} {'Madame_Masque' 'Typhoid_Mary'} {'Black_Mamba' 'Plastique'} {'Lagomorph' 'Rampage'} {'Tala' 'Prank'} {'Black_Mamba' 'Animora'} {'Queen_Bee' 'Hypnota'} {'Black_Mamba' 'Rampage'} {'Lady_Vic' 'Hypnota'} {'Mephista' 'Gru'} {'Roulette' 'Superwoman'} {'Unicron' 'Bombshell'} {'Southpaw' 'Madame_Rouge'} {'Queen_Bee' 'Zaladane'} {'Black_Mamba' 'Golddigger'} {'Deuce' 'Bombshell'} {'Southpaw' 'Rampage'} {'Queen_Bee' 'Madame_Rouge'} {'Lady_Vic' 'Lafety_Le_Fei'} {'Lashina' 'Typhoid_Mary'} {'White_Rabbit' 'Dansen_Macabre'} {'Mephista' 'Rampage'} {'Deuce' 'Superwoman'} {'Madame_Masque' 'Queen_Of_Fables'} {'Trinity' 'Fake_Thomas_Jefferson'} {'Roulette' 'Valentina'} {'Silver_Swan' 'Lady_Quark'} {'The_Lightning' 'Bombshell'} {'Lady_Vic' 'Zaladane'} {'The_Lightning' 'Animora'} {'Queen_Bee' 'Fake_Thomas_Jefferson'} {'Silver_Swan' 'Plastique'} {'Lagomorph' 'Professor_Padraic_Ratigan'} {'Tala' 'Animora'} {'Mephista' 'Animora'} {'Madame_Masque' 'Superwoman'} {'Tala' 'Typhoid_Mary'} {'Mephista' 'Valentina'} {'Roulette' 'Zaladane'} {'Southpaw' 'Professor_Padraic_Ratigan'} {'The_Lightning' 'Superwoman'} {'Trinity' 'Plastique'} {'Golden_Glider' 'Madame_Rouge'} {'Titania' 'Rampage'} {'Deuce' 'Professor_Padraic_Ratigan'} {'Deuce' 'Lady_Quark'} {'Madame_Masque' 'Golddigger'} {'Tala' 'Bombshell'} {'Madame_Masque' 'Prank'} {'Deuce' 'Madame_Rouge'} {'Mephista' 'Dansen_Macabre'} {'Lagomorph' 'Mai_Shen'} {'Southpaw' 'Gru'} {'Silver_Swan' 'Typhoid_Mary'} {'Saturn_Queen' 'Superwoman'} {'White_Rabbit' 'Queen_Of_Fables'} {'Golden_Glider' 'Mai_Shen'} {'Golden_Glider' 'Lafety_Le_Fei'} {'The_Lightning' 'Gru'} {'Lady_Vic' 'Golddigger'} {'Madame_Masque' 'Fake_Thomas_Jefferson'} {'King_Ghidorah' 'Prank'} {'Black_Mamba' 'Fake_Thomas_Jefferson'} {'Trinity' 'Lady_Quark'} {'Tala' 'Madame_Rouge'} {'King_Ghidorah' 'Hypnota'} {'Tala' 'Plastique'} {'Golden_Glider' 'Gru'} {'Mephista' 'Golddigger'} {'The_Lightning' 'Fake_Thomas_Jefferson'} {'Roulette' 'Dansen_Macabre'} {'Queen_Bee' 'Animora'} {'Titania' 'Animora'} {'Black_Mamba' 'Gru'} {'Silver_Swan' 'Hypnota'} {'Saturn_Queen' 'Queen_Of_Fables'} {'The_Lightning' 'Prank'} {'Titania' 'Dansen_Macabre'} {'Southpaw' 'Golddigger'} {'The_Lightning' 'Queen_Of_Fables'} {'Trinity' 'Valentina'} {'Trinity' 'Hypnota'} {'Silver_Swan' 'Valentina'} {'Black_Mamba' 'Lafety_Le_Fei'} {'King_Ghidorah' 'Plastique'} {'Queen_Bee' 'Prank'} {'Unicron' 'Superwoman'} {'Deuce' 'Dansen_Macabre'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Windfall'} {'Syndrome' 'Queen_Bee'} {'Dr_Horrible' 'Mai_Shen'} {'Windfall' 'Animora'} {'New_Wave' 'Dr_Horrible'} {'Animora' 'Syndrome'} {'Queen_Bee' 'New_Wave'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Unicron' 'Shiv'} {'Titania' 'Magpie'} {'Queen_Of_Fables' 'Superwoman'} {'Roulette' 'Amazing_Grace'} {'Queen_Of_Fables' 'Princess_Python'} {'Dansen_Macabre' 'Mai_Shen'} {'Madame_Rouge' 'Scandal'} {'Ingra' 'Fury_Leika'} {'Harley_Quinn' 'Emerald_Empress'} {'Fem_Paragon' 'Shiv'} {'Dead_Bowie' 'Star_Sapphire'} {'Gru' 'Abominatrix'} {'Mist' 'Abominatrix'} {'Titania' 'Superwoman'} {'Southpaw' 'Star_Sapphire'} {'Asbestos_Lady' 'Superwoman'} {'Madame_Rouge' 'Star_Sapphire'} {'Margaret_Love' 'Scandal'} {'Dead_Bowie' 'Lady_Death'} {'Ingra' 'Blue_Snowman'} {'Titania' 'Star_Sapphire'} {'Unicron' 'Superwoman'} {'Mothergod' 'Fury_Leika'} {'Asbestos_Lady' 'Scandal'} {'Dansen_Macabre' 'Scandal'} {'Ingra' 'Magpie'} {'Gru' 'Lady_Clay'} {'Harley_Quinn' 'Lady_Death'} {'Southpaw' 'Amazing_Grace'} {'Gru' 'Nyssa_Raatko'} {'Gru' 'Plastique'} {'Unicron' 'Spider_Girl'} {'Madame_Rouge' 'Princess_Python'} {'Jinx' 'Magpie'} {'Mist' 'Plastique'} {'Margaret_Love' 'Dr_Evil'} {'Coachwhip' 'Typhoid_Mary'} {'Ingra' 'Dr_Horrible'} {'Dead_Bowie' 'Mai_Shen'} {'Jinx' 'Lady_Clay'} {'Fem_Paragon' 'Lady_Clay'} {'Unicron' 'Scandal'} {'Mist' 'Fury_Leika'} {'Jinx' 'Amazing_Grace'} {'Madame_Rouge' 'Emerald_Empress'} {'Bombshell' 'Nyssa_Raatko'} {'Mothergod' 'Blue_Snowman'} {'Deuce' 'Typhoid_Mary'} {'Madame_Rouge' 'Superwoman'} {'Mothergod' 'Star_Sapphire'} {'Roulette' 'Shiv'} {'Asbestos_Lady' 'Amazing_Grace'} {'Dead_Bowie' 'Abominatrix'} {'Harley_Quinn' 'Dr_Horrible'} {'Gru' 'Superwoman'} {'Queen_Of_Fables' 'Blue_Snowman'} {'Southpaw' 'Dr_Evil'} {'Fem_Paragon' 'Spider_Girl'} {'Queen_Of_Fables' 'Typhoid_Mary'} {'Bombshell' 'Superwoman'} {'Queen_Of_Fables' 'Amazing_Grace'} {'Coachwhip' 'Spider_Girl'} {'Jinx' 'Nyssa_Raatko'} {'Titania' 'Lady_Clay'} {'Madame_Rouge' 'Fury_Leika'} {'Dansen_Macabre' 'Spider_Girl'} {'Jinx' 'Shiv'} {'Titania' 'Fury_Leika'} {'Fem_Paragon' 'Emerald_Empress'} {'Bombshell' 'Mai_Shen'} {'Harley_Quinn' 'Shiv'} {'Dead_Bowie' 'Lady_Clay'} {'Mothergod' 'Spider_Girl'} {'Southpaw' 'Plastique'} {'Southpaw' 'Magpie'} {'Fem_Paragon' 'Superwoman'} {'Bombshell' 'Amazing_Grace'} {'Ingra' 'Typhoid_Mary'} {'Asbestos_Lady' 'Fury_Leika'} {'Dead_Bowie' 'Blue_Snowman'} {'Southpaw' 'Mai_Shen'} {'Roulette' 'Lady_Clay'} {'Margaret_Love' 'Dr_Horrible'} {'Mist' 'Lady_Death'} {'Deuce' 'Emerald_Empress'} {'Deuce' 'Nyssa_Raatko'} {'Titania' 'Blue_Snowman'} {'Mothergod' 'Amazing_Grace'} {'Roulette' 'Fury_Leika'} {'Madame_Rouge' 'Typhoid_Mary'} {'Mist' 'Superwoman'} {'Dead_Bowie' 'Magpie'} {'Coachwhip' 'Princess_Python'} {'Deuce' 'Lady_Death'} {'Harley_Quinn' 'Mai_Shen'} {'Bombshell' 'Scandal'} {'Madame_Rouge' 'Amazing_Grace'} {'Ingra' 'Nyssa_Raatko'} {'Margaret_Love' 'Abominatrix'} {'Margaret_Love' 'Fury_Leika'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Leather'} {'Syndrome' 'Genevieve_Savidge'} {'Dansen_Macabre' 'Leather'} {'Decay' 'Queen_Bee'} {'Decay' 'Queen_Of_Fables'} {'Lady_Death' 'Queen_Bee'} {'King_Ghidorah' 'Queen_Bee'} {'Professor_Padraic_Ratigan' 'Genevieve_Savidge'} {'Syndrome' 'Harley_Quinn'} {'Syndrome' 'Queen_Of_Fables'} {'Lady_Shiva' 'Golddigger'} {'Syndrome' 'Spider_Girl'} {'Lady_Death' 'Ingra'} {'Poundcakes' 'Queen_Of_Fables'} {'Saturn_Queen' 'Harley_Quinn'} {'Gru' 'Ingra'} {'Professor_Padraic_Ratigan' 'Cyborgirl'} {'Shimmer' 'Osira'} {'Zaladane' 'Talia_Al_Ghul'} {'Lady_Shiva' 'Genevieve_Savidge'} {'Typhoid_Mary' 'Queen_Of_Fables'} {'Syndrome' 'Cyborgirl'} {'Professor_Padraic_Ratigan' 'Osira'} {'Dr_Evil' 'Fem_Paragon'} {'Zaladane' 'Southpaw'} {'Madame_Masque' 'Queen_Bee'} {'Shimmer' 'Deuce'} {'King_Ghidorah' 'Leather'} {'King_Ghidorah' 'Spider_Girl'} {'Gru' 'Golddigger'} {'Duela_Dent' 'Deuce'} {'Madame_Masque' 'Cyborgirl'} {'Scandal' 'Queen_Of_Fables'} {'Dr_Evil' 'Golddigger'} {'Gru' 'Fem_Paragon'} {'Decay' 'Cyborgirl'} {'Windfall' 'Spider_Girl'} {'Scandal' 'Decay'} {'Duela_Dent' 'Ingra'} {'Gru' 'White_Rabbit'} {'Scandal' 'Amazing_Grace'} {'Syndrome' 'Plastique'} {'Mist' 'Queen_Of_Fables'} {'Poundcakes' 'Cyborgirl'} {'Gru' 'Harley_Quinn'} {'Shimmer' 'Southpaw'} {'Duela_Dent' 'Plastique'} {'Poundcakes' 'Deuce'} {'Saturn_Queen' 'Queen_Of_Fables'} {'Mist' 'Maxima'} {'Mist' 'Dead_Bowie'} {'Lady_Death' 'Golddigger'} {'Decay' 'Fem_Paragon'} {'Star_Sapphire' 'Dead_Bowie'} {'Shimmer' 'Cyborgirl'} {'Shimmer' 'Ingra'} {'Lady_Death' 'Emerald_Empress'} {'Saturn_Queen' 'Ingra'} {'Poundcakes' 'Ingra'} {'Saturn_Queen' 'White_Rabbit'} {'Windfall' 'Osira'} {'Dr_Evil' 'White_Rabbit'} {'Madame_Masque' 'Spider_Girl'} {'Mist' 'Leather'} {'Madame_Masque' 'Osira'} {'King_Ghidorah' 'Fem_Paragon'} {'Duela_Dent' 'Golddigger'} {'Typhoid_Mary' 'Emerald_Empress'} {'Decay' 'Maxima'} {'Star_Sapphire' 'White_Rabbit'} {'Lady_Shiva' 'Plastique'} {'Typhoid_Mary' 'Spider_Girl'} {'Scandal' 'Deuce'} {'Dr_Evil' 'Ingra'} {'Dansen_Macabre' 'Ingra'} {'Windfall' 'Dead_Bowie'} {'Windfall' 'Southpaw'} {'Shimmer' 'Emerald_Empress'} {'Saturn_Queen' 'Emerald_Empress'} {'Dansen_Macabre' 'Osira'} {'Scandal' 'Southpaw'} {'Shimmer' 'Maxima'} {'Zaladane' 'Spider_Girl'} {'Gru' 'Talia_Al_Ghul'} {'Scandal' 'Spider_Girl'} {'Poundcakes' 'Fem_Paragon'} {'King_Ghidorah' 'Dead_Bowie'} {'Duela_Dent' 'White_Rabbit'} {'Windfall' 'Amazing_Grace'} {'Scandal' 'Fem_Paragon'} {'Dansen_Macabre' 'Maxima'} {'Star_Sapphire' 'Amazing_Grace'} {'Duela_Dent' 'Emerald_Empress'} {'Syndrome' 'Fem_Paragon'} {'Syndrome' 'Talia_Al_Ghul'} {'Saturn_Queen' 'Dead_Bowie'} {'Gru' 'Queen_Bee'} {'Typhoid_Mary' 'Southpaw'} {'Windfall' 'Talia_Al_Ghul'} {'Mist' 'Talia_Al_Ghul'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mephista' 'Mothergod'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\ntoc","published":true,"deleted":false,"likes_count":1,"comments_count":5,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":9,"test_suite_updated_at":"2013-09-19T23:15:30.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-19T00:46:39.000Z","updated_at":"2013-09-19T23:26:45.000Z","published_at":"2013-09-19T01:43:50.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2933486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2013 China Bad Horse\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e partial of data set #2. Cody appears to have a testsuite size limit so only 32 of 100 cases are loaded. Brute force of 2^100 permutations may time out. The problem is codified using a cell array of names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Challenge involves creating two teams with no pair of individuals on either team having a conflict. The input is a list of pairs of individuals who can not be placed on the same team. The Challenge is to determine if two teams can be created that do not have any players with conflicts.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e conflicted name pairs (cell array of pairs of names)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e TF (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCompetition Summary:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Time of 11 minutes, 707 out of 776 correct\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1881,"title":"GJam 2013 China Event: Happy Teams","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2933486/dashboard#s=p0 GJam 2013 China Bad Horse\u003e. The problem is codified using a cell array of names.\r\n\r\nThe Challenge involves creating two teams with no pair of individuals on either team having a conflict.  The input is a list of pairs of individuals who can not be placed on the same team.  The Challenge is to determine if two teams can be created that do not have any players with conflicts. \r\n\r\n*Input:* conflicted name pairs  (cell array of pairs of names)\r\n\r\n*Output:* TF  (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\r\n\r\n*Competition Summary:* Best Time of 9 minutes, 789 out of 1984 correct\r\n\r\n\r\n","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2933486/dashboard#s=p0\"\u003eGJam 2013 China Bad Horse\u003c/a\u003e. The problem is codified using a cell array of names.\u003c/p\u003e\u003cp\u003eThe Challenge involves creating two teams with no pair of individuals on either team having a conflict.  The input is a list of pairs of individuals who can not be placed on the same team.  The Challenge is to determine if two teams can be created that do not have any players with conflicts.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e conflicted name pairs  (cell array of pairs of names)\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e TF  (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\u003c/p\u003e\u003cp\u003e\u003cb\u003eCompetition Summary:\u003c/b\u003e Best Time of 9 minutes, 789 out of 1984 correct\u003c/p\u003e","function_template":"function TF=Make_Teams(names)\r\n% names is an array of cell arrays   \r\n% N columns of {1x2 cell}\r\n TF=0;\r\nend","test_suite":"%%\r\ntic\r\nnames={{'Dead_Bowie' 'Nyssa_Raatko'} {'Animora' 'Lafety_Le_Fei'} {'Animora' 'Mothergod'} {'Animora' 'Nyssa_Raatko'} {'Dead_Bowie' 'Genevieve_Savidge'} {'Dead_Bowie' 'Lafety_Le_Fei'} {'Animora' 'Genevieve_Savidge'} {'Dead_Bowie' 'Mothergod'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mephista' 'New_Wave'} {'Mephista' 'Ursa'} {'Zaladane' 'Mai_Shen'} {'Mephista' 'Mai_Shen'} {'White_Rabbit' 'Hypnota'} {'White_Rabbit' 'New_Wave'} {'Ursa' 'Scandal'} {'Zaladane' 'New_Wave'} {'Ursa' 'Hypnota'} {'Zaladane' 'Scandal'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Spider_Girl' 'Blue_Snowman'} {'Blue_Snowman' 'Roulette'} {'Roulette' 'Spider_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Magenta' 'Golden_Glider'} {'Tala' 'Mothergod'} {'The_Lightning' 'Shiv'} {'The_Lightning' 'Prank'} {'Magenta' 'Shiv'} {'Tala' 'Prank'} {'Trinity' 'Golden_Glider'} {'Magenta' 'Prank'} {'The_Lightning' 'Mothergod'} {'Trinity' 'Mothergod'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'The_Lightning' 'Star_Sapphire'} {'Unicron' 'Queen_Of_Fables'} {'Unicron' 'Dead_Bowie'} {'Lady_Quark' 'Fury_Leika'} {'Lady_Quark' 'Star_Sapphire'} {'The_Lightning' 'Dead_Bowie'} {'Asbestos_Lady' 'Queen_Of_Fables'} {'Unicron' 'Lady_Quark'} {'Asbestos_Lady' 'Star_Sapphire'} {'The_Lightning' 'Fury_Leika'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Scandal'} {'Lashina' 'King_Ghidorah'} {'Doctor_Cyber' 'Tala'} {'Lashina' 'Evinlea'} {'Dr_Evil' 'Tala'} {'Zaladane' 'King_Ghidorah'} {'Doctor_Cyber' 'Evinlea'} {'Doctor_Cyber' 'King_Ghidorah'} {'Dr_Evil' 'Scandal'} {'Lashina' 'Scandal'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Bombshell' 'Rampage'} {'Deuce' 'Ursa'} {'Bombshell' 'Ursa'} {'Lady_Octopus' 'Rampage'} {'Doctor_Cyber' 'Black_Mamba'} {'Deuce' 'Madame_Rouge'} {'Doctor_Cyber' 'Rampage'} {'Lady_Octopus' 'Madame_Rouge'} {'Doctor_Cyber' 'Madame_Rouge'} {'Lady_Octopus' 'Black_Mamba'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Cyborgirl' 'Fury_Leika'} {'Asbestos_Lady' 'Margaret_Love'} {'Amazing_Grace' 'Fury_Leika'} {'Cyborgirl' 'Hypnota'} {'Duela_Dent' 'Amazing_Grace'} {'Duela_Dent' 'Hypnota'} {'Amazing_Grace' 'Margaret_Love'} {'Duela_Dent' 'Mephista'} {'Duela_Dent' 'Fury_Leika'} {'Asbestos_Lady' 'Mephista'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jason_Kreis' 'Poundcakes'} {'Margaret_Love' 'Star_Sapphire'} {'Snapdragon' 'Ingra'} {'Snapdragon' 'Poundcakes'} {'Snapdragon' 'Star_Sapphire'} {'Dead_Bowie' 'Star_Sapphire'} {'Jason_Kreis' 'Ingra'} {'Dead_Bowie' 'Rampage'} {'Dead_Bowie' 'Poundcakes'} {'Margaret_Love' 'Rampage'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lazara' 'Southpaw'} {'Dansen_Macabre' 'Jewelee'} {'Lazara' 'Amazing_Grace'} {'Osira' 'Amazing_Grace'} {'Osira' 'Coachwhip'} {'Coachwhip' 'Princess_Python'} {'Dansen_Macabre' 'Princess_Python'} {'Coachwhip' 'Southpaw'} {'Osira' 'Princess_Python'} {'Osira' 'Jewelee'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lashina' 'Trinity'} {'Lashina' 'Mephista'} {'Lashina' 'Shiv'} {'Lashina' 'Dr_Evil'} {'Lashina' 'Fem_Paragon'} {'Lashina' 'King_Ghidorah'} {'Lashina' 'The_Lightning'} {'Lashina' 'Syndrome'} {'Lashina' 'Margaret_Love'} {'Lashina' 'Lady_Octopus'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lotso' 'Snapdragon'} {'Animora' 'Silver_Swan'} {'Devastation' 'Animora'} {'Snapdragon' 'Devastation'} {'Silver_Swan' 'Lotso'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Spider_Girl' 'Livewire'} {'Jason_Kreis' 'Trinity'} {'Spider_Girl' 'Syndrome'} {'Jason_Kreis' 'Livewire'} {'Harley_Quinn' 'Livewire'} {'Spider_Girl' 'Coachwhip'} {'Lady_Octopus' 'Coachwhip'} {'Lady_Octopus' 'Syndrome'} {'Harley_Quinn' 'Coachwhip'} {'Spider_Girl' 'Trinity'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Swan' 'Windfall'} {'Silver_Swan' 'Poison_Ivy'} {'Lafety_Le_Fei' 'Poison_Ivy'} {'Lafety_Le_Fei' 'Windfall'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Livewire' 'Titania'} {'Livewire' 'Abominatrix'} {'Shiv' 'Ursa'} {'Shiv' 'Abominatrix'} {'Princess_Python' 'Abominatrix'} {'Silk_Fever' 'Abominatrix'} {'Livewire' 'Ursa'} {'Princess_Python' 'Titania'} {'Princess_Python' 'Poundcakes'} {'Silk_Fever' 'Poundcakes'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Fem_Paragon' 'Amy_Madison'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Dr_Evil'} {'Lady_Vic' 'Amy_Madison'} {'Lady_Octopus' 'Ursa'} {'Lafety_Le_Fei' 'Shiv'} {'Princess_Python' 'Amy_Madison'} {'Princess_Python' 'Shiv'} {'Lafety_Le_Fei' 'Ursa'} {'Lafety_Le_Fei' 'Amy_Madison'} {'Lady_Octopus' 'Dr_Evil'} {'Lady_Vic' 'Dr_Evil'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Of_Fables' 'Magenta'} {'Genevieve_Savidge' 'Magenta'} {'Spider_Girl' 'Black_Mamba'} {'Spider_Girl' 'Lady_Shiva'} {'Jinx' 'Lady_Shiva'} {'Spider_Girl' 'Mist'} {'Genevieve_Savidge' 'Lady_Shiva'} {'Jinx' 'Black_Mamba'} {'Genevieve_Savidge' 'Mist'} {'Queen_Of_Fables' 'Black_Mamba'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Titania' 'Saturn_Queen'} {'Lafety_Le_Fei' 'Saturn_Queen'} {'Lafety_Le_Fei' 'Tigress'} {'Titania' 'Tigress'} {'Golddigger' 'Tigress'} {'Titania' 'Tala'} {'Lafety_Le_Fei' 'Tala'} {'Golddigger' 'Tala'} {'Golddigger' 'Saturn_Queen'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Roulette' 'Livewire'} {'Roulette' 'Mai_Shen'} {'Shiv' 'Bombshell'} {'Ursa' 'Bombshell'} {'Ursa' 'Livewire'} {'Shiv' 'Doctor_Cyber'} {'Roulette' 'Bombshell'} {'Blue_Snowman' 'Mai_Shen'} {'Ursa' 'Doctor_Cyber'} {'Blue_Snowman' 'Livewire'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Duela_Dent'} {'Cyborgirl' 'Lafety_Le_Fei'} {'Cyborgirl' 'Duela_Dent'} {'Black_Mamba' 'Unicron'} {'Lady_Death' 'Duela_Dent'} {'Zaladane' 'Cyborgirl'} {'Cyborgirl' 'Devastation'} {'Lady_Death' 'Lafety_Le_Fei'} {'Black_Mamba' 'Devastation'} {'Zaladane' 'Unicron'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Rad' 'Jason_Kreis'} {'Emerald_Empress' 'Lady_Vic'} {'Rad' 'Magenta'} {'Lagomorph' 'Jason_Kreis'} {'Lagomorph' 'Lady_Vic'} {'Lagomorph' 'Magenta'} {'Lagomorph' 'Lady_Quark'} {'Emerald_Empress' 'Genevieve_Savidge'} {'Lady_Quark' 'Genevieve_Savidge'} {'Lady_Quark' 'Jason_Kreis'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Golden_Glider' 'Lady_Clay'} {'Golden_Glider' 'Titania'} {'Lady_Clay' 'Lashina'} {'Lady_Clay' 'Titania'} {'Black_Mamba' 'Lashina'} {'Lady_Clay' 'Lady_Octopus'} {'Maxima' 'Lady_Octopus'} {'Maxima' 'Titania'} {'Black_Mamba' 'Decay'} {'Golden_Glider' 'Decay'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Fem_Paragon'} {'Abominatrix' 'Fem_Paragon'} {'Lady_Quark' 'Princess_Python'} {'The_Crimson_Ghost' 'Ingra'} {'Abominatrix' 'Jinx'} {'Lady_Quark' 'Rampage'} {'Abominatrix' 'Rampage'} {'Princess_Python' 'Jinx'} {'The_Crimson_Ghost' 'Jinx'} {'Lady_Quark' 'Ingra'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dr_Horrible' 'Ingra'} {'Dr_Horrible' 'Sun_Girl'} {'Prank' 'Duela_Dent'} {'Valentina' 'Duela_Dent'} {'Prank' 'Ingra'} {'Lazara' 'Tigress'} {'Lazara' 'Ingra'} {'Lazara' 'Sun_Girl'} {'Valentina' 'Tigress'} {'Valentina' 'Dr_Horrible'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dansen_Macabre' 'Jewelee'} {'Sun_Girl' 'Jewelee'} {'Lady_Shiva' 'Trinity'} {'Lady_Shiva' 'Ursa'} {'Poison_Ivy' 'Jewelee'} {'Dansen_Macabre' 'Ursa'} {'Poison_Ivy' 'Shimmer'} {'Poison_Ivy' 'Trinity'} {'Sun_Girl' 'Shimmer'} {'Lady_Shiva' 'Jewelee'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Eviless'} {'Superwoman' 'Typhoid_Mary'} {'Zaladane' 'Typhoid_Mary'} {'Zaladane' 'Genevieve_Savidge'} {'Superwoman' 'Eviless'} {'Zaladane' 'Bombshell'} {'Ingra' 'Bombshell'} {'Jinx' 'Genevieve_Savidge'} {'Ingra' 'Genevieve_Savidge'} {'Jinx' 'Eviless'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Decay'} {'Ingra' 'Decay'} {'Mai_Shen' 'Deuce'} {'Ingra' 'Lady_Octopus'} {'Margaret_Love' 'Bombshell'} {'Ingra' 'Deuce'} {'Margaret_Love' 'Decay'} {'Dr_Evil' 'Lady_Octopus'} {'Dr_Evil' 'Bombshell'} {'Margaret_Love' 'Ingra'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'Fake_Thomas_Jefferson'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silk_Fever' 'Snapdragon'} {'Professor_Padraic_Ratigan' 'Maxima'} {'Lady_Shiva' 'Decay'} {'Lady_Shiva' 'Lady_Octopus'} {'Nyssa_Raatko' 'Lady_Octopus'} {'Professor_Padraic_Ratigan' 'Decay'} {'Silk_Fever' 'Maxima'} {'Nyssa_Raatko' 'Decay'} {'Professor_Padraic_Ratigan' 'Lady_Octopus'} {'Lady_Shiva' 'Snapdragon'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Bombshell' 'Trinity'} {'Mothergod' 'Professor_Padraic_Ratigan'} {'Tigress' 'Dr_Horrible'} {'Tigress' 'Princess_Python'} {'Rad' 'Dr_Horrible'} {'Rad' 'Professor_Padraic_Ratigan'} {'Mothergod' 'Trinity'} {'Tigress' 'Trinity'} {'Bombshell' 'Professor_Padraic_Ratigan'} {'Mothergod' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Windfall'} {'Syndrome' 'Queen_Bee'} {'Dr_Horrible' 'Mai_Shen'} {'Windfall' 'Animora'} {'New_Wave' 'Dr_Horrible'} {'Animora' 'Syndrome'} {'Queen_Bee' 'New_Wave'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Evinlea' 'Fake_Thomas_Jefferson'} {'Evinlea' 'Southpaw'} {'Magpie' 'Southpaw'} {'Magpie' 'Jason_Kreis'} {'Mist' 'Southpaw'} {'Tigress' 'Jason_Kreis'} {'Tigress' 'Fake_Thomas_Jefferson'} {'Mist' 'Jason_Kreis'} {'Evinlea' 'Gru'} {'Magpie' 'Gru'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Nyssa_Raatko' 'Shiv'} {'Nyssa_Raatko' 'Queen_Of_Fables'} {'Jewelee' 'The_Lightning'} {'Jinx' 'Shiv'} {'Nyssa_Raatko' 'Rad'} {'Jinx' 'The_Lightning'} {'Nyssa_Raatko' 'The_Lightning'} {'Jewelee' 'Rad'} {'Professor_Padraic_Ratigan' 'Shiv'} {'Professor_Padraic_Ratigan' 'Queen_Of_Fables'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Ingra' 'Sun_Girl'} {'Southpaw' 'Golden_Glider'} {'Superwoman' 'Mothergod'} {'Ingra' 'Tigress'} {'Superwoman' 'Sun_Girl'} {'Southpaw' 'Mothergod'} {'Silk_Fever' 'Tigress'} {'Superwoman' 'Ingra'} {'Ingra' 'Golden_Glider'} {'Silk_Fever' 'Sun_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Tala'} {'Mai_Shen' 'Abominatrix'} {'Mai_Shen' 'Mothergod'} {'Mai_Shen' 'Ursa'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Abominatrix'} {'Mai_Shen' 'Devastation'} {'Abominatrix' 'Mai_Shen'} {'Devastation' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Shiv' 'Titania'} {'Lady_Quark' 'Trinity'} {'Mothergod' 'Hypnota'} {'Shiv' 'Hypnota'} {'Lady_Quark' 'White_Rabbit'} {'Lady_Octopus' 'Trinity'} {'Shiv' 'Lady_Quark'} {'Mothergod' 'Trinity'} {'Mothergod' 'White_Rabbit'} {'Lady_Octopus' 'Titania'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lazara' 'Queen_Of_Fables'} {'Queen_Bee' 'Magpie'} {'Queen_Bee' 'Rad'} {'Lashina' 'Queen_Of_Fables'} {'Lashina' 'Superwoman'} {'Dead_Bowie' 'Queen_Of_Fables'} {'Lashina' 'Magpie'} {'Queen_Bee' 'Queen_Of_Fables'} {'Dead_Bowie' 'Rad'} {'Lazara' 'Superwoman'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'New_Wave' 'Ingra'} {'Syndrome' 'Princess_Python'} {'New_Wave' 'Sun_Girl'} {'Lashina' 'Ingra'} {'Silk_Fever' 'Ingra'} {'New_Wave' 'Princess_Python'} {'Syndrome' 'Shiv'} {'Lashina' 'Shiv'} {'Lashina' 'Sun_Girl'} {'Silk_Fever' 'Sun_Girl'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Hypnota' 'Sun_Girl'} {'Doctor_Cyber' 'Windfall'} {'Dr_Evil' 'Valentina'} {'Hypnota' 'Abominatrix'} {'Doctor_Cyber' 'Sun_Girl'} {'Mist' 'Windfall'} {'Doctor_Cyber' 'Valentina'} {'Mist' 'Abominatrix'} {'Mist' 'Sun_Girl'} {'Dr_Evil' 'Abominatrix'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Leather' 'King_Ghidorah'} {'Jinx' 'Bombshell'} {'Leather' 'Lady_Vic'} {'Leather' 'Osira'} {'Jewelee' 'Bombshell'} {'Leather' 'Bombshell'} {'Amy_Madison' 'King_Ghidorah'} {'Jinx' 'King_Ghidorah'} {'Jewelee' 'Osira'} {'Amy_Madison' 'Lady_Vic'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Madame_Rouge' 'Ingra'} {'Margaret_Love' 'Ingra'} {'Yellowjacket' 'Dansen_Macabre'} {'Margaret_Love' 'The_Crimson_Ghost'} {'Margaret_Love' 'Rad'} {'Madame_Rouge' 'The_Crimson_Ghost'} {'Yellowjacket' 'Rad'} {'Yellowjacket' 'Ingra'} {'New_Wave' 'Dansen_Macabre'} {'New_Wave' 'The_Crimson_Ghost'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Amy_Madison' 'Typhoid_Mary'} {'Typhoid_Mary' 'The_Crimson_Ghost'} {'Amy_Madison' 'Spider_Girl'} {'Queen_Bee' 'Spider_Girl'} {'Queen_Bee' 'Livewire'} {'Nyssa_Raatko' 'The_Crimson_Ghost'} {'Typhoid_Mary' 'Mothergod'} {'Amy_Madison' 'The_Crimson_Ghost'} {'Typhoid_Mary' 'Livewire'} {'Nyssa_Raatko' 'Mothergod'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Margaret_Love' 'Shimmer'} {'Snapdragon' 'Shimmer'} {'Snapdragon' 'Lady_Octopus'} {'Snapdragon' 'Jewelee'} {'Decay' 'Poundcakes'} {'Amy_Madison' 'Poundcakes'} {'Decay' 'Lady_Octopus'} {'Margaret_Love' 'Lady_Octopus'} {'Decay' 'Jewelee'} {'Amy_Madison' 'Jewelee'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Black_Mamba' 'Purgatori'} {'Talia_Al_Ghul' 'Windfall'} {'Lady_Death' 'Madame_Masque'} {'Spider_Girl' 'Madame_Masque'} {'Black_Mamba' 'Saturn_Queen'} {'Black_Mamba' 'Madame_Masque'} {'Spider_Girl' 'Saturn_Queen'} {'Talia_Al_Ghul' 'Purgatori'} {'Lady_Death' 'Windfall'} {'Spider_Girl' 'Purgatori'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Bombshell' 'Queen_Of_Fables'} {'Silk_Fever' 'Lady_Quark'} {'Windfall' 'Star_Sapphire'} {'Windfall' 'Queen_Of_Fables'} {'Silk_Fever' 'Star_Sapphire'} {'Silk_Fever' 'Bombshell'} {'Shiv' 'Dead_Bowie'} {'Shiv' 'Lady_Quark'} {'Windfall' 'Lady_Quark'} {'Bombshell' 'Dead_Bowie'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Swan' 'Gru'} {'Superwoman' 'Lagomorph'} {'Silver_Swan' 'Duela_Dent'} {'Silver_Swan' 'Superwoman'} {'Superwoman' 'Lady_Vic'} {'Saturn_Queen' 'Lady_Vic'} {'Saturn_Queen' 'Duela_Dent'} {'Poundcakes' 'Lagomorph'} {'Silver_Swan' 'Lady_Vic'} {'Poundcakes' 'Gru'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lady_Vic' 'Queen_Bee'} {'Deuce' 'Yellowjacket'} {'Prank' 'Amazing_Grace'} {'Bombshell' 'Yellowjacket'} {'Deuce' 'Amazing_Grace'} {'Lady_Vic' 'Lady_Death'} {'Deuce' 'Prank'} {'Bombshell' 'Amazing_Grace'} {'Prank' 'Queen_Bee'} {'Deuce' 'Lady_Death'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Maxima' 'Sun_Girl'} {'Spider_Girl' 'Genevieve_Savidge'} {'Spider_Girl' 'Madame_Masque'} {'Fem_Paragon' 'Margaret_Love'} {'Maxima' 'Genevieve_Savidge'} {'Maxima' 'Madame_Masque'} {'Spider_Girl' 'Sun_Girl'} {'Devastation' 'Sun_Girl'} {'Devastation' 'Margaret_Love'} {'Fem_Paragon' 'Madame_Masque'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Tala' 'Animora'} {'Tala' 'Scandal'} {'Tala' 'Amazing_Grace'} {'Tala' 'Lafety_Le_Fei'} {'Tala' 'Lady_Quark'} {'Tala' 'Silver_Banshee'} {'Tala' 'Dansen_Macabre'} {'Tala' 'Jason_Kreis'} {'Tala' 'Cyborgirl'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Fem_Paragon' 'Golddigger'} {'Southpaw' 'Deuce'} {'Southpaw' 'Golddigger'} {'Fem_Paragon' 'Sun_Girl'} {'Rad' 'Sun_Girl'} {'Southpaw' 'Sun_Girl'} {'Rad' 'Lady_Clay'} {'Fem_Paragon' 'Bombshell'} {'Deuce' 'Lady_Clay'} {'Deuce' 'Bombshell'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Poison_Ivy' 'Lady_Octopus'} {'Poison_Ivy' 'Lazara'} {'Lazara' 'Lagomorph'} {'Poison_Ivy' 'Tala'} {'Mephista' 'Lagomorph'} {'Mai_Shen' 'Lagomorph'} {'Mephista' 'Tala'} {'Mai_Shen' 'Lady_Octopus'} {'Mephista' 'Lady_Death'} {'Lazara' 'Lady_Death'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Professor_Padraic_Ratigan' 'Superwoman'} {'Professor_Padraic_Ratigan' 'Shiv'} {'Professor_Padraic_Ratigan' 'Amazing_Grace'} {'Amazing_Grace' 'Bombshell'} {'Saturn_Queen' 'Superwoman'} {'Professor_Padraic_Ratigan' 'Bombshell'} {'Tala' 'Shiv'} {'Tala' 'Trinity'} {'Saturn_Queen' 'Bombshell'} {'Amazing_Grace' 'Trinity'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Talia_Al_Ghul'} {'Cyborgirl' 'Snapdragon'} {'Talia_Al_Ghul' 'Cyborgirl'} {'Silver_Banshee' 'Deuce'} {'New_Wave' 'Mist'} {'Osira' 'Lady_Octopus'} {'Lady_Octopus' 'Silver_Banshee'} {'Snapdragon' 'Osira'} {'Mist' 'Zaladane'} {'Deuce' 'New_Wave'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Asbestos_Lady' 'Coachwhip'} {'Asbestos_Lady' 'Jewelee'} {'Asbestos_Lady' 'Shimmer'} {'Lady_Shiva' 'Jewelee'} {'Blue_Snowman' 'Coachwhip'} {'Ingra' 'Coachwhip'} {'Lady_Shiva' 'Ingra'} {'Lady_Shiva' 'Titania'} {'Ingra' 'Shimmer'} {'Blue_Snowman' 'Titania'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Abominatrix' 'Tigress'} {'Queen_Bee' 'Rampage'} {'Unicron' 'Rampage'} {'Lady_Octopus' 'Poundcakes'} {'Unicron' 'Queen_Of_Fables'} {'Abominatrix' 'Queen_Bee'} {'Abominatrix' 'Queen_Of_Fables'} {'Queen_Bee' 'Poundcakes'} {'Lady_Octopus' 'Tigress'} {'Abominatrix' 'Poundcakes'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Scandal' 'Jinx'} {'Scandal' 'Doctor_Cyber'} {'Scandal' 'Roulette'} {'Queen_Bee' 'Jinx'} {'Queen_Bee' 'Roulette'} {'Queen_Bee' 'Yellowjacket'} {'Margaret_Love' 'Yellowjacket'} {'Zaladane' 'Roulette'} {'Margaret_Love' 'Doctor_Cyber'} {'Zaladane' 'Yellowjacket'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lady_Quark' 'Madame_Masque'} {'Coachwhip' 'Lady_Quark'} {'Lady_Clay' 'Coachwhip'} {'Madame_Masque' 'Southpaw'} {'Talia_Al_Ghul' 'Lady_Clay'} {'Southpaw' 'Talia_Al_Ghul'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Evinlea' 'Silver_Banshee'} {'Magenta' 'Amy_Madison'} {'Magenta' 'Fake_Thomas_Jefferson'} {'Deuce' 'Fake_Thomas_Jefferson'} {'Magenta' 'Silver_Banshee'} {'Evinlea' 'Trinity'} {'Cyborgirl' 'Amy_Madison'} {'Cyborgirl' 'Trinity'} {'Evinlea' 'Fake_Thomas_Jefferson'} {'Deuce' 'Silver_Banshee'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jewelee' 'Madame_Rouge'} {'Jewelee' 'Fem_Paragon'} {'Jewelee' 'Professor_Padraic_Ratigan'} {'Jewelee' 'Evinlea'} {'Jewelee' 'Fury_Leika'} {'Jewelee' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Amy_Madison' 'The_Crimson_Ghost'} {'Syndrome' 'Lady_Vic'} {'Syndrome' 'Lady_Quark'} {'Lagomorph' 'Poison_Ivy'} {'Lagomorph' 'Lady_Vic'} {'Shimmer' 'Lady_Quark'} {'Lagomorph' 'The_Crimson_Ghost'} {'Amy_Madison' 'Syndrome'} {'Amy_Madison' 'Poison_Ivy'} {'Shimmer' 'Poison_Ivy'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Swan' 'Purgatori'} {'Nyssa_Raatko' 'Purgatori'} {'Nyssa_Raatko' 'Shimmer'} {'Abominatrix' 'Nyssa_Raatko'} {'Nyssa_Raatko' 'Bombshell'} {'Silver_Swan' 'Bombshell'} {'Abominatrix' 'Duela_Dent'} {'Abominatrix' 'Purgatori'} {'Windfall' 'Duela_Dent'} {'Windfall' 'Shimmer'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Fury_Leika' 'The_Lightning'} {'Amy_Madison' 'The_Lightning'} {'The_Crimson_Ghost' 'Lady_Death'} {'Shimmer' 'Lady_Death'} {'Amy_Madison' 'Queen_Of_Fables'} {'The_Crimson_Ghost' 'Queen_Of_Fables'} {'Fury_Leika' 'Queen_Of_Fables'} {'Amy_Madison' 'Dansen_Macabre'} {'Fury_Leika' 'Dansen_Macabre'} {'Shimmer' 'The_Lightning'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Abominatrix' 'Lady_Shiva'} {'Queen_Clea' 'Fake_Thomas_Jefferson'} {'Abominatrix' 'Hypnota'} {'Jewelee' 'Lady_Shiva'} {'Madame_Masque' 'Lady_Shiva'} {'Jewelee' 'Hypnota'} {'Queen_Clea' 'Hypnota'} {'Madame_Masque' 'Maxima'} {'Jewelee' 'Fake_Thomas_Jefferson'} {'Jewelee' 'Maxima'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Southpaw' 'Silver_Banshee'} {'Animora' 'Professor_Padraic_Ratigan'} {'Dansen_Macabre' 'Jason_Kreis'} {'Valentina' 'Professor_Padraic_Ratigan'} {'Animora' 'Jason_Kreis'} {'Animora' 'Silver_Banshee'} {'Southpaw' 'Professor_Padraic_Ratigan'} {'Dansen_Macabre' 'Titania'} {'Valentina' 'Jason_Kreis'} {'Valentina' 'Titania'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Saturn_Queen' 'Lazara'} {'Decay' 'Magpie'} {'Saturn_Queen' 'Decay'} {'Harley_Quinn' 'Magpie'} {'Bombshell' 'Silver_Banshee'} {'Decay' 'Lazara'} {'Decay' 'Madame_Masque'} {'Saturn_Queen' 'Silver_Banshee'} {'Bombshell' 'Madame_Masque'} {'Harley_Quinn' 'Lazara'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Banshee' 'Osira'} {'Jewelee' 'Dead_Bowie'} {'Scandal' 'Poison_Ivy'} {'Scandal' 'Osira'} {'Shiv' 'Dead_Bowie'} {'Shiv' 'Rad'} {'Silver_Banshee' 'Poison_Ivy'} {'Jewelee' 'Osira'} {'Scandal' 'Shiv'} {'Silver_Banshee' 'Rad'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Scandal' 'Roulette'} {'Poison_Ivy' 'Mephista'} {'Amazing_Grace' 'Spider_Girl'} {'Poison_Ivy' 'Roulette'} {'Scandal' 'Lafety_Le_Fei'} {'Mephista' 'Lafety_Le_Fei'} {'Mephista' 'Spider_Girl'} {'Poison_Ivy' 'Princess_Python'} {'Poison_Ivy' 'Spider_Girl'} {'Amazing_Grace' 'Princess_Python'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dr_Horrible' 'Genevieve_Savidge'} {'Decay' 'Windfall'} {'Dansen_Macabre' 'Princess_Python'} {'Purgatori' 'Windfall'} {'Purgatori' 'Princess_Python'} {'Purgatori' 'Mist'} {'Dr_Horrible' 'Mist'} {'Dansen_Macabre' 'Genevieve_Savidge'} {'Decay' 'Mist'} {'Dr_Horrible' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Typhoid_Mary' 'Margaret_Love'} {'Typhoid_Mary' 'Sun_Girl'} {'Typhoid_Mary' 'Osira'} {'Deuce' 'Fake_Thomas_Jefferson'} {'Fake_Thomas_Jefferson' 'Margaret_Love'} {'Deuce' 'Sun_Girl'} {'Fake_Thomas_Jefferson' 'Tala'} {'Lashina' 'Sun_Girl'} {'Lashina' 'Tala'} {'Deuce' 'Osira'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Golden_Glider' 'Rad'} {'Lashina' 'Mothergod'} {'White_Rabbit' 'Asbestos_Lady'} {'Star_Sapphire' 'White_Rabbit'} {'Lafety_Le_Fei' 'Star_Sapphire'} {'Mothergod' 'Lafety_Le_Fei'} {'Fury_Leika' 'Lashina'} {'Asbestos_Lady' 'Golden_Glider'} {'Rad' 'Fury_Leika'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Coachwhip' 'Abominatrix'} {'Lady_Death' 'Abominatrix'} {'Superwoman' 'Queen_Clea'} {'Coachwhip' 'Queen_Clea'} {'Superwoman' 'Tigress'} {'Coachwhip' 'Silk_Fever'} {'Rad' 'Lady_Death'} {'Rad' 'Tigress'} {'Rad' 'Silk_Fever'} {'Lady_Death' 'Queen_Clea'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Poison_Ivy' 'Leather'} {'Zaladane' 'Star_Sapphire'} {'Ursa' 'Star_Sapphire'} {'Poison_Ivy' 'Ursa'} {'Lady_Death' 'Harley_Quinn'} {'Poison_Ivy' 'Evinlea'} {'Zaladane' 'Evinlea'} {'Ursa' 'Leather'} {'Lady_Death' 'Leather'} {'Poison_Ivy' 'Harley_Quinn'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Margaret_Love' 'Duela_Dent'} {'Margaret_Love' 'Fake_Thomas_Jefferson'} {'Jewelee' 'Jason_Kreis'} {'Lagomorph' 'Jewelee'} {'Lagomorph' 'Fake_Thomas_Jefferson'} {'Lagomorph' 'Duela_Dent'} {'Madame_Masque' 'Jason_Kreis'} {'Jewelee' 'Decay'} {'Margaret_Love' 'Decay'} {'Madame_Masque' 'Fake_Thomas_Jefferson'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jason_Kreis' 'Jewelee'} {'Fury_Leika' 'Queen_Clea'} {'Jason_Kreis' 'Unicron'} {'Fury_Leika' 'Lagomorph'} {'Fury_Leika' 'Jewelee'} {'Abominatrix' 'Lagomorph'} {'Black_Mamba' 'Lagomorph'} {'Black_Mamba' 'Unicron'} {'Abominatrix' 'Queen_Clea'} {'Abominatrix' 'Unicron'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Osira' 'Golden_Glider'} {'Osira' 'Scandal'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Bee' 'Golden_Glider'} {'Sun_Girl' 'Lady_Vic'} {'Queen_Bee' 'Margaret_Love'} {'Sun_Girl' 'Golden_Glider'} {'Queen_Bee' 'Lady_Vic'} {'Sun_Girl' 'Madame_Masque'} {'Sun_Girl' 'Scandal'} {'Queen_Bee' 'Scandal'} {'Sun_Girl' 'Margaret_Love'} {'Queen_Bee' 'Madame_Masque'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lashina' 'Mothergod'} {'Lashina' 'Devastation'} {'Lashina' 'Decay'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Doctor_Cyber' 'Queen_Clea'} {'Ingra' 'Spider_Girl'} {'Ingra' 'Sun_Girl'} {'Doctor_Cyber' 'Spider_Girl'} {'New_Wave' 'Queen_Clea'} {'Dansen_Macabre' 'Tigress'} {'Dansen_Macabre' 'Spider_Girl'} {'New_Wave' 'Spider_Girl'} {'Doctor_Cyber' 'Sun_Girl'} {'New_Wave' 'Tigress'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Coachwhip' 'Southpaw'} {'Coachwhip' 'The_Crimson_Ghost'} {'Abominatrix' 'The_Crimson_Ghost'} {'Tala' 'Hypnota'} {'Madame_Masque' 'The_Crimson_Ghost'} {'Tala' 'New_Wave'} {'Tala' 'The_Crimson_Ghost'} {'Abominatrix' 'Hypnota'} {'Madame_Masque' 'Southpaw'} {'Coachwhip' 'New_Wave'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Black_Mamba' 'Emerald_Empress'} {'Golddigger' 'Prank'} {'Saturn_Queen' 'Prank'} {'Golddigger' 'Nyssa_Raatko'} {'Black_Mamba' 'Hypnota'} {'Saturn_Queen' 'Nyssa_Raatko'} {'Fury_Leika' 'Nyssa_Raatko'} {'Fury_Leika' 'Prank'} {'Fury_Leika' 'Hypnota'} {'Saturn_Queen' 'Emerald_Empress'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'New_Wave'} {'Dead_Bowie' 'Typhoid_Mary'} {'Queen_Clea' 'Typhoid_Mary'} {'Lotso' 'Lagomorph'} {'Lotso' 'Southpaw'} {'Decay' 'New_Wave'} {'Lotso' 'New_Wave'} {'Dead_Bowie' 'Lotso'} {'Queen_Clea' 'Southpaw'} {'Decay' 'Lagomorph'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Eviless' 'Abominatrix'} {'Prank' 'Shimmer'} {'Rampage' 'Syndrome'} {'Queen_Bee' 'Syndrome'} {'Prank' 'Queen_Clea'} {'Prank' 'Syndrome'} {'Queen_Bee' 'Abominatrix'} {'Eviless' 'Shimmer'} {'Rampage' 'Eviless'} {'Rampage' 'Queen_Clea'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Tala' 'Professor_Padraic_Ratigan'} {'Decay' 'Silver_Swan'} {'Queen_Clea' 'Black_Mamba'} {'Poundcakes' 'King_Ghidorah'} {'Poundcakes' 'Silver_Swan'} {'Poundcakes' 'Tala'} {'Queen_Clea' 'Professor_Padraic_Ratigan'} {'Poundcakes' 'Black_Mamba'} {'Decay' 'King_Ghidorah'} {'Tala' 'Silver_Swan'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Tala' 'Bombshell'} {'Tala' 'Mai_Shen'} {'Tala' 'Madame_Rouge'} {'Tala' 'Spider_Girl'} {'Tala' 'Dr_Horrible'} {'Tala' 'Madame_Masque'} {'Tala' 'Lazara'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Livewire' 'Lady_Clay'} {'Livewire' 'Queen_Clea'} {'New_Wave' 'Queen_Clea'} {'New_Wave' 'Lady_Clay'} {'Livewire' 'Rad'} {'New_Wave' 'Rad'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Plastique' 'Cyborgirl'} {'Plastique' 'Tigress'} {'Plastique' 'Superwoman'} {'Plastique' 'Queen_Of_Fables'} {'Plastique' 'Star_Sapphire'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Professor_Padraic_Ratigan' 'Animora'} {'Princess_Python' 'Shiv'} {'Sun_Girl' 'Typhoid_Mary'} {'New_Wave' 'Animora'} {'Professor_Padraic_Ratigan' 'Lady_Clay'} {'New_Wave' 'Lady_Clay'} {'Sun_Girl' 'Shiv'} {'New_Wave' 'Typhoid_Mary'} {'Princess_Python' 'Lady_Clay'} {'Sun_Girl' 'Animora'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Sun_Girl' 'Golddigger'} {'Jewelee' 'Golddigger'} {'Zaladane' 'Deuce'} {'Sun_Girl' 'Deuce'} {'Mai_Shen' 'Golddigger'} {'Jewelee' 'Lazara'} {'Mai_Shen' 'Lazara'} {'Sun_Girl' 'Lazara'} {'Zaladane' 'Lashina'} {'Jewelee' 'Lashina'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jason_Kreis' 'Amazing_Grace'} {'Maxima' 'Ursa'} {'Queen_Bee' 'Gru'} {'Jason_Kreis' 'Gru'} {'Ursa' 'Lady_Death'} {'Maxima' 'Amazing_Grace'} {'Queen_Bee' 'Tala'} {'Ursa' 'Tala'} {'Jason_Kreis' 'Lady_Death'} {'Maxima' 'Gru'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lagomorph' 'Doctor_Cyber'} {'Mothergod' 'Roulette'} {'Doctor_Cyber' 'Dr_Evil'} {'Roulette' 'Lagomorph'} {'Jewelee' 'Magenta'} {'Fury_Leika' 'Mothergod'} {'Dr_Evil' 'Jewelee'} {'Magenta' 'Fury_Leika'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'Fake_Thomas_Jefferson'} {'Fake_Thomas_Jefferson' 'Fury_Leika'} {'Fury_Leika' 'Dead_Bowie'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Scandal' 'Eviless'} {'Queen_Of_Fables' 'Queen_Bee'} {'Queen_Of_Fables' 'Duela_Dent'} {'Scandal' 'Duela_Dent'} {'Emerald_Empress' 'Eviless'} {'Syndrome' 'Yellowjacket'} {'Syndrome' 'Eviless'} {'Scandal' 'Yellowjacket'} {'Emerald_Empress' 'Queen_Bee'} {'Emerald_Empress' 'Scandal'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lazara' 'Blue_Snowman'} {'Lazara' 'Margaret_Love'} {'Lazara' 'Rad'} {'Lazara' 'Syndrome'} {'Lazara' 'Shiv'} {'Lazara' 'Spider_Girl'} {'Lazara' 'Silver_Swan'} {'Lazara' 'Coachwhip'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Valentina' 'Asbestos_Lady'} {'Valentina' 'Doctor_Cyber'} {'Ingra' 'Doctor_Cyber'} {'Scandal' 'Asbestos_Lady'} {'Ingra' 'Professor_Padraic_Ratigan'} {'Valentina' 'Yellowjacket'} {'Lotso' 'Professor_Padraic_Ratigan'} {'Lotso' 'Yellowjacket'} {'Lotso' 'Asbestos_Lady'} {'Scandal' 'Yellowjacket'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Devastation' 'Hypnota'} {'Purgatori' 'Livewire'} {'Evinlea' 'Hypnota'} {'Evinlea' 'Lazara'} {'Devastation' 'Lazara'} {'Nyssa_Raatko' 'Duela_Dent'} {'Evinlea' 'Livewire'} {'Nyssa_Raatko' 'Hypnota'} {'Purgatori' 'Hypnota'} {'Devastation' 'Duela_Dent'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Shimmer' 'Saturn_Queen'} {'Shimmer' 'Lafety_Le_Fei'} {'Golden_Glider' 'Saturn_Queen'} {'Shimmer' 'Cyborgirl'} {'Poison_Ivy' 'Lafety_Le_Fei'} {'Zaladane' 'Cyborgirl'} {'Golden_Glider' 'Cyborgirl'} {'Poison_Ivy' 'Snapdragon'} {'Golden_Glider' 'Snapdragon'} {'Zaladane' 'Saturn_Queen'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Of_Fables' 'Lazara'} {'Saturn_Queen' 'Golden_Glider'} {'Queen_Of_Fables' 'Golden_Glider'} {'Fury_Leika' 'Duela_Dent'} {'Dr_Horrible' 'Golden_Glider'} {'Fury_Leika' 'Ingra'} {'Queen_Of_Fables' 'Duela_Dent'} {'Fury_Leika' 'Dr_Horrible'} {'Saturn_Queen' 'Ingra'} {'Dr_Horrible' 'Lazara'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Hypnota' 'Abominatrix'} {'New_Wave' 'Mothergod'} {'Hypnota' 'Mothergod'} {'Harley_Quinn' 'Tigress'} {'Harley_Quinn' 'Hypnota'} {'Lady_Vic' 'Tigress'} {'New_Wave' 'Trinity'} {'New_Wave' 'Abominatrix'} {'Harley_Quinn' 'Trinity'} {'Lady_Vic' 'Abominatrix'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\ntoc\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":11,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-18T04:20:57.000Z","updated_at":"2013-09-18T04:34:45.000Z","published_at":"2013-09-18T04:34:45.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2933486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2013 China Bad Horse\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. The problem is codified using a cell array of names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Challenge involves creating two teams with no pair of individuals on either team having a conflict. The input is a list of pairs of individuals who can not be placed on the same team. The Challenge is to determine if two teams can be created that do not have any players with conflicts.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e conflicted name pairs (cell array of pairs of names)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e TF (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCompetition Summary:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Time of 9 minutes, 789 out of 1984 correct\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":58827,"title":"Troubles With Spaces - Convert Some Messy Data Into A Clean Array","description":"I have a bunch of messy data I have to go through. The data is stored in an odd format, so str2num isn't working. And even when I get it to work, it is still too slow!\r\nI need you to turn the strings into numbers. Any '+++++++' values are values that overloaded the data collection device and should be set to NaN.\r\n'- 6.496' =\u003e -6.496\r\n'-10.430' =\u003e -10.430\r\n'+++++++' =\u003e NaN\r\n'+11.664' =\u003e 11.664\r\nOh, and output it into an array because I hate working with cells.  And there's a lot of data so it had better be fast!","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none solid rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 215.795px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 406.989px 107.898px; transform-origin: 406.996px 107.898px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 42.017px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.991px 21.0085px; text-align: left; transform-origin: 383.999px 21.0085px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eI have a bunch of messy data I have to go through. The data is stored in an odd format, so str2num isn't working. And even when I get it to work, it is still too slow!\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42.017px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.991px 21.0085px; text-align: left; transform-origin: 383.999px 21.0085px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eI need you to turn the strings into numbers. Any '+++++++' values are values that overloaded the data collection device and should be set to NaN.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 81.7614px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 403.991px 40.8807px; transform-origin: 403.999px 40.8807px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4403px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.909091px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.909091px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.909091px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.909091px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.991px 10.2131px; text-wrap: nowrap; transform-origin: 403.999px 10.2202px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'- 6.496' \u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e=\u0026gt; -6.496\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4403px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.909091px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.909091px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.909091px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.909091px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.991px 10.2131px; text-wrap: nowrap; transform-origin: 403.999px 10.2202px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'-10.430' \u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e=\u0026gt; -10.430\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4403px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.909091px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.909091px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.909091px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.909091px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.991px 10.2131px; text-wrap: nowrap; transform-origin: 403.999px 10.2202px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'+++++++' \u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e=\u0026gt; NaN\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4403px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.909091px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.909091px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.909091px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.909091px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.991px 10.2131px; text-wrap: nowrap; transform-origin: 403.999px 10.2202px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'+11.664' \u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e=\u0026gt; 11.664\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21.0085px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 10px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 10px; perspective-origin: 383.991px 10.4972px; text-align: left; transform-origin: 383.999px 10.5043px; white-space-collapse: preserve; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eOh, and output it into an array because I hate working with cells.  And there's a lot of data so it had better be fast!\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = str2numBetter(x)\r\n  y = str2num(cell2mat(x));\r\nend","test_suite":"%%\r\n% This first test should cover every possible case.\r\nx = {'- 6.496';'-10.430';'- 0.493';'+++++++';'+ 6.949';'- 5.368';'+13.214';'+11.664'};\r\nfinalData = [-6.496;-10.430;-0.493';NaN;+6.949;-5.368;+13.214;+11.664];\r\n\r\nassert(isequaln(str2numBetter(x),finalData))\r\n\r\n%%\r\nrng shuffle\r\nn = 30000; % Something small to start you off with.\r\nrNums=10*rand([n 1]);\r\nrNums(rNums\u003e9.99)=NaN;\r\nstr=char(sprintfc('%.3f', rNums, false));\r\nneg=2*randi([0 1],[n 1]);\r\ntens=randi([0 1],[n 1]);\r\nstr = [char(neg+'+') char(17*tens+' ') str];\r\nplus=('+');\r\nstr(isnan(rNums),:)=plus(ones(nnz(isnan(rNums)),7));\r\nx=mat2cell(str,ones(1,n),7);\r\ntic; y=str2numBetter(x); toc % The code I wrote took 0.005872 seconds to run\r\nfinalData = round(-1*(neg-1).*(rNums+10*tens),3);\r\n\r\nassert(isequaln(y,finalData))\r\n\r\n%%\r\nrng shuffle\r\nn = 12000000; % Yes! I have this much data!!!\r\nrNums=10*rand([n 1]);\r\nrNums(rNums\u003e9.99)=NaN; % Real world values overflow\r\nstr=char(sprintfc('%.3f', rNums, false)); % This is what num2str uses\r\nneg=2*randi([0 1],[n 1]); % Some numbers will be random\r\ntens=randi([0 1],[n 1]); % Some numbers will be \u003e10, but in an odd format \r\nstr = [char(neg+'+') char(17*tens+' ') str]; % Add the weird 10's place and multiply by negatives\r\nplus=('+');\r\nstr(isnan(rNums),:)=plus(ones(nnz(isnan(rNums)),7)); % Replace NaN with something more annoying\r\nx=mat2cell(str,ones(1,n),7); % The data is in cells, not an array!\r\ntic; y=str2numBetter(x); toc % The code I wrote takes about 3.5 seconds to run, with a size of 130.\r\nfinalData = round(-1*(neg-1).*(rNums+10*tens),3);\r\n\r\nassert(isequaln(y,finalData))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3115675,"edited_by":3115675,"edited_at":"2023-08-08T14:27:45.000Z","deleted_by":null,"deleted_at":null,"solvers_count":3,"test_suite_updated_at":"2023-08-08T14:27:45.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2023-08-07T21:52:56.000Z","updated_at":"2023-08-08T14:27:45.000Z","published_at":"2023-08-07T22:00:31.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eI have a bunch of messy data I have to go through. The data is stored in an odd format, so str2num isn't working. And even when I get it to work, it is still too slow!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eI need you to turn the strings into numbers. Any '+++++++' values are values that overloaded the data collection device and should be set to NaN.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA['- 6.496' =\u003e -6.496\\n'-10.430' =\u003e -10.430\\n'+++++++' =\u003e NaN\\n'+11.664' =\u003e 11.664]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOh, and output it into an array because I hate working with cells.  And there's a lot of data so it had better be fast!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":1533,"title":"Criss-Cross Verification: NHL","description":"This Challenge is to verify a Criss-Cross matrix has no invalid words,contains all of the word set, and all are simply connected (Up/Down/Left/Right). Separation, UDLR, must exist between non-intersecting words. Diagonal is considered separate.\r\n\r\nThe word set is a cell array. The matrix is an array of Char with spaces being represented by '`', char(96), which is under the tilde on my keyboard.\r\n\r\n*Example:*\r\n\r\n*Input:*\r\n\r\n  dict={'abcd' 'cag'}\r\n  \r\n  Achar=['abcd'\r\n         '``a`'\r\n         '``g`'];\r\n\r\n*Output:* Validity (1 for Valid, 0 for Invalid)\r\n\r\n\r\n*Related Challenges:*\r\n\r\nThis Challenge is derived from GAMES August 2013 Contest \"On the Ice\" to fit all NHL Team names into a minimum area grid using the Criss-Cross rules.\r\nCurrent Best solution is 19x19, 6/3/2013. Contest ends 8/31/2013.\r\n\r\n1) Create an NHL Criss-Cross  (Score by Area)\r\n\r\n2) Complete a Criss-Cross\r\n\r\n3) Create a Criss-Cross dictionary from a matrix","description_html":"\u003cp\u003eThis Challenge is to verify a Criss-Cross matrix has no invalid words,contains all of the word set, and all are simply connected (Up/Down/Left/Right). Separation, UDLR, must exist between non-intersecting words. Diagonal is considered separate.\u003c/p\u003e\u003cp\u003eThe word set is a cell array. The matrix is an array of Char with spaces being represented by '`', char(96), which is under the tilde on my keyboard.\u003c/p\u003e\u003cp\u003e\u003cb\u003eExample:\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003edict={'abcd' 'cag'}\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eAchar=['abcd'\r\n       '``a`'\r\n       '``g`'];\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Validity (1 for Valid, 0 for Invalid)\u003c/p\u003e\u003cp\u003e\u003cb\u003eRelated Challenges:\u003c/b\u003e\u003c/p\u003e\u003cp\u003eThis Challenge is derived from GAMES August 2013 Contest \"On the Ice\" to fit all NHL Team names into a minimum area grid using the Criss-Cross rules.\r\nCurrent Best solution is 19x19, 6/3/2013. Contest ends 8/31/2013.\u003c/p\u003e\u003cp\u003e1) Create an NHL Criss-Cross  (Score by Area)\u003c/p\u003e\u003cp\u003e2) Complete a Criss-Cross\u003c/p\u003e\u003cp\u003e3) Create a Criss-Cross dictionary from a matrix\u003c/p\u003e","function_template":"function valid=check_crisscross(Achar,dict_cell)\r\n valid=1;\r\nend","test_suite":"%%\r\ndict_cell={'abcd'\r\n'cat'\r\n'dot'};\r\n\r\nAchar=['abcd'\r\n'``a`'\r\n'dot`'];\r\n\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==1)\r\n%%\r\ndict_cell={'abcd'\r\n'cat'\r\n'dot'\r\n'bcd'};\r\n\r\nAchar=['abcd'\r\n'``a`'\r\n'dot`'];\r\n% Need a unique bcd word\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==0)\r\n%%\r\ndict_cell={'abcd'\r\n'cat'\r\n'dot'\r\n'acd'};\r\n\r\nAchar=['abcd'\r\n'c`a`'\r\n'dot`'];\r\n% valid matrix\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==1)\r\n%%\r\ndict_cell={'avalanche'\r\n'bluejackets'\r\n'blackhawks'\r\n'blues'\r\n'bruins'\r\n'canadiens'\r\n'canucks'\r\n'capitals'\r\n'coyotes'\r\n'devils'\r\n'ducks'\r\n'flames'\r\n'flyers'\r\n'hurricanes'\r\n'islanders'\r\n'jets'\r\n'kings'\r\n'lightning'\r\n'mapleleafs'\r\n'oilers'\r\n'panthers'\r\n'penguins'\r\n'predators'\r\n'rangers'\r\n'redwings'\r\n'sabres'\r\n'senators'\r\n'sharks'\r\n'stars'\r\n'wild'};\r\n\r\nAchar=['```````hurricanes``s'\r\n'rangers`````o````m`e'\r\n'e`````t```flyers`a`n'\r\n'd`````a`````o````p`a'\r\n'w`````r`capitals`l`t'\r\n'i`ducks`````e````e`o'\r\n'n```a``sabres````l`r'\r\n'g`kings``l````oilers'\r\n's```u``bruins````a``'\r\n'````c````e`````p`f``'\r\n'blackhawks``sharks``'\r\n'``v`s``````````e````'\r\n'``a````````i```d``p`'\r\n'`bluejackets```a``e`'\r\n'``a````````lightning'\r\n'canadiens``a```o``g`'\r\n'``c``````panthers`u`'\r\n'``h`w``````d```s``i`'\r\n'`devils```jets````n`'\r\n'````l``````r``````s`'\r\n'````d`flames````````'];\r\n\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==1)\r\n%%\r\ndict_cell={'avalanche'\r\n'bluejackets'\r\n'blackhawks'\r\n'blues'\r\n'bruins'\r\n'canadiens'\r\n'canucks'\r\n'capitals'\r\n'coyotes'\r\n'devils'\r\n'ducks'\r\n'flames'\r\n'flyers'\r\n'hurricanes'\r\n'islanders'\r\n'jets'\r\n'kings'\r\n'lightning'\r\n'mapleleafs'\r\n'oilers'\r\n'panthers'\r\n'penguins'\r\n'predators'\r\n'rangers'\r\n'redwings'\r\n'sabres'\r\n'senators'\r\n'sharks'\r\n'stars'\r\n'wild'};\r\n\r\nAchar=['```````hurricanes``s'\r\n'rangers`````o````m`e'\r\n'e`````t```flyers`a`n'\r\n'd`````a`````o````p`a'\r\n'w`````r`capitals`l`t'\r\n'i`ducks`````e````e`o'\r\n'n```a``sabres````l`r'\r\n'g`kings``l````oilers'\r\n's```u``bruins````a``'\r\n'````c````e`````p`f``'\r\n'blackhawks``sharks``'\r\n'``v`s``````````e````'\r\n'``a````````i```d``p`'\r\n'`bluejackets```a``e`'\r\n'``a````````lightning'\r\n'canadiens``a```o``g`'\r\n'``c``````panthers`u`'\r\n'``h`w``````d```s``i`'\r\n'`devils```jets````n`'\r\n'````l``````r```jets`'\r\n'````d`flames````````'];\r\n\r\n% jets is duplicated\r\n\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==0)\r\n%%\r\ndict_cell={'avalanche'\r\n'bluejackets'\r\n'blackhawks'\r\n'blues'\r\n'bruins'\r\n'canadiens'\r\n'canucks'\r\n'capitals'\r\n'coyotes'\r\n'devils'\r\n'ducks'\r\n'flames'\r\n'flyers'\r\n'hurricanes'\r\n'islanders'\r\n'jets'\r\n'kings'\r\n'lightning'\r\n'mapleleafs'\r\n'oilers'\r\n'panthers'\r\n'penguins'\r\n'predators'\r\n'rangers'\r\n'redwings'\r\n'sabres'\r\n'senators'\r\n'sharks'\r\n'stars'\r\n'wild'};\r\n\r\nAchar=['```````hurricanes``s'\r\n'rangers`````o````m`e'\r\n'e`````t```flyers`a`n'\r\n'd`````a`````o````p`a'\r\n'w`````r`capitals`l`t'\r\n'i`ducks`````e````e`o'\r\n'n```a``sabres````l`r'\r\n'g`kings``l````oilers'\r\n's```u``bruins````a``'\r\n'````c````e`````p`f``'\r\n'blackhawks``sharks``'\r\n'``v`s``````````e````'\r\n'``a````````i```d``p`'\r\n'`bluejackets```a``e`'\r\n'``a````````lightning'\r\n'canadiens``a```o``g`'\r\n'``c``````panthers`u`'\r\n'``h`w``````d```s``i`'\r\n'`devils````e``````n`'\r\n'````l``````r``````s`'\r\n'````d`flames``jets``'];\r\n\r\n% Non-Connected jets\r\n\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==0)\r\n%%\r\ndict_cell={'avalanche'\r\n'bluejackets'\r\n'blackhawks'\r\n'blues'\r\n'bruins'\r\n'canadiens'\r\n'canucks'\r\n'capitals'\r\n'coyotes'\r\n'devils'\r\n'ducks'\r\n'flames'\r\n'flyers'\r\n'hurricanes'\r\n'islanders'\r\n'jets'\r\n'kings'\r\n'lightning'\r\n'mapleleafs'\r\n'oilers'\r\n'panthers'\r\n'penguins'\r\n'predators'\r\n'rangers'\r\n'redwings'\r\n'sabres'\r\n'senators'\r\n'sharks'\r\n'stars'\r\n'wild'};\r\n\r\nAchar=['```````hurricanes``s'\r\n'rangers`````o````m`e'\r\n'e`````t```flyers`a`n'\r\n'd`````a`````o````p`a'\r\n'w`````r`capitals`l`t'\r\n'i`ducks`````e````e`o'\r\n'n```a``sabres````l`r'\r\n'g`kings``l````oilers'\r\n's```u``bruins````a``'\r\n'````c````e`````p`f``'\r\n'blackhawks``sharks``'\r\n'``v`s``````````e````'\r\n'``a````````i```d````'\r\n'`bluejackets```a````'\r\n'``a````````lightning'\r\n'canadiens``a```o````'\r\n'``c``````panthers```'\r\n'``h`w``````d```s````'\r\n'`devils```jets``````'\r\n'````l``````r````````'\r\n'````d`flames````````'];\r\n% Missing penguins\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==0)\r\n%%\r\ndict_cell={'avalanche'\r\n'bluejackets'\r\n'blackhawks'\r\n'blues'\r\n'bruins'\r\n'canadiens'\r\n'canucks'\r\n'capitals'\r\n'coyotes'\r\n'devils'\r\n'ducks'\r\n'flames'\r\n'flyers'\r\n'hurricanes'\r\n'islanders'\r\n'jets'\r\n'kings'\r\n'lightning'\r\n'mapleleafs'\r\n'oilers'\r\n'panthers'\r\n'penguins'\r\n'predators'\r\n'rangers'\r\n'redwings'\r\n'sabres'\r\n'senators'\r\n'sharks'\r\n'stars'\r\n'wild'};\r\n\r\nAchar=['```````hurricanes``s'\r\n'rangers`````o````m`e'\r\n'e```jets``flyers`a`n'\r\n'd`````a`````o````p`a'\r\n'w`````r`capitals`l`t'\r\n'i`ducks`````e````e`o'\r\n'n```a``sabres````l`r'\r\n'g`kings``l````oilers'\r\n's```u``bruins````a``'\r\n'````c````e`````p`f``'\r\n'blackhawks``sharks``'\r\n'``v`s``````````e````'\r\n'``a````````i```d``p`'\r\n'`bluejackets```a``e`'\r\n'``a````````lightning'\r\n'canadiens``a```o``g`'\r\n'``c``````panthers`u`'\r\n'``h`w``````d```s``i`'\r\n'`devils````e``````n`'\r\n'````l``````r``````s`'\r\n'````d`flames````````'];\r\n% invalid jets on row 3\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==0)","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":6,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-02T16:57:18.000Z","updated_at":"2013-06-02T17:35:21.000Z","published_at":"2013-06-02T17:33:32.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is to verify a Criss-Cross matrix has no invalid words,contains all of the word set, and all are simply connected (Up/Down/Left/Right). Separation, UDLR, must exist between non-intersecting words. Diagonal is considered separate.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe word set is a cell array. The matrix is an array of Char with spaces being represented by '`', char(96), which is under the tilde on my keyboard.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[dict={'abcd' 'cag'}\\n\\nAchar=['abcd'\\n       '``a`'\\n       '``g`'];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Validity (1 for Valid, 0 for Invalid)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eRelated Challenges:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from GAMES August 2013 Contest \\\"On the Ice\\\" to fit all NHL Team names into a minimum area grid using the Criss-Cross rules. Current Best solution is 19x19, 6/3/2013. Contest ends 8/31/2013.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e1) Create an NHL Criss-Cross (Score by Area)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e2) Complete a Criss-Cross\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e3) Create a Criss-Cross dictionary from a matrix\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1452,"title":"Minimum Distance between two N-sided Polygons","description":"This Challenge is to determine the minimum distance between two non-overlapping polygons. The input is a cell array of two vectors that represent the sequential points of 3 to 100 sided polygons. [x0 y0 x1 y1 ... xn yn]\r\n\r\n*Input:* polycell={[0 0 0 5 4 5 4 0] [2.5 5.5 3 9 -2 5.6]};\r\n\r\n*Output:* 0.5  \r\n\r\n\r\nRelated Challenges:\r\n\r\n1) \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1446-minimum-distance-point-to-segment Minimum Distance Point to Segment\u003e\r\n\r\n2) \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1457-usc-spring-2013-acm-walking-on-thin-ice USC Spring 2013 ACM Walking on Thin Ice\u003e","description_html":"\u003cp\u003eThis Challenge is to determine the minimum distance between two non-overlapping polygons. The input is a cell array of two vectors that represent the sequential points of 3 to 100 sided polygons. [x0 y0 x1 y1 ... xn yn]\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e polycell={[0 0 0 5 4 5 4 0] [2.5 5.5 3 9 -2 5.6]};\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e 0.5\u003c/p\u003e\u003cp\u003eRelated Challenges:\u003c/p\u003e\u003cp\u003e1) \u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/1446-minimum-distance-point-to-segment\"\u003eMinimum Distance Point to Segment\u003c/a\u003e\u003c/p\u003e\u003cp\u003e2) \u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/1457-usc-spring-2013-acm-walking-on-thin-ice\"\u003eUSC Spring 2013 ACM Walking on Thin Ice\u003c/a\u003e\u003c/p\u003e","function_template":"function pdistmin=PolytoPol(polycell)\r\n% Convert [x0 y0 x1 y1 ... xn yn] to nx2 array\r\n% Length of polycell{1} may vary from polycell{2}\r\n p1=reshape(polycell{1},2,[])';\r\n p2=reshape(polycell{2},2,[])';\r\n \r\n pdistmin=0;\r\nend","test_suite":"polycell={[0 0 5 10 10 0] [5 -1 6 -5 5 -5]};\r\np2p_min=PolytoPol(polycell);\r\nassert(abs(p2p_min-1)\u003c.01);\r\n%%\r\npolycell={[0 0 0 5 4 5 4 0] [2.5 5.5 3 9 -2 5.6]};\r\np2p_min=PolytoPol(polycell);\r\nassert(abs(p2p_min-0.5)\u003c.01);\r\n%%\r\npolycell={[0 10 0 90 50 50 100 90 100 10] [0 110 100 110 50 70]};\r\np2p_min=PolytoPol(polycell);\r\nassert(abs(p2p_min-15.617376)\u003c.01);\r\n%%\r\npolycell={[0 110 100 110 50 70] [20 5 50 7 30 5]};\r\np2p_min=PolytoPol(polycell);\r\nassert(abs(p2p_min-63)\u003c.01);\r\n%%\r\npolycell={[-5 -5 -4 -4 -3 -3 -2 -2 5 5 5 0] [6 10 6 -10 20 0]};\r\np2p_min=PolytoPol(polycell);\r\nassert(abs(p2p_min-1)\u003c.01);\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":27,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":20,"created_at":"2013-04-24T01:39:41.000Z","updated_at":"2026-02-16T10:57:04.000Z","published_at":"2013-04-24T02:03:10.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is to determine the minimum distance between two non-overlapping polygons. The input is a cell array of two vectors that represent the sequential points of 3 to 100 sided polygons. [x0 y0 x1 y1 ... xn yn]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e polycell={[0 0 0 5 4 5 4 0] [2.5 5.5 3 9 -2 5.6]};\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e 0.5\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated Challenges:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e1)\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1446-minimum-distance-point-to-segment\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eMinimum Distance Point to Segment\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e2)\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1457-usc-spring-2013-acm-walking-on-thin-ice\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eUSC Spring 2013 ACM Walking on Thin Ice\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1631,"title":"Criss-Cross: NHL - Optimize Matrix Size","description":"Given the List of NHL Teams, fit all in a minimum area Criss-Cross with no invalid words, no duplications, and all connected.\r\n\r\n*Input:* Dictionary (cell array)\r\n\r\n*Output:* Array of Char  (spaces indicated by char(96))\r\n\r\n*Score:* Numer of Elements in Array (including unused)\r\n\r\nExample: \r\n\r\ndict={'abc' 'cat'}\r\n\r\nOutput: \r\n['abc';'``a';'``t']\r\n\r\n  abc\r\n  ``a\r\n  ``t\r\n\r\nScore: 9\r\n\r\nRelated Challenges:\r\n\r\n1) \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1533-criss-cross-verification-nhl Verify Criss-Cross\u003e\r\n\r\n2) Create Criss-Cross dictionary from a matrix\r\n\r\n3) Games Magazine Contest 8/31/2013","description_html":"\u003cp\u003eGiven the List of NHL Teams, fit all in a minimum area Criss-Cross with no invalid words, no duplications, and all connected.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e Dictionary (cell array)\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Array of Char  (spaces indicated by char(96))\u003c/p\u003e\u003cp\u003e\u003cb\u003eScore:\u003c/b\u003e Numer of Elements in Array (including unused)\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cp\u003edict={'abc' 'cat'}\u003c/p\u003e\u003cp\u003eOutput: \r\n['abc';'``a';'``t']\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eabc\r\n``a\r\n``t\r\n\u003c/pre\u003e\u003cp\u003eScore: 9\u003c/p\u003e\u003cp\u003eRelated Challenges:\u003c/p\u003e\u003cp\u003e1) \u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/1533-criss-cross-verification-nhl\"\u003eVerify Criss-Cross\u003c/a\u003e\u003c/p\u003e\u003cp\u003e2) Create Criss-Cross dictionary from a matrix\u003c/p\u003e\u003cp\u003e3) Games Magazine Contest 8/31/2013\u003c/p\u003e","function_template":"function H=criss_cross(dict)\r\n H=[''];\r\nend","test_suite":"%%\r\nfeval(@assignin,'caller','score',625);\r\n%%\r\ndict={'avalanche'\r\n'bluejackets'\r\n'blackhawks'\r\n'blues'\r\n'bruins'\r\n'canadiens'\r\n'canucks'\r\n'capitals'\r\n'coyotes'\r\n'devils'\r\n'ducks'\r\n'flames'\r\n'flyers'\r\n'hurricanes'\r\n'islanders'\r\n'jets'\r\n'kings'\r\n'lightning'\r\n'mapleleafs'\r\n'oilers'\r\n'panthers'\r\n'penguins'\r\n'predators'\r\n'rangers'\r\n'redwings'\r\n'sabres'\r\n'senators'\r\n'sharks'\r\n'stars'\r\n'wild'};\r\n\r\nt1 = cputime;\r\nH=criss_cross(dict)\r\nfprintf('Elapsed Time %.2f\\n',cputime-t1)\r\nfprintf('size of H %i %i\\n',size(H));\r\nscore=prod(size(H)); % if valid\r\n\r\n% Perform Validation : words\r\n a=H;\r\n% Ned's\r\n    gridWords = {};\r\n    for i = 1:2\r\n        a = a';\r\n        for j = 1:size(a,1)\r\n            tk = regexp(a(j,:),'(\\w\\w+)','tokens');\r\n            gridWords = [gridWords tk];\r\n        end\r\n    end\r\n    dictFound = cell(length(gridWords),1);\r\n    for i = 1:length(gridWords)\r\n        dictFound{i} = gridWords{i}{1};\r\n    end\r\n    dictFound = sort(dictFound);\r\n    dictGiven = sort(dict);\r\nassert(isequal(dictGiven,dictFound),sprintf('Invalid/Missing words'))\r\n\r\n% Perform Validation: Connected\r\nAchar=H;\r\n m= (Achar-96);\r\n m(m\u003e0)=Inf;\r\n% expand m and encircle with 0\r\n [nr, nc]=size(m);\r\n m=[zeros(nr,1) m zeros(nr,1)];\r\n m=[zeros(1,nc+2); m; zeros(1,nc+2)];\r\n nr=size(m,1);\r\n off_vec=[-1 1 -nr nr];\r\n % Initialize start location\r\n ptr=find(m==Inf,1,'first');\r\n curval=1;\r\n m(ptr)=curval;\r\n \r\n while ~isempty(ptr) % adjacent expansion search sequence\r\n  curval=curval+1;\r\n  Moff_vec=repmat(ptr,1,4)+repmat(off_vec,size(ptr,1),1);\r\n  m(Moff_vec)=min(curval*ones(size(Moff_vec)), m(Moff_vec));\r\n  ptr=find(m==curval);\r\n end\r\n\r\ninvalid=any(m(:)==Inf); % Any unconnected from start point will be Inf\r\n\r\nassert(~invalid,sprintf('Not fully connected'))\r\n\r\nHscore=numel(H);\r\n\r\nfeval(@assignin,'caller','score',Hscore);","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":3,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-08T22:55:40.000Z","updated_at":"2013-06-09T01:03:27.000Z","published_at":"2013-06-09T01:03:27.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven the List of NHL Teams, fit all in a minimum area Criss-Cross with no invalid words, no duplications, and all connected.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Dictionary (cell array)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Array of Char (spaces indicated by char(96))\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eScore:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Numer of Elements in Array (including unused)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003edict={'abc' 'cat'}\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput: ['abc';'``a';'``t']\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[abc\\n``a\\n``t]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eScore: 9\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated Challenges:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e1)\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1533-criss-cross-verification-nhl\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eVerify Criss-Cross\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e2) Create Criss-Cross dictionary from a matrix\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e3) Games Magazine Contest 8/31/2013\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"problem_search":{"errors":[],"problems":[{"id":42783,"title":"Accessing values in a cell","description":"You are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors.  Your job is to give the bth value in the ath cell for the entire vectors a and b.\r\n\r\nFor example\r\nc{1}=2:6;\r\nc{2}=7:12;\r\nc{3}=13:18;\r\n\r\na=[1 2 3];\r\nb=[4 5 6];\r\n\r\nYou would want to output [5 11 18], which are the values of c{1}(4), c{2}(5) and c{3}(6).  You can assume that a and b are the same length, all of the values in c are numbers, and there will be no empty cells.  Good luck!","description_html":"\u003cp\u003eYou are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors.  Your job is to give the bth value in the ath cell for the entire vectors a and b.\u003c/p\u003e\u003cp\u003eFor example\r\nc{1}=2:6;\r\nc{2}=7:12;\r\nc{3}=13:18;\u003c/p\u003e\u003cp\u003ea=[1 2 3];\r\nb=[4 5 6];\u003c/p\u003e\u003cp\u003eYou would want to output [5 11 18], which are the values of c{1}(4), c{2}(5) and c{3}(6).  You can assume that a and b are the same length, all of the values in c are numbers, and there will be no empty cells.  Good luck!\u003c/p\u003e","function_template":"function y = break_cells_down(c,a,b)\r\n  y = x;\r\nend","test_suite":"%%\r\nformat compact\r\nc=cell(1,3);\r\nc{1}=2:6;c{2}=7:12;c{3}=13:18;\r\na=[1 2 3];b=[4 5 6];\r\ny_correct = [5 11 18];\r\nassert(isequal(break_cells_down(c,a,b),y_correct))\r\n%%\r\nclear c\r\nc=cell(1,5);\r\nc{1}=rand(1,10);\r\nc{2}=rand(1,10);\r\nc{3}=rand(1,10);\r\nc{4}=rand(1,10);\r\nc{5}=rand(1,10);\r\na=randperm(5)\r\nb=randperm(10);\r\nb=b(1:5)\r\ny_correct=[c{a(1)}(b(1)) c{a(2)}(b(2)) c{a(3)}(b(3)) c{a(4)}(b(4)) c{a(5)}(b(5))]\r\nassert(isequal(break_cells_down(c,a,b),y_correct))\r\n%%\r\nclear c\r\nc=cell(1,6);\r\nc{1}=1:6;\r\nc{2}=1:6;\r\nc{3}=1:6;\r\nc{4}=1:6;\r\nc{5}=1:6;\r\nc{6}=1:6;\r\na=1:6;\r\nb=randperm(6)\r\ny_correct=b;\r\nassert(isequal(break_cells_down(c,a,b),y_correct))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":1615,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":53,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-03-24T20:03:59.000Z","updated_at":"2026-02-27T13:57:43.000Z","published_at":"2016-03-24T20:03:59.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eYou are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors. Your job is to give the bth value in the ath cell for the entire vectors a and b.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example c{1}=2:6; c{2}=7:12; c{3}=13:18;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ea=[1 2 3]; b=[4 5 6];\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eYou would want to output [5 11 18], which are the values of c{1}(4), c{2}(5) and c{3}(6). You can assume that a and b are the same length, all of the values in c are numbers, and there will be no empty cells. Good luck!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2167,"title":"Negative Infinity","description":"Round the given array a towards negative infinity.","description_html":"\u003cp\u003eRound the given array a towards negative infinity.\u003c/p\u003e","function_template":"function y = rounding(a)\r\n  y = x;\r\nend","test_suite":"%%\r\na = [2.5 -1.7 5.6 8.4]\r\ny_correct = [ 2    -2     5     8];\r\nassert(isequal(rounding(a),y_correct))\r\n\r\na = [ -105.25 78.89 -0.1 0.9 7.2];\r\ny_correct = [  -106    78    -1     0     7];\r\nassert(isequal(rounding(a),y_correct))\r\n\r\na = [ 265.25 88.99 -0.1 0.9 7.2]\r\ny_correct = [  265    88    -1     0     7];\r\nassert(isequal(rounding(a),y_correct))\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":11900,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":342,"test_suite_updated_at":"2014-02-07T14:09:46.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2014-02-07T14:04:24.000Z","updated_at":"2026-02-23T15:30:22.000Z","published_at":"2014-02-07T14:04:24.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRound the given array a towards negative infinity.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44396,"title":"Find the last digit","description":"FInd the last digit of a given number. Given number is the input and output should be the last digit of that number.","description_html":"\u003cp\u003eFInd the last digit of a given number. Given number is the input and output should be the last digit of that number.\u003c/p\u003e","function_template":"function y = last_digit(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = 100;\r\ny_correct = 0;\r\nassert(isequal(last_digit(x),y_correct))\r\n\r\n%%\r\nx = 103;\r\ny_correct = 3;\r\nassert(isequal(last_digit(x),y_correct))\r\n\r\n%%\r\nx = 55958;\r\ny_correct = 8;\r\nassert(isequal(last_digit(x),y_correct))\r\n\r\n%%\r\nx = 6165451646465;\r\ny_correct = 5;\r\nassert(isequal(last_digit(x),y_correct))\r\n\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":86789,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":114,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2017-11-01T18:50:19.000Z","updated_at":"2026-02-13T18:12:11.000Z","published_at":"2017-11-01T18:50:19.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFInd the last digit of a given number. Given number is the input and output should be the last digit of that number.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2168,"title":"Positive Infinity","description":"Round the array a towards positive infinity","description_html":"\u003cp\u003eRound the array a towards positive infinity\u003c/p\u003e","function_template":"function y = positiveround(a)\r\n  y = x;\r\nend","test_suite":"%%\r\na = [2.5 -1.7 5.6 8.4]\r\ny_correct = [ 3    -1     6     9];\r\nassert(isequal(positiveround(a),y_correct))\r\n\r\n a = [ -105.25 78.89 -0.1 0.9 7.2]\r\ny_correct = [ -105    79     0     1     8]\r\nassert(isequal(positiveround(a),y_correct))\r\n\r\na = [ 265.25 88.99 -0.1 0.9 7.2]\r\ny_correct = [ 266    89     0     1     8]\r\nassert(isequal(positiveround(a),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":11900,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":364,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2014-02-07T14:16:33.000Z","updated_at":"2026-02-17T09:01:14.000Z","published_at":"2014-02-07T14:16:32.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRound the array a towards positive infinity\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2683,"title":"Adding Cells with numbers defined as strings","description":"Given a cell, with strings representing numbers, add each value.\r\n\r\nFor example:\r\n\r\na = {'9','33'};\r\n\r\nthe output should be:\r\n\r\ny = 42\r\n\r\n","description_html":"\u003cp\u003eGiven a cell, with strings representing numbers, add each value.\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cp\u003ea = {'9','33'};\u003c/p\u003e\u003cp\u003ethe output should be:\u003c/p\u003e\u003cp\u003ey = 42\u003c/p\u003e","function_template":"function y = addingcells(a)\r\n  y = cellfun(@(x) x,a);\r\nend","test_suite":"%%\r\nx = {'9','33'};\r\ny_correct = 42;\r\nassert(isequal(addingcells(x),y_correct))\r\n\r\n\r\n%%\r\nx = {'9','33'};\r\ny_correct = 42;\r\nassert(isequal(addingcells(x),y_correct))\r\n\r\n%%\r\nx = {'9','33','-12'};\r\ny_correct = 30;\r\nassert(isequal(addingcells(x),y_correct))\r\n\r\n%%\r\nx = {'9','33','122'};\r\ny_correct = 164;\r\nassert(isequal(addingcells(x),y_correct))","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":4690,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":102,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":32,"created_at":"2014-11-22T17:45:52.000Z","updated_at":"2026-03-19T19:57:12.000Z","published_at":"2014-11-22T17:45:59.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a cell, with strings representing numbers, add each value.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ea = {'9','33'};\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ethe output should be:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ey = 42\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":45306,"title":"Find index of non empty cell array","description":"This question aims to understand the characteristics of MATLAB programs. Educational problem.\r\n\r\nPlease find non empty index of cell array.(Hint: cellfun)\r\n\r\ne.g. : \r\n\r\ninput : \r\n\r\n  x = {1,[],[],[]};\r\n\r\noutput  :\r\n\r\n  y = 1","description_html":"\u003cp\u003eThis question aims to understand the characteristics of MATLAB programs. Educational problem.\u003c/p\u003e\u003cp\u003ePlease find non empty index of cell array.(Hint: cellfun)\u003c/p\u003e\u003cp\u003ee.g. :\u003c/p\u003e\u003cp\u003einput :\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ex = {1,[],[],[]};\r\n\u003c/pre\u003e\u003cp\u003eoutput  :\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ey = 1\r\n\u003c/pre\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = {1,[],2,[]};\r\ny_correct = [2,4];\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n\r\n%%\r\nx = {'aaa','bbb',[],'ddd'};\r\ny_correct = 3;\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n\r\n%%\r\nx = {'','','',''};\r\ny_correct = [1,2,3,4];;\r\nassert(isequal(your_fcn_name(x),y_correct))","published":true,"deleted":false,"likes_count":0,"comments_count":2,"created_by":36010,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":32,"test_suite_updated_at":"2020-02-02T10:20:01.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2020-02-02T10:10:43.000Z","updated_at":"2026-03-04T15:49:40.000Z","published_at":"2020-02-02T10:20:01.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis question aims to understand the characteristics of MATLAB programs. Educational problem.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ePlease find non empty index of cell array.(Hint: cellfun)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ee.g. :\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003einput :\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[x = {1,[],[],[]};]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eoutput :\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[y = 1]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":61121,"title":"Multiplying the Sums of Two Arrays","description":"Get two arrays, add the values within the array up, and then multiply the two total values. \r\n[2,3]*[3,6]\r\n5*18\r\n90","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(33, 33, 33); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none; white-space: normal; \"\u003e\u003cdiv style=\"block-size: 111px; display: block; min-width: 0px; padding-block-start: 0px; padding-inline-start: 2px; padding-left: 2px; padding-top: 0px; perspective-origin: 408px 55.5px; transform-origin: 408px 55.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGet two arrays, add the values within the array up, and then multiply the two total values. \u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e[2,3]*[3,6]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e5*18\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e90\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = multiplySums(x,h)\r\n  y = x*h\r\nend","test_suite":"%%\r\nx = [1,2];\r\nh = [3,1];\r\ny_correct = 12;\r\nassert(isequal(multiplySums(x,h),y_correct))\r\n%%\r\nx = [1,0];\r\nh = [0];\r\ny_correct = 0\r\nassert(isequal(multiplySums(x,h),y_correct))\r\n%%\r\nx = [0,0,100]\r\nh = [0,2,9];\r\ny_correct = 1100;\r\nassert(isequal(multiplySums(x,h),y_correct))\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":5018771,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":13,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2025-12-09T01:26:14.000Z","updated_at":"2026-02-26T11:37:46.000Z","published_at":"2025-12-09T01:26:14.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGet two arrays, add the values within the array up, and then multiply the two total values. \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e[2,3]*[3,6]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e5*18\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e90\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":54350,"title":"String Manipulator","description":"Write a script that takes a string as an input and returns a cell array containing  –\r\nI. the count of vowels.\r\nII. Find the index of ‘o’\r\nIII. The string removing all the vowels.\r\nIV. The string removing all the letters from a to j.\r\nV. The string removing all the consonants.\r\nVI. The string replacing all the vowels with an asterisk (*)\r\nVII. The string removing all the digits.\r\nHint: Use Regular Expression\r\n","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none solid rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 291px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 406.5px 145.5px; transform-origin: 406.5px 145.5px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003eWrite a script that takes a string as an input and returns a cell array containing\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003e  –\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eI. the count of vowels.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eII. Find the index of ‘o’\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eIII. The string removing all the vowels.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eIV. The string removing all the letters from a to j.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eV. The string removing all the consonants.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eVI. The string replacing all the vowels with an asterisk (*)\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eVII. The string removing all the digits.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"font-style: italic; text-decoration: underline; text-decoration-line: underline; \"\u003eHint: Use Regular Expression\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function k=strman(x)\r\n  k = regexprep(x);\r\nend","test_suite":"%%\r\nx = 'david attenborough';\r\ny_correct = {[7] [13 15] 'dvd ttnbrgh' 'v ttnorou' 'ai aeoou' 'd*v*d *tt*nb*r**gh' 'david attenborough'};\r\nassert(isequal(strman(x),y_correct))\r\n%%\r\nx = 'ilove bayernmunichhhn';\r\ny_correct = {[7] [3] 'lv byrnmnchhhn' 'lov yrnmunn' 'ioe aeui' '*l*v* b*y*rnm*n*chhhn' 'ilove bayernmunichhhn'};\r\nassert(isequal(strman(x),y_correct))\r\n%%\r\nx = 'n';\r\ny_correct = {[0] [] 'n' 'n' '' 'n' 'n'};\r\nassert(isequal(strman(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":5,"created_by":1274403,"edited_by":1274403,"edited_at":"2022-04-26T04:59:21.000Z","deleted_by":null,"deleted_at":null,"solvers_count":21,"test_suite_updated_at":"2022-04-26T04:59:22.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2022-04-23T20:36:19.000Z","updated_at":"2026-04-07T08:26:15.000Z","published_at":"2022-04-23T20:37:11.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eWrite a script that takes a string as an input and returns a cell array containing\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e  –\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eI. the count of vowels.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eII. Find the index of ‘o’\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIII. The string removing all the vowels.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIV. The string removing all the letters from a to j.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eV. The string removing all the consonants.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eVI. The string replacing all the vowels with an asterisk (*)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eVII. The string removing all the digits.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003cw:u/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eHint: Use Regular Expression\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":43672,"title":"String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values","description":"\u003chttp://www.mathworks.com/help/matlab/characters-and-strings.html String array\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a string array. Your job is to convert the string array to a cell array of character vectors, which stores the same pieces of text data.\r\n\r\nTo begin with, let's assume that there are no missing type values in the input string array. \r\n\r\nExample: \r\n\r\n  Input:\r\n  \u003e\u003e x = string({'I','love','MATLAB'})\r\n  x = \r\n    1×3 string array\r\n      \"I\"    \"love\"    \"MATLAB\";\r\n\r\n  Output:\r\n  \u003e\u003e y = {'I','love','MATLAB'}\r\n  y =\r\n    1×3 cell array\r\n      'I'    'love'    'MATLAB';\r\n\r\nRelated Problems in this series:\r\n\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values   String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003e \r\n* String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values   String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003e\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values   String Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003e","description_html":"\u003cp\u003e\u003ca href = \"http://www.mathworks.com/help/matlab/characters-and-strings.html\"\u003eString array\u003c/a\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a string array. Your job is to convert the string array to a cell array of character vectors, which stores the same pieces of text data.\u003c/p\u003e\u003cp\u003eTo begin with, let's assume that there are no missing type values in the input string array.\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eInput:\r\n\u0026gt;\u0026gt; x = string({'I','love','MATLAB'})\r\nx = \r\n  1×3 string array\r\n    \"I\"    \"love\"    \"MATLAB\";\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eOutput:\r\n\u0026gt;\u0026gt; y = {'I','love','MATLAB'}\r\ny =\r\n  1×3 cell array\r\n    'I'    'love'    'MATLAB';\r\n\u003c/pre\u003e\u003cp\u003eRelated Problems in this series:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\"\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/a\u003e\u003c/li\u003e\u003cli\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values\"\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values\"\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/a\u003e\u003c/li\u003e\u003c/ul\u003e","function_template":"function y = str2cell(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = string({'I','love','MATLAB'});\r\ny_correct = {'I','love','MATLAB'};\r\nassert(isequal(str2cell(x),y_correct))\r\n\r\n%%\r\nx = string({'I','love','MATLAB';'I','love','Cody'});\r\ny_correct = {'I','love','MATLAB'\r\n             'I','love','Cody'};\r\nassert(isequal(str2cell(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":1,"created_by":12569,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":153,"test_suite_updated_at":"2016-11-23T06:40:34.000Z","rescore_all_solutions":false,"group_id":16,"created_at":"2016-11-21T01:00:23.000Z","updated_at":"2026-03-10T19:51:47.000Z","published_at":"2016-11-22T21:10:09.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/help/matlab/characters-and-strings.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a string array. Your job is to convert the string array to a cell array of character vectors, which stores the same pieces of text data.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eTo begin with, let's assume that there are no missing type values in the input string array.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input:\\n\u003e\u003e x = string({'I','love','MATLAB'})\\nx = \\n  1×3 string array\\n    \\\"I\\\"    \\\"love\\\"    \\\"MATLAB\\\";\\n\\nOutput:\\n\u003e\u003e y = {'I','love','MATLAB'}\\ny =\\n  1×3 cell array\\n    'I'    'love'    'MATLAB';]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated Problems in this series:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44078,"title":"GJam 2017 Kickstart: Leader (Small) ","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/6304486/dashboard#s=p0 GJam 2017 Kickstart Leader\u003e. This is the first 61 small cases with no spaces in names.\r\n\r\n\u003chttp://code.google.com/codejam Google Code Jam 2017 Qualifier\u003e is March 7, 2017. Typically four challenges with small and large aspects with 27 hours to complete.\r\n\r\nThe GJam story is to determine the rightful leader.  The leader is the person whose name utilizes the most unique letters, spaces do not count, and if two or more people are tied then the leader is the one whom comes first alphabetically, with space preceding A, given a list of 100 or fewer names.\r\n\r\n*Input:* [names], a cell array of names using only A thru Z; max 100 names\r\n\r\n*Output:* [Leader], a string of the name of the leader\r\n\r\n*Examples:* [names] [Leader]; {'ADAM' 'BOB' JOHNSON'} ['JOHNSON']\r\n\r\nFor the example the first two have three and two unique letters while JOHNSON has five unique letters 'JOHNS'.\r\n\r\n*Theory:* Brute force processing appears to be the way.  Methodical processing and function usage can minimize code size. \u003chttp://code.google.com/codejam/contest/6304486/scoreboard#vf=1 GJam Kickstart solutions(C++,Python)\u003e. ","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/6304486/dashboard#s=p0\"\u003eGJam 2017 Kickstart Leader\u003c/a\u003e. This is the first 61 small cases with no spaces in names.\u003c/p\u003e\u003cp\u003e\u003ca href = \"http://code.google.com/codejam\"\u003eGoogle Code Jam 2017 Qualifier\u003c/a\u003e is March 7, 2017. Typically four challenges with small and large aspects with 27 hours to complete.\u003c/p\u003e\u003cp\u003eThe GJam story is to determine the rightful leader.  The leader is the person whose name utilizes the most unique letters, spaces do not count, and if two or more people are tied then the leader is the one whom comes first alphabetically, with space preceding A, given a list of 100 or fewer names.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [names], a cell array of names using only A thru Z; max 100 names\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e [Leader], a string of the name of the leader\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e [names] [Leader]; {'ADAM' 'BOB' JOHNSON'} ['JOHNSON']\u003c/p\u003e\u003cp\u003eFor the example the first two have three and two unique letters while JOHNSON has five unique letters 'JOHNS'.\u003c/p\u003e\u003cp\u003e\u003cb\u003eTheory:\u003c/b\u003e Brute force processing appears to be the way.  Methodical processing and function usage can minimize code size. \u003ca href = \"http://code.google.com/codejam/contest/6304486/scoreboard#vf=1\"\u003eGJam Kickstart solutions(C++,Python)\u003c/a\u003e.\u003c/p\u003e","function_template":"function Leader=leader(names)\r\n% cell array of names 1xk\r\n% A:Z or Space in the large case. Note space precedes A alphabetically\r\n% Leader is name with most unique letters A:Z. Tie goes to first name alphabetic.\r\n%\r\nLeader=''; % string\r\n \r\nend","test_suite":"%%\r\nnamec={'ITWUORWMTIHLHXND','YWJRRIJNZBSVKLGZSTOS','ELAUQVVEKJMTWANC','EYHASDSIJOFKAJMOBES','FWWT','NCXHB','HL','RLFYACE','AGEOICCFQQQ','OA','HIIE','TCKTEPLEVQKUQEOWV','A','OARWWOWVOTHDV','PRZOIMYUVVENMEFTGND','TRTDGSTGO','XCNBHNURLC','QUDOEEPPPTOEK','CYCS','HLZHZXMWF','VTILQQXFLTHGW','JCLINHPIAFNTTJ','XXFYEVKXHHEODKH','MSMRUKZJGLXXAMZ','TCUPQXPTAECNWPX','YWPPGXGWQS','CMWGICOTZKVNXFJGPB','MJ','PEGZVIQZWWY','RAM','CDZ','BYHBVFDD','HJBUJRQ','BCYSCGACSNDEK','FAX','V','GDHUQRC','AEFTELYHXD','ZAJLLAHJTD','JTZINGJ','MUPIXBGXISKYTLFWEF','XI','DTFDCLELPYSXSTDTNPCL','QPR','IRTDYHWLDN','VGQCLWS','VZTYIFJRPKFENZU','S','CVWAFVIHLTVFFZYZAJ','HTJ','CFPPXYRGRJDAJD','YKZUWMAFLLOO','LUEP','DCIGCJBFQZ','FPITIZAL','GRNHJMHMHHLBRMHQAPDS','K','STNVAPRYZHYMGXPHKOT','V','AMZSA','HGQANFRDWECVUOO','QTDJYMJGHTXFBKHGNDPM','WJHN','QCANDRZEPCYONLCVIR','MEAR','MMUPHNMPQGELDXNQUNN','RZGVCAHMKZ','J','CYQAQULTG','SKRIQOSQJTFQXHLFR','DVTSYAQKECAW','IJQQSONVKAKKE','BPTSIFKWCZCFLOYZCHI','KJDUFENMXBMW','AGBYXTTYADT','SZUYKXYN','KDJNEQOUJDJVBYJSOG','SYKSOIBCKFDXBLH','NLBEBYUKFEDB','VIHKWHLQSIMLJXLBWY','XSPZPLYSMMQEU','OEPRNDZGFSRJBWLY'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CMWGICOTZKVNXFJGPB'))\r\n%%\r\nnamec={'ZHWIEVQY','J','TLCILYLZBIY','FQDRXDBMLD','V','VDZCFZFVWOHRYEZ','EXIVJDONPLRYBSSMDNJY','BJUKZQGUNODOS','ZOWWHCMZ','PBPBN','CZTMQECVKFPDPOJRBKE','RFWTTBVG','LSU','NMRDJISMPYOPPBQRQF','AQOX','MFKXSJGWTB','TG','GMTVFGICOFOVL','NYFPRPZPHOQBDPDLFYQ','ZKJAIXOTXFMOGH','ONHHQFYAJR','YMDESSRM','ODUJTUPZ','OLRMFRNEWMI','PNJ','XSABDDN','EYGMT','SBNXXZNHZPDDSHDLC','YYLCARXECOAJRNIPAPK','SNKLYGHSEAJNXOPHDIIU','JGQHZFGVSQTWMF','M','QMZABHEHZNGWTXWO','A','IWSNMWEPVCQUVVSID','WWKOAMZASDPIVGSS','BMAWDVMNVPIOH','KDWDNRSMZHX','GHTSILNVPNATHRSKMKN','TXAGASW','YAEDJNTGS','ZHDYQVEVYJRN','JUZEFWDFTZJAS','VR','QZMQUWZZQFHLDLR','HOCXYNXM','HVLPIHZTLMPRWBME','W','ZU','KRQDDXKQEZYMWLXE','IYDXZ','GAAXUDATDVMNJAXVOGK','PEQIWYUYTNHQIH','UKRYPQDPBQXKLIG','IOSBQBICCHW','PQYBUJCGAXVCEVJYBS','YELCNJFSD','MENCFWQISHJFIGR','AOAYMFZBD','ERJBNWAHTOXCXHWF','RP','VUHINKNRTWKYGKXYJPTC','SQNYR','VDC','PJNLTP','LQSBGPKVEOUKI','ZWDTTSUCQ','NX','ZLBFCC','RFYNJWTWYWTMZI','FUZNVJGKXEYN','MS','EHO','GKJXLCUBUZPV','NRFCAVUNMCBEHIL','JAHZDCPWLMN','RWXOYX','GRIOHZEUXHMNSQSP','KASXYCVDKMRKLMH','JU','NTHZYRMMYIW'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'SNKLYGHSEAJNXOPHDIIU'))%%\r\nnamec={'ITWUORWMTIHLHXND','YWJRRIJNZBSVKLGZSTOS','ELAUQVVEKJMTWANC','EYHASDSIJOFKAJMOBES','FWWT','NCXHB','HL','RLFYACE','AGEOICCFQQQ','OA','HIIE','TCKTEPLEVQKUQEOWV','A','OARWWOWVOTHDV','PRZOIMYUVVENMEFTGND','TRTDGSTGO','XCNBHNURLC','QUDOEEPPPTOEK','CYCS','HLZHZXMWF','VTILQQXFLTHGW','JCLINHPIAFNTTJ','XXFYEVKXHHEODKH','MSMRUKZJGLXXAMZ','TCUPQXPTAECNWPX','YWPPGXGWQS','CMWGICOTZKVNXFJGPB','MJ','PEGZVIQZWWY','RAM','CDZ','BYHBVFDD','HJBUJRQ','BCYSCGACSNDEK','FAX','V','GDHUQRC','AEFTELYHXD','ZAJLLAHJTD','JTZINGJ','MUPIXBGXISKYTLFWEF','XI','DTFDCLELPYSXSTDTNPCL','QPR','IRTDYHWLDN','VGQCLWS','VZTYIFJRPKFENZU','S','CVWAFVIHLTVFFZYZAJ','HTJ','CFPPXYRGRJDAJD','YKZUWMAFLLOO','LUEP','DCIGCJBFQZ','FPITIZAL','GRNHJMHMHHLBRMHQAPDS','K','STNVAPRYZHYMGXPHKOT','V','AMZSA','HGQANFRDWECVUOO','QTDJYMJGHTXFBKHGNDPM','WJHN','QCANDRZEPCYONLCVIR','MEAR','MMUPHNMPQGELDXNQUNN','RZGVCAHMKZ','J','CYQAQULTG','SKRIQOSQJTFQXHLFR','DVTSYAQKECAW','IJQQSONVKAKKE','BPTSIFKWCZCFLOYZCHI','KJDUFENMXBMW','AGBYXTTYADT','SZUYKXYN','KDJNEQOUJDJVBYJSOG','SYKSOIBCKFDXBLH','NLBEBYUKFEDB','VIHKWHLQSIMLJXLBWY','XSPZPLYSMMQEU','OEPRNDZGFSRJBWLY'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CMWGICOTZKVNXFJGPB'))\r\n%%\r\nnamec={'ZHWIEVQY','J','TLCILYLZBIY','FQDRXDBMLD','V','VDZCFZFVWOHRYEZ','EXIVJDONPLRYBSSMDNJY','BJUKZQGUNODOS','ZOWWHCMZ','PBPBN','CZTMQECVKFPDPOJRBKE','RFWTTBVG','LSU','NMRDJISMPYOPPBQRQF','AQOX','MFKXSJGWTB','TG','GMTVFGICOFOVL','NYFPRPZPHOQBDPDLFYQ','ZKJAIXOTXFMOGH','ONHHQFYAJR','YMDESSRM','ODUJTUPZ','OLRMFRNEWMI','PNJ','XSABDDN','EYGMT','SBNXXZNHZPDDSHDLC','YYLCARXECOAJRNIPAPK','SNKLYGHSEAJNXOPHDIIU','JGQHZFGVSQTWMF','M','QMZABHEHZNGWTXWO','A','IWSNMWEPVCQUVVSID','WWKOAMZASDPIVGSS','BMAWDVMNVPIOH','KDWDNRSMZHX','GHTSILNVPNATHRSKMKN','TXAGASW','YAEDJNTGS','ZHDYQVEVYJRN','JUZEFWDFTZJAS','VR','QZMQUWZZQFHLDLR','HOCXYNXM','HVLPIHZTLMPRWBME','W','ZU','KRQDDXKQEZYMWLXE','IYDXZ','GAAXUDATDVMNJAXVOGK','PEQIWYUYTNHQIH','UKRYPQDPBQXKLIG','IOSBQBICCHW','PQYBUJCGAXVCEVJYBS','YELCNJFSD','MENCFWQISHJFIGR','AOAYMFZBD','ERJBNWAHTOXCXHWF','RP','VUHINKNRTWKYGKXYJPTC','SQNYR','VDC','PJNLTP','LQSBGPKVEOUKI','ZWDTTSUCQ','NX','ZLBFCC','RFYNJWTWYWTMZI','FUZNVJGKXEYN','MS','EHO','GKJXLCUBUZPV','NRFCAVUNMCBEHIL','JAHZDCPWLMN','RWXOYX','GRIOHZEUXHMNSQSP','KASXYCVDKMRKLMH','JU','NTHZYRMMYIW'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'SNKLYGHSEAJNXOPHDIIU'))\r\n%%\r\nnamec={'LKVZZUM','IGFIF','LDWQNWLKKUZRSLNQPZUD','REYHMPLN','RCYUXMNRNM','KIXERSLPASSPBSZ','MOIJUM','CKLGNTVKPJUQVHFKOJYC','CLWO','F','HQBUXWNYFCKBHP','SZOUKQXZW','VTSUFMCZRBVWZXSX','LVSGFAJNPEAZQLQNXSJ','FKD','SHXDHEYZDVZMEKQXDL','OTXAYLGZXQYQUCUOTPHC','NSMRSGMRYNJNHRDBIJNP','UNCSUEFJWEOCCEAUVD','CLSFESORDOQ','VZCJFLXKE','BXRX','ULAQVGZMZDUQAKDZ','F','PQIRUOKFBEANPWHR','DNTYVUERHOWWWAX','NHMSAQTFXLWC','QGGAKSERLLBZMYS','XANXQC','CGRYIBLGJGITDGJXVQL','JMWZUQP','WCJ','DMXNGYCBWWBVWP','DXJHPUCLEYGNRJZJDIPC','LQHEATYFA','UOOAKBGYKHLTCMV','ECXDXYK','TPPFDLEZVFBHIBL','DXQZVMTOQSKGVGVEQH','MVGNOGJEKYUQCQWKONSU','YDXTWABNGHMVNNR','IHMQBV','EKORVOGNTFM','MTQZZAECALPQE','IIAXZLJMLPSWOXIFODF','FVMFSCOCO','KXF','APFP','CEUKJEFHPCE','HKQJYNMPT','ZEBJEIG','BAHVCJRQCCMX','WJKIOOPDLL','EMENSPOLPNYONCJPOC','LSLPVWSVSAZBKCHVR','FDTSF','ZUWDLZVKNYR','IFSFFUQJYEMFOSZBAJ','LFSNKMBHVGRSEWI','WGLBXIFWXQQPZ','AAC','NDKE','WFMWRVTOHZEVSUHQMWIM','LRTOVVMFQONLNCZ','DIUDEPSGTFKHY','PMOQT','BWONTNIT','LXXSEW','JCPZSFLQB','WJLMGE','URPRN','MJ','NJRHYNZWYDXJZDMBI','OZDCEA','ZMOGQE','VVPPYAQMZULHLP','NUC','H','FEFYDOVFMLNLLHM','KNPEI','YPYVMVIPFDDDOQCRHN','TUMWDLK','PSCZOXGBOLWRGXWLWETD','CZTFF','NPPDNACLYJX','SVMMODP','EBPEYFJCQFBIHNCILTP','ZSQXRMZYDOAICOQHPYHU','HKIEWXFRENDNUIHZVJ','UQIJF','XV','DRMGAISIOH','CCRXDBOU','DTAUYOKXRFPGD','FJFZDAMDODXIGERXXIC','NRPLMN'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CKLGNTVKPJUQVHFKOJYC'))\r\n%%\r\nnamec={'RZBUJBVYEBGFA','UQQZUUEPNZQGWI','MEVRXOPONULOFXCNJC','OX','AI','KQDWMQ','GB','UGUXMZRPA','JLPXQPEYBGKUPNOVO','DUNZANKBCLMRE','ZUTGVIJRXWBG','YBLGDIAFTFWXGJFSIDJ','MKPDQB','EXZ','XSPHULXTUUH','YI','SDRNMNHGLLAGWPCAQCN','ZCJHBAXB','VTWJZEWCDZ','DCSV','K','CXTRGSSG','TZDBKEGTJODEI','OA','ZZ','SGGYYQWGS','UGRZHKKCKLRCM','CWU','GAHGFI','EHNRYUPAJHEJQALIXXN','VNUUMZUMVTLGQF','JOJ','DTVZWKINQSLWYC','HNIELOMQRNWSRSFOJP','WBN','AZZQ','WPCBLNHQVQ','FFPEGUSPFC','QZVDUHWFOYF','MODJT','YPTOMLGWCBEB','JPBDAHELDOWYAHOH','LTYAWWOYYKRJUY','LD','ATWGLRGLX','GYAQPCCBMTKYON','EJGXJQH','ZNCSTJONBCWQEYJIOUDU','BQHJZZ','RMKTA','UO','WISAENKNTWQJJJR','QDEOAVK','B','DP','QPIVRVKJLTARRYU','AUEWOQXHLNOH','AQURWTVDAV','RI','VKUZECHUBKDQSYIEGR','GQXG','QPIZPWFRE','LLVFWQVKKVGQ','BOHSFPVLG','QDGNJQKOA','KHSIXTK','X','HOMSMBH','JASGHSCEVJPZEBRWIPHP','MZF','EEX','LDWAANCPMTO','DFOSFACRRWBZSZRGP','UPKDRRIGWMB','TLYLODNZAI','RRMHCO','RQXDXZBHA','TNN','RCEUCCHTGPV'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'VKUZECHUBKDQSYIEGR'))\r\n%%\r\nnamec={'RIVNPYCJWCV','OGILAGJP','SEMHSESRIMDCHE','JRYPYYQBGCQDMUVYTK','PUOCTXXCFLSVMSNN','HMTLDFW','MHRCIQBMPZJSNWPR','B','WBRPSYSLQUTYTMIOMAAD','X','SHHZDMOTCYXKOEF','JDWI','GVGN','SF','FMZXHACXMMHQJCZFYEA','RVWR','UOHRSYKYJPSYXBFCBUAN','EGGFS','MFB','IXJEMEXV','VOSNTCBQAHVSMQ','ZYCS','GWLD','TQHICAYCAHNMD','ZUPTJKZXKY','NALYIAYH','YUVBDDYUR','JSUEAMBVXC','BCGACYPVUKQJF','SOAEDJRTMC','GIM','DDKQJMZKRYYQUUNXJPLS','WAGEH','ACDMUQHJX','UJUCPFLWIWA','ZNCENEADIUCYTDU','CVQ','OIUWAJ','PELUGQEKQHSBEJ','ZVWEBCDPDPZYWKUEB','MUIKNTXIKIGJWJYZR','UDIX','EQUINTBTACTNCVV','A','QRQCTCOFGAGFH','GVPKX','XXZYHYCQCQOWTXHCU','ZYXQBZB','TRZFYLHLGE','MYLXVXPROOQACCREXGNK','HW','K','O','YJDRWVCHIYNO','OGFIXBXOECV','MYIPYKDMC','LKAZRCB','HBQIYHWJGQVAQK','KAOEMQAEDRGCOSWN','PEVMKNMBNQHJOLZPPU','WQGFHUTZXNKXXSO','DATMPBAWIUI','HFMNTXAIINT','EYSGATS','ELMSTZUCYKGVW','AWELUDPHWE','WXXT','BYZGU','QTKIDJAZOLQJ','XCWQPWF','SHZMZNSIYTFWGJMIR','CQTBY','PAXDKIQ','QKPFHU','FRVKRIYOLC','EVLSGGJROSCDEESC','BNBKELFFEIHEZU','GTVPGG','ABAF','CAMHBXEMVJ','RJIQNECRLR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MYLXVXPROOQACCREXGNK'))\r\n%%\r\nnamec={'IPRJSIWLAUJOORGCCTGB','QNJUCJUG','UESLBPMHAOXY','MAEFTMSUCVADS','HSBZYCEBXHQUMMQEBUX','WG','NBCL','JAVVHRIWN','BZUAGAL','KJPLV','BWLWTYKMYR','ZFREZGVRDXAJAOUBBP','ZGTFGRNBOC','SRHLEKFXDGXR','QHTBROH','OFMXKGHMRZKZWWFTQ','ZBRNSZCLM','LSWQXPSVOWACZJSCLPU','I','WTAWIPAXWSOHLOJG','GHUAFRDMHYCPJ','QLXLWQWPDMQBOOI','OFFSREM','LN','IENTDWRP','PWJTIKZWKWGHQQC','N','YNAAY','RVOXH','DGFWIGPZN','TZVZQIAQZHERN','QLAFRTPG','DVMQPCEHDPZXONAS','NIJY','G','ZKEMNSRWZTYIVJ','JYMWYWPARPXPKVDUSH','YSPFGKNLLGXNWHUOI','VXPCGSWYZS','UAZEC','YNMOLESKERXT','ZMKMIUTTHPVIJ','MQAJNGBCLVWFRKSWS','TIAPONYPCBCIPGISAL','ORYFPRXZXX','IE','PGXIAXPUVYIVFSO','WTOJEJA','YVGYRWBQ','JQARHV','PFIZDXYZEIJJ','GDKETMNEOWBKEGPEYSSG','ZDOBW','GMFZQLV','DSBYFWGKQRP','OKSLQUECSIFYKZ','HSQWESAVJDLINXQZ','KNKSNMHISGTREFBAPYOY','MYNDRKEZMOJY','JMTUWXZPYKJA','WMYRZZ','ZWMBGVZUX','J','ODBT','BTAXXZCTOGCYZQ','XUNNFNWSRLTPMJPFD','IOJUDXHUVDFLQ','IWCTLMAAK','EUPCXRCH','BTWYMHV','LHTILDBDOIAEPCTDES','FNVZZIEBPBVH','VKWF','XFIHRDLRIANSU','OVQEBIKFAZLU','KIWIAQJ','VTMFDZELACMCC','HYYKOUVOLFEUUVTLKXQ','TMRTGV','APFAJVKQDXWHQKHUMX','RMDXJSWKZ','CLMNGGNYCOCEWWQPNETQ','EZC','HZKEARCWVRFYVIIEVEP','LZVOTGOJKGSEDCYZTL','SLTOZPVYLCTY','NWCT','EZDI','FYQZYTGEWRTRCKMFFXAL','MNZFJM','JDGETBAYXINCKQOHVAL','FYRAVEWGICVW'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'JDGETBAYXINCKQOHVAL'))\r\n%%\r\nnamec={'TWFDIRYHKZDLJ','OAUTRCAUOBITSYPN','PAKWLFO','FVJFD','WGVEMOMLKYA','KIEXGQAEEOBF','BUVHDRLRWWUQODSWHPIE','QERU','I','IHTJCQAMKELW','ZZAKYHSVEZIQG','GQSPFNXGZMIVXWZKR','ULZACQ','UYMSDLYLWJQYOOGOF','GABXROMOVULLPPKPNLYI','OWQPFTJUXRDJXCMISMK','XSOPYVSLTHSQSTHQMQ','ERNGWNQQPX','DQ','QH','TT','FSTEFBNQWEO','MKVWBRBPDAQOTROR','DNCLYLKRHCAQNCDG','GZNENCWTPH','SKDFRFDQGLVAPB','DSLVXBRXPNEWVRKBM','SKLIWJAGBCTJXMKM','ZF','TJVTOGYRCCF','BEZOA','TCZKOHTZZQOFXG','CCXERZETXKLHNYCKJJWE','VVLGRRILCFDLZPGO','RVRAPLCQUYVRHMVZ','IESUGXPJKNYQTMZCVRK','UOGRYOVPBJPGE','MOQS','YHEUKZHUTTI','MCRDTEB','COOEAYZCBH','SOQAE','WMIYA','TLBNUDLE','H','EDWEVYPFKPBDXJDJBA','EXEYTHVVOSRRCQOXKUNG','CBH','ER','IJTMAL','VZJERSOJECHSEIIMFF','FGUJCUULE','INLHAWVTXSOBGKJYSO'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IESUGXPJKNYQTMZCVRK'))\r\n%%\r\nnamec={'IOEAKZJPRPKTJNOZB','ZDUMHXJNYNAWNLJWS','JDIVFVATR','VAUXI','JQKKVNTFBRHSBJ','YVYMIK','AIQXIMDFGMSSRTYHP','JRKZIHIGDJOMCPY','LOCSUGBZ','JDHKURUFELAHR','CCVOEQYXGOVAJNB','UDY','AOENHSMZWG','MUZRGTCEZXFGJTAKAKHP','HUJASMIYVGGXLBQ','PIEEOUGV','WQEHQWVXPM','VCOGCNVNRS','YIHHJVFZFE','DZLSACBUF','HNKGSYTVZ','ESWFBPOSHGVJJPZWZ','CWJVGEJBTXXZZM','WVZMWOABZPQ','RITAGYKDRKQ','XTMKTHWMNONMJVT','ABFYDJLYOLM','WCLCVKQZYA','BWTMWKMXPS','CNGQQSPIMSKEVSHSA','TWQXHFWEELMHYTPCBK','LMI','ABKAV','HONTGWQREXDXIFX','HF','TNLMBV','WMLVS','RHWJXBG','EJBWKITPT','PAIVD','ZGNNXXNHYJAFA','HOSHEELTT','XLVQ','GJJOP','USGTDZT','VQYRFAKIVB','RAOWZ','KQLWBYJUXWMQZNBVRZIZ','WJSJAURLTKMFLYEWL','KCS','EJPJLYFZZXZGOGRQL','FNXUQATQXZFOFQ','CDDVYFLVH','LNSED','CZPKXAGODGOFBRXWH','VLDRWIFTLYNJYVCWLQRJ','OKCADKJXABSLKP','N','FMLVZNNHVWIOHTROTIHR','ZSLGUEEIBRZO','YF'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'KQLWBYJUXWMQZNBVRZIZ'))\r\n%%\r\nnamec={'ZHRKFFVTV','AANVPJKOEXCCV','ISEFLF','QKPAVCV','UFTMUOFYH','UEJBWOMUWVAHVOPFZFKH','XFYUAXTSOIPXJNTWEMVR','TCXGANJ','LZJDTUVDUSRFRBJVXTRE','DKNY','SKTAVBVQWUNKGSTH','LAJUEWXHWXN','UPVUPDPHPMMZK','PR','SKWIGGYNEQJL','ZYIQJEBIT','VPPWWZ','KFKDDE','ANHJYSMUAGUDLLZLGA','LTPOPUXPZXQLTF','PJLIPCUTNJAJ','BZBVKHGWXNR','VFMMGXMNRCYBLQCXO','KPYV','WFQPYLFRDLQLSV','OXH','S','NBNGVZVPT','GJZRZGI','KPWEPURIZPHQDUBXJ','VQJRZEPDCL','ANCGGFSXOOBVWLQT','PLYUYVFUPJPI','JUPDBAJHBWTHJ','PMIBCCWWAIIXIGFPJGQL','RDHEIA','UIVWDFNZFW','NHRTMDVL','YQNTKFTZUMJXSPKPVGHK','K','VVRA','HNRSPOPCTTDMSXPRMGXT','EVYRMDRCK','LUIZ','P','JXOLDLBOXK','O','UHVCWYW','TEABOYYTSAVDXB','ITZKZSMJMCXBDYHW','QIQGRVCUTCJ','TBRYLVVFHOAXWXE','BEGAPORIDU','JLVDPGMDTE','FTJIU','GUVILARGMIYRLPYR','OUJTQOHF','PSUVIJ','QVFZT','OLBISRQC','R','QXVWIGCUUKYSMO','JUM','AJ','RR','JEJAKMJTOINCNFIHG','SMTFIGBRC','ND','CVLGLCGSIQSJHIOP','IYRTAIWPRFYIIWO','VNFVKW','LSRGYZADGAM','IB','NRIVKGDDT','ZQQJZODVGHTLKH','SMVTDXZXVWYDBLY','TDNZHBGP'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'XFYUAXTSOIPXJNTWEMVR'))\r\n%%\r\nnamec={'VAJSYAGAOJIWVEJDZGMI','YONPJGZITZJHLBGMHP','QHEYGNWOSH','ZZXOUYOYUGZFHD','CBADRA','JOJOEOQIM','YIOWQROUDIU','RUHZKCBBKCFNUAVEWW','FEJJEIWMHLIE','GDTHNVFMFKQTBAAHJQXA','PEXFTBA','ZNE','C','EYQFRQENRMGKNOWBT','MUZR','VRUHHYX','VCCI','IOVUGNVRQMWICRZUAEKL','WSRGZ','OBCFVASFRJJ','DSWYSE','IBCTTSZG','BHWWJCGFD','IWZY','WMWWGTDRUXNAM','VEWRGUWKYXYTR','DIWZAGDPFXAZHBHTWDD','CYYESJUIZFB','GVT','QRDYACFPBRAZ','FNQK','VHJENXP','WXYVKOVH','TIILZLAYPTYK','ZGJSV','KHCYMARUVUVCQCCQTJH','ADVG','JUVMQXUCCTBXKE','EGRPHHXLHS','NBDZPHWXFHNDKIO','XQYV','DFKNQRCCXZFSCFDZKC','GE','UIYHHSUFVKKCYSTUENRP','WSLZUMBZNNZHMYRCJ','BLLWRXTADEQRWUME','NVIIH','DZ','YBSHAVJPKJSOSIKZC','QCEZCG','TCOPDCOZYFB','FLWPINXSISEQMADOGXD','ISDCYUSAQTI','AWVJF','TFZPWH','ZWOTRPT','KVWXCOJVW','OHHPEO','KJMCI','TWEIKLTAWLWPFHQVYCU'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IOVUGNVRQMWICRZUAEKL'))\r\n%%\r\nnamec={'QYNQXKWTBWLQAV','QFZBOBFFKUV','SATCT','B','OEU','EDYMJLOSFVXKB','XPTUMA','YXQHUTMRWVXCFN','C','NMUKSZQAARPYKBOJO','VXSUODWMJEOFRT','TQFODG','MVAOPPXKPOYLKZP','AYOSNWPTZNEHFENU','HLAOZUDPGO','BVNYHTE','LLBZFACMMNT','FDCGRYMFSZKECAOD','PCGVWGPEKPRE','T','IQU','PHAJAXB','JZSWKRHOTFWHB','SXLJKBGJNSDVE','ZFOGYXBE','XDZZWSGBUATBEK','IB','FTUTZJGKFHOWSYRC','QZZQZ','RQHRGEQXGWDDVSC','SWAPIZKYUQDUCY','LAQKSCDQQHUHROUPZMPK','KUHXDFAYDTCFHE','YUIGRMJCHOJRLETBLSPH','UPZVBPVFI','GC','MDBPULJTNVIBPVKWICXY','WVQETK','CONDVZ','YFNHSVAQOSVWUG','VOZLYCFAH','VDCQAHPSI','WOJGQPZHGJCJZODPR','RZGYDQOLMCZMBQILF','MQHZBD','QNZIDLDMZOYTJNBDVLK','SWRFWEZZO','O','BRMETQKUMPVZ','BOHQXMICZPIJINBAMM','XZHKWHW','PIWTIMWDW','CSPMUYEFTM','WKQVYHCSKLCGA','FSSQOLQOPVTPSWX','QAILVSVYMY','ZMRDNBAVH','EDLNTXXI','L','FPT','NGEWBBCXSCAWFZTIWELG','AP','SUIWNKPKEIV','AFEUBXU','SEQZZIPOXRYFSI','PNYPEBPJFKU','ZJORBRZJBKSRPGZEC','VRFWCOLARBSMCCETVOOY','BBWSSU','JHDXBKEBTBOFKCQKKGD','VBRDW','CZMEFIYGRXBIZYQAOEB','RYWVQCXMOTJXRE','ASTBGVNOWKSD','FZ','OESEXTKXKGXRRZXAAHW','GCNJIDSJZWV'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MDBPULJTNVIBPVKWICXY'))\r\n%%\r\nnamec={'OLBECAKH','WALVIPXKS','UKRKEEKP','ITYJJEIAJLK','LXFEYKGNJRXIAATYUH','S','CFFQVCOZTQBCNKTKIKJ','ADMOLGEQMVHGYZGS','LUIKBIIL','KICCEOKINPQZQXRCT','UIFD','HRHXRIRTEO','POJWXUJTLIXYJUTSP','EOVOWA','HVEVAOIPQHTQWN','ECFXJL','XYEIYBVBPVVKFSESTXO','RTRAHTQLTLKQEB','LPGZRDYFIMXHMOKTGV','RLJUFNHRFMHJGEJKF','NYKPGIMSJNI','SVMDJTMHYV','OLITWNGCMC','QUTJMRHYNI','RIVJRF','SREBXWFBLVVBM','NVYWUKFVPXYQG','NDUGBMD','PQQ','VMWOYCLPJ','OAUXTTK','JJXNESUVLYMXI','KCAZLCEJZ','GD','IEN','PEALDLHFHHSYLOPPVIFU','RIPLRWHJKUXK','VGQUYLBAHIQVQNDUBBIE','WMYSOG','YQZWY','QJJRZKAN','BGGBCNY','HMVFIHNDWALIMJQVJ','JRHXWKGQQFDHQCVQFV','JBWXLCQ','U','UNAMPIJF','MEVHUELFG','UYBBK','VRDQ','BBEKHE','DDOKPNHLFXBERY','HTPDIXJZYTYUMXSA','YFEUGAHWQDYQXZOJHAA','PA','QYKNVGZTGY','EU','MQN','QVX','NQTHFIMP','PVXZFAVR','EHXNBUURJQ','KMFZUNNDNRVEOMM','ZFUOZTXEIKSFIUKGPG','UTOPZCQLLXQFELQHY','ZWAPCWIRETB','ODSGLVJMCQT','FGYCQONLQDRLNXXDU','VWRMDYLJAA','TITDVATQS','WDQLGGUTUCYX','ZQLXPDNEEDARDL','NESRUPLFJKZEEUU','FLLYHOYZJFVXKJCWART','ONNXRSFCTNNH','YPWYQVYD','KAK','PUDMLOAVFUZEOY','INPQ','BMGWA','FULRYCCYXAANRTEL','EZZVVDUQZ','J','QVF','PIKBTC','UZCHTCMK','PA'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'LPGZRDYFIMXHMOKTGV'))\r\n%%\r\nnamec={'THWUPQDIQCGC','PHRROUTOWKFBLHCMTBJ','FFZWHOUBDJUHXCQER','PRVUGWJP','OUTCTVJWJQPL','GTK','SQ','AWEJFQMXOBZ','XEGDMNGQUBRRLDH','ZMNYRGDGAXOOV','CEQTQEHJ','ZVYCZLGIFQAE','GKKYTXEWUU','GYKQHFBAYMYJOQ','ZWBFOM','Z','JRQMYCXC','UBCUROTDPZ','V','EWSSKGQGPDWU','QFVZZOTIXD','LORCVQQCFS','VZXYJFGKNGEDGZYJBDD','ZMHTRZAUMQ','SWS','M','SQ','YFZTAVZ','MME','BNGNTDVLNOVD','OWELIJBQLIPJELRCBWN','OYJUHFIWEZFFXZJSK','OJAYEYQRUWEWEL','EZQAUNFB','PPRFEXORKNUZKYRPGL','WMFKLS','O','ZKUCHI','UCQGSZNQCZBQO','JFATSOYNQHPY','UGLWWJLKXTMKMUJC','KECCXUIK','YRDKCXRFIBOLLAXBE','KLMCF','SOGOJXJLRDWLAWDUO','VKDYIGLD','HNLFTM','YPCWFOTTS','DHBFCRNIPQDMPRYUGGSF','Z','PYEOXJXSQQXSZSLPWPBJ','VHICFAEPWBHQQNZWUFRL','UTQGM','HZQHVIRP','TOFXMCSPXOSRHZCTECPV','EMRVAZWTJNRCSTUOGUPP','OLLEHNLX','DCVDNPHCJPVWKMZFJQ','F','YIOJIRL','NBMIBAJINBAXVMKLMFVJ','HKQSHURUVVKX','ABQYBBPFEEQQC','ZPNIPVYDTQO','BICYYSSEXWA','ICYZSXXBBAOVZ','C','QMYH','TDAQVASCMQM','BOCUUTAX','QSD','AOABNRE','ZY','LFETHZKRZKOU','LUNDNYWWQTRCUALDFACW','UJTAEMHDBKITB','MUGDTHGOEGJB','FUWZQEVXPZIEWJQVODQZ','WKG','TCWKECYVIGXY','IHFEUPHBA','VBNJXRDJACJXCXVWBU','RUUSZNXDIZ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EMRVAZWTJNRCSTUOGUPP'))\r\n%%\r\nnamec={'XHS','WZCIBW','PREIVONCYXIZGZP','AEGSLV','FHXOGTXEVVVRJTXV','RXHOMEOTXATLTXBL','XCBYOQUKHHHYAO','PLVIEU','EBQQAAPVBJFJVQRPD','SGRTRBFWDE','TFFLUTMWYONKXMRDIHB','GMFCNLRIPZMXBDMOZ','UAJNMJH','QAXPMUJXEBOYNHIT','ZZW','AXIUPAFWNZXBTMFUW','DKEWEJSZGPSVNSDU','IEBZCGKAS','OGBYKPBYQWXHNGZINIX','VBCXBNNH','OBVVWQLIWS','NOSXD','TZFNK','YGHAAWVVINCIFVOGXWKT','RQHIFXGMQGDIUY','DSIIBXODN','NDBKMRKUOZSLZALHQTC','CGNEDRZIMLQFNUI','JMEJXLRN','VDHTQHPFCZACHS','YPSOTBGBFHYIYN','YVCNHWIYH','AXZSIOHJVA','URPHIVPD','MCR','YRKRGC','X','KHUMUNTDAKIR','DBXJJYUNAWQPFPSI','BTABQCBZ','FRTKUUIUCWNQAOFCDZID','QTMRQOBSKNXPLGYLICC','TWHNUSZIF','GLKROXO','JZFZXDRQOQFHXSTLGI','MYNSZTOAOEPJXDG','JW','IHZKXRT','NXCTMPGBVHRNQLIWMS','LNYXV','EUR','OOIVOTFMWSMZEAGKLD','JTJW','NELD','RLHASFWXKXYXFFAUUVTN','QQAFDL','VBBORVQPHPJWN','TNTQDKJHORHLNLXJC','KIEYZTBC','X','TMVAVQ','L','KZFJGS','V','PAXEXKPY','SURWLRNTQPLUBJ','VXXWUUCFP','ZZMJBVPVDBHCNTZORR','POFFYC','BVCIXQXGTZNNA','JGXSGKZNRZSOTM','MCREZTN','ZYGBHQELCNWP','RZOACKCLGHR','KFQGQGCDFCZMZMA','KAEMYPLQOU','ZLCXJAJPDSAXFES'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'NDBKMRKUOZSLZALHQTC'))\r\n%%\r\nnamec={'QFUAHWIOOKR','ESSXWCVAAXUNPKZBP','XOHBWMTZWPVDBTZK','ZZIAKKZER','TCJNAIFFANO','IHFDHP','ZXVEQXNTNPI','XNQCBWRJOYWNPJGGYOA','DNXYBBWQG','YIDQFQKDCYQ','DOPKJAKR','PCLIEY','GTL','HFJ','I','SZCDBDD','MUKH','SDUFF','QQUNPTRTNRGEMJHMBUZ','TTW','JTF','KLVWALNQRKUIBBKFH','VQRKGXQII','SAGHQQFQ','HRZXSDNB','AMJPRLRVVPUW','NUEHDIBHCGJNNXODCSYT','PFWMVZJRQR','YG','SNO','OTPEWBHKRLCXZOVQB','JJJZPVFVFWF','HZVUBNI','HCANPJ','HFPROKYIHYAFKAX','SFWXOTAIUNXT','JCGZXAZALLS','ZDAPDIF','XQWPRQOFP','BATBRJYMEPH','HWLQMBPJR','ZFXBKAVDWCFKDVIPZP','DXHHBTCMUMMHRITW','MYUWULXGAMCXUB','RUTVCBDKKBKVCODTE','JPLGOLTIB','NKVYBPZFRTWD','DIKMPNLVRWVGP','TZFGVBXIVVKCN','ZQVV','LYUIEEXPSCVGXPAXGNOQ','TVDFNASELMQBMUFRF','TSAE','WTBZJNOXQMGJACUF','ORJDPAIHTADOOOIMKJR','CAFVCRS','BW','MSNRIFUX','XYG','DXNEAWGNPEFEI','CVCCTO','BKKRJFUYCMQVACQBUH','OUKRJQKTHTEKOGWNAJL','EH','CBVJJGAMPB','D','JCX','GDNERYKFLCEMFDGHBLIA','ME','OCVXQRKNLMDIPG','DKXJ','YIMDAGHEBVBDEQLWQZBU','RJOLHANYAZTAXYJ','UOGBZSXATOR','RPWKKLKMITC','ZEMNOKORQCIGT','EZSILXKGHAV','EKYJYDR','LYHVGIR','GIRVT','UTNQHEBGN','XCIRJWQPWZWDJMCHBA','NMAATFTNDCKEKOGY','VRR','HMPLHONBSDYSPYYA','CETSSXCAJBG','AACEYNLPMBJXZSX','GDETCLD','KRVKTREYTUWLQKCQGFNY','PWSNIKIOODMZCEHSS'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GDNERYKFLCEMFDGHBLIA'))\r\n%%\r\nnamec={'AYGOJBGQSGJ','UXAWUQATLCHDBW','EMWESHWSFIE','LYDDIYTAFWCMZFZAJRI','PHAZNAPRSSDWVEICENY','LDXHZCQWCQKQQXJXCL','LYJTSODMNVPIGOZA','JDJI','QGFJ','Y','FHJQVEURGXMVQ','BTPBCD','AATAYYOWE','BRUVNITJXCXJHYUWZ','RFGRZELSDAEKRSP','RKBKMBECPVJDPUOOYZ','F','C','RESFUFHIJMVF','GPJXBWH','QCJNXDPKIZHUXDTBXF','DLNOP','G','TPRCBFEBBLVYG','RWIWDZLDWSE','CXBTNANPRQUAGKX','LHRGDVJRJT','DOHFZ','JQ','GHRGNOJ','ZMGESBZULEBZAPYLPYUF','Q','JZKXJTOBMBUOS','ZPDMPTGMAOMTA','X','Q','ZRXJG','VHRBOCEJ','DNPJ','TE','W','SSBFLCL','X','TVMWRYCCTPK','TSPJCVTUO','YQUOBBOVIMFZHRPAPD','BG','USIHMQUJNXQEBBT','BJFQJME','HHBFBWYBVGJLZSYKEUE','OXMPYRXDVDEFETK','OWRADONHAWNMQWFLOC','FLBZA','PDTOJDXJHOALT','XUIDOPAMCTYOWN','BIOCHVREN','QSONQOLLM','ZOHOAV','NMVVYUJDR','XDLH','TWXVFGJLNPLOQJFVM','YNSCRRKGN','EYLZ','YLCVZSWWKT','WKAVXKP','ZJDAIPTKSFN','AB','XDBZLVICXHWTIRJIRQGT','MCBDWUSNJNQWWNQPM','USFGSEZEQ','ZJPRVZNFVSL','FSQFHXFDPDVLLLG','SPDFIBSWLSQRO','ZHVWZ','XQCTIIQEEPEFDQYPZLMJ','HITWONOWQ','LQDK','HGR','DMA','PKTIITITLQGSC','WTMYNMBXQEFQIYHGNHGY','RHNONCQOYTSLBLERI','ZQ','TYZZBXTJ','RRQXASJHEPCG','EBNTNHG','IALSDUFLNWX','OADQT','ORS','LBYYIXQJPSSYVBNN','KKAKFIWWJIUUJOGKH'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'LYJTSODMNVPIGOZA'))\r\n%%\r\nnamec={'JKO','OWGREQBHQQUMLNVUWQBK','UHVVBFHIGRXWTTAMJJKO','WJX','SFIBGZXGZUEM','BYSUOAWXKPCQSX','UPNYKWBRQSFGCGUZITC','ITVPOFOUKJAPQX','WVTUMGBJBBUWFZDZBX','CQZCXRSQ','KQWLOVEPOFFEDVG','PVNRITWZIAWKAA','DOQA','ACAPGNWKVMOVE','CWEFWFTQN','QVPNNRXCGHGMLKWAT','YNPWDBTIJYNG','YEFAQDSSZ','AQHQWOIRP','ZQRZLGACEUJSTROOGCJQ','SPL','TGBWXKJQJMW','NKBYESOH','YXYE','NXVGP','QRCYSWHKJUUNGEM','KMIECA','HXCGAIWRKJDQ','EVEMIQWSU','ORY','YHBAHCORMXPHBPM','GIE','ESSZLCMQD','PFNO','UBLFILHYXVAXRBVPTQSN','PYVGVUUQOCWW','VIMJNOMMZVWIMAHG','FURZKEJESYJB','FDM','BIFNVLU','T','AVCYWH','QQF','QK','GPRHV','GTOKJEMWEFGVN','GAXJID','CJHJ','APLORUKKCDHKL','XZPWEXZW','UOXFBFQXHS','GSJHWIYHAXSRPHIGG','G','OLF','TU','ARRKPSRLTB','KKFFBDJHHGSSG','VHNQKMLOR','YWXRSYYRAFNYDWRQA','CKVOWSUJGGXVY','PSUI','MUXJMK','EYTHUKVEVDFTJLDC','OOKYLAR','FTJNSQZVECEXE','EHSXVDTVNNYOWLL','UQJLAUKPOTTJQSJKWUX','JMSIXWHFIQEUIRAEY','XFIBXKZUXSLUIXNFWN','MNMERG','DLTERHWWCZDW','YVSISIWYDEHPARNM','QXI','CHFB','HSYWFLNPTX','LRHZFESLQYKVCHX','GD','JDQKKNOAMBFLFPXVMMI','DKV','DWVXMWJWT','FZM','TRYYOIHQVSNKVLCFRR','SK','APE','JNYDIADPTGRHTVWV','OINTXWT','MYSVMYHMUWAB','JJKWZUSBVXKR','V','C','XHCKOGAB','H','WGY','TEKKJMHVZR','DHBCBLI','DHFFTEMLQVWUYYSZGZ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'UBLFILHYXVAXRBVPTQSN'))\r\n%%\r\nnamec={'EYDUEHDLGIIFHA','XNIGHCY','AMLXIFMEBCIBX','EWMEKRLKZPZDXTT','LXYJTDUC','THUQYBENQVIBDTONJ','FMRIRMQQLHTW','PFQHNKKDYQI','PGCEPKNOHRAPVWKNOZT','CYDECVFCTMAVIP','WWBBORAFBCTQAJW','EWGJT','UCXMKAYWHQM','U','RB','BSBUKVUXOYEPWHVYGA','TKCUMOZNCSDEJ','ZAXTHJPOBNNWAU','EJYVWLFJQTUZPNV','YJJMKOZYGHJ','QZKISVFTHJTW','VSAWHHKYNRZYEUEIJJ','RVGZSNCHLCAKBCEPTBP','TUH','KQ','BPCICNHHES','DZSKRLZJHLRUOZBPCPEB','MIJWJNMJWGSEXRN','UWMSGMUCTRDYV','ZNUWDSZQQCZF','HEHFIHHCVNQDZJW','TMIUAPEQXYP','BMVTYNISYOOZEHLEFBEJ','NYYVNSDKJPA','EKRYBQPXC','T','RUBGXOTDRVMCSEBWP','NBLAQIPECGQ','XQFOAQRKIVM','FKDPYSY','TJBVPJOBINRFKVGU','YRPAKHWHIMHJNURPEKXR','GTMLLKGRSFCFXCJAMO','VZBWFUMLUCYB','ZNOLDI','LRTPCKGBHQCGJWADSCP','AV','ZNNKBC','DEXCWEMD','VRY','HMTWGLNLGMYTPZOCU','SJMKNBWQZGUODYZRAGA','EEQLXAGGKYPX','YLHLRDB','GSXSZPWALUIX','IVLSPD','RT','YBBYZ','MOKXBR','XBNCBE','ULCPP','FNGBCWSTFY','ZIFTHCMMEO','KNLFCQFIOKHQAECVCT','A','BNLUIXLNQP'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'SJMKNBWQZGUODYZRAGA'))\r\n%%\r\nnamec={'WGYEJYVVSPVTUTIJXS','UUQ','KK','HNV','OHN','ZDMRXCBS','O','FSNHUPLNIDWJEGHBT','YWSMRUPRO','AWQQD','VDJJS','CZFZ','FMVEADNMWAGZWDAYJN','SXXGRYDF','JR','NRSVCSNIFGIPS','MZH','MPIAV','KKWMUFUZLLCGGBDVYUI','DPYHLZRVREWMVPRUEP','MVSTIJD','GUNJ','WBYOQS','DGYHNMEZDOXPPVQ','OICYPYRJIOSCWAAJONB','CRYRIKGQGKOQXYDDNG','FEKWGTZXNEXPKNCJMEX','YIPMUZAZYTV','VGLXLQFYASS','WO','NICUG','PGBZKWJQSUB','W','PC','RIM','CYPJBH','CZEY','MNYOFOFCHJJKISS','OUVW','LZYPTUYWEB','FCHD','RQBHPP','DHPYWWOMMA','IWYBPWUKTNQGVKGZC','ZJTJBZNGZJGJDIR','QSCZQP','WFOTIGIH','WUI','V','LZGMRVPLQXFQCTBCR','EBIEDK','QJNVGBMNMUGBZOZO','DAUURYORURRXCZC','IIJMVNCTOTEJZIASL','FRZFGSBMPC','QODAJXGTQYG','TQNGZJ','BT','ZCSOEDSMDDL','LFL','MAZAUJGQKR','VUPIXAEKXJ','MJAIVAZWMIAUGMCJ','ZKENPXEYPEIPAAUSSRGK','HYTQUHOWEU','TQYFVCMNCCBWNKVXBJ','UEL','XXFQJTP','GBDICDZMQGZB','EYTIFRXVXXHYMOPKQDLM','JHNXZIYYESOF','BHQVGLMSGUWGCDDSQ','NQMIMXORB','QIYGZSPCJADZVGUK','IXWNX','HOPAJ','FGZPNTQNLLACJNMPVHVE','SPGKGPJDNTHBSJCNS','REHDRD','RLTRDVVQRCE','GAIKLPUP','KWSK','ATJQVAJ','EX','Y','KEZQ','AGWPYYDZNCNO','FOSYLAMECGMZYDGWJUE','CEEMW','SCEORKXPICZT','BLPVKTFEKYIPWIJRG','BFWDAMZCHOIARQ','TFSX','EXPZQXEDAJYRYDESCLY','NHCKRRKWLZJ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EYTIFRXVXXHYMOPKQDLM'))\r\n%%\r\nnamec={'HXYQWEZERXBQFZECZB','S','DMMXSNMRHULVYIJW','HJNZMIEXBLDYQJGFI','MHSOVFVBKINKFJHUIAC','QXUPYMVPVJTU','DMZQFZKHWTHMTHGWYAM','YBVQQERRHBVCJHSROXNU','VZIQAYEL','NTYENEAFAUEL','KXRKXJFBRXXDUGUZRH','B','WDNCGMMYKFMU','N','WAKHZBTPTSPMKZMMXR','STVWJMFSDWTXXAI','TXYKWFIVOYBDQ','EUUW','RMTJBMY','UM','PXUMUR','LBPMXANROSK','TPWMFVZDGKXSAKBEDI','BGVOPFMPPJEWBIOZBNF','XGYKCKUZQDJYAGG','OPLGJT','PHMNOKB','MADXMUBPA','HBWMJZ','KHHZOQKAMALE','JQQIPY','RILSWUD','HRSXFVPEZIIV','ALYJ','KZSTZVVFTYLP','JTN','NOXKHEQILSJGJI','GTOCIJMFH','KW','YHOOKWWSVDGW','HB','NM','QMYRYVR','BJRRIXF','DGO','JU','DYLBWTNIIQBRFK','QKXGRHJSUENSBAVCW','HBCH','KDXTAHUESOKNL'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'QKXGRHJSUENSBAVCW'))\r\n%%\r\nnamec={'ALLW','LNSMSPJJY','RILSPNVFLULVXZVEFFBT','NHPU','QOAEOLWVQ','EVWYDNSUOKB','LUFQUUUGNU','TYYDKHYTYYEJU','TNAAFIIRG','PLLSBFEHB','BMUG','SMKYMCUJKUSR','DVNVSKRLVTQKKOMBDQM','UOJVZJEJECBKYTUDHXYJ','YBATREIH','RICJDCNUOZQV','CKJWAKLJGTIRPRAXOCQY','ANHKL','MOHIUTJIJHPAZAUBY','TDMYDRBFRZBYOFIOHHH','QYRXFHJXVYTSPNO','FOFMTDRGYDP','AOKHLHXAZJAPVVUKZRGH','BQEZMUFMZWEGVTHIA','TWZQYUDBUBCGUK','ZXGMHKSARUPAEEWMIMP','CJMWHCDRTS','BZLQQIOQELAEXI','BSCKWYRQE','PTUDPBTD','M','NQSFMDOU','YWGQJ','YTVGJLJQEUUFSC','XSOXR','NWHP','OBZWDZENZD','FAPOACK','QJEOQ','URAQBEARRMWWJP','RSRXVXJAQJWG','XOULTQLED','VMMMVDXB','OQGOOWPVENYYQCGHHK','SOIXGLQIAPHGVVO','E','DCESGRNXJ','MRKV','JVQUZIMJUQTXSXV','JQFCGOGSYYUPVVRHTEHB','JYVURETJOGIDUG'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'JQFCGOGSYYUPVVRHTEHB'))\r\n%%\r\nnamec={'GHEOXPV','ZHI','MNFY','YEWVTZJ','SQRXALITJVBJBKOGCNK','UW','VCGKSYD','LACBYWDZYRXUUMDSWEA','BVQBEXXMHPKBQPT','JHAT','ZD','A','XNEWHBIDQ','LBXERLUZYVJ','RIIJASYOPIVQQYYZ','YEZGD','XGT','DLM','LWXZHBIP','ZJBWEPIBCOE','MNXWRV','VHNV','NODYUAZMCNFYMBO','YGEPCRFJXSDDSSSPXP','GEOZMOVT','HNMWNBRLIXS','ADZSBCUVQ','FNHGFLKKEVWNP','BQMSNJCTSYQSHYQVT','CPPHYPDVXPBTLJBCV','HVXIWHTUBFRQ','LPGUVAJMLLFNC','CBARIUY','KZYTDHXK','JRVJSZM','ARXITRIJEIUCPWNSVGSG','F','JPGNHGAAGM','PVNPNDFHSULUZUGVMM','TKLQI','XWMBFIGMYRIVHITGKASG','UDWHDNWRSXWA','OVCEEBENVWLXWAADU','ZTUBMITFAPTYKXUO','QTQIBJAXBZFSNZJO','RZEJKYUBSAZIHUZZTEBN','T','UCWBQVB','WSFVAWJRFDUTNCH','WKOVPHAEUKB','KXNI','MIHKTNESPUOCU','RTEQLAVBCBQHBLTU','SAABESRXBX','VUFKQNNRDEKTEUAPKL','DDVGOWCFTHGEUPQ','TFGPZG','RXUQOEXSOXYE','BCSOJJAGDOXJHVT','GBMVF','QUF','QTZKJTICPIKNX','UHB','NYUEWII','NCQYPHQBOPBZUYHCXAK','YADQSMQRSMMIITHHFA','MBRCRQELQGKCH','LZZO','IRIG','EEHQAF','JNPMVWWYVIPYWUYTHCIG','MKIBIHSMPAZPTUNQDVTT'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'SQRXALITJVBJBKOGCNK'))\r\n%%\r\nnamec={'Z','DHOWAIFQBVLAERDIZZR','OI','IDHDDVZ','NZLLBCKEYOOPJ','MSSIHR','KYLNPGPUXHBEAEGEU','SKUS','IRNRYAZYHCBFJ','QX','QTCNBH','MN','O','MXZEKVRXPZNGLGBRZDSC','WKOVYXZ','SATCUZMGUZ','YXF','KXRRN','JP','ABVRKBJADWVVELBWGL','VWJ','FSTDKVQBRXVVOMZ','PQEFIDQCYHQDDO','WJBFZVEMWRDU','HGEGY','ASTQOOAHJVE','MDBQSSTJKBDJHYNFS','FHNNVOCUPXZMFNIX','RDZVE','PRNRM','WDQYYBSTFHJ','V','HFVDSTNTWSHBARXDRUB','FCFSUBZSWUSKY','VIEJQCXLMFIBGLG','IQVJMBBYMEQ','RYCQYUO','CTGERJCSRTBXYTRXBO','BY','OPZEAXLZVA','JRACFXQDLK','NBKBZMHLHD','ACOVTFVJGABIZO','I','NRBGNNN','VQTNLZW','SX','LZIAMEGC','WXJCY','HIUXVECXYWESAHFA'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MXZEKVRXPZNGLGBRZDSC'))\r\n%%\r\nnamec={'FZPHLCQSJ','ZJGB','OZEAVWJBIXGMNDIBHB','YUJKVLJUMREHVEUF','NNTS','PSXIZYTGWVQGCO','ANSZYBJHVURYFFRO','DKMKYZSAGDLS','AOMQHNPDDOJIXPBTR','LBJEQAY','LLTRPZUNPX','WYQPBSS','RWRSINKDCVGOJNLDY','CZNT','ODPRRYOFDTHNEA','BMRAURNBMA','XH','CBEPGYFUSLX','PM','YR','GPERILIKMEJBM','ZLNQVLPDTYDXFKJDN','YNJI','VQRYWDQZKL','VF','OCWRLSNYXBKGAAPB','R','XBMBOMSJFMLTWHEIASTG','LFJUCYAAEJOODRDCKDSZ','QRSWJSLZUFZLWUGEXA','ZZOGMDFVXUAORK','NWWAELWYHUVGGNWBAG','MKELXTBXDL','UYREQN','BAPNNWTONMMAWRLPG','ACQZOC','LSSLSEZBGTCTHPYI','LLHJQHDYZK','AVHKKSOFWDMEFBLMZ','EBLAJKZEFFASIKNPVQZN','SI','OLZVNQRDOJACJIBTGVO','ITHHHPSNOVIFEON','PXAQYXXXGNJP','QOCCYQQIQOEOSH','ZBSLZMI','LBRRLYMAGVZ','AZB','HEJPW','IKPDOXNSRWFUQJJ','PBEIXBHIDAPZEXMSMF','AOQ','DGGUVQVWPWVFXYFILK','IOUMLOEBBWHUI','TY','LJYGUSMUVOOWE','LJECMWKCAX','YFZZYUCGAGWUL','KIKTMLRIOVBYXXJ','SODFBPHH','NEVZIFFIIRMTVDROTK','KRFFXGUW','TKLPKQVSQABGWJ','PFTZPYAAAMWGCMQF','NLGALHGVHELLRSYMVYF','ILUVTZL','IONIZNOQ','OMQMXZWWTFGFCCN','WECRHJZVOEIKYY','GCWVGIS','NUGZXHADWNACB','KPBHZOOZ','SIPZLPMAXMVSEJ','GCGDMVXNVL','GXPHICLKI','ZUD','JOQEWVRQIYFDJN','KHV','GZMTURTBSJKWBBBJCG','HCPMZ','ZJXEEMZVCGPUP','EJSGSH','ZVHTHMPYYKDPILIZDDB','XJUSPSGWSXG','MFUPWZBS','EUHW','JPWGKNPJGDCE','HJ','ATZ','IU','KZTYEQ','YTQJOFASTIUQHT','PNACCYGUDBOWSQM','VEVJECRAOQIWY'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'OLZVNQRDOJACJIBTGVO'))\r\n%%\r\nnamec={'YRMJICHXATZTRMJGAR','FKNDFFDBNZQRYNYGNX','WULIPQKVMQPRZUELHBF','XTWNMDKPSAH','HJXYQCTHAGWPICMC','OJKOGHWDOMMHX','NLEFJBMBM','NGPUQZOCKRIXVA','WSJGNDAGQHUO','YEQVSTBTYKTQW','FBJOFTUVSTLYXX','JJGUKEKOVNYKFBSZOGR','AQH','MQTLVPBSVWYUIELEZRN','LDLZDHCVLLKWKBH','MVZGDZCOAXTDBH','YE','TZSAKCU','F','XWA','RDCJXSS','ARRVMVB','IXKZJUAMN','EBBDOOYDWQMBHYO','ROFCLQUT','EDFUXWFQIVCUOBH','QMTPEIDOHXNEMUEBTMB','GNRIMIMRKWSRQK','CQUOEKTFWBZILEI','MHPZY','PIFDZOFL','NCWRELO','FMNFQSF','WER','UEYBYPDGXQAQETKXQXVJ','SLBWUKN','FMRYZSGCXQEQCGQPB','TNCVXGBSPXGNTDHET','MNJ','VAESXUHIBU','VUZRSYLATSEAW','NYGYKHJW','IAHCUOPIMEYPNZANS','SMPHROHJ','QKTHERTDFBV','ZEZZJNFRM','PAMPJCXL','AQBFZZQMNXIWH','MQJKYJWJLQYWIQIC','FADYJXGWRGGQDLCN','OZNVSOSQFYOTAG','UATQ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MQTLVPBSVWYUIELEZRN'))\r\n%%\r\nnamec={'OKYXOCHXC','WUCHNGRDZRBUAMKYBYR','KODKGIVSKXHNQQQEZKYZ','TXMPLWRRRTQXT','EVSLHETL','QWQHMKVVAD','YWNUODRFVUEZKI','BGCXWXN','DRBMONETDKXMHO','MCFUKSNOCEHQAK','JDBVKORRWAFZR','WDURIEMNLUFO','ORKOM','UKKPDHTHPCKU','WRTRXH','UEXFBNJNDTPKJT','SHDBQGVDATZNJGXMII','NSYSMFHI','GYETTAU','RZKRYICQAGF','WPPEMWES','UPJCPCZRM','LNGCVBZTYRJOB','SLNJWLEONBSDEX','HOHIMCTUIE','WOUFXRTVDKUUXBNYIBIB','VHGULPEBLOVIYKJN','YOSOQLWSHMJOK','SRS','PUJVLJT','TUKDPQAZARHPGMIUWR','CVAYCJFVZCYKSZGLEFBL','XPMQDN','EGVIOVX','CKWNOBHAIYYDCTQ','Q','HAK','GCVVXCLI','QJHHZXKTMU','AT','KJ','CM','XBRMN','EPSLCDVWQJMHJBLHELT','MKCZAUASYPSCSKK','WRUPHXMGDK','JWTLRTXKR','OFWYPCFLZOKSSIQN','YXLFUYUAQSGOXABAGAD','HN','RVB','OYN','MDGCWCOIHSAIS','BNAIMRK','SMIEZURUTTIDN','YVWMOWXUXGMXZ','LFSVJTJNIUYRYIBSV','WFIP','XOARJRU','LPQHDSU','IP','Y','WEGHMPEAJSWSTJIR','LYPLZBJI','UPNZWVOSSHKRSURGTVAC','WZSUALERZ','BVHUJHTUQHKNVRGRLE','GZ','CHMOLJUBXNCCOFBQBHHK','RVJSAWDMHDAEXR','RGLCMFSFMQ','NXTOXERFCYJYOFRBPA','MXJJROKRCQTCERFUSEP','AGLCGLYEAG','DCOLWJH','OT','CEOWMU','JWQEMMZFSDA','JLFSLCJRADNG','CTQCBVGZSWAZAMEJP','HJQQJT','QHCQRRRYOF'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'SHDBQGVDATZNJGXMII'))\r\n%%\r\nnamec={'NGLZHUMADA','AZILUVGRZ','WMNBT','GYSTYVINKIECZMNQZL','ECXQTL','VWRTULBMJDO','H','FLVVGYTKS','AFBDFORWDIZYJ','LRMVQUDKDTFILNE','KT','COTJDBNMWYLUVWJMUJXS','TTYII','XHYSDPTIT','HOPTKJHZNOIIXJI','YIVJUYGFB','XOUJPTEEDKMLZN','DMZTUQVCPMOJTRCSXWTI','PMHQKVAJRMFYNTV','PFCFOEPHTFHXUT','QFKAFLRJIHO','XFUACXQTNPISWBADXJ','Z','HSHHZZVOKF','UIGBVNKBFDYA','DBOMNWNRYE','EXVHV','IUED','XBCRBVM','QPDIGQRWMLFCTFE','CZEIKFKXJPNZ','QZHYNGQRELFP','JQKUTHSVFJPGYYZGLYA','PDZYOAJ','CZZIOGDFEKVCR','HDWYLVTGHZR','AMEMKIIBFM','HGBW','MFEKMJAJEFBQPRPA','UDRBQ','KBHPSSTTPQCXULJN','JVSOGFJRRCWGQEROTD','NSYBMKZ','JNETACZUZJDNGJDKPQ','DHQACXDZOVTMQKRCBFEH','EGPZFGLFAZNKQCPYMOLL','EJNWQYTPCSKHROERKWFF','QNHBHM','LPQPYVADQTSKURQE','PBMC','BSZNGEOPOSEZOYTXDX','AZAFTKXUUSEIRZNXKBH','FYTLSIEVYCMQ','FVQPOZYGMTLFWMENJC','I','QWTSFHBPIDNGIM','TPL','DYXTKYWIDOEINGXLMVLQ','BBPMULS','SUMCQUFARFFPZDVSH','BKMRLOZQEGPPYZF','TOYOGVMV','PFEOBGZNXGKOYQVBL','KFMVTGN','TV','YXRYSBJQUUBGWJBTG','LURDAGYJXMY','GMZ','IVGOGHE','NOUDGHGPVT','XSLETYJZUXBSWG','SBKSW','Q','WHSPWGNDCB','KKJDSBRQFKHIYHY','XDHH','MLEFRXPCDXV','YJWCGHSFBLYPEXR','EVNOGUL','YAAUJWLIRJHFPIJEYQI','DQOQXTBBFXFKYUWYXB','AJFEZVMFYULDLJS'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'DHQACXDZOVTMQKRCBFEH'))\r\n%%\r\nnamec={'NYKFHEYGIWDRNR','ZMFELMGVPAXXYYSGE','KUXLNNNRBRNGFVTO','FCVXASKDIEOVW','KGAXP','DOGJMZWJGXMA','WZAZZEBRSFTYMKUHQT','UOIAUGP','WOVRO','NKKWPLXNP','ZXDOBY','CQLIBFYTM','ZUIFAWEQDTVLGQ','JBTZVVL','WFAVVTDYPPZMQ','QYNPYDXMFQBAIXEKHB','WWXIIDLQVUK','RRUNL','SRKKOARPCHQWIPX','TJYBMUSCXCSL','GWLQLGOZFAKFI','JTEDUQQAIKYCYF','GNKJBIXFQHLY','UFG','ZPXZXELZZJMAMKNO','PWFEUVLBHFNMLUHOYLKF','LFLNKCRS','VIYBFOJL','QLDDNBCSAFPLSRHUFS','SSKNUIMRPXH','KJAMTWR','DFGDRLVJKEVSJKFQD','XWWZXONGQBCN','FXKSWCTC','DMHNSYQLJAFYKEJNA','SA','LKSEEDCLKPVYYYUDSXJ','EKFXCNEEBAJAV','ZCGKPDJBNWBPRDJ','NOP','LLUMUMZQHXKEGNTTPN','YQNQVBQNJRWLMIK','XM','TLKAAIHFMCNSSPMY','RWKZI','B','KPVIQOIPLNRZBNI','ICTRPGEPIYQMF','USOYXNGXPHNHPKE','TTWXBSMFPSZZYXM','HKPWROFP','UOY','ANFXBYIFVPXRDJK','JREXET','LDSZECJLWCBHSQWTCAV','FZZBGXNBEA','I','WKPMIMHQEEGGEYTGAHB','NQGHUHVZMXRT','FRMNOJLMFCLUJENO','UVDTQOXJBMHHBQ','OA','S','IPYE','IR','WMULVFEAIHFJ','JPQZZDGRBAVNBAG','ETZQWSOAZMBLVQ','M'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'WZAZZEBRSFTYMKUHQT'))\r\n%%\r\nnamec={'YGOPOXMMGZYEXIZJ','GRXPDHIVZADUYKEB','UWUCUPS','IIZZSDCF','JIZJWUBZDTFTLZOCK','LKLGJWEBFOCEW','WMLRLPFZJHU','AIARXBYZVMVVYMZEXKJ','TQAJAEARSFT','HJUGNDUAHPEX','NDGVDH','EOSWLGTWR','SABZSXYDR','C','YQDEEKWVNUKURM','LFEYIYLUYQMDLILT','CYEFWERUNWHYV','VHNP','ED','MQAYYWFF','AKWOG','EOLJT','MWSITBYMRKEOQ','FIUCWARXBBC','MYDEFDYGXICH','MMYYGQVGFICUAXCRS','WWPULNFLHM','LQNFPWNT','CKVWCGQT','HDBOPMTUYYNHLTNSLC','WVZCNJFLSQRMCE','SUKMDRPWWDZY','SIOUVYRY','EXVQO','FSHXIR','EVSTROF','YNUOG','VKUGYGUJLBIBRDF','QYZDIAJCOAIKYXJOZ','UQNFNOOIUUYOP','O','IWVIYUDSV','RIAEQMJQ','JGXPONWN','GHWIKCVUUULEQFFVOUTE','USATQADSTPSBWMSR','OBBZWUMHMXPJ','PDS','WDEXWSO','ICOLI'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GRXPDHIVZADUYKEB'))\r\n%%\r\nnamec={'VYH','QFSOIGSE','OCPFJTROG','ZBHEWWQ','LZJWJJFYDSDITO','ZUNUNN','KFNYNQ','IRKSHPFDSXGSNUOID','VQCISVNNHLNRJPNTXVQS','KRPEPCPGLKOJEOFPUOQF','UKOBUYSK','RG','MVPPBWGDTLRQSAFFUD','AJSMEGOQUGUEWGDWZO','MDBEAYZQREADG','LSXWSUMQXEMAQZAUZUH','GQQ','HJNBCZYQGGWZEV','MQPZDGCPEKYRDB','UZT','LZMCS','TODEMUWPSQBWS','WFULOCXD','VVJZKPOEKSOTOGVUSYK','EFXKO','NY','LIBOUCDINCXTPFKPXG','MDEXVSEEMXINRWKQNHIA','XFJDVCKCOFH','ZEBAJNOX','NJUVIN','O','TRCVTEZLWB','VZEFSLLUXYUOBS','PUEFRCWUOTX','KOQGLFROZL','PZIQXSABZKTASZMLZOR','VIANZLODOLNYKG','FDYXFKCIQBHRJAWLAC','LHO','QLRGGCEDMLKOHD','YMOJB','HBLMFTLT','TAL','NVXSLF','E','CVIARHWTKWIEEB','VVNPJYU','MY','GHEOHZYPRPHZLPP','HGATPAG','WKNRVYBTRFHCYGFVTU','W','IHSGEKQRADAZGOFR','LGZZZHRWJJQ','CMKVAOWRDNXRJWKDRU','OMNXOBJD','NDFF','TTMOCY','SUZVPFSGODKTYU','PLXUISCWQ','LKRABEVIJJOP','REBLYVBBCQWDEYW','KGAVXAOVWWOQLUTFLVF','VIEHXWRO'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'FDYXFKCIQBHRJAWLAC'))\r\n%%\r\nnamec={'Z','YTZFCBEEJ','IWSMGCQOIKDVQXNLY','WTZWBQUY','AGSCPCCZWIN','WRBBVZFW','XPVFODFMOAICPGQXLYPZ','AICVNQCH','AGYSIIQVXOIX','QTXIZADDYKEQAZWQW','YKDDXSJXFQMWFA','WWUZJWWZ','RSBJNRUQMNWGWPL','CERSTMDEXSWDT','IGNY','TUDREACBEH','IGNSZYVWJBGMUUTFG','QSDDOZQFEDR','NEMNYZLYHAFWPPZKM','H','LLX','GZDDNQCID','CKFXPTAAOCWSDAAL','PBDWR','PTSTYMVFHKF','QVFCNZYBKZCWUYLBMWSY','BVNEMMZRUJHPZAR','M','PYTRC','ZRIZFNHXBRFK','MFYROLOESPHWMZJ','FSCXZYPWBEXZEK','HQ','VDMU','QPFUMPKPAICYPZUQ','FEZPFZYWHCTMEQYRXCXJ','VVNZAEBZVJFPYK','NPPJWNGYSTPRYMNZQGM','TWLFT','YVDHKL','RMVASPSAWYEDTUBYUQR','ELLALVLJ','XWBELWJUECJFSSEFXXJ','XMRVSMGLIFWEYQQ','KZSOGYLDSFM','UYYRI','VGPLZBXDJGOYMKA','WDRTIXJYRSYVJAAMRFNV','TFKNJUFIEBRXBDD','MNUXMYPQODVYJVPW','M','QNKC','FCSKO','ZILNXGNWQONPEUO'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IWSMGCQOIKDVQXNLY'))\r\n%%\r\nnamec={'ADAM','BOB','JOHNSON'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'JOHNSON'))\r\n%%\r\nnamec={'NQKNNWHFEOHSLKTNVFLR','BTFNVWMDRERYJVAIT','MAZTVIYYSUSJJXCASTEF','FGOIZR','SIVFDJRBFAVOPY','EFKBLIU','WEKVXIWONZQBQJGIAN','QTTWWVZALMOCIY','VRANXGABHQKFQ','KKTA','LOMGOQKUSK','KCXCH','IAKHQMFDP','FHIVJHZJRFMBHGQJ','ZKNJ','BGR','WWGKGNTFKG','DTVKZAMA','OOOXPAPQOWFJVSVV','DLXWYZJYHKLNQRHODVLF','EKV','VENEYJPJXBEDEFRVRQ','MHSXMA','PNGSMCENJF','KBBFGPHXYTBMENMQU','OSGSUKBHICIJAOQVF','OAQPENVJ','DFWDYEFZMD','MFNTJSQYK','BHIOQK','ECIFYYJTWVQNKY','KKFMTFFPKX','KNIPHCQTRIFWKQVHST','QSJNXGCJRZSTISIVNTAN','OPNAH','K','COLCJEA','VLIFMKSEYFSJSSIJELR','OTCPPCEGFMF','RTQWFVCHJVHKMMNVODQF','LJZQNXVWMBDPBLRANAH','ELHSEBJHCEYPTH','CIZWPEZSRZRCAJSJRNVS','YX','JEOJPVAWRZCENTGFKI','TGCZ','UINFPXKVYAUVEIQEVJDU','LBJNSEBDTDRN','PZRGVSPLWGUZZKG','UWILYJONFBSJJNS','GAHHQY','P','EGMSUUWGDVI','QQWXQVOPLAJLHKHOO','KFRXTPQO'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'JEOJPVAWRZCENTGFKI'))\r\n%%\r\nnamec={'CSKVFETS','LBYGZSQJRQQOK','YBCUNSJGVADXYVV','JKJTLPGXMJCW','X','VCDMDU','K','NMVCXLJVSDZX','HZPEQR','VUHKKTVMLEYYRFAXYRM','CEQTVGTAVR','DRWHHUGAFBRS','U','TKZKQXBGEGZITHG','VNSDLKJETHKDUUNVSMCF','N','TLPDQGGPYEBGTST','JDWFNEASRN','GZWBLS','BRPFMTELBWXKBSDBLQE','PLQDVQIYOOGSJCCHU','ZNY','RKUFRMQEHIMDQGKWM','CODFQCBSEVEVBQTNP','VBALOIRRWMWBOPAL','ECPPHOWLMLMEHPSI','WOL','VSHCNE','MWXUHAOHJZMFZQZW','JZZT','YWTTXUENEJZSJFNC','CSJ','XTPKGEQWSFVDDEBFS','GGHTAVOKBAEMPGKMWCWT','OKTJOM','TAKRHJVJCW','OMYDES','QECXLKFMXRZCZQDIFAB','WFFRKQFSUHOFLYKPPADQ','UDVEVWPNUNWWKTYY','SQZZIULDKGC','AMFFCSTYRREGHWHISPZF','QJTPNND','ZJYOVPXRNAPGAPQHKWXX','PIKMVOCQPSFMYSTS','DKMBCTJKAXZSQADZ','IIRKRCWGPLSD','VFVOICPKCJFNZGIMJQN','AMRWSCZGTYRZCTLMOMK','IMJOZCRJLJ','FSCXCZVNTKGIJGGNPUAE','RFTYBQEEBEXDVGQ','YNWGOMUNYUJJ','OFLBGTFCUBR','OQBRKADPXKFRIGJX','UQBJNPNOVVIJCB','TIUWNLTXURCFUXVVYE','QLXWZOWE','OFDGSZLOELBHINWFIOY','JYOBUWPSULYAGFVNCZGB','UPZRXVXKUXTHHM','VUPDBBZR','BMLYPBJKKYXDE','PNZKJSS','LLIKKRPDSGLRV','CYTINFVIZYRFMW','XWSJZIF','OQJXHCYWHT','HOERTQJBB','TCDLCIAQ','JCYEUKSQ','HRVAECIN','CGGVABCCCYKTMFWYQKLZ','EAWICWNB','LILXC','ZTYG','DXTJHSRLSJMUCZNSHM','SNCWCSUJQYAJFJMPQPY','SPKWORDMAFYXRZBLZLQ','IVXXA','E','TOHASOQMXLNEHQNDRTCZ','MOJDSIWHOVHCNJICCOBW','FJAYM','FQBOLLPTRSYWPDVPQV','ROWOXWA','JGGCMRON','XNVP','QGNPCCLYR','JJYKPWNKRPWOIFQFPC','AVNYDDWINQ','UJYKLNEYCNUUOSMGXGBX','XXH','ECAFLCIYVDSP','QWUWVHGAFZCZRHHBBOY','KCAYQOUNTDD','B'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'FSCXCZVNTKGIJGGNPUAE'))\r\n%%\r\nnamec={'FKIPG','FIEOUUQP','RN','MPPBIJRAXYE','CCVHLSNXIWIJBNV','JGGHIQWFKSAGPY','GBDYGYDJYFL','JVZ','IJPSUPQF','QDCUUIQONKOEZZTVFKJW','SHAOOFPBJ','VVKFJMPMZOBITLREWDUK','ERFTHS','IXBM','QOZQ','MMJCPWBZ','FRCCUBIFBBGANTRKZMSF','AGTHUZR','ADYQXRZUSSKYQEBOJKGP','FGLAPUWMPQ','ADPUNERYENYAPAJZQQD','TEI','MQ','CQASGO','YAEUN','UUUVHSHXVAMRANGMLOH','YOJIIJMUXCCFWX','KAYW','LW','RIULPYD','FKLNNZG','AHYVKGPCF','NDDRBZWLGMQUH','SIGRH','JRHFEJCYHGH','BYDIOZMXPMD','FNT','OYVDVAHHZOJBMPBTCO','JDFII','TFCRVXUEPKLPFYYCKEE','GWRLWRLWBFQLKBV','ISJDFYTZXKBQ','MIGDMEKZMV','GETOPJ','T','LIGBBAJUMKQWQM','MRQ','XMHTRRIMUQ','JTSBV','JNXOHBPGQXZQCFYHZ','DOL','D','KFN','GSCUSNZPYPLCRIQDUL','CMNQWSWBRCD','MYVIWUXI','LPEXAU','KOJPAX','OZNRUXDHQPPVLISOA','LCOURGNNV','A','JOMVNGMJRCRFIRNTLTJZ','EQPXQG','IMGVZ','YBDZQIEZNXHCDKCGZR','CLOOK','CYSAXVRBVVEHZCPR','SXH','ABJOITMK','GKVTTWKLLGSEUONCYBV','DWFLLRVVQL','HWNWYQDAXIHJCB','DPHFBLOOYAZKARPWDBR','TKVK','LBYSXXYMJXFZGK','JL','FAATKTSONFCGUOLIPFF','ACKDN','OD','HENGYHM','MHFCTBIBCQHUUCWXHD','LUHHZDFLCSLORQIGSRH','Z','TPNTVCTYOSXBOUNQ','Y','RKBYUKXCFVWMRL'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'VVKFJMPMZOBITLREWDUK'))\r\n%%\r\nnamec={'PNJLGCFVJGHGWO','UYIONSVIG','CL','HUESTKNQX','SALYWREELNSZBP','BNJDZJKHOUSQDFKXCKJ','TNBIT','EMFHXOJXUALHZI','YBTCFQQZ','EDFYSBGQGC','PZZPG','DPLIWQLTYGDXJAR','XQFVWHRH','EPBSQBHQPXERQ','MKL','TAFGSLFLICJXG','YNZCPIXB','ZE','PFXEDL','IJIEPJV','NOHRGSWBSDZATZXPEYE','UTORC','XVIWAUSOTTYXILP','KLMSHODTREWLEGMEAKQM','BMHRB','UGFMAYIKPGKKGOODGQ','SMNATWYMABFAXVAZHBGB','EPS','VFTCJCYYSSYPRORKID','JHBQIAXTCCVXHHVFR','ZZLQENONICOQDBEEBTX','NPNHOUUUIIZPTLUY','ZDJLXCPTDEMUJTEQ','YHQYYTNGWZAJMZH','WY','LTJPKLFOBARRYL','RVQKALVBY','DKTOPDDQ','AZMQGL','QCPSYFPYQDHGYXAEMG','HJ','YBOHRMKQUE','IQOHTONIIIEC','PJQZRCC','OEFIFNNE','JDHEBJKIKGGAZFFA','NHM','VSXQHZLFCPMWWZUYVPIB','HAOSNCEVJDGBSFNOVSLP','GFHEAVXFPT','YSWXTKZRYXQHLTPNQV','NNRKFIZKXOKYVDNYXID','XTQABKRPUW','IYZILFCRELKHZAZBLKR','LLKSWMIAD','KAZJAGOZGIZR','FHTUHMLKNV','ITAHVAFRTDBP','VCNJOSINAUVMBXZ','DETK','LHFAKGPZHUIIETIK','XBAQSPFVUY'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'NOHRGSWBSDZATZXPEYE'))\r\n%%\r\nnamec={'SPTOMHCELYFKFSX','WINRFF','LTHAOJDIFHHEFCBPZD','RAAHGELRLLOI','PDRMKYDG','FHHWZSPSTXKR','NEBYKBDR','MVHGZ','UWNHIZZFDFQPDP','HQOKRJTOV','VS','J','TKYOPUXP','BEZJKFTUZDLGQBML','OSGYFMB','CYK','UDHMGNBAIMJ','RVCXB','RGNKBHEDHQG','XKCEUASFAMWNHPOH','NMEGU','JTIHPXRJWVM','UXTUFDZMKBMOYAM','WNAUDPIMVLMFXFQ','CTAH','CT','INJVBQXR','JRBIIEMGJW','MMEL','ANGNWTDYQTJDISMB','UXDLVHXRSS','SXOXQDTCTILOJWCL','AEIKGXTQEF','LUNOBPJCKTVNWANST','KEIVXZZUVXBDI','OEGDI','TVLQBVZMSWAJFPC','NKTGDWFEQZON','FBMAYLMQUSBW','PZIEBETGIRXZ','NKTPM','ILYTPLBDMPGTKPYMTNK','WZWGAYZC','EKLVVCOWGCFMGYRQNJM','IMWZBYZFG','RZMXJTPHRTXVJNZHSJD','EQWFKORZPK','LIMZG','OGJNP','I','ONHKJCTRSHXHQJOWX','MEUJMQQLV','BYXNMK','TAQPQRJKTWKZML','V','DMMDGTLE','REA','VRXWMNMOJQZJX','EHKSVVRZFEVGEXV','NZCZJDDED','IH','IJTEWCNJHJ','N','UPMHRIMYEQQRRZVLAE','F','FEKEQRQXHBJBSV','FJAA','NSURBUOO','SQVEDH','WGUCHJUXRAPJHGWRBKIP','DDCQXSU','AOJTYNTKWS','OGEPINA','IZTZQJ','AKSGBUDUO','KQBCPHX','UPWLLPTVEQNGETYOTB','VRCMMJATCBSL','VX','KGDSLBPWAJHLCIZUCH','DNG','AXBVUCA'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EKLVVCOWGCFMGYRQNJM'))\r\n%%\r\nnamec={'IGOYRFKIVTERT','DKOHDARM','TMIKMYTDSFH','CSGTIZWEFDBR','KADAEBAPFYIYGO','IQMGMBMQLTWUWC','RYRKYYPTUYFTI','QCZFOSRARULJLZEXMCW','IEJYJY','RKCMPQAZRSHUTKQPUGNV','NZEHCBZTDXKOXFXD','NPPALM','KZAOBCZ','GZR','BOZQSAAZPVZD','UNUUTLWODUMUIDS','JFSTFKOMXCBS','JXWNPDGVSZT','UMAWLBCOZUPOAIYXEQH','LFDKXVWELNQDK','PDCDJTPREPZ','IVGPDJUMGUE','XJK','LKEPMYBODR','MPPPZGHZSDMEHBQJBV','RPCVEXLWWPHHBYXWSUW','TPJEKMWTTYCYJG','BVPBOKODUYWCQPWBQ','FSZH','NCJWIZ','VCQGMOUIGWWHVPXE','L','JKHOMQMDNEFAK','GWKDCDMJQYN','FSMYMUWYPU','AOOYMCYLVNYWK','KKDOPSAWIV','NLXFXCY','VKFODHFF','AYXHMQMHKU','DKNUGCMEJL','QQFRLYDQQEJDVTKCMQ','YMJZP','DCFLDAWFITJERJEMQFI','SJDKAPWAEREJZ','UFAKJ','UFCVECPWEE','OHVLIZVXZ','R','ATUFSOTWJEP','JZCKJKHATGYHWY','ONJUBQJQZF','IGSE','NPUPRTJQHYKIQ','JORJFKJLQLVZELEXNUA','WTHARCXT','YADUX','BUTHBXDQXRIEAPC','AWW','QOGEM','C','J','LCFAVHFYMSYMK','GTWZZSHIQ','KDVUBLNOSKNP','ETPUXRV','MQYBPYJJEMRSFBTJD','RWVHLWYCNXGWJDJ','HGNQQSPJARNYEHCETYU','ANTOWTNRUWQSDF','SOPFTC','QJEMUUDZMIPB','CKIQNAB','K','ITAJGBFKW','NRIWYPM','ZUPWJOCSZKQDAIEKKIYW','GUZV','QQHBBQVPSCKKFVT','TVMTHCDKAJWSW'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'UMAWLBCOZUPOAIYXEQH'))\r\n%%\r\nnamec={'FSZESYIDKESTRMQPSS','JLKMFOSQF','XSBMEJHOGEXIMA','AJTVMJGOW','MTFXUJVQEEIN','MNXEOMSSEOUKURY','AN','XZHMRQQGU','TRZKZBO','UKKU','THKLUBIIJRQZXENQYAST','CYVFVXRWFYDQ','NPWCNJ','EFAUAA','T','YOPBR','GLPWSLDTFMV','QPIICXOJWDKJPI','AXBDUFDCCHPRQL','GALFAFUOOERRGD','TZKUVBRQZMXKBNCINF','FKZTRF','NQLYCRQKEOWFDUC','AUJTLFQFT','QFCLOKNSBJCHVN','QDHZHFPSDCPWXVE','BSVCTXXGBXCAKU','JEMNZFC','CFJMEBL','UJSNCVNELBNFCUDODMGO','ISU','LXB','DUODTCGVHKSW','OUDTEGTWSBEMYPG','MBXGAOODYIZKO','JSNQPEIY','ZVBBZGZTMZZPMXXXA','YS','HEAVRWFKQWQLLRNANXGJ','RQMGGNETWSYCRTUKLCJ','BOEVUNAHWEGJKRBUEJVH','DRPGWQSPAWHMGTDZSNF','KBCTWJT','SRZRKLFZD','YPZXPODCDBANCDYREO','XXWCZZHNHNWXJHMXDO','EOCJPOLM','EXWVAFTSMY','F','KRTFX','BADJAHPDL','IVVLKBFMBOQVTBVUB','UDQTK','AJ','IIYAWVDYOIGM','V','XCWGXPBFKJQ','VQACRASJWBMQ','UPUWKP','YWPCPMMYDHH','BYUDKVPTHETUYFQQ','CSGAVUENWJMXMDIXCFTV','NNPEXJBWJOTEXLNMAG','EGJDMVLZGDQKZDSJY','WCBZDSVJTFBCCME','IJRJMXXJSVKNQUESSPXG','TFFVIKZJZAFBJUZKAI','FYDB','NRFTYRXHZZZQF','IYRKEAOAFTXMG','RSEEFDWXAULIPUKLUHR','EHDE','CIULRIHVFZVPD','KJANVABEAIWYIMFNE','SCIPMSAZVJ','EXSTWLXTF','YC','HGRIZZXHXEAKZBVYQT','BQRYGORWQPVWGIBBQ','LUXVPYULSREP','KDYSKHKQIDJEU','P','DGSUSJBJKIBQE','TUSPGYQCORQ','PEF','FYHFFNWCMPBCGIAA','CGOLOTDDPAAMZIJV','XNDRRSLMYLMQGHWM','HLKGGKGKFOUSMFXPWLZ','PMPN'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'THKLUBIIJRQZXENQYAST'))\r\n%%\r\nnamec={'ROVISHNKWIRVFYOZTG','PICZ','GF','XEGMHFSRFTX','SOFGDDVBTDOWBLEQQBWU','IROHUFREDPGGBRXUFZO','SZSFPXMWFRJCMZ','TX','VVW','TTVZCJYTTNPQAUI','AMJBBCWQJOUUD','PMCQ','PCJOYAWISWUQOW','GANMU','HXKE','MUMUOVEJVABVLQEACK','IWL','EOTQBINUTEP','ZHARSQNTKXDIBTVWZK','MDMDQZOGNYGGDRW','GDJJDCPXUKZYOJHXX','OOTB','ZEAJ','EOHIRXCJZUZCSX','RJBPDMQQHNII','GNCGVLZ','OEBDO','HYXEZJHRQGAQOPT','VK','IQIMSELNLZUFL','AMYCA','DSDXJQZMYMUWZJFGLIM','UYTW','LLQA','BJPVBBE','X','BUIANDSLTA','CLHKD','MNMBOCAGRVKUIKSV','CYCDDL','VUWTHN','GQJGTCSWRM','MKGKFJNUFMEZPYKE','SFO','SQFKFPXM','ZSATEUQQQDNCTPLDCJ','VSSBPZQOLHNLSR','EKBES','ZDVCMEXAO','PKDEYGDASVRMRFOQG','EGGEJWXNOWJY','BWTNFXXDJ','CO','IKRABUNQM','ANSJAKLQZJURSVU','VJCIJ','UOKNFBZIR','EYNHPDXHCUIUQ','UVLCBHWEYNM','ZI','TVZWTEEJVGJ','CLNXKFUODS','VZCJQAZHFVIUAJ','IWSKUIYLLMOCA','FBRSOXGLRGIT','IDSSXEFAQLC','FJWSCYRVD','BJUJXUIJQMO','URLWCIH','BOTVBWWLYUO','FALLJCUWNWWUFWWLKDJY','IQLCJIQINJLZSFQ','OMUTEEBHCBD','JWOM','WB','EXRCBRWAYEMNJQGIH','JLESZSASLVTJ','PYARZJJRDOA','PIHXQIYTME','XYSFFAUVWAICBZHRG'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EXRCBRWAYEMNJQGIH'))\r\n%%\r\nnamec={'MCQZORMCFCE','YZJFNXKRLAFWI','VSTPICWP','JNOAAMOXWBMYCECBRUVY','KNRBWAKNG','NSRCKZGETDUM','DHBGDGXIMOAP','GSDRFXLH','SMVCUZNPCPVGNHVLDVB','OHLLSTWXVLZ','HBTJICHVJFVAJX','YTPXEQP','BGGKNUVOUXWLZ','QQLFZFNLQJ','DRYTBDIDQYXKJPVEAMHF','MSLVRMAMA','CTSFTN','JHTIO','N','CZJ','ZOKFTLCDWW','BDPHMOGBPUEOP','DAAYT','YNJJJXDDTKBZJDKV','AGIWRLWRFLHCFMDGWKZQ','RQMTUDTXTSKW','UTNTWKBZRXOTK','KACSGHKKTGDIQ','XKZMXOQONBCENEPW','VWXLZ','LMYEOLJISFETJKDXX','TIGVVDPY','DCTCRBDRT','VPWEIZBCRBXXPHABRZVT','YGITXGMUIPGVJYOZ','CVZPJREYDD','WSVNZZKPDXKUY','TNZKBKT','HFNKHUKPPMXKEQMYCIN','KXUEBIDGNNFLD','NTCSEM','MZI','ZWXYR','YNHDQNIVKTQFZHNBL','NGFCTZNO','TJJSERXMIDYRALO','YQLNVRSTLA','NWZZXFFTW','CXYSKZQQPC','YHIFKIFJWUFJFCOZQN','JAHLRDNWXD','WLGCULEEXJFDTYTZNZM','MKW','PHASPWVV','LZVHSAMJZCDOTIFOUI','WWRHSRHCJ','T','PKU','CYBEHBJ','OJBG','LGXXAXYVFHHQC','OVKHZJIFXOOQ','ICMYMHPROGQD','SQKSFCVMJHDRFWL','GNGKTXFEDNYNCW','WM','NYOMUCJMNDBTWDOO','KRKFXMTEBJJZYNPSX'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'DRYTBDIDQYXKJPVEAMHF'))\r\n%%\r\nnamec={'ISLN','SRIFXUBZGWBYHFRIN','SYXUWQKTDINJFGVZRXXB','RBWEBFPTVICNRWPSY','BZZQXYJJZ','UJXWGBDBFCKUSJIMBQ','P','ZLKBGXVPJF','KJLDG','OYXOAMBPYMLZSIZ','OJAPNDNTRCNCLQSIQQU','XGABKPCNQ','FXEJGXSIGVRRRQZHSOSG','WJRRQDKM','JFORL','QUZFUBIF','PMJOXFRZFP','WSHBJEABJCR','NYJWX','LMQIDEZJCJYVIZ','FNAGWWJCWSF','ESQHTLNK','QLHHUYZVXWNYQC','HQAIOUAANFMUEYGZLGJE','O','GQIYYQZWMZTPTPIZNMPR','WFJUOFKEIPECBUTXCPE','WPGWKTYKZ','WJBCAF','HKMIWCBZJPX','NQXCMLXHNSCFU','HUBJTDVZPMQZUK','DWGIDVHQ','CVVUDUWPNLDJ','HFRJNS','NOUNAVHOFEEAREPCRF','VOYSBMTGXMQZACFFKP','MSPJXWH','XZAONDLMLDLAJIULG','RKQYTBQSAPERICXHP','STAIWDI','EUECSNMEHYYM','BIPJKIIRSGTWWRTCLYK','WBMKUAQS','FODMQMBPJZSDFPZXQ','NMJQDJCV','IXBOFYVOTJSZQFSZNB','BFWRJXMWXUMMKF','QKHIZJFNKCVPZJ','TCEIQUJWEOJPVR','KHX','JRRNY','GFWAJXINHAEPHLYFI','ECN','YAYKWPLOZE','QJWQ','XGWAEAFIYCOOSGAVDX','GHBCWJDPDDTJDLKEH','B','ETUFC','UJNTCP','MTI','WTX','XDRCRRDXOPFTRNBUVE','DPV','OWWX','KEUTWY','GJKRXKXLAGPZJAQ','WWIEKSIAAWYUDAN','PZCVKWDFCU','QSITT','DNQJZPBJRIT','IN','FBEZPMPJQPQK','FMXEFYVNUCESKJ','HKQZUKWTFBPCT'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'SYXUWQKTDINJFGVZRXXB'))\r\n%%\r\nnamec={'NENLZQOIKIIPVDBO','PHKZPOEAQQVMCC','LAZADBYKWMHVGXONHKOQ','DHAGCRYRMYIHZCSSW','RFT','ZGFFOYIVQGPIXJZD','VPBUHKZSXFRVCWSALF','NOGAMCBPYQJGPTBDHQAY','C','VJISIBO','XSTTTENFNLMZEHCV','TNCCXGDLGAEVZJOJKO','QJLAQFNQYSWVDUYGT','CCDDRAC','PVFDWQDAOR','IFWSNMCUEXVHCVCWP','BGFUOILE','AE','UZXQKGPNRFSYCT','AQPUWXLETYHUWB','R','SODDLNI','HCLXDIXUXEQMMMKEFMON','E','EHARHWQJ','JMWJ','MCYUHPCTZ','YAFHAJEINPSAYVBOLTSN','JMDBQCRQHQIIUF','RSXKKTEBZ','UNUDWD','CUGSU','UFB','OMWLOYAKZR','PBILPD','DVYRGUFRZBLSMREFAW','HPPSBS','CGUXLV','UKXUEKZBAZPICBXN','MUUOD','MVRDGH','RIHZLY','LLLTGMNTRBTXODFHM','OGWBDX','HEIKNBVL','X','DNGCIMBHQIVHO','FPJUEQZFEKLNIE','EJESIZY','IXONWWTAG','DRHJZDPMLTWMTR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'LAZADBYKWMHVGXONHKOQ'))\r\n%%\r\nnamec={'E','VADUTZCEK','QTZWFSQEKKR','XDOCFRCBNYJGO','REPMDAJN','NXLXZEJXUPKOICUECCR','GYXBQDOZIH','XYKUEZCLGJTIPUJUE','NCIMJMDCGFOCBRN','SYJBZKPWLP','JRGWHPECSCACFBLKW','FVIIIJXBEG','GPGOVYRBSREXKPECPBXP','XPAQOYMMXS','VIMFYVGNIKKSCMZZKZU','ZCLDPFN','SOJXIXANXKMEUOQP','GSO','RQMXX','ULBWFKPFPIHMEVNG','BZHPJQYFJUQWCROVENVD','BGRHEIFQJWCGU','GZVY','UN','QSGTN','NTLUQJUPOYAXT','MRVDDPPJBTMCVZO','PAD','PKCIZTXHHGCCVJLNCXC','ZYKJRBWPRCMLKBG','YFABOIFTKVQ','PREOSVDIIEGAUDNC','CUIEKVZHJMLPXH','MCNHTUTPTCJEMYHIEV','GBRQTQPYFSHCR','WGDEJNAARRAZNRFKC','SNWEHTW','VBDGH','CILYJLBQZWZWTFYZXAJ','DGLEBJEDMLNBJORMTRJF','ZFNOFDSLHWMQSDU','OKGQTNDILIVR','ZEABTHADVMUKH','DWM','IXWDXEDURNPMRPFGMCFM','TQRVXL','HXZHJKDCGGPXTAH','DFLFLPCWXUNIBQRQPS','SUCZRGT','NSLXWGZOHTAJSQSE','GXMZQNFFLYIWPX','WKMVSBVLPHXNABSRX','PVJVSYOQQYAMVN','YNICVYRXMFCF','RSZJFNPOV','MVWFQMKQOAI','RXFOZDMNVBXO','LGKPTZDYLQWXFUVTIYY','HPOW','XPDXQDBESSMPBDJ','VWFGGTDMSQQDZOWITP','RPSXMTNZDK','CMHIKDEYXMNEDE','SLBEPVRCQZSO','AVSXNZSGBKDVGQCRJGY','XJU','IHJTZ','EIQOOIHRLXTBDHTVWQAE','T','NJWFFXVUQCSCN','MKQZCCRGYGLW','QXSVLNTKEIVMAS','LEDNUMX','XIWJBKXWND'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BZHPJQYFJUQWCROVENVD'))\r\n%%\r\nnamec={'MBU','PKVORAQRK','QPVRFOM','OHYGVGHL','PVVAVSXP','AGRSDGYGGJMFDSKSA','ZOQOUPCGXVGAQDHKYFID','OHDJIDKZRJDYWKDREZKN','RXWWCSBIZ','LV','GIQPLKWTRIQMSKFWZ','YNMCAFJMYSJABNUBGGNY','QVULCO','HJIZGEKUOAVOAWTNU','LEORUFHX','N','HOJYNFXRNYIT','BIPGVNRZHYZAQJX','PCJIWQNIYYCRYKXP','LCMJ','ZBPYALSCCRKQZPYUBSH','BLNEFR','HQUIXQZPUFROPT','KQAAXRXWTXK','ASFBD','SS','XGRI','JTOZLLOL','BOXPIZAINJQKTONDB','MDCUGIEJFGLVNL','NTWKVIV','P','UFXXBOBSJQH','HU','PBH','OITZFICBDOZEQGJZR','QPJBLCBJRJVEOVG','UIH','ZMZLKGNXZVAEPLGQ','XZTB','GANVRWYT','XZQRMIRQXVXJ','IWBQZBMJUZSNTIQNZ','WIC','YR','JSK','O','IEQTA','PTPEXJWZBAU','RHRG','OGG','WWM','YTRBYGYZVLTVBOABBTV','GYAIWV','IKJCDOX','DHIRHBKS','COUAAKAIGPVOXYKZUNU','FQFXUVC','VMFAKUVYGHFXKN','IDQGXYDWNEESGJJKP','UX','ZWMSMWYW','PMJBXUXTAVJCGLWZVSDB','RZ','K','HASIYHX','ANOVP','CSIGKZDMSMKOGJ','QRJXLP'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'PMJBXUXTAVJCGLWZVSDB'))\r\n%%\r\nnamec={'NFPFLMH','GAFVH','SHEZMDSY','JIJZGWWNDRDMYDR','QQMX','WMMQGRHFEFUTRAPFDTGO','PSDARUKGIRQPPUVFRC','KJTFKQDDFGECQ','EPXNZ','UKVDPBFLOT','EVMBIHENGAPWRMCZY','HYLDZIDPOHTFLM','TJSZJJSIIMZZPCVC','ZTOUSR','XXRCJEDFNWFOEAJMZWO','RDGNFRAQLVJ','ALLFOJKOQZHRH','KVYTQ','LWOGBFHZGSDZIF','OOKNBR','LAYXJREXHYHOFNVDYU','TUDFRHK','QSOJMHSDLKEQ','SHSMUQ','CMTKCFROCQCXUF','KH','XOZDSHULKCAJXTLSY','FIDNCZSFGGBVMTZAHLGB','IQATEQVBYYPS','CRBI','BPLUC','RJOPKRXSFXES','VECJRE','KENJGUMXPFCVFRGYLRXE','GQNDQHKZFWACPPHKH','H','BFIKUAPSNFBICRIEF','FPMMPOLVTYOYZQ','RXEFHBHDQPNZKGONNL','HCYWTBJMGLFTXNWRR','YRMWICLIANCOCDQPA','UTHNCEFVWHBJQ','BRBKTINOYU','QIGQJAMGVZRZWSYIZ','HTQTVZ','DCVL','T','WUXLTOMJAU','ZSGGRZRNIM','AXTNTJGS','RHLXTUPCTDU','JIFFRKNRFWOZEEORFV','DKOFVRRATZFQMHLYFZJ','XFL','FQCZHFFOCS','LTMQKYUNSRBTJQ','FDFAUNSAGUDRZCEPE','KAOLUPTGFQE','VUXIXPPGT','XNIRSGTMABTHD','DDTXHXCXAJTDOCCOMM','BXZ','YPN','KLFWT','MOWEPNYTTSN'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'DKOFVRRATZFQMHLYFZJ'))\r\n%%\r\nnamec={'DGQCQLGJ','IBNJOGJBGPPIJBQLK','GJXJFBIQKZILAJSF','AESPLZNFPV','YGNAI','IHYDPEYHDWSZSHL','MXGAONGONU','UGSZ','OZJGN','YMIQAY','SAQDN','JEYJCFHUTVPVU','GDWDYNKXS','DLAHOBKTAAJVHWDSCAG','EWBYPMZZXPRXASZTS','UBYMVWWU','SMHTGO','TJ','EZXTZDO','VBORBLBYKPOSDTZOR','ZKXZFIOALVYWJCMDNXSU','NBSPRJIEHJSUJP','QQOVT','BJQOKGDVSATEWK','RSMDGSYIUJIMGDK','ZVXTVM','HI','ZNEXBMBUCDHEKAAFRVCK','PXRPCEUHWKPJNKHDREBT','BQOWMIYWPSJXMNNLD','BONKTPSWDOYWKRJQCV','SFCOZDUJOXPDSTGL','UOA','PRAELEJ','YMXZTQXEITWI','ASSGLRORNYRWAIEVZXA','UAAMSIDSAVCP','WZZIPNBPDBMRF','IRJIWIZHIQ','GLNTZIG','YTBPNYRLDZUEZMX','HBDQ','CTENOFTKBHWQCPBDVBEQ','DJTTAVIFEPKQZBR','PZXNIGQLJKYZTF','JFJCZY','LMFUHVPAEIDUU','VW','RKGORHTQ','OMZPHYGOPN','LSPOAHWLQBVPPIW','RBKGXMLIRLGCSVRMC','NXLYDZLCQIMTNPT','DXHLFTUSVQXHWXBJEUGG','GSOLEEMHTARPUU','EVTNRJMPPPNZAZOTROD','ZYHWOMFE','WFNGMJBXWAKJOIEDZC','GGR','Y','HPAUOFVMOZGQEMHWLRPF','DHBEORFBKKFGZYYX','NBSLOZZRYECVU','VCFACXJEHVXXPHHI','KWMFJCEUWBLFDQGCKD','DGNNMDVNODLPYNL','NSCIEILOIGJDGJHB','GH','BSWXELUJ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'ZKXZFIOALVYWJCMDNXSU'))\r\n%%\r\nnamec={'FPMUJIS','HTMLYGHYLNM','AGBTPKMRJ','SSWGUVSDZMBCNLL','DRPGG','XTEZNPFNRTBMOONIMM','QXTCFLIXRRIWDEA','MSMOASUGYSLK','BAFDNNUXVTHRPG','QSCURWGROJRCTOAWTN','MQTOBZ','JOVI','DSBQKFOTVDJIWXQDHRB','FONRHGIY','FMQTCJXWSUXCFJGFT','GQCMFHVN','VWDAHFTQELVINRY','ZSXBRGGBQPAI','FACVSATHNHXZY','KRUJPOGMAOEIGC','HUAUVGUDNZCUBXOVCFA','FOAGVCEUXQFKWZN','MPZDESSR','JPMFMGKKIPA','EIOA','UGOBBKLLTBVNSJ','QTEZESAEJHECT','AQHX','JEVMRDXJI','HTDQHKHXDXWDC','DXMHCHAFKHGZFF','IVCICJXFDPXGJQB','VBBSD','RCCEAHTANIBXXG','JQSIKFVLC','MUPIJKDJRO','I','KJFEHXFBPLU','OOBTEQZHVFQ','HZRKWOHLRJQMJXQQFP','MGBUE','HNTGZWFGJOYRTDPIOYRW','CDBPFXKKTQ','DODMJB','RUUDHNCJJKFHSIJ','FMKIQBPKVVULLXSYS','PWZUVYKBYT','AXAAJXQTHQW','BCFTWBGTJNUVHBLRDANP','M','CXYFOTWLRLUGQC','QIPNMPJJGOQQJKUDHL','SEMFHZMYJKPSRWDIBBOJ','LSTYNTFXHB','FJWJDMSNAUZNKWOK','IYFJHGCQLT','WYAMQDEOIWZBUB','JTTGQNLSOKVGVT','KOJY','BLXNETEFIXMKZ','NZGEYKPUIHNBKPPST'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BCFTWBGTJNUVHBLRDANP'))\r\n%%\r\nnamec={'OGLCMJBGUVZRYIQ','IAMGPYOLQRXBPWETMFUS','LFEFOVWUSDWNRZHN','JUFJK','VUCXCORYGMQJV','WMJZYKBSPZ','JQIPDYEJGULDLWRQS','NIPIYZGNRUVPHQH','C','MB','PHNNR','REMZRZEHIU','PGRAJVBZXFCGPVZCRWGQ','XDOXLEWSCUCVLRKXKPIA','DZRBFRJLKM','YXJGVDCGEPIUDRMMUJ','XPFKQQMUX','NYETXVLWZ','AHVRMDILF','EUNGVKSGIYWEMDUDOMV','MXAKTAWYASGFR','SOYII','VLOQS','UBGGXIZP','TPLZMVARFYPOY','FQN','NOUT','FHUMXNJNEJW','ZIPLCMQSSK','BQMCBF','NXLGMDKNTAFLJ','ITAQMINQG','SDAXMOC','RMANBAJMHICQTYYCC','SAXDYOXOPFOVHATLAT','IICKXBVXZTSLZRJX','PBHAWOQKGFHGG','IICOLCA','LJWNYXM','HBHVKJU','QNWWNNTS','VSXYT','FALWHF','UP','CWRGCUHRZFMK','FFMM','REIBDNXXQUDRSFF','N','KIMMFRQROZNWQ','MJZHXG','LSEDGGWOS','LUUMQ','FTXJ','SK','ORFNYJYWPQVKQDBL','YIYJJPAZOPEUZGA','HFZSILOBJRFZVEFXGQIV','U','PD','QLCOG'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IAMGPYOLQRXBPWETMFUS'))\r\n%%\r\nnamec={'DAB','EIXCAFT','TOCEGNSLVURCYGXYH','VHWLWNNWLSLJ','SLDYYVHDOBBJHQZGKQ','CTPCUS','XTLDBORFZZICB','KY','HAOTVBCDRVP','W','SK','GAPVLDXBFIUTFBKEDMUE','KSGVU','TJOTZA','MXSRCIGHK','DFNCZJJHSKYHUAPUSFCM','UOYNI','LC','ULQKSEVEMLFASZTPX','RGMWDMYOOMFPGZLBITDK','WDGKCC','GRLSDSDHX','AXAWWINMLYJE','HGACOLRR','FMVUD','NWEEXSBYIFSJ','PJ','HDFGOWPULKAPXWLHAYBQ','GELTA','RORCEHVHKVWDFE','FJGMDMQVDSBISR','FTNKXXUSVYDSMMY','ICBWKYWUKPZVFAY','PJYAKSXMEJUCEL','VKMJ','M','TGF','WBIYWSRXTQZXUVLL','VPMMEJQOZLS','FLKPDEIUTD','BONRSRVZURJJF','UXAKLFHECVSZ','XMPLMGIW','SJIMJEJMH','ROXFKZUMYOZCRNGPVX','RCSAEOBQWZGVBJIUUGFH','OUPWMFPVX','B','GQQOIG','OTCXWPJVMJ','VGTDMRFGKUESEULXWMHD','QOTNGYBIUKFTVR','JPEGLYJIAPXNFJ','ZOVITVARNFD','UHU','BVTJ','TR','YWNOR','CIWVZWRFWI','EP','TIPARSTWGTMGQ','HFBNIKWGVTVPIVXJ','LUSQXXOCI','HMAMMWEENPRV','IOZJZHGVSOHLBLM','KYBWVGCSLSFCEGQVHEU','ZITYLR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'RCSAEOBQWZGVBJIUUGFH'))\r\n%%\r\nnamec={'TTXYV','FH','ZTCNWGXIBALWVRJEBQ','OKSHHRPY','JHVFGPYOQQEISOFLSZZG','PRWOSAGQGVKMT','DYYOWEDKYQCWBLOIA','OIMSYDORNPBGUQL','YFMRJZBDJJQ','TCYTFJIVMUYIFDDREWE','SGOEEGPEAXBGFIEA','BUAXXDKUSG','GMCKRI','FEQUFEDFWDOQXOJIJ','RQ','AKFR','OZFSDRQHFTEOSGYPEUX','GFQCOQIJNTMAFM','QQZWXV','IMJECDKAAPIYAQ','BWOV','STGTPACIOIFRLPJDWSOE','QE','WREKGB','NUOFONFNKHRRRUCFSQJ','YF','QXWSXRE','BBTGHKTJRGEVBHDL','ICBWV','HATF','VQUSOZSKOJEN','HQDPQFJASYSNELVKQRIX','WAHHOCW','XWK','VUXSCTJM','SDMLYIZOIXNHHVHPFJC','ZGBHPGEBZIFLQASQPBX','JOICR','VQLTK','IHXBYBGJQ','GRCVQSIN','CWNP','YEYXZ','UYQXYILKM','TXTCVYYBKMG','GZQQXYHISQAVSEV','KRMJLFIKDEIDQOTKWT','ALMSQZFFO','JYWX','YDZZLBSWPMPLQEMWYJGR','WGKOCBFSNEOO','AOSH','EDOIZI','YSVQYXXXZQLBEYDBMJX','ANXECVMPP','YJRZWZPPEYQIDB','WBBQUKT','WDZUFNAYE','FJSV','VWOOQHWNCYQYVTLDYQ','QOHSNMTXHGKNMU','CSSWB','ZFCMITSSCASZRYHAG','MDTXBI','QJLOWPODZEVYVEQKVKRN','ERLYKNCWD','CKDKQGMVLT'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'HQDPQFJASYSNELVKQRIX'))\r\n%%\r\nnamec={'PGOBRMNZXGEFGZTNN','SWP','HDHNVNTTTJXCERAAFGBR','OBW','QVFMSDDRXWIEDRGNH','OMEFFWRLXJRCWOOMD','HMZUDITBNSTBEYSLKLMT','ETIH','PTYHBXCBFZPXYEQUVPIY','MHGZDKPEJGTUAWPU','MPIG','F','WBUQNTXAPDHLN','AZFTRNBLZRLBTQ','LEPERCJ','RKFUJQZPJ','UUAZVLVIPOXA','IFHCPTRDBTTL','CYKCTCGKKNZ','G','BRZTFXAWYLHNWHIABC','AFMRFLHODYSQOMNRMDQU','SKRDD','UAD','KYRFULXATNJNWVIJDM','GDGJGHXJDG','PRZPQUIVNVAO','EDAHBBOWBNPCCLF','FMWRIKZAPI','V','EYRERTKJUXZWZTED','XZUCEWUHUXWO','CA','DMVJTHFWA','K','XGFNCELUZMBAB','AENTWO','TXKDLZBIADFDPAAXAUT','MSSZHKJQJUBAW','EREJWJNHJNZGROCRQ','TRJVHKVWGRBZ','LRX','YZVUFAEVGFYQJPP','HSIJNWMBQG','LIBDAVVDMYUDOXTNLO','URGYFJWFKRGHITC','CQWWGPZMSXSMFHADB','MPCOYINCUHUOZHGRFF','BJU','ZVRQOFIEAJRYYPNTO','HT','BMROUHB','DSXYRCVVLIHK','OPGUN','FGOXUAVIZBTZH','U','BBAEQHLWAG','GVQD','DIXX','KBHAWAYNXABNCKTIGR','WMENHMGBKR','JJIKDNDXFDZSWDF','STYWCCEBZGK','QT','PYVAYZSIOR','DWCVLFFVKGQQQ','CIUFCLFC','XUGSDVUQYJWVWCIKGF','FZBIHCWWCVVUQEDD','EZLTJFIDEEI','IVK','LYUYPCLLFGBKBFHMGE','OALIWBIFUTWBFE','NHYESO','XNBSFGRFRR','SSYIHIBENSRMRMQFWXZP','OQBUFRJ','DRWM'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'KYRFULXATNJNWVIJDM'))\r\n%%\r\nnamec={'SKHQPUKYYWHWEZCMJIH','ZJKCBUJTATQISUF','EML','QUUAUOHQJAHWBWMOBJO','VTYXGJVJTD','TUSLTKNHZZNSHSQBGJ','MKRBXOLNKUYWIFLLKSBQ','UXERKIPJZQYCTHM','XE','V','NBRLSYAMVBVQRYWLGW','HPTJGSOAFZPOPPTG','CCYHALBWOOWKIX','DKUSRZDIA','KYBCZ','LYBKX','UYVSJMVTYBVRLV','ATIZAYSLSLXEYM','ZCWTXOHTXEQECA','DTJULIOOLISFMBEZSSKC','ARWIOYIXTTZBXVJHM','HKTAOTRC','ZGRGUEHGXSBZLOTLBSLI','RTFLSDAGXHPWTDFRWVK','K','LBOG','BR','NGMNMUUKJLFOUCLEINSM','LKX','CDGQIEQBG','GMKAKVFL','PXJLLT','BNMUVYMZDNXATKMAYJLV','WUIDC','PWQFFOWR','ZA','RLOUPPO','SSPTB','ODCL','QQVEIAFZWVMEYLFIGXQ','QRXXUSBEQRSUZKRMDBY','TKTQTRZUZMFSZXHUXNAG','K','MNYMPJPDXXISND','KO','EVOYOQUTGBCWOAJVD','PIDBDEMRWIA','YHZKOGZHISHPSIGVA','KAZDDVPNOXFM','MITKWAPLDKRXVSAQCIIX','UDJWLVKJ','YMKUDMYGPQSBSS','SMUJ','HDUCMDBH','SKQREOFLWQNLEV','SAPJIHMUJQQCPPFZNNW','KEMJPXGBRHJSHQXTRJFL','VIMJWRXDTPQWJCGLR','CQGLORUCKTVNILVYBF','VTYJGNIWFMPCZLXV','GPRJKLPCLZVULUZX','XIKTOZCVCVHLAJW','GQCARMRCQKBLPMWA','ZVBQUFITYGGNAAVKUAMG','BIN','MGRLXAFBVKJMZSIKZI','VBKDJUBHNWAS','NUZZTUGJVQVKYM'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CQGLORUCKTVNILVYBF'))\r\n%%\r\nnamec={'KRMMAQO','ZYQ','Y','JVBKJWEEIV','WPA','ZFGRNMWIHAABJ','OADLKMZGAV','NZVZWQW','DFCROJROCQJTMXHEPCP','UKWDMXAPLOQ','VLRMNKYEZXAKNDJDVAS','ZANHQCQOPBOBHQZLLKLO','OXNKHNJUBURGYP','ZVCANF','XJ','IXLVZSEP','FGICSRYYLBLOHXOUS','IFNXIETSAEZCZWME','GQJJHYQAISZYIXYEE','AARZ','JHVSGPGNYHWWCSSN','PJ','MJENAEESKEIZCVTJF','AIOCDJJMFNVBMSO','OLXYHBLJXXLTLDJZ','EEHQKUDZ','KAXVPRUJVY','KOZVNWI','MYEOHESCNYHLJQBSAM','DAQKJKIOCCJGJDLK','H','DRZACTYP','PQBXFPZHGFPA','OTQFQTOFPO','FZXMQIRBZZXYBBQKHOVY','IFFUCESAOGVY','RLMEMFHF','VRNEJHIFTMDKGD','JCFEDDHIIZ','RIXQXPNUFZQHXTCKVI','MDJLLSJCNTOVIWG','FUXFUQ','JLATDEWMQZAZTOQIU','IMGYRDGKASTQAETTHYDM','UMJSFJIFSUL','AGCCG','VW','VACYFIZMP','BVGBQOHMGNOILADIV','IY','CVRUJAFF','LQWTWBEIHHFHCN','Y','OD'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'RIXQXPNUFZQHXTCKVI'))\r\n%%\r\nnamec={'BNQDWNHIZMZIYPJDXE','ZOUOKBHYDE','DZDXCESGTXGU','CNPVALPBNO','J','KHAFDXAHDGWVEECG','RSJBZKGBLGKIQKIONXO','M','LEWPVZQLG','MBFTDI','FIDPIR','BXKUGBCNI','EEIPKZTDXIXZE','VTK','KECUYATRYYZQRFBMQFF','ZMXDTZEVLPUWCOQWGT','DNOUKLHFKLFZPQNLHEJS','LOFTEQNLJQS','TATOHFSMCTXOSEP','ZMLLDLCIOLZDZO','HUYESE','MPCDGQSVDWDOSGQUTNPH','COKSSOTC','VUYTMLCGIH','RDQGJCNGTIHAVTA','LM','ALUDNJ','NQFALWUQETMQ','LQDFSQIB','BMFR','WWDXEZOQLKFQZMV','KJIKCYLOAXOQB','CTHLWRQAOLUS','MNBHMFGMUMCGLFP','IYZWIMPQRLSBWTJRM','RKYPSYJFIJEULGHORP','JGPRZUE','HNBCVUSAZC','IWYOIEQQXRWI','JDFZFLCIJYSRFKEMJ','QRJ','USNVNLTIIWAQFJKB','VLEBPQDTDUSERAWWOZ','ERZEDX','FQEJEZ','YUFEZXEJHKHDFH','XDZIAXZFTOGJL','CFGIJBXFCAQCDV','C','PXQUQLZRXQYDWYEPR','KJKMFXELPRBAE','ST'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'VLEBPQDTDUSERAWWOZ'))\r\n%%\r\nnamec={'WVNPIGSHWNWEYZXVGD','UMGSKUBDCBPB','UMNZDCMZFVJDMV','W','U','KOOAIPPBAGWE','SIFAGBRDPHSJ','IVWKHKFOSGHQ','LTJLYBSSSVDPUWDVZDNR','KQYI','EOAUFDJGPDHZNI','DAUZBZFOGVAOOEUGQ','KZYRVCMEUUNPLNNYJOT','UZNBE','OCCMVSMMDJ','YWJFF','GLM','GC','AGDOIINNERJIZCS','YTVWSC','AHPAFSGFKOKXDPKE','RRIDQBXZCWCYUX','WFHCU','F','UOQWACOSPL','JDRWAT','OSVWNDCLALXOKVENJ','UUKW','SHUY','JHWDU','DXTKXVJOOQVEGBWVG','DFPIHXSJRV','XRUYYIIKNQXBA','IAKFHSMWGEKHVYK','R','DMNLUXLZCE','CKYUCCAHYLGCVIPISM','VZTC','V','JPBGCNJEGIUFTRDNIEJ','INTAI','YVPIHIHBV','FTYRQFMSQJGCRUVJA','TVDUULV','FSOVW','ZEGWUPW','LOEBGW','TZDKAXPMSKNGSM','AKPXNTPEQX','UPMFMQWSJPKAHNPUEXB','JAKUMRCRKNVXLFMOBC','IPWVL','KEUGMAZSUM','ASBULEZPSS','ZTDRKHGMDKJADZVRAAJ','XVQGIFQDY','MTS','WGLYHONYFBQCVYRLKQT','CPXOTZIU','OBENPRAUK','RFNAWDB','X','DACJTOFEPEFTJUJCBSLG','MFHHGIWHDWCMMQ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'KZYRVCMEUUNPLNNYJOT'))\r\n%%\r\nnamec={'EPLXOSPBMNFLSVDG','DTILFFBMPHCWF','LUK','NOBSCFX','EPDPPGUNHYLPCFULNBX','UGVQYO','LZKFJXFD','MYLRRLUCBSYOESDSV','VSZ','TKPWUXBUS','C','DUG','YQNEOEZGP','ZVJZLKE','WO','YOZHALURQOQMUB','HXROEIQAIOX','DMI','LIBXFTJTFNCXJSRSYNL','STUDO','PWNS','HLVJXEDNUFBHXM','HBSREYCMRIAKP','ADRBV','BDKDKZXILBIUFDXJ','XCOIGOLXHGMAC','DMKYS','BTB','QGSIUWSKDFJB','CDYFIEAOOZHMEDKWDCE','XOPEJV','KBHOZF','ALGLCCLGGGIUKCQ','WNABLFRW','BOHFVKPNFNU','ZWIDLE','QMXHBR','AKAPNCG','PLZFRUTRXBV','JRGWCGXXX','XDCPLHRRUCVPAAGLRVEA','OJQGLWVHXMD','OQOXGIGW','GMPTQHVAQAU','MQWFZORJAXYHCBV','HLG','WXWOXBOONMBUHHHI','BDGZTDIKBTZHENSJDO','QHUXOUYONUI','KSKPVDEQKJMXTN','ENFDUSQOYV','OVSQKUAAGDBKVX','RMUYDACJYXNBOXJR','GNE'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MQWFZORJAXYHCBV'))\r\n%%\r\nnamec={'MNXBEGBOOMKSS','AAZTPDMQEO','TUHWOCETRPPADJKVLKNG','JEHFKQYAQRG','N','TLCFCBFDHORCMRBV','ASYIFQQOXKIANN','GKABRTPVTGOKT','VFXWJ','HJGWWTQVVQW','FAETTKDWWSNDBLELSCC','AQMLDDCLSCJSHBXXLEV','FCLINFL','GP','WTUEHONR','DYPQIAUVGQJEPH','NRATMPUOKXBRU','MHJSZZUW','FSKSG','A','PPYEIGVJYDSMHVS','RIFD','WPHURHYCPKGNTNUW','LCRCTZIPWHHERMNTTYSC','XURWMZEPVSJJSYXP','BLUSPZELJQCTEQ','WLAJ','SKUEFNQJICEI','QRFYMQU','JFCHFLSXNANRFGEEHMG','MFTWKGYFBSEG','WVMOEVUWTQ','UDADALRK','NOHSWOJPOYLQRFFKBF','BRWEECKSUSNYIUVO','PLXCUMWAXCKL','HAARTVR','VRQNBTF','WRR','NJO','QJKWILPW','PJYHTCUMVKREZVJKW','JVKLYYTJHTHXUX','JZMWROBNJKB','ECCGFSWZPYCXRQRJSMV','D','HYAKZTGTNEZBU','MOGYEXDWFRYPBOOCYJN','USEPLXLFEHD','LBYKMNZCO','Q','EZNQBXXMQ','XO','WRXOQWATENOHYXVL','KT','DMRM','LUDNFTONTDKYJROC','RNXTYWHQYTWPO','MGRSTVXBIHLLGQFRLZB','L','EWULHSYNE','QMTQMIXGOUXRQYT','XMF','LPVQNZCCNSHCFTCY','IAZXRLSGWCWHX','PFSBLIFZTIU','QMSCWVUOWMCWJC','LRFRUSZNRDZLMIOWVM','KZCEBBILHZAFHSCYNG','YKTQYLUYWTRZPLPWZCOX','DTMTYSITUU','OXJOKUBFMYNLQLEZGP','ZKRZVHHK','BGBK','MBVJDMWHZDY','TXSVLOEKVOYO','ZZCSPJRDEVLMN','PVDJCJFNXTHXQCRQUC','VYDDKBOOKJLEWEPN','IRPTLCKJYXZSZLB','LSFPOTLVCP','BO','JZTLFYQRTPVRYOWBULN','FCEKHALVASPR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'TUHWOCETRPPADJKVLKNG'))\r\n%%\r\nnamec={'FLUEJJOMBLRDXEKQCCRU','LIYYDJ','OGTSXHBKSCDOEMQGVDC','SGWHEQZX','WUBXLLDNHSJT','PKDSEKIWIAMFRNY','GIW','XELJSPLL','BPHRHTSHY','DUXFYRXHOZRILQBS','WJHWDWVGEGLBABTS','SYLQBFT','HDFKJSBPPTQAUKGPEKE','LBJVIZZFNWB','BLQJPEPKXZIIWS','MWN','NEAINWUGPYOQM','G','HQCZZDRFPV','VNDZGDRZRBIXIYIZGA','PHKKYNLYUDODIR','GUICHJCXRXEYPCWAMJTZ','NHPLQGCWTKQ','TSDGDBDXDSXHMYJRBZH','LNGZYQMNWQSFVWI','RQPLKZDUFIXLOKF','WKUHTIYVUYNPHZ','UFZUFBPGKWRTUL','CAB','IJ','ZZQQALONCTOJUOOJE','DPDASWBKPMHTUBAEVK','SAKYBOLEFTAHWCZMU','UTTKNLHEVDO','NIWTMTZBTXIL','FJK','BAGMDT','KYPNASBVHNKYGJG','XEHDPYEHBRKUD','GSDRVABVNDP','ZZRKWNVKGW','RFWHDCDCMQCNHHQPSLCG','MU','STTUZEBEBPERPXEPBVW','YYRZHPQOBS','OOUYNTPVFUGGDZO','PMMAVJTPULZORKLP','GNJETMYHJ','MQNQRERGPCTSUZGAWRH','GG','PCSTZVH','H','GZPOECJ','IBWSJPQHVC','JNGEERMGZUNUFJJTJAUX','VIEVIXMGL','KURQLWQTHSKSKBUOU','NDXNTI','WBPHX','QEME','XXRQF','ARCFUSSRHARNWQKXXJ','ZMKVSZGFLLFEHJTRU','ZMHIEPKIU','GHRIVF','DHBID','HFKRRAMHMDWXWWFUMGZD','XGYYOU','OZSBMKFLSRGCCRHR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GUICHJCXRXEYPCWAMJTZ'))\r\n%%\r\nnamec={'KMQK','NOAQIPAOFRHAMMR','YVCDENPUPB','VYENYLJYROVQEIPEM','NCGEJIBYURR','ALNNGYOAM','N','YNSSDMYHIDH','TUTLKDZIBAC','OWITMHACTQCUTJW','VLUOBXBJNDB','RPARMIEFDQVGDGDB','KPRDR','JMUYVFQAY','BE','JBNMLITMCTMZAEKU','X','YMUZDIVKR','XWNEAZIYQGLHH','TUWLIMXZHB','SKALCOICJQTZGZZYQ','KAFVJJOERHNSNIMTI','UZIXNKITGATLNNUYAH','UYGP','XPIGOTGDHMDQJQ','DVCKEHHQCF','JUGYEISLDRPGBI','AHR','ZUBVTBHVUWTS','SPQMHDL','FTGF','PTFFMZFEIERBXJDMSBA','I','DOJOUGCRHDAUBUB','N','HPTUDMUZNYZMJCGGL','BLCVBZECFRLMCACF','WSBMPQ','VOWCMYG','HHBLB','MKXFNVK','F','VKFSSVBDFEPCVJWKKBX','Z','FIAZFRPZE','VFROTTGAJ','X','ZNPZNKADTQ','J','UAL','RRXOTDRSERENERUXX','S','IBN','VFBROKKMYVA','JTXXXCTWZMOGQWHWMFQM','SQBKRULGFVWXHHTL','ZTOCLWJYANBT','DVIPYGNXJIVQ','CTGTIU','UJFVZGZRVISC','MRONZFKHKJSVJIW','RMZGHFTHXSJJATX','OERO','PDRQDKX','TFMRFR','MKZOUDFBJEGXMWBHCR','MC'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MKZOUDFBJEGXMWBHCR'))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":19,"test_suite_updated_at":"2017-02-26T21:57:50.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2017-02-26T21:47:39.000Z","updated_at":"2026-01-30T12:45:57.000Z","published_at":"2017-02-26T21:53:21.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/6304486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2017 Kickstart Leader\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. This is the first 61 small cases with no spaces in names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGoogle Code Jam 2017 Qualifier\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e is March 7, 2017. Typically four challenges with small and large aspects with 27 hours to complete.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe GJam story is to determine the rightful leader. The leader is the person whose name utilizes the most unique letters, spaces do not count, and if two or more people are tied then the leader is the one whom comes first alphabetically, with space preceding A, given a list of 100 or fewer names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [names], a cell array of names using only A thru Z; max 100 names\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [Leader], a string of the name of the leader\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [names] [Leader]; {'ADAM' 'BOB' JOHNSON'} ['JOHNSON']\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor the example the first two have three and two unique letters while JOHNSON has five unique letters 'JOHNS'.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eTheory:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Brute force processing appears to be the way. Methodical processing and function usage can minimize code size.\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/6304486/scoreboard#vf=1\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam Kickstart solutions(C++,Python)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":552,"title":"Cell Array Inception?","description":"Jimmy is a beginning MATLAB student who is trying to read in a text file and build a cell array of strings, where A{k} is the kth line of the text file.  He writes the following code, and is confused when it doesn't work:\r\n\r\n  fid = fopen('myfile.txt','r');\r\n  A = {};\r\n  while ~feof(fid)\r\n      A = {A fgetl(fid)};\r\n  end\r\n\r\nWhat he finds is that after the loop, A only has two components, no matter what the file length.  The second component is the last line of the file, and the first component is another cell array!  He then realizes that A{1} also has two components, where the second component is the second-last line of the file and the first component is yet another cell array!\r\n\r\nYour task: write a function to undo this \"cell-array Inception\" and return the proper cell array of strings that Jimmy is looking for.  Implement B = unInception(A), where A is the cell array as returned by Jimmy's code.\r\n","description_html":"\u003cp\u003eJimmy is a beginning MATLAB student who is trying to read in a text file and build a cell array of strings, where A{k} is the kth line of the text file.  He writes the following code, and is confused when it doesn't work:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003efid = fopen('myfile.txt','r');\r\nA = {};\r\nwhile ~feof(fid)\r\n    A = {A fgetl(fid)};\r\nend\r\n\u003c/pre\u003e\u003cp\u003eWhat he finds is that after the loop, A only has two components, no matter what the file length.  The second component is the last line of the file, and the first component is another cell array!  He then realizes that A{1} also has two components, where the second component is the second-last line of the file and the first component is yet another cell array!\u003c/p\u003e\u003cp\u003eYour task: write a function to undo this \"cell-array Inception\" and return the proper cell array of strings that Jimmy is looking for.  Implement B = unInception(A), where A is the cell array as returned by Jimmy's code.\u003c/p\u003e","function_template":"function B = unInception(A)\r\n  B = A;\r\nend","test_suite":"%%\r\nx = {{{{{{{{} 'hello'} 'world'} 'this'} 'is'} 'a'} 'string'} 'array'};\r\ny_correct = {'hello' 'world' 'this' 'is' 'a' 'string' 'array'};\r\nassert(isequal(unInception(x),y_correct))\r\n%%\r\nx = {};\r\ny_correct = {};\r\nassert(isequal(unInception(x),y_correct))\r\n%%\r\nx = {{} ''};\r\ny_correct = {''};\r\nassert(isequal(unInception(x),y_correct))\r\n%%\r\nx = {{{{} 'hello'} ''} 'yeah'};\r\ny_correct = {'hello' '' 'yeah'};\r\nassert(isequal(unInception(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":3,"comments_count":0,"created_by":1537,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":30,"test_suite_updated_at":"2012-04-03T04:47:52.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-04-03T04:47:52.000Z","updated_at":"2025-12-29T14:38:50.000Z","published_at":"2012-04-03T04:47:52.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eJimmy is a beginning MATLAB student who is trying to read in a text file and build a cell array of strings, where A{k} is the kth line of the text file. He writes the following code, and is confused when it doesn't work:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[fid = fopen('myfile.txt','r');\\nA = {};\\nwhile ~feof(fid)\\n    A = {A fgetl(fid)};\\nend]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWhat he finds is that after the loop, A only has two components, no matter what the file length. The second component is the last line of the file, and the first component is another cell array! He then realizes that A{1} also has two components, where the second component is the second-last line of the file and the first component is yet another cell array!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eYour task: write a function to undo this \\\"cell-array Inception\\\" and return the proper cell array of strings that Jimmy is looking for. Implement B = unInception(A), where A is the cell array as returned by Jimmy's code.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43608,"title":"Namespace","description":"Create a set of n variable names 'a_1',...,'a_n'\r\n\r\nThe result should be a column oriented cell array of strings.\r\n\r\nExample input:\r\n\r\n  n=5\r\n\r\nExample output: \r\n\r\n  {'a_1';'a_2';'a_3';'a_4';'a_5'}","description_html":"\u003cp\u003eCreate a set of n variable names 'a_1',...,'a_n'\u003c/p\u003e\u003cp\u003eThe result should be a column oriented cell array of strings.\u003c/p\u003e\u003cp\u003eExample input:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003en=5\r\n\u003c/pre\u003e\u003cp\u003eExample output:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e{'a_1';'a_2';'a_3';'a_4';'a_5'}\r\n\u003c/pre\u003e","function_template":"function varnames = your_fcn_name(n)\r\n  varnames = {};\r\nend","test_suite":"%%\r\nx = 10;\r\ny_correct = {'a_1';'a_2';'a_3';'a_4';'a_5';'a_6';'a_7';'a_8';'a_9';'a_10'};\r\nassert(isequal(your_fcn_name(x),y_correct))\r\n\r\n%%\r\nx = 6;\r\ny_correct = {'a_1';'a_2';'a_3';'a_4';'a_5';'a_6'};\r\nassert(isequal(your_fcn_name(x),y_correct))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":29461,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":33,"test_suite_updated_at":"2016-12-05T18:26:51.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-24T15:52:10.000Z","updated_at":"2026-04-07T18:33:05.000Z","published_at":"2016-10-24T15:52:10.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCreate a set of n variable names 'a_1',...,'a_n'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe result should be a column oriented cell array of strings.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample input:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[n=5]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample output:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[{'a_1';'a_2';'a_3';'a_4';'a_5'}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43622,"title":"Leading-zero padding","description":"Write a function that will add leading-zero padding to all numbers in the supplied vector, as necessary, based on the maximum number length. For example, for x = 1:10, return:\r\n\r\n  y = {'01';'02';'03';'04';'05';'06';'07';'08';'09';'10'}\r\n\r\nSee the test suite for additional examples.","description_html":"\u003cp\u003eWrite a function that will add leading-zero padding to all numbers in the supplied vector, as necessary, based on the maximum number length. For example, for x = 1:10, return:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ey = {'01';'02';'03';'04';'05';'06';'07';'08';'09';'10'}\r\n\u003c/pre\u003e\u003cp\u003eSee the test suite for additional examples.\u003c/p\u003e","function_template":"function y = zeroPadding(x)\r\n  y = '??';\r\nend","test_suite":"%%\r\nx = 1:10;\r\ny_correct = {'01';'02';'03';'04';'05';'06';'07';'08';'09';'10'};\r\nassert(isequal(zeroPadding(x),y_correct))\r\n\r\n%%\r\nx = 1:4;\r\ny_correct = {'1';'2';'3';'4'};\r\nassert(isequal(zeroPadding(x),y_correct))\r\n\r\n%%\r\nx = 90:100;\r\ny_correct = {'090';'091';'092';'093';'094';'095';'096';'097';'098';'099';'100'};\r\nassert(isequal(zeroPadding(x),y_correct))\r\n\r\n%%\r\nx = [1 4 42 100 7400 99 301 2];\r\ny_correct = {'0001';'0004';'0042';'0100';'7400';'0099';'0301';'0002'};\r\nassert(isequal(zeroPadding(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":1,"created_by":29461,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":30,"test_suite_updated_at":"2016-12-07T18:51:06.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-25T15:53:52.000Z","updated_at":"2025-11-01T11:13:01.000Z","published_at":"2016-10-25T15:53:52.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a function that will add leading-zero padding to all numbers in the supplied vector, as necessary, based on the maximum number length. For example, for x = 1:10, return:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[y = {'01';'02';'03';'04';'05';'06';'07';'08';'09';'10'}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSee the test suite for additional examples.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2953,"title":"Split array into pieces according to corresponding array","description":"An array x of length n has values 1...m with each value appearing at least once. The values are sorted (n\u003e=m).\r\n\r\n  \r\n\r\nA second array y of the same size should be split into elements of a cell array c such that the first element of c contains all elements of y at the positions where x=1 and so on: \r\n\r\n  x=   [ 1  1  1  2  2  3  3  3  3];\r\n  y=   [10 52 12 58 21 43 89 27 98];\r\n  c{1}=[10 52 12];\r\n  c{2}=[         58 21];\r\n  c{3}=[               43 89 27 98];","description_html":"\u003cp\u003eAn array x of length n has values 1...m with each value appearing at least once. The values are sorted (n\u0026gt;=m).\u003c/p\u003e\u003cp\u003eA second array y of the same size should be split into elements of a cell array c such that the first element of c contains all elements of y at the positions where x=1 and so on:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ex=   [ 1  1  1  2  2  3  3  3  3];\r\ny=   [10 52 12 58 21 43 89 27 98];\r\nc{1}=[10 52 12];\r\nc{2}=[         58 21];\r\nc{3}=[               43 89 27 98];\r\n\u003c/pre\u003e","function_template":"function c = split_array(x,y)\r\n  \r\nend","test_suite":"%%\r\nx=[ 1  1  1  2  2  3  3  3  3];\r\ny=[10 52 12 58 21 43 89 27 98];\r\nc={[10 52 12],[58 21],[43 89 27 98]};\r\nassert(isequal(split_array(x,y),c))\r\n\r\n%%\r\nx=1:5;\r\nc=num2cell(1:5);\r\nassert(isequal(split_array(x,x),c));\r\n\r\n%%\r\nx=[1 1 1 1 1 2 3 3 3 3 3];\r\ny='Hello world';\r\nc={'Hello' ' ' 'world'}\r\nassert(isequal(split_array(x,y),c));\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":971,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":60,"test_suite_updated_at":"2015-02-05T18:04:21.000Z","rescore_all_solutions":false,"group_id":39,"created_at":"2015-02-05T18:02:26.000Z","updated_at":"2026-04-02T08:17:58.000Z","published_at":"2015-02-05T18:04:21.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAn array x of length n has values 1...m with each value appearing at least once. The values are sorted (n\u0026gt;=m).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA second array y of the same size should be split into elements of a cell array c such that the first element of c contains all elements of y at the positions where x=1 and so on:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[x=   [ 1  1  1  2  2  3  3  3  3];\\ny=   [10 52 12 58 21 43 89 27 98];\\nc{1}=[10 52 12];\\nc{2}=[         58 21];\\nc{3}=[               43 89 27 98];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1731,"title":"Text File Read: 64 bit data set","description":"This Challenge is to read a text file that has vary large integers up to 2e18, typical for Google Code Jam. These values are well within the bounds of uint64.\r\nThe data is an array of Q pairs.\r\nInput: [Q, fname] The number of lines in the file and its filename.\r\nOutput: M a uint64 matrix of size(Q,2)\r\nExample:\r\nInput: {4, 'Cody_64.txt']\r\nThe text file:\r\n308436464205151562 1850618785230909388\r\n373665302816212423 1494661211264849698\r\n760961177192651897 1521922354385303795\r\n1 2000000000000000000\r\n\r\nOuput: A uint64 (4,2) matrix to full precision.\r\nNote of Warning:\r\nThe fscanf function with %ul may not succeed, as of 7/20/2013.\r\nThe result window has a case showing the function output\r\nRelated Challenges:\r\n1) Bullseye Large Numbers r\u003c1E18, P\u003c2E18\r\n2) Super Large Numbers \u003e2^64  (Java BigInteger methods)","description_html":"\u003cdiv style = \"text-align: start; line-height: 20px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: normal; text-decoration: none; white-space: normal; \"\u003e\u003cdiv style=\"display: block; min-width: 0px; padding-top: 0px; vertical-align: baseline; \"\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003eThis Challenge is to read a text file that has vary large integers up to 2e18, typical for\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"/#null\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003eGoogle Code Jam\u003c/span\u003e\u003c/span\u003e\u003c/a\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003e. These values are well within the bounds of uint64.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003eThe data is an array of Q pairs.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"font-weight: bold; \"\u003eInput:\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003e [Q, fname] The number of lines in the file and its filename.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"font-weight: bold; \"\u003eOutput:\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003e M a uint64 matrix of size(Q,2)\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"font-weight: bold; \"\u003eExample:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-bottom: 10px; margin-left: 3px; margin-right: 3px; margin-top: 10px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003eInput: {4, \u003c/span\u003e\u003cspan style=\"border-block-end: 0px none rgb(170, 4, 249); border-block-start: 0px none rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end: 0px none rgb(170, 4, 249); border-inline-start: 0px none rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration-color: rgb(170, 4, 249); \"\u003e'Cody_64.txt'\u003c/span\u003e\u003cspan style=\"margin-right: 0px; \"\u003e]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003eThe \u003c/span\u003e\u003cspan style=\"border-block-end: 0px none rgb(170, 4, 249); border-block-start: 0px none rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end: 0px none rgb(170, 4, 249); border-inline-start: 0px none rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration-color: rgb(170, 4, 249); \"\u003etext file:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e308436464205151562 1850618785230909388\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e373665302816212423 1494661211264849698\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e760961177192651897 1521922354385303795\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e1 2000000000000000000\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003eOuput: A uint64 (4,2) matrix \u003c/span\u003e\u003cspan style=\"border-block-end: 0px none rgb(170, 4, 249); border-block-start: 0px none rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end: 0px none rgb(170, 4, 249); border-inline-start: 0px none rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration-color: rgb(170, 4, 249); \"\u003eto full precision.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 10px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"font-weight: bold; \"\u003eNote of Warning:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003eThe fscanf function with %ul may not succeed, as of 7/20/2013.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"\"\u003eThe result window has a case showing the function output\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-bottom: 9px; margin-left: 4px; margin-right: 10px; margin-top: 2px; text-align: left; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"display: inline; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; \"\u003e\u003cspan style=\"font-weight: bold; \"\u003eRelated Challenges:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-bottom: 10px; margin-left: 3px; margin-right: 3px; margin-top: 10px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e1) Bullseye \u003c/span\u003e\u003cspan style=\"border-block-end: 0px none rgb(170, 4, 249); border-block-start: 0px none rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end: 0px none rgb(170, 4, 249); border-inline-start: 0px none rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration-color: rgb(170, 4, 249); \"\u003eLarge Numbers r\u0026lt;1E18\u003c/span\u003e\u003cspan style=\"margin-right: 0px; \"\u003e, P\u0026lt;2E18\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-inline-end: 1px solid rgb(233, 233, 233); border-inline-start: 1px solid rgb(233, 233, 233); border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-height: 18px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"border-inline-end: 0px none rgb(0, 0, 0); border-inline-start: 0px none rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-right: 45px; min-height: 0px; padding-left: 0px; tab-size: 4; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-right: 0px; \"\u003e2) Super \u003c/span\u003e\u003cspan style=\"border-block-end: 0px none rgb(170, 4, 249); border-block-start: 0px none rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end: 0px none rgb(170, 4, 249); border-inline-start: 0px none rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration-color: rgb(170, 4, 249); \"\u003eLarge Numbers \u0026gt;2^64\u003c/span\u003e\u003cspan style=\"margin-right: 0px; \"\u003e  \u003c/span\u003e\u003cspan style=\"border-block-end: 0px none rgb(170, 4, 249); border-block-start: 0px none rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end: 0px none rgb(170, 4, 249); border-inline-start: 0px none rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration-color: rgb(170, 4, 249); \"\u003e(Java BigInteger methods)\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function [m]=read_input64(Q,fn)\r\n m=zeros(Q,2,'uint64');\r\nend","test_suite":"%%\r\nfid=fopen('Cody_64.txt','w');\r\n fprintf(fid,'%s\\n','308436464205151562 1850618785230909388');\r\n fprintf(fid,'%s\\n','760961177192651897 1521922354385303795');\r\n fprintf(fid,'%s\\n','23875933057623902 1098292920650700527');\r\n fprintf(fid,'%s\\n','1000 2000000000000000000');\r\nfclose(fid);\r\n%%\r\n% This section has no assert to show the values being returned\r\nQ=4;\r\nfn='Cody_64.txt';\r\nm=read_input64(Q,fn)\r\n%%\r\nQ=4;\r\nfn='Cody_64.txt';\r\nm=read_input64(Q,fn)\r\nm_exp=[uint64(308436464205151562) uint64(1850618785230909388);uint64(760961177192651897) uint64(1521922354385303795);uint64(23875933057623902) uint64(1098292920650700527);1000 2000000000000000000];\r\nassert(isequal(m,m_exp));\r\n%%\r\nQ=4;\r\nm_exp=randi(2^31,Q,2);\r\nfn='Cody_64a.txt';\r\nfid=fopen(fn,'w');\r\nfor i=1:Q\r\n fprintf(fid,'%s %s\\n',num2str(m_exp(i,1)),num2str(m_exp(i,2)));\r\nend\r\nfclose(fid);\r\nm=read_input64(Q,fn);\r\nassert(isequal(m,m_exp))\r\n%%\r\nQ=8;\r\nm_exp=randi(2^31,Q,2)*2^19;\r\nfn='Cody_64.txt';\r\nfid=fopen(fn,'w');\r\nfor i=1:Q\r\n fprintf(fid,'%s %s\\n',num2str(m_exp(i,1)),num2str(m_exp(i,2)));\r\nend\r\nfclose(fid);\r\nm=read_input64(Q,fn);\r\nassert(isequal(m,m_exp))\r\n\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":4,"created_by":3097,"edited_by":26769,"edited_at":"2022-04-12T15:26:08.000Z","deleted_by":null,"deleted_at":null,"solvers_count":13,"test_suite_updated_at":"2022-04-12T15:26:08.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-07-21T01:54:32.000Z","updated_at":"2022-04-12T15:26:08.000Z","published_at":"2013-07-21T02:56:48.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is to read a text file that has vary large integers up to 2e18, typical for\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGoogle Code Jam\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. These values are well within the bounds of uint64.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe data is an array of Q pairs.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [Q, fname] The number of lines in the file and its filename.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e M a uint64 matrix of size(Q,2)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input: {4, 'Cody_64.txt']\\nThe text file:\\n308436464205151562 1850618785230909388\\n373665302816212423 1494661211264849698\\n760961177192651897 1521922354385303795\\n1 2000000000000000000\\n\\nOuput: A uint64 (4,2) matrix to full precision.]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eNote of Warning:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe fscanf function with %ul may not succeed, as of 7/20/2013.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe result window has a case showing the function output\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eRelated Challenges:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[1) Bullseye Large Numbers r\u003c1E18, P\u003c2E18\\n2) Super Large Numbers \u003e2^64  (Java BigInteger methods)]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":1040,"title":"Create a Cell array of month-end date strings within a provided date range","description":"This is a variation of \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range Get an array of month-ends by T.D.\u003e where the result is now a cell array of date strings.\r\n\r\nFor example:\r\n\r\n  date_start = datenum('10 Nov 2010');\r\n  date_end   = datenum('10 Feb 2011');\r\n  [dates_me{1:3}]   = month_ends(date_start, date_end); \r\n  dates_me\r\n  dates_me = \r\n     '30-Nov-2010' '31-Dec-2010' '31-Jan-2011'\r\n  \r\n  The test suite uses\r\n  [y{1:3}]=month_ends(d1,d2);\r\n  \r\n  Is there a way to receive variable number of cells from a function call?\r\n\r\nJ.G pointed out a better Cell array implementation that does not use varargout.\r\nThis revised version is \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1044-create-a-cell-array-of-month-end-date-strings-within-a-date-range Challenge 1044\u003e\r\n\r\nRelated challenge is \u003chttp://www.mathworks.com/matlabcentral/cody/problems/703-usage-of-varargout Usage of varargout\u003e.\r\n\r\n\r\n\r\n\r\n","description_html":"\u003cp\u003eThis is a variation of \u003ca href=\"http://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range\"\u003eGet an array of month-ends by T.D.\u003c/a\u003e where the result is now a cell array of date strings.\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003edate_start = datenum('10 Nov 2010');\r\ndate_end   = datenum('10 Feb 2011');\r\n[dates_me{1:3}]   = month_ends(date_start, date_end); \r\ndates_me\r\ndates_me = \r\n   '30-Nov-2010' '31-Dec-2010' '31-Jan-2011'\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eThe test suite uses\r\n[y{1:3}]=month_ends(d1,d2);\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eIs there a way to receive variable number of cells from a function call?\r\n\u003c/pre\u003e\u003cp\u003eJ.G pointed out a better Cell array implementation that does not use varargout.\r\nThis revised version is \u003ca href=\"http://www.mathworks.com/matlabcentral/cody/problems/1044-create-a-cell-array-of-month-end-date-strings-within-a-date-range\"\u003eChallenge 1044\u003c/a\u003e\u003c/p\u003e\u003cp\u003eRelated challenge is \u003ca href=\"http://www.mathworks.com/matlabcentral/cody/problems/703-usage-of-varargout\"\u003eUsage of varargout\u003c/a\u003e.\u003c/p\u003e","function_template":"function varargout = month_ends(date_start,date_end)\r\n y{1}=datestr(date_start,'dd-mmm-yyyy');\r\n y{2}=datestr(date_start,'dd-mmm-yyyy');\r\n y{3}=datestr(date_start,'dd-mmm-yyyy');\r\n  \r\n varargout=y;\r\n    \r\nend\r\n","test_suite":"%%\r\nd1 = datenum('10-Nov-2010');\r\nd2 = datenum('10-Feb-2011');\r\ny_correct = {'30-Nov-2010','31-Dec-2010','31-Jan-2011'};\r\n[y{1:3}]=month_ends(d1,d2);\r\nassert(isequal(y,y_correct))\r\n\r\n%%\r\nd1 = datenum('31-Jan-2000');\r\nd2 = datenum('10-Apr-2000');\r\ny_correct = {'31-Jan-2000','29-Feb-2000','31-Mar-2000'};\r\n[y{1:3}]=month_ends(d1,d2);\r\nassert(isequal(y,y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":1,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":28,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2012-11-20T03:39:37.000Z","updated_at":"2025-12-31T11:52:42.000Z","published_at":"2012-11-20T03:52:32.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis is a variation of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGet an array of month-ends by T.D.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e where the result is now a cell array of date strings.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[date_start = datenum('10 Nov 2010');\\ndate_end   = datenum('10 Feb 2011');\\n[dates_me{1:3}]   = month_ends(date_start, date_end); \\ndates_me\\ndates_me = \\n   '30-Nov-2010' '31-Dec-2010' '31-Jan-2011'\\n\\nThe test suite uses\\n[y{1:3}]=month_ends(d1,d2);\\n\\nIs there a way to receive variable number of cells from a function call?]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eJ.G pointed out a better Cell array implementation that does not use varargout. This revised version is\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1044-create-a-cell-array-of-month-end-date-strings-within-a-date-range\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eChallenge 1044\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated challenge is\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/703-usage-of-varargout\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eUsage of varargout\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":51675,"title":"Add 100","description":null,"description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 258px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 129px; transform-origin: 407px 129px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 300.792px 7.91667px; transform-origin: 300.792px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eWith this problem, I have added 100 to Cody. In a way, this problem asks you to add 100 as well. \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 1.94167px 7.91667px; transform-origin: 1.94167px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 105px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 52.5px; text-align: left; transform-origin: 384px 52.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 375.983px 7.91667px; transform-origin: 375.983px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eWrite a function to add C, the Roman numeral for 100, to one word in a list to make another word in the list. For example, you can add C to “hair” to make “chair” or to “lie” to make “lice”, assuming that all of these words are in the list. Add only one C but consider target words with multiple C’s—e.g., you can add a C to “scare” to make “scarce”. The function should return a cell array \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 7.7px 7.91667px; transform-origin: 7.7px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-family: Menlo, Monaco, Consolas, \u0026quot;Courier New\u0026quot;, monospace; \"\u003ey1\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 247.417px 7.91667px; transform-origin: 247.417px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e with a list of original words sorted alphabetically and a corresponding cell array \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 7.7px 7.91667px; transform-origin: 7.7px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-family: Menlo, Monaco, Consolas, \u0026quot;Courier New\u0026quot;, monospace; \"\u003ey2\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 75.45px 7.91667px; transform-origin: 75.45px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e with a list of words with the letter added.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 21px; text-align: left; transform-origin: 384px 21px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 384px 7.91667px; transform-origin: 384px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e(And if you are going to go through the trouble of writing the code for C, you might as well make it work for any letter used in English.)\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 1.94167px 7.91667px; transform-origin: 1.94167px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 63px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 31.5px; text-align: left; transform-origin: 384px 31.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 59.9083px 7.91667px; transform-origin: 59.9083px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eAlthough 100 is an \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://static.simpsonswiki.com/images/thumb/9/97/Sweet_Seymour_Skinner%27s_Baadasssss_Song_-_chalkboard_gag.png/300px-Sweet_Seymour_Skinner%27s_Baadasssss_Song_-_chalkboard_gag.png\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"text-decoration: underline; text-decoration-line: underline; \"\u003earbitrary milestone\u003c/span\u003e\u003c/span\u003e\u003c/a\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 236.6px 7.91667px; transform-origin: 236.6px 7.91667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e, it’s as good a time as any to express gratitude to MathWorks and the Cody community. Thanks to all of you for solving my problems, challenging us with your own problems, and helping me improve my own programming and problem solving. \u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function [y1,y2] = addCetc(words,letter)\r\n%  words  = list of words \r\n%  letter = letter to be added\r\n%  y1     = original words to add the letters to (sorted alphabetically)\r\n%  y2     = words with the added letter (corresponding to y1)\r\n\r\n   y1 = f1(words,letter)\r\n   y2 = f2(words,letter)\r\nend","test_suite":"%%\r\nwords = {'chair' 'decoy' 'hair' 'junk' 'lice' 'lickspittle' 'lie' 'misdirection' 'scarce' 'scare' 'scars'};\r\nletter = 'c';\r\n[y1,y2] = addCetc(words,letter);\r\ny1_correct = {'hair' 'lie' 'scare'};\r\ny2_correct = {'chair' 'lice' 'scarce'};\r\nassert(isequal(y1,y1_correct) \u0026\u0026 isequal(y2,y2_correct))\r\n\r\n%%\r\nwords = {'addle' 'being' 'bedding' 'candor' 'deduce' 'deuce' 'drake' 'driven' 'educe' 'kin' 'kind' 'meal' 'medal' 'paddle' 'rake' 'riven'};\r\nletter = 'd';\r\n[y1,y2] = addCetc(words,letter);\r\ny1_correct = {'deuce' 'educe' 'kin' 'meal' 'rake' 'riven'};\r\ny2_correct = {'deduce' 'deduce' 'kind' 'medal' 'drake' 'driven'};\r\nassert(isequal(y1,y1_correct) \u0026\u0026 isequal(y2,y2_correct))\r\n\r\n%%\r\nwords = {'admit' 'ailing' 'conjure' 'ester' 'ginger' 'injure' 'inure' 'jailing' 'jeep' 'jester' 'jocular' 'joust' 'jowl' 'junction' 'major' 'object' 'ocular' 'oust' 'owl' 'sojourn' 'unction'};\r\nletter = 'j';\r\n[y1,y2] = addCetc(words,letter);\r\ny1_correct = {'ailing' 'ester' 'inure' 'ocular' 'oust' 'owl' 'unction'};\r\ny2_correct = {'jailing' 'jester' 'injure' 'jocular' 'joust' 'jowl' 'junction'};\r\nassert(isequal(y1,y1_correct) \u0026\u0026 isequal(y2,y2_correct))\r\n\r\n%%\r\nwords = {'ambush' 'bomb' 'chomp' 'chop' 'clammy' 'clay' 'demote' 'denote' 'embryo' 'famine' 'gamble' 'gable' 'hamper' 'iamb' 'jumble' 'kempt' 'lab' 'lamb' 'sampling' 'sapling' 'smolder' 'solder' 'trebling' 'trembling' 'unkempt' 'unkept'};\r\nletter = 'm';\r\n[y1,y2] = addCetc(words,letter);\r\ny1_correct = {'chop' 'gable' 'lab' 'sapling' 'solder' 'trebling' 'unkept'};\r\ny2_correct = {'chomp' 'gamble' 'lamb' 'sampling' 'smolder' 'trembling' 'unkempt'};\r\nassert(isequal(y1,y1_correct) \u0026\u0026 isequal(y2,y2_correct))\r\n\r\n%%\r\nwords = {'boy' 'boxy' 'context' 'deter' 'dexter' 'efflux' 'eternal' 'external' 'is' 'maim' 'maxim' 'sixty' 'taxes' 'xis'};\r\nletter = 'x';\r\n[y1,y2] = addCetc(words,letter);\r\ny1_correct = {'boy' 'deter' 'eternal' 'is' 'maim'};\r\ny2_correct = {'boxy' 'dexter' 'external' 'xis' 'maxim'};\r\nassert(isequal(y1,y1_correct) \u0026\u0026 isequal(y2,y2_correct))\r\n\r\n%%\r\nWORDS = {'abandon' 'ability' 'able' 'about' 'above' 'abroad' 'absence' 'absolute' 'absorb' 'abuse' 'academic' 'accept' 'access' 'accident' 'accompany' 'accomplish' 'according' 'acknowledge' 'acquire' 'across' 'act' 'action' 'active' 'activist' 'activity' 'actor' 'actress' 'actual' 'actually' 'ad' 'adapt' 'add' 'addition' 'additional' 'address' 'adequate' 'adjust' 'adjustment' 'administration' 'administrator' 'admire' 'admission' 'admit' 'advertising' 'advice' 'advise' 'adviser' 'advocate' 'affair' 'affect' 'afford' 'afraid' 'after' 'afternoon' 'again' 'against' 'age' 'agency' 'agenda' 'agent' 'aggressive' 'ahead' 'aid' 'aide' 'allow' 'ally' 'almost' 'alone' 'along' 'already' 'also' 'alter' 'alternative' 'although' 'always' 'amazing' 'among' 'amount' 'analysis' 'analyst' 'analyze' 'ancient' 'and' 'anger' 'angle' 'angry' 'animal' 'anniversary' 'announce' 'annual' 'another' 'answer' 'anticipate' 'anxiety' 'any' 'anybody' 'anymore' 'anyone' 'appoint' 'appointment' 'appreciate' 'approach' 'appropriate' 'approval' 'approve' 'approximately' 'architect' 'area' 'argue' 'argument' 'arise' 'arm' 'armed' 'army' 'around' 'arrange' 'arrangement' 'arrest' 'arrival' 'arrive' 'art' 'article' 'artist' 'artistic' 'as' 'aside' 'ask' 'asleep' 'aspect' 'assault' 'assert' 'assess' 'assessment' 'asset' 'assign' 'assignment' 'assist' 'assistance' 'assistant' 'associate' 'association' 'attention' 'attitude' 'attorney' 'attract' 'attractive' 'attribute' 'audience' 'author' 'authority' 'auto' 'available' 'average' 'avoid' 'award' 'aware' 'awareness' 'away' 'awful' 'baby' 'back' 'background' 'bad' 'badly' 'bag' 'bake' 'balance' 'ball' 'ban' 'band' 'bank' 'bar' 'barely' 'barrel' 'barrier' 'base' 'baseball' 'basic' 'basically' 'basis' 'basket' 'basketball' 'bathroom' 'because' 'become' 'bed' 'bedroom' 'beer' 'before' 'begin' 'beginning' 'behavior' 'behind' 'being' 'belief' 'believe' 'bell' 'belong' 'below' 'belt' 'bench' 'bend' 'beneath' 'benefit' 'beside' 'besides' 'best' 'bet' 'better' 'between' 'beyond' 'Bible' 'big' 'bike' 'bill' 'billion' 'bind' 'biological' 'bird' 'birth' 'birthday' 'boat' 'body' 'bomb' 'bombing' 'bond' 'bone' 'book' 'boom' 'boot' 'border' 'born' 'borrow' 'boss' 'both' 'bother' 'bottle' 'bottom' 'boundary' 'bowl' 'box' 'boy' 'boyfriend' 'brain' 'branch' 'brand' 'bread' 'break' 'breakfast' 'breast' 'brush' 'buck' 'budget' 'build' 'building' 'bullet' 'bunch' 'burden' 'burn' 'bury' 'bus' 'business' 'busy' 'but' 'butter' 'button' 'buy' 'buyer' 'by' 'campus' 'can' 'Canadian' 'cancer' 'candidate' 'cap' 'capability' 'capable' 'capacity' 'capital' 'captain' 'capture' 'car' 'carbon' 'card' 'care' 'category' 'Catholic' 'cause' 'ceiling' 'celebrate' 'celebration' 'celebrity' 'cell' 'center' 'central' 'century' 'CEO' 'ceremony' 'certain' 'certainly' 'chain' 'chair' 'chairman' 'challenge' 'chamber' 'champion' 'championship' 'chance' 'change' 'changing' 'channel' 'chapter' 'character' 'characteristic' 'characterize' 'charge' 'charity' 'chart' 'chase' 'cheap' 'check' 'Chinese' 'claim' 'class' 'classic' 'classroom' 'clean' 'closely' 'closer' 'clothes' 'clothing' 'cloud' 'club' 'clue' 'cluster' 'coach' 'coal' 'coalition' 'coast' 'coat' 'code' 'coffee' 'color' 'column' 'combination' 'combine' 'come' 'comedy' 'comfort' 'comfortable' 'command' 'commander' 'comment' 'commercial' 'commission' 'commit' 'commitment' 'committee' 'common' 'communicate' 'communication' 'community' 'company' 'compare' 'comparison' 'compete' 'competition' 'competitive' 'competitor' 'complain' 'complaint' 'complete' 'completely' 'complex' 'complicated' 'component' 'compose' 'composition' 'comprehensive' 'computer' 'concentrate' 'concentration' 'concept' 'concern' 'concerned' 'concert' 'conclude' 'conclusion' 'concrete' 'condition' 'conduct' 'conference' 'confidence' 'confident' 'confirm' 'conflict' 'confront' 'confusion' 'Congress' 'congressional' 'connect' 'connection' 'consciousness' 'consensus' 'consequence' 'conservative' 'consider' 'considerable' 'consideration' 'consist' 'consistent' 'constant' 'constantly' 'constitute' 'constitutional' 'construct' 'construction' 'consultant' 'consume' 'consumer' 'consumption' 'contact' 'contain' 'container' 'contemporary' 'content' 'contest' 'context' 'continue' 'continued' 'contract' 'contrast' 'contribute' 'contribution' 'control' 'controversial' 'controversy' 'convention' 'conventional' 'conversation' 'convert' 'conviction' 'convince' 'cook' 'cookie' 'cooking' 'cool' 'cooperation' 'cop' 'cope' 'copy' 'core' 'corn' 'corner' 'corporate' 'corporation' 'correct' 'correspondent' 'cost' 'cotton' 'couch' 'could' 'council' 'counselor' 'count' 'counter' 'country' 'county' 'couple' 'courage' 'course' 'court' 'cousin' 'cover' 'coverage' 'cow' 'crack' 'craft' 'crash' 'crazy' 'cream' 'create' 'creation' 'creative' 'creature' 'credit' 'crew' 'crime' 'criminal' 'crisis' 'criteria' 'critic' 'critical' 'criticism' 'criticize' 'crop' 'cross' 'crowd' 'crucial' 'cry' 'cultural' 'culture' 'cup' 'curious' 'current' 'currently' 'curriculum' 'custom' 'customer' 'cut' 'cycle' 'dad' 'daily' 'damage' 'dance' 'danger' 'dangerous' 'dear' 'death' 'debate' 'debt' 'decade' 'decide' 'decision' 'deck' 'declare' 'decline' 'decrease' 'deep' 'deeply' 'deer' 'defeat' 'defend' 'defendant' 'defense' 'defensive' 'deficit' 'define' 'definitely' 'definition' 'degree' 'delay' 'deliver' 'delivery' 'demand' 'democracy' 'Democrat' 'democratic' 'demonstrate' 'demonstration' 'deny' 'department' 'depend' 'dependent' 'depending' 'depict' 'depression' 'depth' 'deputy' 'derive' 'describe' 'description' 'desert' 'deserve' 'design' 'designer' 'desire' 'desk' 'desperate' 'despite' 'destroy' 'destruction' 'detail' 'detailed' 'detect' 'determine' 'develop' 'developing' 'development' 'device' 'devote' 'dialogue' 'die' 'diet' 'differ' 'difference' 'different' 'differently' 'difficult' 'disability' 'disagree' 'disappear' 'disaster' 'discipline' 'discourse' 'discover' 'discovery' 'discrimination' 'discuss' 'discussion' 'disease' 'dish' 'dismiss' 'disorder' 'display' 'dispute' 'distance' 'distant' 'distinct' 'distinction' 'distinguish' 'distribute' 'distribution' 'district' 'diverse' 'diversity' 'divide' 'division' 'divorce' 'DNA' 'do' 'doctor' 'document' 'dog' 'domestic' 'dominant' 'dominate' 'door' 'double' 'doubt' 'down' 'downtown' 'dozen' 'draft' 'drag' 'drama' 'dramatic' 'dramatically' 'draw' 'drawing' 'dream' 'dress' 'drink' 'drive' 'driver' 'drop' 'drug' 'dry' 'due' 'during' 'dust' 'duty' 'each' 'eager' 'ear' 'early' 'earn' 'earnings' 'earth' 'ease' 'easily' 'east' 'eastern' 'easy' 'eat' 'economic' 'economics' 'economist' 'economy' 'edge' 'edition' 'editor' 'educate' 'education' 'educational' 'educator' 'effect' 'effective' 'effectively' 'efficiency' 'efficient' 'effort' 'egg' 'eight' 'either' 'elderly' 'elect' 'election' 'electric' 'electricity' 'electronic' 'element' 'elementary' 'eliminate' 'elite' 'else' 'elsewhere' 'e-mail' 'embrace' 'emerge' 'emergency' 'emission' 'emotion' 'emotional' 'emphasis' 'emphasize' 'employ' 'employee' 'employer' 'employment' 'empty' 'enable' 'encounter' 'encourage' 'end' 'enemy' 'energy' 'enjoy' 'enormous' 'enough' 'ensure' 'enter' 'enterprise' 'entertainment' 'entire' 'entirely' 'entrance' 'entry' 'environment' 'environmental' 'episode' 'equal' 'equally' 'equipment' 'era' 'error' 'ethnic' 'European' 'evaluate' 'evaluation' 'even' 'evening' 'event' 'eventually' 'ever' 'every' 'everybody' 'everyday' 'everyone' 'everything' 'everywhere' 'evidence' 'evolution' 'evolve' 'exact' 'exactly' 'examination' 'examine' 'example' 'exceed' 'excellent' 'except' 'exception' 'exchange' 'exciting' 'executive' 'exercise' 'exhibit' 'exhibition' 'exist' 'existence' 'existing' 'expand' 'expansion' 'expect' 'expectation' 'expense' 'expensive' 'experience' 'experiment' 'expert' 'explain' 'explanation' 'explode' 'explore' 'explosion' 'expose' 'exposure' 'express' 'expression' 'extend' 'extension' 'extensive' 'extent' 'external' 'extra' 'extraordinary' 'extreme' 'extremely' 'eye' 'fabric' 'face' 'facility' 'fact' 'factor' 'factory' 'faculty' 'fade' 'fail' 'failure' 'fair' 'fairly' 'faith' 'fall' 'false' 'familiar' 'family' 'famous' 'fan' 'fantasy' 'far' 'farm' 'farmer' 'fashion' 'fast' 'fat' 'fate' 'father' 'fault' 'favor' 'favorite' 'fear' 'feature' 'federal' 'fee' 'feed' 'feel' 'feeling' 'fellow' 'female' 'fence' 'few' 'fewer' 'fiber' 'fiction' 'field' 'fifteen' 'fifth' 'fifty' 'fight' 'fighter' 'fighting' 'figure' 'file' 'fill' 'film' 'final' 'finally' 'finance' 'financial' 'find' 'finding' 'fine' 'finger' 'finish' 'fire' 'firm' 'flee' 'flesh' 'flight' 'float' 'floor' 'flow' 'flower' 'fly' 'focus' 'folk' 'follow' 'following' 'food' 'foot' 'football' 'for' 'force' 'foreign' 'forest' 'forever' 'forget' 'form' 'formal' 'formation' 'former' 'formula' 'forth' 'fortune' 'forward' 'found' 'foundation' 'founder' 'four' 'fourth' 'frame' 'framework' 'free' 'freedom' 'freeze' 'French' 'frequency' 'frequent' 'frequently' 'fresh' 'friend' 'friendly' 'friendship' 'from' 'front' 'fruit' 'frustration' 'fuel' 'full' 'fully' 'fun' 'function' 'fund' 'fundamental' 'funding' 'funeral' 'funny' 'furniture' 'furthermore' 'future' 'gain' 'galaxy' 'gallery' 'game' 'gang' 'gap' 'garage' 'garden' 'garlic' 'gas' 'gate' 'gather' 'gay' 'gaze' 'gear' 'gender' 'gene' 'general' 'generally' 'generate' 'generation' 'genetic' 'gentleman' 'gently' 'German' 'gesture' 'get' 'ghost' 'giant' 'gift' 'gifted' 'girl' 'girlfriend' 'give' 'given' 'grab' 'grade' 'gradually' 'graduate' 'grain' 'grand' 'grandfather' 'grandmother' 'grant' 'grass' 'grave' 'gray' 'great' 'greatest' 'green' 'grocery' 'ground' 'group' 'grow' 'growing' 'growth' 'guarantee' 'guard' 'guess' 'guest' 'guide' 'guideline' 'guilty' 'gun' 'guy' 'habit' 'habitat' 'hair' 'half' 'hall' 'hand' 'handful' 'handle' 'hang' 'happen' 'happy' 'hard' 'hardly' 'hat' 'hate' 'have' 'he' 'head' 'headline' 'headquarters' 'health' 'healthy' 'hear' 'hearing' 'heart' 'heat' 'heaven' 'heavily' 'heavy' 'heel' 'height' 'helicopter' 'hell' 'hello' 'help' 'helpful' 'her' 'here' 'heritage' 'hero' 'herself' 'hey' 'hi' 'hide' 'high' 'highlight' 'highly' 'highway' 'hill' 'him' 'himself' 'hip' 'hire' 'his' 'historian' 'historic' 'historical' 'history' 'hit' 'hold' 'hole' 'holiday' 'holy' 'home' 'homeless' 'honest' 'honey' 'honor' 'hope' 'horizon' 'horror' 'horse' 'hospital' 'host' 'hot' 'hotel' 'hour' 'house' 'household' 'housing' 'how' 'however' 'huge' 'human' 'humor' 'hundred' 'hungry' 'hunter' 'hunting' 'hurt' 'husband' 'hypothesis' 'ignore' 'ill' 'illegal' 'illness' 'impose' 'impossible' 'impress' 'impression' 'impressive' 'incentive' 'incident' 'include' 'including' 'income' 'incorporate' 'increase' 'increased' 'increasing' 'increasingly' 'incredible' 'indeed' 'independence' 'independent' 'index' 'Indian' 'indicate' 'indication' 'individual' 'industrial' 'industry' 'infant' 'infection' 'inflation' 'influence' 'inform' 'information' 'ingredient' 'initial' 'initially' 'initiative' 'injury' 'inner' 'innocent' 'inquiry' 'inside' 'insight' 'insist' 'inspire' 'install' 'instance' 'instead' 'institution' 'institutional' 'instruction' 'instructor' 'instrument' 'insurance' 'intellectual' 'intelligence' 'intend' 'intense' 'intensity' 'intention' 'interaction' 'interest' 'interested' 'interesting' 'internal' 'international' 'Internet' 'interpret' 'interpretation' 'intervention' 'interview' 'into' 'introduce' 'introduction' 'invasion' 'invest' 'investigate' 'investigation' 'investigator' 'investment' 'investor' 'invite' 'involve' 'involved' 'involvement' 'Iraqi' 'Irish' 'iron' 'Islamic' 'island' 'Israeli' 'issue' 'it' 'Italian' 'item' 'its' 'itself' 'jacket' 'jail' 'jet' 'job' 'join' 'joint' 'joke' 'journal' 'journalist' 'journey' 'joy' 'judge' 'judgment' 'juice' 'jump' 'junior' 'jury' 'landscape' 'language' 'lap' 'large' 'largely' 'last' 'late' 'later' 'Latin' 'latter' 'laugh' 'launch' 'law' 'lawn' 'lawsuit' 'lawyer' 'lay' 'layer' 'lead' 'leader' 'leadership' 'leading' 'leaf' 'league' 'lean' 'learn' 'learning' 'least' 'leather' 'leave' 'left' 'leg' 'legacy' 'legal' 'legend' 'legislation' 'legitimate' 'lemon' 'length' 'less' 'lesson' 'let' 'letter' 'level' 'liberal' 'library' 'license' 'lie' 'life' 'lifestyle' 'lifetime' 'lift' 'light' 'like' 'likely' 'limit' 'limitation' 'limited' 'line' 'link' 'lip' 'list' 'loan' 'local' 'locate' 'location' 'lock' 'long' 'long-term' 'look' 'loose' 'lose' 'loss' 'lost' 'lot' 'lots' 'loud' 'love' 'lovely' 'lover' 'low' 'lower' 'luck' 'lucky' 'lunch' 'lung' 'machine' 'mad' 'magazine' 'mail' 'main' 'mainly' 'maintain' 'maintenance' 'major' 'majority' 'make' 'maker' 'makeup' 'male' 'mall' 'man' 'manage' 'management' 'manager' 'manner' 'manufacturer' 'manufacturing' 'many' 'map' 'margin' 'mark' 'market' 'marketing' 'marriage' 'married' 'marry' 'mask' 'mass' 'massive' 'master' 'match' 'material' 'math' 'matter' 'may' 'maybe' 'mayor' 'me' 'meal' 'mean' 'meaning' 'meanwhile' 'measure' 'meeting' 'member' 'membership' 'memory' 'mental' 'mention' 'menu' 'mere' 'merely' 'mess' 'message' 'metal' 'meter' 'method' 'Mexican' 'middle' 'might' 'military' 'milk' 'million' 'mind' 'mine' 'minister' 'minor' 'minority' 'minute' 'miracle' 'mirror' 'miss' 'missile' 'mission' 'mistake' 'mix' 'mixture' 'mm-hmm' 'mode' 'model' 'moderate' 'modern' 'modest' 'mom' 'moment' 'money' 'monitor' 'month' 'mood' 'moon' 'moral' 'more' 'moreover' 'morning' 'mortgage' 'most' 'mostly' 'mother' 'motion' 'motivation' 'motor' 'mount' 'mountain' 'mouse' 'mouth' 'move' 'movement' 'movie' 'much' 'multiple' 'murder' 'muscle' 'museum' 'music' 'musical' 'musician' 'Muslim' 'must' 'mutual' 'my' 'myself' 'mystery' 'myth' 'naked' 'name' 'narrative' 'narrow' 'nation' 'national' 'native' 'natural' 'neighbor' 'neighborhood' 'neither' 'nerve' 'nervous' 'net' 'network' 'never' 'nevertheless' 'new' 'newly' 'news' 'newspaper' 'next' 'nice' 'night' 'nine' 'no' 'nobody' 'nod' 'noise' 'nomination' 'none' 'nonetheless' 'nor' 'normal' 'normally' 'north' 'northern' 'nose' 'not' 'note' 'nothing' 'notice' 'notion' 'novel' 'now' 'nowhere' 'n’t' 'nuclear' 'number' 'numerous' 'nurse' 'nut' 'object' 'objective' 'obligation' 'observation' 'observe' 'observer' 'obtain' 'obvious' 'obviously' 'occasion' 'occasionally' 'occupation' 'occupy' 'occur' 'ocean' 'odd' 'odds' 'of' 'off' 'offense' 'offensive' 'offer' 'office' 'officer' 'official' 'often' 'oh' 'oil' 'ok' 'okay' 'old' 'Olympic' 'on' 'once' 'one' 'ongoing' 'onion' 'online' 'only' 'onto' 'open' 'opening' 'operate' 'operating' 'operation' 'operator' 'opinion' 'opponent' 'opportunity' 'oppose' 'opposite' 'opposition' 'option' 'or' 'orange' 'order' 'ordinary' 'organic' 'organization' 'organize' 'orientation' 'origin' 'original' 'outcome' 'outside' 'oven' 'over' 'overall' 'overcome' 'overlook' 'owe' 'own' 'owner' 'pace' 'pack' 'package' 'page' 'pain' 'painful' 'paint' 'painter' 'painting' 'pair' 'pale' 'Palestinian' 'palm' 'pan' 'panel' 'pant' 'paper' 'parent' 'park' 'parking' 'part' 'participant' 'participate' 'participation' 'particular' 'particularly' 'partly' 'partner' 'partnership' 'party' 'pass' 'passage' 'passenger' 'passion' 'past' 'patch' 'path' 'patient' 'pattern' 'pause' 'pay' 'payment' 'PC' 'peace' 'peak' 'peer' 'penalty' 'people' 'pepper' 'per' 'perceive' 'percentage' 'perception' 'perfect' 'perfectly' 'perform' 'performance' 'perhaps' 'period' 'permanent' 'permission' 'permit' 'person' 'personal' 'personality' 'personally' 'personnel' 'perspective' 'persuade' 'pet' 'phase' 'phenomenon' 'philosophy' 'phone' 'photo' 'photograph' 'photographer' 'phrase' 'physical' 'physically' 'physician' 'piano' 'pick' 'picture' 'pie' 'piece' 'pile' 'pilot' 'pine' 'pink' 'pipe' 'pitch' 'place' 'plan' 'plane' 'planet' 'planning' 'plant' 'plastic' 'plate' 'platform' 'play' 'player' 'please' 'pleasure' 'plenty' 'plot' 'plus' 'PM' 'pocket' 'poem' 'poet' 'poetry' 'point' 'pole' 'police' 'policy' 'political' 'politically' 'politician' 'politics' 'poll' 'pollution' 'pool' 'poor' 'pop' 'popular' 'population' 'porch' 'port' 'portion' 'portrait' 'portray' 'pose' 'position' 'positive' 'possess' 'possibility' 'possible' 'possibly' 'post' 'pot' 'potato' 'potential' 'potentially' 'pound' 'pour' 'poverty' 'powder' 'power' 'powerful' 'practical' 'practice' 'pray' 'prayer' 'precisely' 'predict' 'prefer' 'preference' 'pregnancy' 'pregnant' 'preparation' 'prepare' 'prescription' 'presence' 'present' 'presentation' 'preserve' 'president' 'presidential' 'press' 'pressure' 'pretend' 'pretty' 'prevent' 'previous' 'previously' 'price' 'pride' 'priest' 'primarily' 'primary' 'prime' 'principal' 'principle' 'print' 'prior' 'priority' 'prison' 'prisoner' 'privacy' 'private' 'probably' 'problem' 'procedure' 'proceed' 'process' 'produce' 'producer' 'product' 'production' 'profession' 'professional' 'professor' 'profile' 'profit' 'program' 'progress' 'project' 'prominent' 'promise' 'promote' 'prompt' 'proof' 'proper' 'properly' 'property' 'proportion' 'proposal' 'propose' 'proposed' 'prosecutor' 'prospect' 'protect' 'protection' 'protein' 'protest' 'proud' 'prove' 'provide' 'provider' 'province' 'provision' 'psychological' 'psychologist' 'psychology' 'public' 'publication' 'publicly' 'publish' 'publisher' 'pull' 'punishment' 'purchase' 'pure' 'purpose' 'pursue' 'push' 'put' 'qualify' 'quality' 'quarter' 'quarterback' 'question' 'quick' 'quickly' 'quiet' 'quietly' 'quit' 'quite' 'quote' 'reading' 'ready' 'real' 'reality' 'realize' 'really' 'reason' 'reasonable' 'recall' 'receive' 'recent' 'recently' 'recipe' 'recognition' 'recognize' 'recommend' 'recommendation' 'record' 'recording' 'recover' 'recovery' 'recruit' 'red' 'reduce' 'reduction' 'refer' 'reference' 'reflect' 'reflection' 'reform' 'refugee' 'refuse' 'regard' 'regarding' 'regardless' 'regime' 'region' 'regional' 'register' 'regular' 'regularly' 'regulate' 'regulation' 'reinforce' 'reject' 'relate' 'relation' 'relationship' 'relative' 'relatively' 'relax' 'release' 'relevant' 'relief' 'religion' 'religious' 'rely' 'remain' 'remaining' 'remarkable' 'remember' 'remind' 'remote' 'remove' 'repeat' 'repeatedly' 'replace' 'reply' 'report' 'reporter' 'represent' 'representation' 'representative' 'Republican' 'reputation' 'request' 'require' 'requirement' 'research' 'researcher' 'resemble' 'reservation' 'resident' 'resist' 'resistance' 'resolution' 'resolve' 'resort' 'resource' 'respect' 'respond' 'respondent' 'response' 'responsibility' 'responsible' 'rest' 'restaurant' 'restore' 'restriction' 'result' 'retain' 'retire' 'retirement' 'return' 'reveal' 'revenue' 'review' 'revolution' 'rhythm' 'rice' 'rich' 'rid' 'ride' 'round' 'route' 'routine' 'row' 'rub' 'rule' 'run' 'running' 'rural' 'rush' 'Russian' 'sacred' 'sad' 'safe' 'safety' 'sake' 'salad' 'salary' 'sale' 'sales' 'salt' 'same' 'sample' 'sanction' 'sand' 'satellite' 'satisfaction' 'satisfy' 'sauce' 'save' 'saving' 'say' 'scale' 'scandal' 'scared' 'scenario' 'scene' 'schedule' 'scheme' 'scholar' 'scholarship' 'school' 'science' 'scientific' 'scientist' 'scope' 'score' 'scream' 'screen' 'script' 'sea' 'search' 'season' 'seat' 'second' 'secret' 'secretary' 'section' 'sector' 'secure' 'security' 'see' 'seed' 'seek' 'seem' 'segment' 'seize' 'select' 'selection' 'self' 'sell' 'Senate' 'senator' 'send' 'senior' 'sense' 'sensitive' 'sentence' 'separate' 'sequence' 'series' 'serious' 'seriously' 'serve' 'service' 'session' 'set' 'setting' 'settle' 'settlement' 'seven' 'several' 'severe' 'sex' 'sexual' 'shade' 'shadow' 'shake' 'shall' 'shape' 'share' 'sharp' 'she' 'sheet' 'shelf' 'shell' 'shelter' 'shift' 'shine' 'ship' 'shirt' 'shock' 'shoe' 'shoot' 'shooting' 'shop' 'shopping' 'shore' 'short' 'shortly' 'shot' 'should' 'shoulder' 'shout' 'show' 'shower' 'shrug' 'shut' 'similar' 'similarly' 'simple' 'simply' 'sin' 'since' 'sing' 'singer' 'single' 'sink' 'sir' 'sister' 'sit' 'site' 'situation' 'six' 'size' 'ski' 'skill' 'skin' 'sky' 'slave' 'sleep' 'slice' 'slide' 'slight' 'slightly' 'slip' 'slow' 'slowly' 'small' 'smart' 'smell' 'smile' 'smoke' 'smooth' 'snap' 'snow' 'so' 'so-called' 'soccer' 'social' 'society' 'soft' 'software' 'soil' 'solar' 'soldier' 'solid' 'solution' 'solve' 'some' 'somebody' 'somehow' 'someone' 'something' 'sometimes' 'somewhat' 'somewhere' 'son' 'song' 'soon' 'sophisticated' 'sorry' 'sort' 'soul' 'sound' 'soup' 'source' 'south' 'southern' 'Soviet' 'space' 'Spanish' 'speak' 'speaker' 'special' 'specialist' 'species' 'specific' 'specifically' 'speech' 'speed' 'spend' 'spending' 'spin' 'spirit' 'spiritual' 'split' 'spokesman' 'sport' 'spot' 'spread' 'spring' 'square' 'squeeze' 'stability' 'stable' 'staff' 'stage' 'stair' 'stake' 'stand' 'standard' 'standing' 'star' 'still' 'stir' 'stock' 'stomach' 'stone' 'stop' 'storage' 'store' 'storm' 'story' 'straight' 'strange' 'stranger' 'strategic' 'strategy' 'stream' 'street' 'strength' 'strengthen' 'stress' 'stretch' 'strike' 'string' 'strip' 'stroke' 'strong' 'strongly' 'structure' 'struggle' 'student' 'studio' 'study' 'stuff' 'stupid' 'style' 'subject' 'submit' 'subsequent' 'substance' 'substantial' 'succeed' 'success' 'successful' 'successfully' 'suit' 'summer' 'summit' 'sun' 'super' 'supply' 'support' 'supporter' 'suppose' 'supposed' 'Supreme' 'sure' 'surely' 'surface' 'surgery' 'surprise' 'suspect' 'sustain' 'swear' 'sweep' 'sweet' 'swim' 'swing' 'switch' 'symbol' 'symptom' 'system' 'table' 'tablespoon' 'tactic' 'tail' 'take' 'tale' 'talent' 'talk' 'tall' 'tank' 'tap' 'tape' 'target' 'task' 'taste' 'tax' 'taxpayer' 'tea' 'teach' 'teacher' 'teaching' 'team' 'tear' 'teaspoon' 'technical' 'technique' 'technology' 'teen' 'teenager' 'telephone' 'telescope' 'television' 'tell' 'temperature' 'temporary' 'ten' 'tend' 'test' 'testify' 'testimony' 'testing' 'text' 'they' 'thick' 'thin' 'thing' 'think' 'thinking' 'third' 'thirty' 'this' 'those' 'though' 'thought' 'thousand' 'threat' 'threaten' 'three' 'throat' 'through' 'throughout' 'throw' 'thus' 'ticket' 'tie' 'tight' 'time' 'tiny' 'tip' 'tire' 'tired' 'tissue' 'title' 'to' 'tobacco' 'today' 'toe' 'together' 'tomato' 'tomorrow' 'tone' 'tongue' 'tonight' 'too' 'tool' 'tooth' 'top' 'topic' 'toss' 'total' 'totally' 'touch' 'tough' 'tour' 'tourist' 'tournament' 'toward' 'towards' 'tower' 'town' 'toy' 'trace' 'track' 'trade' 'tradition' 'traditional' 'traffic' 'tragedy' 'trail' 'train' 'tremendous' 'trend' 'trial' 'tribe' 'trick' 'trip' 'troop' 'trouble' 'truck' 'true' 'truly' 'trust' 'truth' 'try' 'tube' 'tunnel' 'turn' 'TV' 'twelve' 'twenty' 'twice' 'twin' 'two' 'type' 'typical' 'typically' 'unit' 'United' 'universal' 'universe' 'university' 'unknown' 'unless' 'unlike' 'unlikely' 'until' 'unusual' 'up' 'upon' 'valley' 'valuable' 'value' 'variable' 'variation' 'variety' 'view' 'viewer' 'village' 'violate' 'violation' 'violence' 'violent' 'virtually' 'virtue' 'virus' 'visible' 'vision' 'visit' 'visitor' 'visual' 'vital' 'voice' 'volume' 'volunteer' 'vote' 'voter' 'wash' 'waste' 'watch' 'water' 'wave' 'way' 'we' 'weak' 'wealth' 'wealthy' 'weapon' 'wear' 'weather' 'wedding' 'week' 'weekend' 'weekly' 'weigh' 'weight' 'welcome' 'welfare' 'well' 'west' 'western' 'wet' 'what' 'whatever' 'wheel' 'when' 'whenever' 'where' 'whereas' 'whether' 'which' 'while' 'whisper' 'white' 'who' 'whole' 'whom' 'whose' 'why' 'wide' 'widely' 'widespread' 'wife' 'wild' 'will' 'willing' 'win' 'wind' 'window' 'wine' 'wing' 'winner' 'winter' 'wipe' 'withdraw' 'within' 'without' 'witness' 'woman' 'wonder' 'wonderful' 'wood' 'wooden' 'word' 'work' 'worker' 'working' 'works' 'workshop' 'world' 'worried' 'worry' 'worth' 'would' 'wound' 'wrap' 'yield' 'you' 'young' 'your' 'yours' 'yourself' 'youth' 'zone'};\r\nletter = 'c';\r\n[y1,y2] = addCetc(WORDS,letter);\r\ny1_correct = {'enter' 'fat' 'hair' 'lean' 'loud' 'math' 'one' 'over' 'path' 'sale' 'up'};\r\ny2_correct = {'center' 'fact' 'chair' 'clean' 'cloud' 'match' 'once' 'cover' 'patch' 'scale' 'cup'};\r\nassert(isequal(y1,y1_correct) \u0026\u0026 isequal(y2,y2_correct))","published":true,"deleted":false,"likes_count":4,"comments_count":4,"created_by":46909,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":13,"test_suite_updated_at":"2021-05-06T02:50:12.000Z","rescore_all_solutions":true,"group_id":1,"created_at":"2021-05-04T03:46:54.000Z","updated_at":"2025-07-18T20:09:00.000Z","published_at":"2021-05-04T03:54:50.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWith this problem, I have added 100 to Cody. In a way, this problem asks you to add 100 as well. \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a function to add C, the Roman numeral for 100, to one word in a list to make another word in the list. For example, you can add C to “hair” to make “chair” or to “lie” to make “lice”, assuming that all of these words are in the list. Add only one C but consider target words with multiple C’s—e.g., you can add a C to “scare” to make “scarce”. The function should return a cell array \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ey1\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e with a list of original words sorted alphabetically and a corresponding cell array \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ey2\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e with a list of words with the letter added.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e(And if you are going to go through the trouble of writing the code for C, you might as well make it work for any letter used in English.)\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAlthough 100 is an \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://static.simpsonswiki.com/images/thumb/9/97/Sweet_Seymour_Skinner%27s_Baadasssss_Song_-_chalkboard_gag.png/300px-Sweet_Seymour_Skinner%27s_Baadasssss_Song_-_chalkboard_gag.png\\\"\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:u/\u003e\u003c/w:rPr\u003e\u003cw:t\u003earbitrary milestone\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, it’s as good a time as any to express gratitude to MathWorks and the Cody community. Thanks to all of you for solving my problems, challenging us with your own problems, and helping me improve my own programming and problem solving. \u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":43673,"title":"String Array Basics, Part 4: Convert String Array with Missing Values to Cell Array","description":"\u003chttp://www.mathworks.com/help/matlab/characters-and-strings.html String array\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a string array of text data. Your job is to convert the string array to a cell array of character vectors, which stores the same pieces of text data.\r\n\r\nThe \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values  Part 2\u003e assuming no missing values in the input string array is a good starting point. In this problem, the missing values for string arrays, denoted *\u003c missing \u003e*, need to be converted to the missing values for cell arrays, denoted *{''}* (i.e., cell of empty character). \r\n\r\nRefer to the R2016b documentation for more information on the \u003chttp://www.mathworks.com/help/matlab/ref/ismissing.html?=ismissing missing values for different data types\u003e.\r\n \r\nExample: \r\n\r\n  Input:\r\n  \u003e\u003e x = string({'I','love'}); x(4) = 'MATLAB'\r\n  x = \r\n    1×4 string array\r\n      \"I\"    \"love\"    \u003cmissing\u003e    \"MATLAB\"\r\n  \r\n  Output:\r\n  \u003e\u003e y = {'I', 'love', '', 'MATLAB'}\r\n  y =\r\n    1×3 cell array\r\n      'I'    'love'    ''    'MATLAB'\r\n\r\nRelated Problems in this series:\r\n\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values   String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003e \r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values   String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003e \r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values   String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003e\r\n* String Array Basics, Part 4: Convert String Array with Missing Values to Cell Array","description_html":"\u003cp\u003e\u003ca href = \"http://www.mathworks.com/help/matlab/characters-and-strings.html\"\u003eString array\u003c/a\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a string array of text data. Your job is to convert the string array to a cell array of character vectors, which stores the same pieces of text data.\u003c/p\u003e\u003cp\u003eThe \u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\"\u003ePart 2\u003c/a\u003e assuming no missing values in the input string array is a good starting point. In this problem, the missing values for string arrays, denoted \u003cb\u003e\u0026lt; missing \u0026gt;\u003c/b\u003e, need to be converted to the missing values for cell arrays, denoted \u003cb\u003e{''}\u003c/b\u003e (i.e., cell of empty character).\u003c/p\u003e\u003cp\u003eRefer to the R2016b documentation for more information on the \u003ca href = \"http://www.mathworks.com/help/matlab/ref/ismissing.html?=ismissing\"\u003emissing values for different data types\u003c/a\u003e.\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eInput:\r\n\u0026gt;\u0026gt; x = string({'I','love'}); x(4) = 'MATLAB'\r\nx = \r\n  1×4 string array\r\n    \"I\"    \"love\"    \u0026lt;missing\u0026gt;    \"MATLAB\"\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eOutput:\r\n\u0026gt;\u0026gt; y = {'I', 'love', '', 'MATLAB'}\r\ny =\r\n  1×3 cell array\r\n    'I'    'love'    ''    'MATLAB'\r\n\u003c/pre\u003e\u003cp\u003eRelated Problems in this series:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\"\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\"\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values\"\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/a\u003e\u003c/li\u003e\u003cli\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/li\u003e\u003c/ul\u003e","function_template":"function y = str2cell(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = string({'I','love','MATLAB'});\r\ny_correct = {'I','love','MATLAB'};\r\nassert(isequal(str2cell(x),y_correct))\r\n\r\n%%\r\nx = string({'I','love'}); x(5) = 'MATLAB';\r\ny_correct = {'I','love','','','MATLAB'};\r\nassert(isequal(str2cell(x),y_correct))\r\n\r\n%%\r\nx = string([1 NaN 2]);\r\ny_correct = {'1','','2'};\r\nassert(isequal(str2cell(x),y_correct))\r\n\r\n%%\r\nx = strings(3);\r\nx(1) = 'first'; \r\nx(end) = 'last';\r\ny_correct = {'first',  '',     ''\r\n             '',       '',     ''\r\n             '',       '',     'last'};\r\nassert(isequal(str2cell(x),y_correct))","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":12569,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":119,"test_suite_updated_at":"2016-11-23T06:24:32.000Z","rescore_all_solutions":false,"group_id":16,"created_at":"2016-11-21T03:52:19.000Z","updated_at":"2026-03-10T20:16:49.000Z","published_at":"2016-11-22T21:16:18.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/help/matlab/characters-and-strings.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a string array of text data. Your job is to convert the string array to a cell array of character vectors, which stores the same pieces of text data.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003ePart 2\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e assuming no missing values in the input string array is a good starting point. In this problem, the missing values for string arrays, denoted\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e\u0026lt; missing \u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e, need to be converted to the missing values for cell arrays, denoted\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e{''}\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e (i.e., cell of empty character).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRefer to the R2016b documentation for more information on the\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/help/matlab/ref/ismissing.html?=ismissing\\\"\u003e\u003cw:r\u003e\u003cw:t\u003emissing values for different data types\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input:\\n\u003e\u003e x = string({'I','love'}); x(4) = 'MATLAB'\\nx = \\n  1×4 string array\\n    \\\"I\\\"    \\\"love\\\"    \u003cmissing\u003e    \\\"MATLAB\\\"\\n\\nOutput:\\n\u003e\u003e y = {'I', 'love', '', 'MATLAB'}\\ny =\\n  1×3 cell array\\n    'I'    'love'    ''    'MATLAB']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated Problems in this series:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43677,"title":"String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values","description":"\u003chttp://www.mathworks.com/help/matlab/characters-and-strings.html String array\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a cell array of character vectors. Your job is to convert the cell array to a string array, which stores the same pieces of text data. \r\n\r\nTo begin with, let's assume that there are no missing type values in the input cell array. \r\n\r\n\r\nExample: \r\n \r\n\r\n  Input:\r\n  \u003e\u003e x = {'I','Love','MATLAB'}\r\n  x =\r\n    1×3 cell array\r\n      'I'    'Love'    'MATLAB'\r\n\r\n  Output:\r\n  \u003e\u003e y = strings(size(x));\r\n  \u003e\u003e [y{:}] = x{:}\r\n  y = \r\n    1×3 string array\r\n      \"I\"    \"Love\"    \"MATLAB\"\r\n\r\nNote that the example shown above is not the best way to solve this problem. Try other approaches in order to achieve a leading score. \r\n\r\nRelated Problems in this series:\r\n\r\n* String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values   String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003e \r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values   String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003e\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values   String Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003e\r\n","description_html":"\u003cp\u003e\u003ca href = \"http://www.mathworks.com/help/matlab/characters-and-strings.html\"\u003eString array\u003c/a\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a cell array of character vectors. Your job is to convert the cell array to a string array, which stores the same pieces of text data.\u003c/p\u003e\u003cp\u003eTo begin with, let's assume that there are no missing type values in the input cell array.\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eInput:\r\n\u0026gt;\u0026gt; x = {'I','Love','MATLAB'}\r\nx =\r\n  1×3 cell array\r\n    'I'    'Love'    'MATLAB'\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eOutput:\r\n\u0026gt;\u0026gt; y = strings(size(x));\r\n\u0026gt;\u0026gt; [y{:}] = x{:}\r\ny = \r\n  1×3 string array\r\n    \"I\"    \"Love\"    \"MATLAB\"\r\n\u003c/pre\u003e\u003cp\u003eNote that the example shown above is not the best way to solve this problem. Try other approaches in order to achieve a leading score.\u003c/p\u003e\u003cp\u003eRelated Problems in this series:\u003c/p\u003e\u003cul\u003e\u003cli\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\"\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values\"\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values\"\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/a\u003e\u003c/li\u003e\u003c/ul\u003e","function_template":"function y = cell2str(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = {'I','love','MATLAB'};\r\ny_correct = strings(size(x));\r\n[y_correct{:}] = x{:};\r\nassert(isequal(cell2str(x),y_correct))\r\n\r\n%%\r\nx = {'I',   'love',  'MATLAB'\r\n     'I',   'love',  'Cody'};\r\ny_correct = strings(size(x));\r\n[y_correct{:}] = x{:};\r\nassert(isequal(cell2str(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":7,"comments_count":1,"created_by":12569,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":1972,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":16,"created_at":"2016-11-22T21:03:53.000Z","updated_at":"2026-04-07T19:11:48.000Z","published_at":"2016-11-22T21:05:14.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/help/matlab/characters-and-strings.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a cell array of character vectors. Your job is to convert the cell array to a string array, which stores the same pieces of text data.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eTo begin with, let's assume that there are no missing type values in the input cell array.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input:\\n\u003e\u003e x = {'I','Love','MATLAB'}\\nx =\\n  1×3 cell array\\n    'I'    'Love'    'MATLAB'\\n\\nOutput:\\n\u003e\u003e y = strings(size(x));\\n\u003e\u003e [y{:}] = x{:}\\ny = \\n  1×3 string array\\n    \\\"I\\\"    \\\"Love\\\"    \\\"MATLAB\\\"]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNote that the example shown above is not the best way to solve this problem. Try other approaches in order to achieve a leading score.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated Problems in this series:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43674-string-array-basics-part-3-convert-cell-array-to-string-array-with-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":61022,"title":"The Case of the Missing Prototype – Decode the Secret Note Found on the Desk to Reveal a Hidden Message","description":"On the lab desk, you discover a short note filled with strange letters.\r\nAfter examining it, you realize it’s written in a Caesar cipher, where each letter was shifted two positions forward in the alphabet.\r\nTo decode it, you must shift each letter two positions backward.\r\nAssume the message only contains lowercase English letters and wraps around ('a' becomes 'y', 'b' becomes 'z').\r\nWrite a function that returns the decoded message string.","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none; white-space: normal; \"\u003e\u003cdiv style=\"block-size: 162px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 408px 81px; transform-origin: 408px 81px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eOn the lab desk, you discover a short note filled with strange letters.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 21px; text-align: left; transform-origin: 385px 21px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eAfter examining it, you realize it’s written in a \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003eCaesar cipher\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e, where each letter was shifted \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003etwo positions forward\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e in the alphabet.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eTo decode it, you must shift each letter \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003etwo positions backward\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eAssume the message only contains \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003elowercase English letters\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e and wraps around (\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-family: Menlo, Monaco, Consolas, \u0026quot;Courier New\u0026quot;, monospace; \"\u003e'a'\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e becomes \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-family: Menlo, Monaco, Consolas, \u0026quot;Courier New\u0026quot;, monospace; \"\u003e'y'\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e, \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-family: Menlo, Monaco, Consolas, \u0026quot;Courier New\u0026quot;, monospace; \"\u003e'b'\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e becomes \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-family: Menlo, Monaco, Consolas, \u0026quot;Courier New\u0026quot;, monospace; \"\u003e'z'\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e).\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 385px 10.5px; text-align: left; transform-origin: 385px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eWrite a function that returns the decoded message string.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function decoded = decodeNote(msg)\r\n  y = x;\r\nend","test_suite":"%%\r\nmsg = 'jgnnq';\r\nmsg_correct = 'hello';\r\nassert(isequal(decodeNote(msg),msg_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":4953963,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":51,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2025-10-20T16:43:39.000Z","updated_at":"2026-04-08T15:41:22.000Z","published_at":"2025-10-20T16:43:39.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOn the lab desk, you discover a short note filled with strange letters.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAfter examining it, you realize it’s written in a \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCaesar cipher\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e, where each letter was shifted \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003etwo positions forward\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e in the alphabet.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eTo decode it, you must shift each letter \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003etwo positions backward\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAssume the message only contains \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003elowercase English letters\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e and wraps around (\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e'a'\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e becomes \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e'y'\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e, \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e'b'\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e becomes \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:rFonts w:cs=\\\"monospace\\\"/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e'z'\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a function that returns the decoded message string.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":42488,"title":"combine cells","description":"A cell type variable is created. However it has other cells in itself. we want to integrate them all in a single cell. the contents of inner cells are column vectors with strings.\r\n\r\nInput :\r\n\r\n  {{'cody';'players'};{'are';'great'}}\r\n\r\nOutput :\r\n\r\n  {'cody';'players';'are';'great'}\r\n\r\nfor/while loops are forbidden","description_html":"\u003cp\u003eA cell type variable is created. However it has other cells in itself. we want to integrate them all in a single cell. the contents of inner cells are column vectors with strings.\u003c/p\u003e\u003cp\u003eInput :\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e{{'cody';'players'};{'are';'great'}}\r\n\u003c/pre\u003e\u003cp\u003eOutput :\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e{'cody';'players';'are';'great'}\r\n\u003c/pre\u003e\u003cp\u003efor/while loops are forbidden\u003c/p\u003e","function_template":"function y = combineCells(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nfiletext = fileread('combineCells.m');\r\nassert(isempty(strfind(filetext, 'for')))\r\nassert(isempty(strfind(filetext, 'while')))\r\n\r\n%%\r\nx = {{'cody';'players'};{'are';'great'}};\r\ny_correct  = {'cody';'players';'are';'great'};\r\nassert(isequal(combineCells(x),y_correct))\r\n\r\n%%\r\nx = {{'A';'B';'C'};{'D';'E'};{'F';'G';'H';'I';'J'}};\r\ny_correct  = {'A';'B';'C';'D';'E';'F';'G';'H';'I';'J'};\r\nassert(isequal(combineCells(x),y_correct))\r\n\r\n%%\r\nx = {{'A';'B';'C'};{'D';'E'};{'F';'G';'H';'I';'J';'K'}};\r\ny_correct  = {'A';'B';'C';'D';'E';'F';'G';'H';'I';'J';'K'};\r\nassert(isequal(combineCells(x),y_correct))\r\n\r\n%%\r\nx = {{'A';'B';'C';'toPreventLittleCheats'};{'D';'E'};{'F';'G';'H';'I';'J'}};\r\ny_correct  = {'A';'B';'C';'toPreventLittleCheats';'D';'E';'F';'G';'H';'I';'J'};\r\nassert(isequal(combineCells(x),y_correct))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":8703,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":30,"test_suite_updated_at":"2015-08-05T13:06:20.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2015-08-05T12:56:39.000Z","updated_at":"2025-12-29T15:10:24.000Z","published_at":"2015-08-05T13:06:20.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA cell type variable is created. However it has other cells in itself. we want to integrate them all in a single cell. the contents of inner cells are column vectors with strings.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eInput :\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[{{'cody';'players'};{'are';'great'}}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput :\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[{'cody';'players';'are';'great'}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003efor/while loops are forbidden\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":42617,"title":"List of built-in demo images","description":"Return a cell array containing the filenames for built-in images (e.g. cameraman.tif, coins.png). An optional input specifies what type(s) of files to look for. If no such files exist, return an empty cell array.\r\n\r\n*EDIT:* The output should be sorted in alphabetical order.","description_html":"\u003cp\u003eReturn a cell array containing the filenames for built-in images (e.g. cameraman.tif, coins.png). An optional input specifies what type(s) of files to look for. If no such files exist, return an empty cell array.\u003c/p\u003e\u003cp\u003e\u003cb\u003eEDIT:\u003c/b\u003e The output should be sorted in alphabetical order.\u003c/p\u003e","function_template":"function c = demoimages(FilterSpec)\r\n  c = {};\r\nend","test_suite":"%%\r\nfiletext = fileread('demoimages.m');\r\nassert(isempty(strfind(filetext, 'cameraman.tif')))\r\n\r\n%%\r\nc = demoimages({'.png'});\r\nc_correct = {'bag.png','blobs.png','circles.png','circlesBrightDark.png','coins.png','coloredChips.png','concordaerial.png','concordorthophoto.png','fabric.png','gantrycrane.png','glass.png','hestain.png','kobi.png','liftingbody.png','lighthouse.png','onion.png','pears.png','pillsetc.png','rice.png','riceblurred.png','saturn.png','snowflakes.png','tape.png','testpat1.png','text.png','tissue.png','toyobjects.png','toysflash.png','toysnoflash.png','westconcordaerial.png','westconcordorthophoto.png'};\r\nassert(isequal(c,c_correct))\r\n\r\n%%\r\nc = demoimages({'.jpg'});\r\nc_correct = {'football.jpg','greens.jpg','hands1.jpg','hands2.jpg','office_1.jpg','office_2.jpg','office_3.jpg','office_4.jpg','office_5.jpg','office_6.jpg','yellowlily.jpg'};\r\nassert(isequal(c,c_correct))\r\n\r\n%%\r\nc = demoimages({'.bmp','.jpg'});\r\nc_correct = {'football.jpg','greens.jpg','hands1.jpg','hands2.jpg','office_1.jpg','office_2.jpg','office_3.jpg','office_4.jpg','office_5.jpg','office_6.jpg','yellowlily.jpg'};\r\nassert(isequal(c,c_correct))\r\n\r\n%%\r\nc = demoimages({'.tif'});\r\nc_correct = {'AT3_1m4_01.tif','AT3_1m4_02.tif','AT3_1m4_03.tif','AT3_1m4_04.tif','AT3_1m4_05.tif','AT3_1m4_06.tif','AT3_1m4_07.tif','AT3_1m4_08.tif','AT3_1m4_09.tif','AT3_1m4_10.tif','autumn.tif','board.tif','cameraman.tif','canoe.tif','cell.tif','circbw.tif','circuit.tif','eight.tif','forest.tif','hotcoffee.tif','kids.tif','logo.tif','m83.tif','mandi.tif','moon.tif','mri.tif','paper1.tif','pout.tif','shadow.tif','spine.tif','tire.tif','trees.tif'};\r\nassert(isequal(c,c_correct))\r\n\r\n%%\r\nc = demoimages({'.tif','.png'});\r\nc_correct = {'AT3_1m4_01.tif','AT3_1m4_02.tif','AT3_1m4_03.tif','AT3_1m4_04.tif','AT3_1m4_05.tif','AT3_1m4_06.tif','AT3_1m4_07.tif','AT3_1m4_08.tif','AT3_1m4_09.tif','AT3_1m4_10.tif','autumn.tif','board.tif','cameraman.tif','canoe.tif','cell.tif','circbw.tif','circuit.tif','eight.tif','forest.tif','hotcoffee.tif','kids.tif','logo.tif','m83.tif','mandi.tif','moon.tif','mri.tif','paper1.tif','pout.tif','shadow.tif','spine.tif','tire.tif','trees.tif','bag.png','blobs.png','circles.png','circlesBrightDark.png','coins.png','coloredChips.png','concordaerial.png','concordorthophoto.png','fabric.png','gantrycrane.png','glass.png','hestain.png','kobi.png','liftingbody.png','lighthouse.png','onion.png','pears.png','pillsetc.png','rice.png','riceblurred.png','saturn.png','snowflakes.png','tape.png','testpat1.png','text.png','tissue.png','toyobjects.png','toysflash.png','toysnoflash.png','westconcordaerial.png','westconcordorthophoto.png'};\r\nassert(isequal(c,sort(c_correct)))\r\n\r\n%%\r\nc = demoimages({'.jpg','.png','.tif'});\r\nc_correct = {'football.jpg','greens.jpg','hands1.jpg','hands2.jpg','office_1.jpg','office_2.jpg','office_3.jpg','office_4.jpg','office_5.jpg','office_6.jpg','yellowlily.jpg','bag.png','blobs.png','circles.png','circlesBrightDark.png','coins.png','coloredChips.png','concordaerial.png','concordorthophoto.png','fabric.png','gantrycrane.png','glass.png','hestain.png','kobi.png','liftingbody.png','lighthouse.png','onion.png','pears.png','pillsetc.png','rice.png','riceblurred.png','saturn.png','snowflakes.png','tape.png','testpat1.png','text.png','tissue.png','toyobjects.png','toysflash.png','toysnoflash.png','westconcordaerial.png','westconcordorthophoto.png','AT3_1m4_01.tif','AT3_1m4_02.tif','AT3_1m4_03.tif','AT3_1m4_04.tif','AT3_1m4_05.tif','AT3_1m4_06.tif','AT3_1m4_07.tif','AT3_1m4_08.tif','AT3_1m4_09.tif','AT3_1m4_10.tif','autumn.tif','board.tif','cameraman.tif','canoe.tif','cell.tif','circbw.tif','circuit.tif','eight.tif','forest.tif','hotcoffee.tif','kids.tif','logo.tif','m83.tif','mandi.tif','moon.tif','mri.tif','paper1.tif','pout.tif','shadow.tif','spine.tif','tire.tif','trees.tif'};\r\nassert(isequal(c,sort(c_correct)))\r\n\r\n%%\r\nassert(isempty(demoimages({'.bmp'})))\r\n\r\n\r\n%%\r\nassert(isempty(demoimages({'.gif'})))\r\n\r\n%%\r\nc = demoimages({'.bmp','.gif','.tif','.png','.jpg'});\r\nc_correct = {'AT3_1m4_01.tif','AT3_1m4_02.tif','AT3_1m4_03.tif','AT3_1m4_04.tif','AT3_1m4_05.tif','AT3_1m4_06.tif','AT3_1m4_07.tif','AT3_1m4_08.tif','AT3_1m4_09.tif','AT3_1m4_10.tif','autumn.tif','board.tif','cameraman.tif','canoe.tif','cell.tif','circbw.tif','circuit.tif','eight.tif','forest.tif','hotcoffee.tif','kids.tif','logo.tif','m83.tif','mandi.tif','moon.tif','mri.tif','paper1.tif','pout.tif','shadow.tif','spine.tif','tire.tif','trees.tif','bag.png','blobs.png','circles.png','circlesBrightDark.png','coins.png','coloredChips.png','concordaerial.png','concordorthophoto.png','fabric.png','gantrycrane.png','glass.png','hestain.png','kobi.png','liftingbody.png','lighthouse.png','onion.png','pears.png','pillsetc.png','rice.png','riceblurred.png','saturn.png','snowflakes.png','tape.png','testpat1.png','text.png','tissue.png','toyobjects.png','toysflash.png','toysnoflash.png','westconcordaerial.png','westconcordorthophoto.png','football.jpg','greens.jpg','hands1.jpg','hands2.jpg','office_1.jpg','office_2.jpg','office_3.jpg','office_4.jpg','office_5.jpg','office_6.jpg','yellowlily.jpg'};\r\nassert(isequal(c,sort(c_correct)))\r\n","published":true,"deleted":false,"likes_count":7,"comments_count":11,"created_by":4793,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":11,"test_suite_updated_at":"2015-09-23T18:51:47.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2015-09-18T00:04:51.000Z","updated_at":"2015-09-23T18:51:47.000Z","published_at":"2015-09-18T00:32:24.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eReturn a cell array containing the filenames for built-in images (e.g. cameraman.tif, coins.png). An optional input specifies what type(s) of files to look for. If no such files exist, return an empty cell array.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eEDIT:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e The output should be sorted in alphabetical order.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44816,"title":"Word Distance - Average Sort","description":"Based on the method of \u003chttps://www.mathworks.com/matlabcentral/cody/problems/44815-word-distance-sum this problem\u003e, write a function to calculate the letter distance for a set of words and then return the sorted set of words based on their distances, in ascending order. However, their distances will now be normalized by the number of characters in each word. For example, if \r\n\r\n str_arr = {'jazz','cab','tree'}\r\n\r\nthen \r\n\r\n d = [(9+25+0)/4, (2+1)/3, (2+13+0)/4] = [34/4, 3/3, 15/4] = [8.5, 1, 3.75]\r\n\r\nwhich would result in the following sorted order:\r\n\r\n str_arr_sort = {'cab','tree','jazz'}\r\n\r\nRemember that the method is case insensitive. See the test suite for examples.","description_html":"\u003cp\u003eBased on the method of \u003ca href = \"https://www.mathworks.com/matlabcentral/cody/problems/44815-word-distance-sum\"\u003ethis problem\u003c/a\u003e, write a function to calculate the letter distance for a set of words and then return the sorted set of words based on their distances, in ascending order. However, their distances will now be normalized by the number of characters in each word. For example, if\u003c/p\u003e\u003cpre\u003e str_arr = {'jazz','cab','tree'}\u003c/pre\u003e\u003cp\u003ethen\u003c/p\u003e\u003cpre\u003e d = [(9+25+0)/4, (2+1)/3, (2+13+0)/4] = [34/4, 3/3, 15/4] = [8.5, 1, 3.75]\u003c/pre\u003e\u003cp\u003ewhich would result in the following sorted order:\u003c/p\u003e\u003cpre\u003e str_arr_sort = {'cab','tree','jazz'}\u003c/pre\u003e\u003cp\u003eRemember that the method is case insensitive. See the test suite for examples.\u003c/p\u003e","function_template":"function d = word_distance_sort(str_arr)\r\n d = 1;\r\nend","test_suite":"%%\r\nassert(isequal(word_distance_sort({'jazz','cab','tree'}),{'cab','tree','jazz'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'first','second','third'}),{'first','second','third'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'the','longest','words','supercede','some','of','the','shortest'}), ...\r\n\t{'some','longest','of','the','the','supercede','shortest','words'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'one','TWO','Three','FouR','fiVe','six','sEvEn','EiGHt','NINe','ten'}), ...\r\n\t{'one','TWO','EiGHt','FouR','NINe','Three','ten','fiVe','six','sEvEn'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'Why','is','it','that','this','does','not','work','as','expected'}), ...\r\n\t{'not','work','is','it','this','does','as','expected','that','Why'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'set','of','very','short','words','for','this','test','case'}), ...\r\n\t{'for','of','short','this','test','words','case','very','set'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'iron','zinc','carbon','molybdenum','praseodymium','silicon'}), ...\r\n\t{'iron','silicon','molybdenum','carbon','zinc','praseodymium'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'crazier','craziest','crazy'}), ...\r\n\t{'crazy','craziest','crazier'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'this','test','case','with','only','four','each','word'}), ...\r\n\t{'each','only','four','this','word','test','case','with'}))\r\n\r\n%%\r\nassert(isequal(word_distance_sort({'largest','smallest','sourest','sweetest'}), ...\r\n\t{'sourest','smallest','largest','sweetest'}))","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":26769,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":15,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":65,"created_at":"2019-01-02T15:43:24.000Z","updated_at":"2025-11-21T14:57:55.000Z","published_at":"2019-01-09T15:06:52.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eBased on the method of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/matlabcentral/cody/problems/44815-word-distance-sum\\\"\u003e\u003cw:r\u003e\u003cw:t\u003ethis problem\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, write a function to calculate the letter distance for a set of words and then return the sorted set of words based on their distances, in ascending order. However, their distances will now be normalized by the number of characters in each word. For example, if\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ str_arr = {'jazz','cab','tree'}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ethen\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ d = [(9+25+0)/4, (2+1)/3, (2+13+0)/4] = [34/4, 3/3, 15/4] = [8.5, 1, 3.75]]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ewhich would result in the following sorted order:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ str_arr_sort = {'cab','tree','jazz'}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRemember that the method is case insensitive. See the test suite for examples.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":44079,"title":"GJam 2017 Kickstart: Leader (Large) ","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/6304486/dashboard#s=p0 GJam 2017 Kickstart Leader\u003e. This is the first 61 large cases with spaces in some names.\r\n\r\n\u003chttp://code.google.com/codejam Google Code Jam 2017 Qualifier\u003e is March 7, 2017. Typically four challenges with small and large aspects with 27 hours to complete.\r\n\r\nThe GJam story is to determine the rightful leader.  The leader is the person whose name utilizes the most unique letters, spaces do not count, and if two or more people are tied then the leader is the one whom comes first alphabetically, with space preceding A, given a list of 100 or fewer names.\r\n\r\n*Input:* [names], a cell array of names using only A thru Z; max 100 names\r\n\r\n*Output:* [Leader], a string of the name of the leader\r\n\r\n*Examples:* [names] [Leader]; {'ADAM' 'BOBOS' 'AD AM'} ['AD AM']\r\n\r\nFor the example the all have have three unique letters. Alpahabetically 'AD AM' precedes 'ADAM' and 'BOBOS'.\r\n\r\n*Theory:* Brute force processing appears to be the way.  Methodical processing and function usage can minimize code size. \u003chttp://code.google.com/codejam/contest/6304486/scoreboard#vf=1 GJam Kickstart solutions(C++,Python)\u003e. ","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/6304486/dashboard#s=p0\"\u003eGJam 2017 Kickstart Leader\u003c/a\u003e. This is the first 61 large cases with spaces in some names.\u003c/p\u003e\u003cp\u003e\u003ca href = \"http://code.google.com/codejam\"\u003eGoogle Code Jam 2017 Qualifier\u003c/a\u003e is March 7, 2017. Typically four challenges with small and large aspects with 27 hours to complete.\u003c/p\u003e\u003cp\u003eThe GJam story is to determine the rightful leader.  The leader is the person whose name utilizes the most unique letters, spaces do not count, and if two or more people are tied then the leader is the one whom comes first alphabetically, with space preceding A, given a list of 100 or fewer names.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e [names], a cell array of names using only A thru Z; max 100 names\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e [Leader], a string of the name of the leader\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e [names] [Leader]; {'ADAM' 'BOBOS' 'AD AM'} ['AD AM']\u003c/p\u003e\u003cp\u003eFor the example the all have have three unique letters. Alpahabetically 'AD AM' precedes 'ADAM' and 'BOBOS'.\u003c/p\u003e\u003cp\u003e\u003cb\u003eTheory:\u003c/b\u003e Brute force processing appears to be the way.  Methodical processing and function usage can minimize code size. \u003ca href = \"http://code.google.com/codejam/contest/6304486/scoreboard#vf=1\"\u003eGJam Kickstart solutions(C++,Python)\u003c/a\u003e.\u003c/p\u003e","function_template":"function Leader=leader(names)\r\n% cell array of names 1xk\r\n% A:Z or Space in the large case. Note space precedes A alphabetically\r\n% Leader is name with most unique letters A:Z. Tie goes to first name alphabetic.\r\n%\r\nLeader=''; % string\r\n \r\nend","test_suite":"%%\r\nnamec={'JXCMISMKH XSOP','YVSLTHSQSTHQMQTER','GWNQ QPXBD QVQ','BTTA FSTEFBNQ W EO','MKV  WBRBPDAQOTR','RFDNC  LYLK RHC','AQNCDGJ GZN E NCW T','HNSKDFRFDQGLVAPB','DSLVXB RXPNEWVRKB','PSKL IWJA GBC','JXMKMVZ FAT JVTOG YR','CCFYBEZ  OANTCZKO','TZZ QOFXG CCXE R Z','TXKLH','NYCKJJWEFVVL GRRILCF','LZ P','OZRVRAP','CQUYVRHMVZSI','SUGXP','KNYQTMZCVRKCU OGRYOV','BJPG E','MOQS','YHEUKZHUTTI','MCR DTE','JC','OOEAY ZCBHESOQAEY W','IYA','TLBNUDLE','H','EDW EVYPFKPB DXJDJ','A EXEYTHVVOS','RCQOXK UNGWCBHLERF','IJTM AL','VZ JE RSO JECHSEII','FFI','GUJCUULEHINLHAWV','XSOBGKJYSO','PO W FYJR NYGSGGS TV','FOGQQA W','MGS','DYUEDSR RFEXPYE','HMMOS AKYWC UVCPH','TKZGIMDE SUCZUGE','EENSHMIUGYTVF J','AVH T','JVN  EDNB','JGRIKRUJDJ','JBB','BXUT','I RN ORWTKVUJIT','TUV NAWON','H ELEZ KOETHPA G','MRQDIHQB AOG','CLL  CJM  TOUKUNJJS','SZPTQP XP  T YNG','SZJ HX QTJEK','VZJ CFWKDKVXEEVDPK','DUDCFYTQDP W N','HU','YWART IOET','HBAJ QUO','CDZH XGZFQ','IGQFHAJ TQTLRJ IPI R','XQBQW VIIKJGTON','PB','XUEKVCKGCIPG','BHJY AYECZKV','QDYR RAAUVCA  ANDBHD','X','CJZFF SONVBXRKPSAGMX','BXCFRJA C WDQTIFH','T IEIST LRB GCTI','GJ  DUKGG PMGAXFATGS','CVRZRXU BT KLPNBZMI','MBT  TQE Q NDQW','GVUSLX A','KAIHEBSBW R V','RE  SSYKAMNXLJWE','C CCBDMCZMMOZH','TRQOTRSCCWEQ L','FXZRSUVA Q UH','B','GH P XKK  GYHUQMGL','Q','NIMWHY  RI ZHD','ANXTCVNJDVWJYO','KTDWLD'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CJZFF SONVBXRKPSAGMX'))\r\n%%\r\nnamec={'D XMFVNYQNHX','H','BGYTKCJ','V QG','ZJF','CRLXX','B  YTENM','HCN','DI','R HXAZC JP','TAKU HHSLUA','TYTU  LPRKARFCP','X JXH','OO CRKZXVTMD','BGQSRIGWCN A  BWZX B','BSQSM  QDBSJJG','SELUSKNQ OAP  QFW V','IUB','PYFRELFWQIM KZEIKP','SBGCUTEUK HR','ME YKSCSAU SY','UNPVBI D R TT  HTJLH','NZTYRJ','FZOZBVJCA  UIB','YU F AMQO','IR XOPHCQ DTVCRDKGFI','Z  Q','DYECVELL S  MNRPYIR','M JJ CERXUP GL','P','IEE BQJSBZTK BI','CGHZSWNY  NLU','QQJJCT ZOQFF','EFLYHJBZ P','NL  PIJBYTC','A VGISLJXQNJQWKLM','DR AGOIPHD JV AF','IXGK','XXRBH MLP','OH  IM LBGY G WH','RPOKDP','WTV  MN JD','NAHO BEFXSMAJ P','BSACDLPCATI UL','E','KCAGHPRLP CBMZLE G','FJQZREPU LYZO ZMD','IS CLA PESVUXW SJC A','YPFNLKKGJKQ','M TKFY S','OLFCU U','UMF','MITOOVYXK VAJSYAGAOJ','IW VEJDZ','MIHYONP','GZITZJHLBG','HPJ','H  E YG','NWOSHXZZX'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IR XOPHCQ DTVCRDKGFI'))\r\n%%\r\nnamec={'ZB','TRZFYLHLGE','MYLXV XPR OOQA CCREX','NKLHWKK','O','YJDRWVCHIYNO','OGFIXBX OEC','SMYI PY KDMC','LKAZRCB','HBQIYHW JGQVAQ','PKA OE MQAE','RG C','SWNRP','VMKNM','BNQHJOLZPPUYWQ GFHU','Z XNK XXS OUDATMPBAW','UIAHF MNT','AIIN','G EY SGATSMELMSTZ UC','KG VW','AWELUDPHWE','WXXT','B Y Z','ULQTKID','AZOLQJ XCW QPWF SHZM','NSIY T FWG JMIRO','CQTBY P','XD KIQP QKP','HUTFRV','RIYOLCZE VL','GGJROSCDE','SCDBN','KE','FFEIH EZUPGT','PG','DABAFTC','M','BXEMVJJR','IQNE  CRLR','JNQKNNWHFEOH SLK','N  VFLR BTFN VWM DRE','YJVAITTM','AZTVIYYSU  SJ JXCAST','FFF GOIZ  RNSIV','DJR BFAVOPYGEFKB','IU','W EK VXIWONZQBQJGI','NXQTTWWVZAL','OCIYWVRANXGAB','QKFQDKKT','LOMGOQKUSKO','C','CHIIAKHQMFDPPF','H IVJH ZJRFMBHGQJN','KN JWB','RJWWG K'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'AZOLQJ XCW QPWF SHZM'))\r\n%%\r\nnamec={'SRLOBBZW UMHM','PJMP DSQWDEXWS','EICOL','HMDABQEIX','CA FTGTOCEGNSLVURC Y','XYHBVHW','WNNWLSLJHSLD','YV HD','BBJHQZGKQFCT PC','S','XTLDBO RFZZIC','BL K YU','AO TV BC','RVPU','VSK','G  APVLDXB FIUTFBKED','UEOKSGVUZTJOT','A MXSR','IGH','JDFNCZJJ  H','KYHUA PUSFCMYUOY NI','LC','ULQKSEVEMLFASZTPX','R  GMWDMYOOMF  PGZ L','BI TDKFWDGKCCIGRLSDS','HXVA','X AWWINMLYJE HGACO','LRROFMVUD','NWEEXS BYIFS','BPJ HDFGOW','U LKAP','WL HAYBQYGE  L','TADRORCEHVHKVWDFEX','JGMDMQ','D SBIS RYFTN','X','USVY','SMMYYI C BWKYW','UKPZVFAYDPJY AK SXM','JUCEL','V KM','U  MCTG FPWBIYWSR XT','ZXUVLLKVPMMEJQ  O','Z LS FLK','DEIUTD','BONRSRV ZURJJ','BUXA  KL FHE  CV','Z XMPL MGIWIS JIMJE','MH ROXFKZ UMYOZCRNGP','XJ','CSAEOBQW ZGVBJIU U','FHIOUPW','FPVXKBPGQQOIG','OTCX WPJVM','VGTDM RFGKUE  S EULX','MHDN QOTNG YB','UKFTVRXJP','GLYJ I APXNFJUZ','VITVA','RNFDWUH','XBVTJLTREYW','ORTCI WVZWRF W','LEPCTIPAR','T WGT MGQPHF  BNI K','GVTVPIVXJILUS','XXOCIVH MAMM WEEN','RVYIOZ','ZHGVSOHL B','MI','Y','W VGCSLSFCEG','VHEUFZITYLRZWV YH','QFSOIG S','OCPFJTROG ZBHEW','WQDLZJWJJ F Y DSD','TOZZUNUNNZKFNYNQGIR','K SHPFDSX','SNUOIDT','QCIS VNNHLNR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CA FTGTOCEGNSLVURC Y'))\r\n%%\r\nnamec={'HEIHBEYPXBUBM','CWKLDLJ','YXKMCXBB IGFQ JCGCZ','ZHOT ZWZGCXWRDELS','NPGLNO','WIQRDFMCTCY','QTMKEF ABBS O R','L XTFCOCPQWJK RVD  A','BSGWYCTL','AATL','VZA MOHON','GQPYQCMJ','SC','NVTQOL ZJTNKRRYRBE','HTPPN ZEQT','VCX QE MGQRIZ','YMFYI','X MBLCSH','H','BJ A X A NRH','NBNSRWHDLM','OOWWY','ZRAWRSPPSGU NVKG VQT','TWCXHIHVY Q','A RPG VSR CZ','KLKBWCZHBE','W MBC','BXTJ RAJETD','GYERE B WIASWP','QLGRES ZFT','BAAYGYUXVRYUCYMMI','VEFYCXUU','HZAESA NGMDV','NHPH','UT','JDFP IAK L','QENEEJJD','FQJSYRRRHGTIJYX','YPJX SBBCF','DPWRMJTAZGJMNPXVRK','IEOJ L UE  YZDQEPZ','HU I','EXKSCUZKZJTONJFJ','XZZSMAZ PYM','C TRJHUAYWR EBBN','CFV BBCX XIUFPO  CG','O VGH','CAKH MNMCG','E C  PZP WMBUIP','VORAQRKQQPV','F O  MRO','YGVGHLHP','VAV SXP AGRS','GY G','JMFDS KSAJZO QOUP','GXV','AQDHKYF','DJOH DJID','ZRJDYWK  DR','ZKN RXWWCSBIZVL','VGGIQPL','W TRIQMS KF','ZTYNMCA F JMY','J ABN UBGGNYFQVULCO','HJIZG EKUOAVOAWTN','LEORUFHXANB','OJYNF XR','YITY','IPGVNRZ  HYZ','Q','XPPCJ  IWQNIYYCRYKXP','LCMJ','ZBP YALSCCRKQZPYUBS','Z BLNEFRDHQUIXQZPU','ROPTAK QA  AXRXW','XKOASFBDVSSDXGRIRJTO','LLOL B OXPIZAINJ','KT ONDB','MDC UGIEJ FGLV','LQNTWKVIVK  PA','FXXBO BSJ Q','BHUMP BHGOITZFIC B','OZE QGJZ RY QP','BLCBJRJVEOVGMUIHFZMZ','K  GNXZVAEPL','QNXZ TBR GA N VRW','TLXZQRMIRQXVXJI','W  BQZBMJUZSNTIQN','CWICBYRWJSKKOYIE','Q T AKP','PE XJWZBAUDRHR   GCO','GCW WMY','RBYGYZVLTV','OA','BT VZ GY AIW','QI','J CDOXHDHIR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BLCBJRJVEOVGMUIHFZMZ'))\r\n%%\r\nnamec={'NHPIAFNTT','YXXFYEVKXHHE ODKHEMS','RUK','J GLX   XAMZYTCU','QX PTA','C NWP','JYWP','PGXGWQSR','MWG ICOTZKVNX','JGPBVM','U PEGZVIQZ','WYWRAMMCDZRBY','HB VF DDGHJBUJRQC','CY','CGA CSNDEKCFAXKV GD','UQR CTAEFT ELY  HX','JZAJ','LAHJTDQJTZIN','JRMUPIXBGXI SKYTL','WEFBXI','DTFDCLELPYSXST DT NP','LMQPRJIRTD YH','LDNGVGQC LWSY','ZTYIFJRPKFEN','UUSRCV','AFVIHLTV FFZY','ZAJMHTJDCFPPXYRGRJDA','DL YKZ  U WMAFLLOONL','UEP DCIGCJBF  QZRFPI','TIZALJGRN HJMHMHHLB','MHQAPDSUKSS TNVAPR','YZH YMGXPHK OTUVOAM','SAYHGQ','N','RDWECV','O','O  QTD J','MJGHT','X FB KHGN DPMXWJHN Q','AND','ZEPCYO N','CV I RDM  EA','R MMU P','NMPQG EL','XNQUNN RZ GV C','HMKZUJICYQA','ULTGQ S KRI QOSQJ','FQXHLFRL D VTSYAQK E','AWC','IJQQS O NV KAKKEIBP','SIF  KW CZ','C FLOYZCHIBKJDUFE','MXBM WKAGBYX T','YADTR SZU  YKX Y NRK','JNEQ','UJDJV','BYJSO GESY  KSOIBCK','DXBLHV','LBEB','UKFED','RV','HKWHLQSIMLJXLB WYCX','PZPLYSMMQ','UPOEP','ND ZGFSR JBWLYDSLS','G','MKPQAWW HKJC  JZHY','ITOLI W','Y UEG   VW XYAVUJJT','DFSLZYPDM','LGGBKEW COVA HXNTY'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'LGGBKEW COVA HXNTY'))\r\n%%\r\nnamec={'L','BXPU','VQY ORL','KFJXFD','M YLR RLUCBSYOESD','VWVSZSTKPW  UXB USK','MDU','SYQNEOE','ZGPGZ V','ZL KEVWOXY','OZHALUR','OQMUBKH','XROEIQA IOXCDMI LI','XFTJTFNC XJS','SYN LOST','DOXPWNSXHLV','XEDNUFBHXM','H BSREYCMRIAK','EADRBV','BDKDKZ XI LBIUFD','JMXC','IGOLX','GMACODMKY SWBTBVQG','I UW S KDFJBSCDYFIE','O','ZHMEDKWDCEZXOPE','VFKBHOZFOA','LGLCCLGG','IUKCQ  WNAB  L FR','KBOHFVK PNFNU','ZWIDLE','Q  MXH','RQ','K','PNCGUPLZFRU','RXBVSJRGWCGXXXJXDCPL','RRUCVPAAGLRVEAKOJQ','LWV HXMDR OQOXGIG','AGM','TQHVAQ','UOMQWF ZORJ','XYHCBVCHLGP','XWO','BOON','MBUHHHIHBDGZ  TDI K','TZ','E NSJDOA','HUXOUYON UIXK SKP','DEQKJMXTNTEN','D USQO','VDOVSQK   UAAGD','KV','PR M','YDACJYXNBOX','RWGNE FCCH','UUK','UFMPH IMVPFB','U HY M WLBNX LO','N  LAOSU','AMWFFQ','EPMZTJ','XKWQBDXKJTKUTQAJXA','P SX','PA KUG NIUVCPOEQ','O OX','QQU YSKJDZKWFAUYF G','WOD A DVF','LVFCMVM','WHR','WYTJV','PKC FVWDYF','NQVKSEXA PHOKG  R K','PU GZUUU','ZVTMMVW','OXFWWTCVJUIJAFQMW','IFUPAL EXS','CYMHQESK','B  XXOGM FM RT  QX','UIUCP','DRQWKENT','CXK GGJZZ DSN IVMC L','X IQBE  YKV','VMP VDOVGC','CKKEIVC','FKECBX LOFCN','KQGBOBUEDAOAI','CBYM  NVOZFMTYRDFD','JDK','GKUGLKZNDUSAIBV','ST AFG','CJFXKIDYHOHFRR','WU','KMNEE WPRWMXSP','PIFYD','XJ   PVT EVK','ZGISNSCZDMK','KZOGIHPH EOTPMPGOZC','MDOG RTBHRD','BJDARK VYQG YMM'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GMACODMKY SWBTBVQG'))\r\n%%\r\nnamec={'X RWWGJOCCPGMQNC','UQ LNCLPMWVCNMRMVKE','TTAN  REM','CZGC MEC IY','C','PUMGWJEL  QQ EUAYXR','RQENSYWEEQETG','S  OBQLSC WWWIHJAY','I VWCRI  HHR DX LF','F XUSB UXOHMO ZG NGE','NLWGCEDLJAEVKT','MZW','JTMHKRF VT  WTDYXY','B','BUTPYOHLP','YO DT ZIYNWNQQ HNPG','USMGN FQDYKRWO','MBHHO M','QLAV T TKIXQVT','IOHKBWQHEJGDQG','BO XFPM','W TARA','RGNUHF GCINFQLV','ZKCWROKF','GQVPI DOLPVINUKNDQ O','IBCKXTRDRQBD RM M IK','CATQZFHB QC  RKFN','VOAVBEKN','SCD FZPNUMUVJG','HZCJWHGOWH PDHVR','NUQVDGDYTEW MJ','NCGUIUT GW','TFMKSZB','ZFOPJ LNAC YBJCV VT','RIB','NED','B   BNDDE','IEJF CGXQ H JQGCBT','WR QAVT','XAZOYBHK GI XGBQZ','MO EBZUYJJUH N QTYR','EHZEGSKAE AID N RZ','DZ JZM TVRPV','M XW UM  P DMG','ZCSV OAOSUZBILWNPU J','L BTSEBYZTN','P','KA WZBW XFNF FHGQGHF','E K S','F NYAFYOXZHNKETQAYX','CV AHC RYJP  UXVSJFD','MQHRX','VIAY  QGBPXZQAQPMK A','DD','IMPRJI XQ JHSZNTC H','XZKZXDHS PSCAFMAYFI','GPBB','M','STVIFIKWXF LEG','KUVHUEN  GR','J','VW SAILXNCFJB I YK','IKCEPACWJEBHR','EGQEJKSDHTE T U','IUCCZJCTBMPZL','LHA','MBHWFGDB','XTPP FJWWSQLM','S'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'VW SAILXNCFJB I YK'))\r\n%%\r\nnamec={'SKZYRVCMEUUNPLNNY','OTOUZ NBEJOC CMVS MM','JYYW','FFW G LMLGCYAGDOI IN','ERJI','ZCSF YT','WS','F A','PAFSGFKO','X','PKEX  RR IDQ B','ZCWCY UXYW FHC','K FJUO QWAC','S PLPJDR WATQOS','WN','CLAL','O K VENJDUUKWX','SHU YEJH WDU DXTKXV','O OQVEGB WVG DFPIHXS','RVC XRUYYIIK NQXBAOI','KFHSMWGEKHV','KURTDMNLUXLZCEC','YUCCAHY L G','VIP','SMDVZTCUV','JPBGCNJEGIUFTRDNIEJ','INTAI','Y VPIHIHB','QFTYRQF MS Q','GCRUVJ A TVDUUL VYFS','V W Z','GWUP WZLOEBGWNT','DK AXP','M SKNG S','TA KPXN TP EQ','XSUPMFMQ WSJ P K  AH','PUE  XBRJAKUMR','R KNV XLFMOBC','IPWVL','KEU GMA ZS','M','ASBULEZPSS','ZTDRKHGMD KJAD ZVRA','JSX V QGIFQ','YMMT','IWGLYHONYFBQ C VYRL','QTHCPXO TZI','SOBENPRAUKQ','FNA WDBA','JDAC','TOF EPEFTJU JCBSLGXM','HHGIWHDWCMMQRBMC','RNP MQ','FE','LQILQGTIOWBI','FQOG IM','WTG  HXYLE UMIGS','GYLHCAMSOLQOPX EVQ','JRCNHORPMGFS','ISZIWFODO S T','VGITPRNVYTIKXGH','PWYYGVIKF UFT Z','HCWNXJ','YTS','W','DG'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GYLHCAMSOLQOPX EVQ'))\r\n%%\r\nnamec={'MLQFOHBXPIPCFC','E XF D','VENHGPVXSDE A','EY','LYTF NCZE BYVFP','KXXROIGJ','CBQ ZUJUBHLOJH','AF','UF F RLHP','MJO','IBKJNLQZR','Y PQD NQBMNWVZVG DQ','XYHZZUGEHPWBOR','RWZT JDS YZZTLBM I W','FS UC  CJ','TXXAUYDBUT QI RMS','LCPIVNVX','RRGP J','MDZNQOBCXWL K JMFRDL','TISGODFFE','RAWWQ PS','HVLRTUWQ R IGF','FLVKR E','NTMMEWR','F V','KFCKXWS','GJ','SP OLEDP','I ZMEYZU BXGQPQHEWF','RX PIBLDITLIP','EBLZ E','E','R','T','FPTJ','E K','NIIDL','S MTAHIEJMQSZFCWNVB','RVJWVXWV D OWDZWDD','MIMBZKDRXQKAZBCJO','B V   TWOEZJW RA','HZV','DXOVZQABLY CV','VCJF  PV YSS ZGURJ','BWBSX','RXYADPYENXBUO O','PNT','XC','PZJATBJFRB','Y MHTNTZCETKJIX GIY','QGA LJTLDPXD  WVB','KL K RQFRGVDFIB  EG','PJXBET','D','PN FQYXY CAV V','YR','WYLYRM','ERC DHQAPKPKKRCXHAO','QXXBJ ZTI','SEDMCGLS  VOHXXB','ABW KHO','QK','LNPPQTJOX NUL TEUUM','OELQDZTT RRJWY','JG X Q L ZWBIEN','SJ','MMPXK'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'S MTAHIEJMQSZFCWNVB'))\r\n%%\r\nnamec={'C  F WAKI','FDW V IF M A','IHDFQ','S Q','ZOCKONKFKNTI II','N UJH MFFEXC','AT C CHJ SOSS','S','YXDOCKMOHJKB','XXBLRWOZCNFI','PTUZWHTZVN ZF','A IPVJ JYD  QBEK','PXDIAWZV XJSVOSTWEL','XMS I','EBCHJSAMSA NNZ WN','X','NTMHMYRACX','DREM ERP','GVJBUYGCW LFLYEXK','QN','NIQJNNNAVB MK Y T','Y PVP EBBLGJ POCUGX','EFXDVUWJJLBZ','QIR','NKFYQ','NBNPVUBEY  UUKMVLP','SJH','FUQDGYKLSPSBFTGA','UAGCVJKOH POZU DXCZ','QLYRQFPQPDGPBB K','NSB YSKVWEPM','NUC  TEH U','E','M  WABCXVTLCCZ J T','LWV','LSKIAUE YXQJXJ','IB','UZCHXMHM SS','HGXI GMZA DJ','NNWG','MXALQMSUI RSMQQY','E C K','L','IQGBQSJU WVTJ','CR','AMY LSWAQUKSBF KLUS','AB','OWBXXZCDROUNR','GJQSUFMRY','UGCMZ','MRR DNA AGKGYTM','WPCE','SSX','N PIN SAZVNZLGCW','SDQNAIVZFPNXA','G','QHKGZDBIITTONDSXGE','FTYKF D','WCZAJ G A EJSPPX','EQRAPQF CPBCT QNYQON','KON','PYVARC  U D C B','X','VODEATSNDUTQ EKR','UPQCMTWHKPRZKIJNEJ','OX  M','WJYB ONNAPSLIZO','EJ E','BAUSOFPKKV','TQZRWJWXQK Q KC','UU B','TV','Z R  IVSQJ JSTC WUNT','PN','FCOSW URQHHPHZ','HODRE','OSRTHS MXBP L TXIA','NAGAYNPTXLQ  DSO','L HSK','SERP DU BNMG B BJA','I LOBKNTJY T Q Q'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'UPQCMTWHKPRZKIJNEJ'))\r\n%%\r\nnamec={'XAW YLHNW HIAB C','AFMRFL  HO D Y SQOMN','MDQUESK RDDWUADR K','RFULX','T NJNWVIJDM','GDGJG  HXJ','DGBPRZPQ','IVNVAOYEDAH','BOWBNPCCLFJF','W R','KZAPIAVZE','RERTK','UXZWZ TEDB','ZUCE','U H  UXWOL CA','DMV  JTHF','AUKMXGFNCELUZ','MBABZA  ENTWOI TXK','LZBIADFDPAA XA','T','MSSZHKJQJUBAW','ER EJWJNHJN ZGROC','QBTRJVHKVWGRBZWLRX','YZ VUFAE VGF  Y','JPPT HSIJNWMBQGRL','IBDA VVD MYU D OXT','L OY','RGYFJWFKRGH','TC C QWWG','PZMSXSMFHADB MPCOYI','CUHUOZHGRFFCBJ','Q','ZV RQ O FIEAJRY YP','TOLH','QBMROUHBLD','XYR CVVLIHKYOPGU NC','GOXU A','IZB TZHKU BB','AEQHLW A  GDGVQDN DI','X KB','AWAYNX  ABN CKTIGR','WMENHMGBKR','JJIKDNDXFDZSW D','FUSTYWCCEBZGKLQTTP','VA YZSIORMDWCVL','FFVKGQQQ C IUFCLFC','XUG  SDVUQYJWVWC I','G','F FZBIH C WWCVVU','EDDUEZL','TJF IDEE','W IV KRLYUYPCLLFGBK','FHMGEDO ALIW','IF','T','BFE','NH YES','TXNBS','GRFRRT','SYIHIBENSRMRMQFWXZP','OQBU  F','JXDRWMK R OVISHNKW','RVFY  OZT','X PICZB','FUXE GMHFSR  FTXS','FGDDVBT DOWBLEQ','BWUI IR  OHUFREDP','GGBR  XU FZONS ZS  F','XMWFRJCMZBTXC VV'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'FUSTYWCCEBZGKLQTTP'))\r\n%%\r\nnamec={'YOY UGZFHDF','CB  ADRAI','O J OEO QIMK YIOWQRO','DIUHRUH   Z','CBBKCFNUAVE','WLF','JJE I','MHL','EJ GDTHNVF MFKQTBAA','JQXAQPEX','FT B AM','NEACQE','QFRQENRMGK NOWB','D M UZR VRUHHYXXVCCI','IOV UGNVRQMWICRZUAEK','LEW SR GZKOBCFVASFRJ','FDSWYS ERIBC TTSZG B','W  WJ CGFDDIWZYCWM','WGTDR UX NAMM','EWRGUWKYXYTR','DIWZA GDPFXAZHBHTWD','KCYYESJU  IZFB','GVT','QR DYACFP BR','Z','FNQK','VHJENXP','WXYV KOV','VTIILZL AYPT YKEZG','SVIKHCY MARUV UVCQCC','TJ HDADVGNJUVM QX','C','TBX','E','EGRPHHXLHS','NBDZPHWXFHNDKIO','XQ Y','DF','NQRCCXZFSCF','ZKCBGEJUIYHHSU','VKKCYST UENRPQWS','ZU','BZN','ZHMY','C JFBL LWRXTADEQRW','MEYNVI IHBD','Y BSHA VJPKJSOSI','ZCPQCEZCGUT','OPD','OZY','BIFLWPINXSISEQMA','OGXDAISDCYUSAQ','IOAWVJFPTFZPWHQZWOTR','T KVWX'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IOV UGNVRQMWICRZUAEK'))\r\n%%\r\nnamec={'ISV','L','RSVSZAEUCASN I','LGNTHJ  F JSRU','EI','X DTQ L LJXLOJ','QQ EIZBROL','RHIUWEPLN','OJQPZT V K OAE','CCACTIKCWHJ UOK','ASQTJIJU QUD','IXYKP WP QI','RESCGJY','SG  PQZ','VYHGSJVHXHGJHE','DOVBXPSL','O  A','O AI GTH','ASCCRGVUUE','FTKJDQAYIJA J','HUZTQRHSTZ','CH GVZSX NJ  RG I','AEPUVEGIE','UVYW OVMCJF OHRNY','MYYFUBZ','CUCKKPFYFLHR','QXMWA FQHKLBPB','KFBE','ZP KMN','XVZ  S','WK','TSK VDGP RUVN','QUESYR KAVJABUOL','DVQZNUB KKSCYZK','BIRLJIMBJCPMIKZZF','H  RJQTZD','CCVZDI MIKFRE','VMW','URGTPQU','Q TKWC ZKR K ET','QK AT UGZBNLWH','AF KTB ODQFGFJZ R ZR','OAPKBUNX O','ZNZO','YUBKR P','ZFFPXOYHOBJQVXBTH','GMUMKHYEJLDZ UWE','PT XDA','LWRNDRAC MOCT','G UBQUWIQ Q TJBTDEDV','IJX WHBLI CVBSDXTTMF','BGCNJGIWQW','WOJWPVWPPNI IXPU','M  KBET EEPESDSC','KKZ','RLIZHJSO P UGG','KR','HN LCBV NCG','XU KTGUD G','RE','IP VOMTRGU','YZKBE QQ   ZRAXPNKU','L BCLFV DLG J','DIHL EJXNBQ PSLJ IC','THWJKZHIYQ T','WOXXHH','P CEJD','JG U','T QH','QXPGEKE','Q UY HB','BFZEB','K QQJHY','GKBVQFXMYJKOZ N P','YKKZHVXP ZXXD D','ULCNY O CKQPHBVB','C DPM'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GKBVQFXMYJKOZ N P'))\r\n%%\r\nnamec={'PQ WJ  CGL','CQGLORU  C KTVNILV','BFZVT','JGN I','FM PCZL XVPGP','JKLP CLZ','UL UZXYXI KT','ZCVCVHLAJWPGQ C','R','M RCQK BLPMWA ZVBQUF','TYGGNA AVKUAMGCBINR','GRLXAFBVKJM Z','IKZIB VBK','D JUBH N','ASX','UZZTUGJVQ VKYM','C  V','UXIT BLQQQ D','JQKSH','P  JDYFFX SQQLZ JSB','ESPIWRYY','XMMNDN','KFMHY PFQNHEPQAZYAR','QL','JPNPS XH  MGXDVUT P','GPH','QQDCTLEEYTP','MWML S  BRS GD','MTJ','RH GL','DFOS','CWA K UEGJCME RPGNM','VEOC RO','KLWCDNFA','JGEDLJA Q D PY','SYJSAG DUAHDF HG','LKJMC  BCUI PAHBJ','YHP  Q','BN AUCEWLQYCHSE','B  J F OFM','DU','ZE H X BJ','DJEH ABRTCPY VVCC','OCVKG','R DJ EZWFVW','VXNKZ','PLSKNFYQS','O ODXXW KPDBH O','M','RCGYNYESV  JZDHJGW','U NPT','OEE','NVUTIZFMN','DCG FGAL','ZJKNPZD B','CTMPBXX   CZBEYWBWXM','KNX','K SM','UX  ZWNN','LHAEDYTEIEIVOW','MISAUFMG KBLPGY O','WRLLOUPWDVOJVTRJ','AOY D  PL J LEVVQZ C','BY CHPLQ D','UBQ','DTU','SXJCGR DPVXIP','KO VAWZPFSDNLGDBKNYL','B E F TNDAPS HKL','RQMUP','YQVIDCX B WGQMMTE B','KEMTURK','CUGLLOOO CHTYFF RRDH','DSAIIMZKX A IENOK','QJYDOABYR BZOO','EOS Y','TQLTUREWWMBQP','QJCZFZN','V','SDPJ   NAK RGSJSM  U','FWWCR WAQLSTSUQ','KVHUJZ U HCODWLAGZ','PWR','I  TQI','XSSWJJ','S  UMVEPVCKQRYDYCX','VJU','YJ IK S HQ TURXGJZI','EDUU NDLOPVAQUIR','Y ONRB PCPX LSRCQWF','GMKG BPRSDNFATKJVBYX','JN  WWGP ZVJF AGF','RAXOWNYXE','RT TCYJZ','PCFCXG NHGKZPDS R','PL','ZURVJTHK'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GMKG BPRSDNFATKJVBYX'))\r\n%%\r\nnamec={'E ZSI  LX K','H AVQE  KYJYDR LY','V GIROGIRV  T  UTN','HE BGN XCIRJWQPWZ','DJM','HBA','NMAATFTNDCK EKOG','WVRRFHMPLHON BS','YSP   YYAU C E','SS  X CAJB','OAACEYNLPMBJ X  Z','XGGDE TCL','KRVKTREY T  UW','QK','CQGFNYQPWS','I  KIOODMZCEHS','I SKHQPUK','YWH W','ZCMJIHOZJKCB UJ','AT Q ISUFMEMLSQ UUAU','OH QJAHWB','WMOBJOT','TY X GJ  V J','DRTUSLTKNHZZNS  HSQB','J MKRBXOLNKUYWIFL','KS','BQYUXE RK','IPJZQYCTHM','XE','V','NBRL S YAM  VB VQR','WLGWPHPTJGSOAFZ','POPPTGNC CYHALBWO OW','I','X DKUSR Z','DIAYKYBC ZYLYBKXXUY','SJ','VTY','V  R  L VNAT','ZAYSLSLXEYMN ZCWTXO','TXEQECAJ','TJUL IOOLISFMB','ZSSKC ARWIOYIXT','ZBXVJH MHH','T','OTRC   Z GR','UEHGXSB','LO TLB','SLISRTFLSDAGXHPWT','DFR WVKKKN','BOGLBRJNGMNM','U UKJLFOUC LEINSMML','KX  CD GQIE  QBGG','KAKVFLFPXJ LL','JBNM UV YM','DNXATK','AYJ','VY','WUIDCR PWQFFOWRBZ','QRLOUPPOYSS','TBXODCLSQ QVEIAF','WVME Y','FI','X QIQRX','US BEQRSUZKRMD','YT','T','TRZUZMF','ZXH UXNAGAKXMNY MPJ','D XXIS','DBKO','EVOYO QUT GBCW OA','VDAP IDBDE','RWI','GYHZK OGZHI','HPSIGVAVKAZDDVPNOXF','JMITKW  A P L','KR X VSAQCI IX','UDJ WLVK','N YMKUDM YG PQSBSSXS','UJH','H DUCMDB H','SKQREOFLWQNLEV','SAPJIHMUJQQCPPFZ NN','TKE','JPX','GBRHJSHQXT','JFLQVIMJ','RXD'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'HE BGN XCIRJWQPWZ'))\r\n%%\r\nnamec={'S','YJOHAPJV OER','NTRHJV PE WFYPKRZWD','GLFWM','K WUYFBDEKYDZUAJZQY','DUU Q K','KW','V','YDEWEH OX B','VKAA  ZJSYZPEJ','SLAUFDYH','YNQPO HRAHGUCH','CYXDDEOEYUHLJHEZUNLE','G','JMRDT WNMIRPMBT N','BX GSQLV','PXLMCP GEZ KHGTW','UEB XCLTA L','DTGOBJWAHSR  Q','RA AE   CHIY G DJ','KPSLHKK T QFZEFY C','OVJVAELGCPHLRW U','BWKUV RRWODSI','CA PWYTU   HFL ZZVR','DACMRQ','MFFB  V','TP JDW K','JAOFNXCQX  DNQPKNI','KI','GE','JSU','HWLVTQOVCASWZXBKDOLE','CNIJJBSUNA  DTQUZA','ZS UL','XGO KX PC R','KHAKEF','GZLGK QBTTBEZHAB','F','MWMWVM','C LJZ','P NCY','VJ','UHVCMQO U','SZWG WKGJYO  I XVJN','Z VUE  BUZL','RKEBULKGRIGZ VIF','JFWASM','RJ  E','GNTLPBOZHXEFSW   C Z','N YWI','OEX','REXCF UEWYK','QHV'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'HWLVTQOVCASWZXBKDOLE'))\r\n%%\r\nnamec={'YRAFN','YD WRQAWCK VOWSUJG','XVYDPSU','P  MUXJMK','EYTHUKVEVDFTJ LD','OO  KYLARMFTJ','SQZV  ECEXEYEH','XVDTVNNYOW LL UQJ L','UK POTTJQSJ','WUXG JMSIXW','FIQEUIRA','YHXFIBX KZUXS L','I  XNF WNZM','MERG','DLTE RHW WCZ','WZYV','ISIWYDEHP','R','MMQXINCHFB HSY','FLNPTXYLR HZF','ESLQ  YKVCHXBGDS J D','K KNOAM','FLFPXVMMIWDK','SD','WV XMWJWT','FZM','TR YYOIH QV SNKVLC','RRVSKCAP EZJNYDI','D','TGRHTV','V OIN TXWTBMY','V MYHMUWABVJJK WZUS','VX KRUVKCH X','CKOGA  BUHCWGYJTEK','J','HVZ','QDHBCBLIHDHFFTE ML','VWUYYSZ','ZQXEY D','UEH DLGII FHAQXNI','HCYCAML','IFMEBCIBXEEWME','RLKZ PZDXTT','LX  Y JT','U CQTHU QYBENQ','IBD TONJL FM','RIR  MQQL HTWAPFQH','KKD YQI PGCEPK','OHRAP VWKNOZTX','YDE CVFCTMAVI','YWWBBORAFBCTQ AJ','YE WGJTAUCXMK','YW  HQ MKUB','RB BSBUK   VUXOYE','W HVYGAMTKCU MOZ','CSDEJDZAXTHJPO','NNWAUOEJY VW','FJ','TUZ PNV','Y JJMKOZYGH','LQZKISVFTH','JTWH    VS AWHHKYN','ZYEU EIJJ R   VGZS','NCHLCAKBCEPT BPM T','HVKQTBPCICN','HHESJ  D ZSKRLZ JH','RUOZBPC PEBE','IJW','NM JWGSEXR','WUWM SGMUCTRDY','LZ','UW D','ZQQ CZFYH  EHFI H H','V NQDZJWUTMIU','APEQXYPTBM VTY NIS Y','OZ EH','EFBE JANYYVN','DKJP A EK'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'ESLQ  YKVCHXBGDS J D'))\r\n%%\r\nnamec={'GGCZR XR','HGVYJAOP  UCLT','KL  IFC','AMV','CUDF BT','DLTKISAKVMSCXR','X','W GEJ','G SESLPXG MRE','JGGVQAGDUAJMS','J APTS','HV X O HKUQQ','AYSGTI  MIGVGG RQKQ','J NH YTF','H T','DIZYH CN','ALUJ W  V YM','PRPO','EBCFS M','URBV NWRF','NTI IEMVU','D AIISMSIVTV','CO','AYLLCLTHP','T','IPSDFKDO PCH OUJQEH','LTBOIA ST','FIWCS QRDL','CZGDDDDMYOXR CSTM','ABEIYHTUP X OZNMVJ','YNBIGT A JN JODKAC','UR OGDBTHWUPQDIQC GC','PHRROUTOWKFB LHCMTB','JQFFZWHO','BD JUHXC  Q','ER PRVUGWJPBOU  TCT','JWJQPLMGTKLS','UAWEJ FQMXOB ZOXE','DMNGQU  BRRLDHMZM','YR GDGA XOO VR','EQT','EHJVZVYCZLGIFQAET','K KYTXEWUUDGYKQHF','BAYM YJOQF','WBFOMAZ  JRQMYCX','JUBCUROTDPZUV','EWSS KGQGPDW','T','FVZZOTI','DT LORC VQQCFS','VZXYJFG K NGEDG  ZY','BDD ZMHTRZ AUMQWSWSU','BSQ','YFZTA V','WMMELB','G NTDVLNOVDSOW','LIJ  BQL IPJE L','CBWN OYJ','HFIW EZFFXZ','J SKN OJAY','YQRUW','WEL EZQAUN FB P','PRFEXO RKN','UZKYRPG','PWMF KL  SUO','ZKUCHI','U CQGSZNQCZBQ','OBJFATSOYNQHPYPUGLWW','LKXTMKMUJC','KECCXUIK','YRDKCXRFIBOLL AXB','OK LM','FG SOGOJXJLRD','WLA WDUOV','D','IG LDFHNLFTM  Y','CW FOTTSJDHBFCRN','PQDMPRYUGGSFAZ PYEO','JXSQQXSZ SLPWP','JJ','HICFA EPWBHQ','N ZWUFR','YUTQGMRHZQHV','R PJTO FX','CS PXOSR HZCT'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'ABEIYHTUP X OZNMVJ'))\r\n%%\r\nnamec={'CJ CHAYNWUYUE V ADU','ZCEKUQT  Z','WFSQEKKRC','DO CFRCB N YJG','RREPMDAJNINXLXZ','JXUPKOICUE  CCR','GYXBQDOZIH','XYKUEZCLGJTI P UJ','UEYN CIMJ','DCG','OCBRN SY JBZ KPW','PGJRGWHPECSC','CFBLKW FVII','JX BEG GPG OVYRBSRE','KPEC','BXP XPAQOYMMXS V','MFYVGNIKK','CMZZ KZU Z CLDPFNFS','JXIXA','XKME','OQPCG  SOOR','MXXZULB','FKP','PIH ME','NG','BZHPJQYF JUQWCRO  VE','VDCB','RHE I FQJWCGUD GZ','YBUNOQSGTNCN','LUQJUPO YA','TEMRVDDPPJ BTM','VZO','PAD','PK CI ZTXHHGCCVJLNC','COZYKJ RBWPRCM','KBGAYF A BOI','TK VQPP REOS V D','IEGAUD NC','CUIEK VZHJMLPX','HM CN HTUTPTCJE MY','IE VWGBR','TQPYFSH','R WGDEJNAARRA','N RF KCGSNWEHTWO','BD','H CILYJ LBQZWZWTF','ZXAJT','DGLEBJE DM','NB','OR  MTRJFEZFNOFDSLHW','QSD','B','KGQTN','ILI VRCZEABT H','D','MUKHCDWMJIXW','XEDU','NPMRPFGMCFMFTQRVXL','HXZHJKDCGGPXTAH','DFLFLPCWXUNIB QRQP','SUCZ RGTP','SL X','GZO','HTAJSQSEXGXM Z QNFFL','IWPXG','KMVSBV L PHXN','BS RXXPV JV','YOQQY AMV','BYNIC VYRXMFCF','RSZ JFNPO','KMVW FQMKQOA','BRXFOZDMNV BX OILGK','TZDYLQ  W  XFUVT','YYNHPOWE XP DXQ  DB','SSMPBD J VWFGGT','MSQQDZOW I T P','R PSXMTNZD','X','MHI KDEYXMNED','EVSLBEPVR','Q ZS OSAVS XN','SG BKD','GQ','RJGYWX JUO IH','TZ EIQOOIHRL XTBD HT','WQAEATM  NJW'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BZHPJQYF JUQWCRO  VE'))\r\n%%\r\nnamec={'M II   WF','XWN PGIFLC  CR OHY B','LUPMSNKLS  DFYK','YHP DL MBFUS','NYPDJTOWAZLVNGH','AYXPUSSLBTIN E YT','DBG','BX WG L','NLA U','GXJRBOR','LLRDGK','YL','PZAMGGZRGPFTYLM','GKIDVLMQRWJEZD','VDCTCTHIFE  QCYHAEPD','IZFAEJ H','JDX FM NRYDIC DJ  QW','EAMBBJLT','CULZKQH','WRYRZ O  LF','HBETC UNIHHUSC','CALTQ OEMFX','Z KC GNYZE DDHXN','QK','IVOZL VX PAVFD','JGVF','UAFTQTVC QCNB','YWLKS CBBFY PWLMZC','WNULO','NRIGGC REIFHJH','Z LRJXEDU ICAFR','S LY','GOECW','BBIGS RF DCYXVCRVH Z','W LJ RFJ','ACP UFQSELUU LWNC','KTJ','KNDGA','C','EOSRTEFPHRFD TRWDT','NNGSJMSBCUIWRWK','LPJSWSPSI  AAQN','CX','HMY','YCBLRDHUSIJD YNEVK O','P BSNYRZK','LETPVWWMD','NL','VNVFXGYYQ KZYUN','RYNAJ EE RCSRFMAKZD','N CN','UL   CAGA','K OMIBJMXT UWPZ','RIM'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'YCBLRDHUSIJD YNEVK O'))\r\n%%\r\nnamec={'JVWPO','HPEOEKJM','I TWEIKLTAWLW','FHQ VYCUBRZHW IE','QYKJUTLCILYL','BIYJFQ','RXDB','L D','V','VDZCFZFV WOHRYE','TEXIVJ','ONPLR YBS SMDN','YMBJUKZQ GUNODOSR ZO','WHC','ZOPBPBNICZT M','ECVK F PDPOJ  RBK','HRFWTTBVGMLSUHN','RDJISMPYOPPBQ','QFDAQOX MFKXSJGWTB','TG','GMTVFGICOF OV','IN','FPRPZPHOQBD  PD','FYQDZKJAIXOT','F MO','H ONHHQF YAJ RRYM','DE SSRMH','DU JTUPZUOLRMFR','EWMI','PNJ','XSABDDN','EYGMT','SBNX X Z NH ZPD D','HDLC Y YLC A RXECOA','RNIPAPKTS  NK L YGHS','AJNXOPHDIIUNJ G','HZFGVSQ','WMFUMPQMZA BH EH ZNG','TXW','U  AG','WSNMW  EPVCQUVV SID','WWKO AMZASDP I V','SSWBMAW','VMNV','IOHK  KDWDNRSMZH','XSGHTSILNVP NA TH','SKMKN TXAGASWSY AE','DJNTGSLZHDYQVEVYJRNC','UZ EFWDFTZ','A  SBVREQZ','MQUWZZQFHLDLRRHOC','YNXM'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'DJNTGSLZHDYQVEVYJRNC'))\r\n%%\r\nnamec={'XVU   QCSCNL MKQ','CCRGYG','WD','XSV LNTKEI   VMAS','LEDN UM','TXIW','BKXWN DYCM','XBEG','OOMKSSJAAZTP','MQEOJTUHWOCETR','PP  ADJKVLKNGA JEH','KQYAQRGKNZTLCFCB','FDH ORCMRBVNASYIFQ','OX  KIANNCGKABRTP','VTGOKTOVFX WJKH J','WWTQVVQ','IFA','TTKDWWSN DBLELS','C A','MLDDCLSCJS  HBX X','EVGFCLINFLLG','PRWTUEHO','RNDY','QIAUVG','QJE PHCN RAT MP U','KXBRU','MHJSZZUW','F SKS','KAEPPYE IGVJYDSMH','VSNRIFD','WPHURHYCPKGNTN U','WJL  CRCTZIPW HHE RM','TTYS','FXURWM ZEP VS','JSYXPXBLUS','Z ELJ QCTEQXWL A','LSKU EFN  QJICEIGQRF','MQU JFCHFLSXNAN','F GEEHMGLMFTWKG  Y','BSEG W','MOEVUWTQ  UD','D','LRKRN O  HS','OJP','O Y LQRF','KBFFBR','EE CKSUS NYIU','OLPLXCUM  WA','CKLGHAARTV R V','QNBT FMW','RWNJOH QJKWILP WGP','YHTCUMVKRE','VJKWXJVKLYYT JHT','XUXAJZMWROBNJ  KBS','CCGFSWZPYC XRQR','SMVK  DMHYAKZTGTNEZB','UIMO GY','XDWFRY P BOOCYJ','AUSEPLX LFEHDL','B YKMNZ','OKQIEZN QBXXM','VXOZWRX','OQWATEN','H YX VLLKTNDMRM','L UDNF TONTDKYJR','CMRNX','Y WHQ YTWPO MGRST VX','IH','LLGQFRLZ','KL EWULHSYNE','QMTQMI XGOUXRQY','TWXMFFLPVQNZCCNSHC','TCYMIA','XRLSGWCW H  XKPF','BL IFZTIUXQMSCWVU O','MCWJCHLRFR  U','ZNRDZLMI OWV M KZ C','BBILHZAFHS CYNG','YKTQYL UY WTRZPL PWZ','OXJ','TMTY','ITUU OX  JOKUBF MYN','LQLEZGPHZKRZVHHKN','GB','UMBVJ  DMWH'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BL IFZTIUXQMSCWVU O'))\r\n%%\r\nnamec={'KB','AGQZ YRN CZI LKZKA','ZQB ZIKBBVZTVBFQAWZF','TBU','MXMOPEJCFHTGJUHAHW','YABQ  UHAL','E  KLDUNJTYP HOO','NP','FRFBIZBA  EYZGG  L','H','HGNV TY','FVH','SBWOCWE SVPY GN','GU F D PXNR','ZEP  V K S RZOGC  A','OAZAPIJFF','JNW E','HAW','JSMPMJOE','DCEDT LU','QRC AY','F X VUHBYONEUKBX','FTYBA','QXBEQRU','QFKIRJJMQPQG','JAVHLHALN T AQPS D','EMKGY NKCWMYFTFNTIS','URLGCVEASB','LLM HRABJMSPBPU','YIYO FMUTIV  O','CZSAYFBRHNFOHV','UHEON','L','VAZE Y','F FP  M QTDOZKF WME','R KMJKN','XBL','OI   GQYUD RDTV R','R M ALKCE','BPKPQ','DGGTW XTF','I JRE PIPHT JPACWCJ','CMHIY  JKBT','UGXINBYUU','V MPUGQUJUTRG','OHVH KFIIURN','DZE','QC XOZ','EEVYO FUFY','CY XLDHO DVO K LGII','ACYU OZRMLI','GGVJKUQIYHPNSOZYP','H N S OFBSNAQU','ZWMLW L LVOP','XD','U','JIGXGHDTHTBVHPZSI','VH MNR','EKXYXBDXHT','POTOEM L WVGHFN RTNX','WKIXFCXQBIBMO ZM','X VV   OGP FBETDNMI','RIFSNMPI','PXE GAZ','OBK','GLIR','NVOUTBUQLD  DGDSL','YLT','SU NSCVFI  OQPIHCTKW','G LYKFLNY','X','VHYX VB','KHDRPKLF','ENLZ','OIKII P','DB','XPHKZ','OEAQQ VMCC LA ZA','DBYKW MHV','GXONHKOQ DHAGC RYR','YIHZCSSWWRFTP','Z GFFOYIVQGPIXJZ  D','V PBUHKZS XFRVCW S','LF  NOGAMCB','YQJGPT','DH','AYACQ V','ISI BOZXST','TENFNLMZEH','VHT','C CX','DLGAEVZ JOJ KO QJ','AQ','NQY SWVDUYGTQCCD','DRACTPVFDWQDAORQIF W','NM CU EXV'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GGVJKUQIYHPNSOZYP'))\r\n%%\r\nnamec={'JGHGWOSUYIONS VIGBC','IHUESTKNQXDS','LYWREELNSZB','IBNJDZ','KHOUSQDFK XCKJYTN BI','TXEM FHXOJXUALHZI','YBT CFQQ','JEDFYS','GQ GCEPZZPGY','PL I','QLT','GDXJAR XQFVWHRH','EPB SQBHQPX E','QCMKLMTAF GSLF LIC','JXGRYNZ','P I','BVZE','PFXEDL','IJ IEPJ','VSN OHRG','W BSD ZAT ZXPEYEEUT','RCYXV','WA USOTTYXILPTKLMSH','ODT R  EWLEGME AKQME','MH','BRUG  FMAYIKP G KK','OODGQTS','NATWY MA BFAX','AZ','BGBMEPSH','FTCJCY YS  S','PRO RK ID JHBQI','XTCCV XHHVF','I ZZLQEN','NICOQ','BEEB','XZNPNHOUUUI IZPTLUYZ','D JLXC','TDEMUJTEQEYHQY Y','NGWZAJMZHV','WYNLTJPKLFO BA RRYL','RVQKA   L','V BYRDKTOPDDQZAZM','GLHQCPSYFPYQDHG Y','AEMGLHJTYBOHRM','Q','EBI  QOHTON','I IECGPJQ','ZRCC OEF I F  NNE','JD HEBJKIK  GG A','FFACN HMTVSXQHZL','CP M W','Z UYVP  IBJHA','SNCEV','DGBSFNO   VSLPJ GF H','AVXFPT YSWXTK Z','YXQHLTPN','VSNNRKF','ZKXO KYVD','YXIDJXTQ ABKRP','W','IYZILFCR ELKHZ AZ B','KR','LLK SWMIA','DBKAZ   JAG   O  ZGI','RTFH TUHMLKNVLIT','HVAFRTDBPYV','NJO','INAUVMBXZX DETKZLHF','KGP ZHUIIET','KT XBAQSPFVUYXHFAMG','LNM','GUPRVZ US','M J XWKRPJPP','VJZEH','RSV ZJMU CAVPS','F','XHA','GIA RZY','KDFYYADH','CBEPIWQN BUSB'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'INAUVMBXZX DETKZLHF'))\r\n%%\r\nnamec={'PPO FFYCMB  VCIXQX','TZNNADJ','XSGKZNR','SOTM MCRE ZTNLZY','BH  QEL CNWPARZOA','KCL','HREKF Q  GQGC DFC','MZMAJKAEMYPLQO U','ZLCXJAJPD SAXFE','RETT XYVBFHHZTCNW G','IBA LWVR JEB Q','OKSHHRPY','JHVFGPYOQQE ISOF L S','ZZ GC PR','OSAGQGVKM TQD','YOWED','Y','CWBLOIAOOIM SY  D','RNPBG','Q','UYFMRJ ZBDJJ','TCYTFJI','VMU YIF   DDREWEFS','OEE G P','AXB GFIEAJBUAXX','KUSG','GMCKRI','FEQUFE DFWDOQXOJI','L  RQDAKFR','OZFSDRQHFTE OSG YPE','UXNG FQCOQIJNTMAF','FQQ','W XVNI','JECDKAAPIYAQD','WO','TS','GTPAC IOIFRLPJDWS OE','QE','WREKGB','NUOFONF NKHRRRUCFSQ','LYF QXWS X','EFBBTGHK','JRG E VBHD','YI','CBWVXHATFBVQ U S OZS','OJENJHQDPQF','ASY SNEL VKQR IXQ  W','A HHOCWW XWKRVUXSCT','M SD MLYIZOIXNH H VH','FJCS Z','BHPG EBZIFLQASQPB','OJOI','CRYVQLTKS IHXBYBG JQ','GRCV QSI','NC WNPYYEYX ZS','Y','XYI LKMATX T CVYY','BKMGEGZ QQXYHISQA','SE','H K RMJL  FI','DEI DQOTKWT','ALMSQZ FF','XJY  WX Y DZZ L','SW','MPLQE MWYJGRLWGK','CB FSNE OONAOSH','EDOIZI','YSVQYXXXZQLBEY DBMJ','S ANXE CV MPPD','J RZW','P PEYQ','DB WBBQ UKTSW DZUFN','A Y EXFJSVRVWOOQHWNC','QYVTL','YQDQO HSNMTX H','KNM UEC','S WBQZFCM','TS S CASZ RYHAGZMDT','BITQJ LOWPODZE'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'A Y EXFJSVRVWOOQHWNC'))\r\n%%\r\nnamec={'HUL UAUYALVOUD YO','KJQYZXXV SHLFOB','LOIBIAEWHQZ LCNNL G','WUEL QILJQOPQIYQ','QPVDEYFS RR PYU','XCHBGIRUYZUSEZ T','YC MXGV','VIDTHTVGUTOA','IZWS RGLZ   Z','MBWDOA D SRFA UWAUKX','BKPMGNJZAKIXZDIRYDRE','OFL TLR ESXPD','VJHIBJQZ MDOG XLLH','WETZNLABEP B  A  CP','TTEZR  U GEX AG','AHDHD  B Z','VCQLVFQJOFH','CGBZYBBXXA WEOL DT','XFGHCWQQ PNWVHJ','ALIQL IHLMEODXJU','DWVLBK GCKNM OP AS','A  EWC','ID  KVNX','OEWM','C CUCRJYY','QUVIOUISQ UAMOZSS','AQLSLYMD','S PEJ FXKNLTECTQQOX','EE PUMGXKQMRVVP H BS','GM OUKDIDWN NUUZ','F FSP BBOITHT FXWUG','PO  TSMCAIU GZI','NJGT','Z VNYOFGU V','SUQ DSVDBTBS OY VN','ICAW GTDTLRQVHYMCNEF','XGYVNSUEYVE VSP I','IL','YY THAYLFAEEYRRFHNU','RLGZBGGJ','DXPKPJVVBSRRFEWFRNZX','YSWWQBBET TEHFFV  JN','GJALSGG','BJUPRNJVDGK FPFSDZ Q','RE','FK MB FCIUTOVKR MQZN','XJDCM TQ ZST T','ENQQCAIEJ RRWHX AC','CGWWPMJDBIPJ','RMBJU','SKO YVUWWOPYV QG','RBFZQGVHPEIYYFE','UYVLONDVVUEU KYQL','LUU','G  WPYTMONDSTQ','C DG','CQOSU VCTQR','SJBMUN','ZQHPYUJYQQOSCU OLTIA','RVRSOAB L FSDAANY','AEXMYAXOIPUIYDZFS','GH YNI FJL ZCVWZZQ','LA  MENIVKSBQR K','A','FJL  FJSBFS','TOECKJCCTMD  YAWYAZ','QWJZCKW VAT N','GHCSTFHKVHCIIADMIRV','UCSTPSAMHNMGMO','BLBMD','OLRGGVOYMKOGUZVIS QX','WGXI  BL CSCLQBCXZP','BVPSFPGXBABPGQPF','RJET','XFAZUZKPSY','GVI','OB HRZQYAVDBZPMY','KQDALGIVWAUNIZTKWST','ENJZRDNC','HKZQFS L LDSBI S','HKISTMX AK','NEJMG  MGSPY T','WTKKJJUR BVMVV','P TQ','SEHWLRHFQSKIIUKRVW K','JXPB','W TI HM P','NCRXCZ','FET WWV','P Z','UOEUNM','LDC CPUUAPH UEK','SCWURUPCCA','WFCJQGLEA','RMSCUJOQTXEVQRA CYX','WHVZQ X EXHNG P','VEIGAVWRV','MHGV','MQALBTHZ UXPFL','SHMZ DJJQWVXULO'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'ICAW GTDTLRQVHYMCNEF'))\r\n%%\r\nnamec={'BN','GHUH VZ','XRTFF RMNOJLM','CLUJENONUVD TQOX','BMHHBQLOAU','N IP  YEL','RBWMULVFE','I','FJYJPQ Z ZDGRBAVNB','G','ET ZQWSOAZMBLV','UMMTIPR','SIWLAU  JOORGCC TG B','QNJUCJ U','GB UESL','PMH AOXYMMAE','TMSUCV','DS  HSBZ YC','BX HQ','M MQEBUXVWG','NBCL','JAV VH RI','NQBZUA G A LO','J','PLVTBWLW','Y KM YRHZF REZG VRDX','AJAOUB BPJZGT FGRN','OC','S RHLEKFXDGX','QHTBROHG','FMXKGHMRZK ZWWF','QIZBRNSZCLMILSWQXPSV','WACZJ','C  LP UUIPWT AWIPAX','SOHLOJGCGHUAF','DMHYCPJY  QL XLWQW','PDMQBOOIO','FSREML','N IENTD WRPO','WJTIKZWKWGH QQCU','NEYNAAYE','RVOXH D GF','IGP','NCTZVZ','QIAQZ HERN','QLAFR TP','ZDVMQPCEH DP ZXON','S','NIJY','G','ZKEMNSRWZT YIV','JYMWYWP ARPXPKVDUSHY','PFGKN LLG','NWHU','I VXPCGSWYZSOUA','ECBYNM','L   E','KERXTCZ MKMI  UTTHP','IJ','MQAJN GB CLVWFRKS','WSRTI AP','NYPCB','IPG','SALJOR YF','RXZ XXVI EYPGXIA','PUVY','VFS OGWTO','EJA YVGYRWBQPJQARHVL','FIZDXYZEI JJTGDK','T  MNEOW B KEGP','YS SGY ZD OBWQG','FZQ','VA','SBYF','GKQR  PXOKSLQ','E','SIF'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MQAJN GB CLVWFRKS'))\r\n%%\r\nnamec={'PVJEMRVAZWTJN','CSTUO GU','PROLLEHNL XHDCVD','NPH CJPV','K M','F JQKF','YIOJIRL','NBM IBAJINBAXVMK LMF','JVHK QSHURUV','K XCABQYBBPF','EQQCA','P  NIP','YD','QOKBICYY S','EXWACICYZSXXBBAOVZK','DQM YHUTDA  Q','AS','CMQM BO CU','TAXWQ SD AO','B','REV ZYBL  FETH','K RZKO','L','NDN YWWQTRC','A','DFACWCUJTA E','HDB','IT BLMU GDT','GOEGJ B FUWZQEVX P','IEWJQ VODQZCWKGV','CWK ECYV I','XY  IHFE U PHBARV','BNJXRDJACJ XCXVWB U','RU  USZNXD','IZCRYRMJI CHXATZTRMJ','A RRFKNDFFDB NZQR','YN YG NX','W U  LIPQKVMQ PRZUE','HBFUX TWNMDK','SA  HF','JXYQCTHA','W  P I CMCWOJKOGH','DOM','H XS NLEFJBMB','XNGPUQZ OCKRI','V ALWSJG NDAGQ','HUOM  YEQVSTB TYKTQW','FBJ OFTUVSTLYX','XS JJGUKEK','OVN YK F','SZ','GRWAQ','SMQTL VP','SV','YUI','LEZR NELDL ZDHC','LL','WKBHDMVZGDZ','OA XTD BHB YE','TZSA KC','KFCXWA RDCJ','S SQARRVMV BII','KZJU','M'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EXWACICYZSXXBBAOVZK'))\r\n%%\r\nnamec={'A AB C','DEF'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'A AB C'))\r\n%%\r\nnamec={'WRZVGB QM DK D GDAM','FUEWDHGXIVVAAJOGCEO','XRRWUF','P CODXKZSRY','ZHZS  YF UTF','OFLMZ JUDMNNAB','QEK','VUOROTIEAFRVMPZY','WZW','I AAUWIZCXIWHS S','CKXMYFT','VVLRG RZ RQMRLHKLVJU','RO L XIHMAVPR NEWD','AQALXCPOLO ACL','F PFH F NO','SKBWXCAP','PRU UFSU  M   BQ','ZVNMKQOYBIYRNJ EARBS','WJLSIALFRKXAQ CYL ZT','M','VB OSA','RWM','CM','FJAIYXQWZKZW','HEKCSL','C X IHI BMNG','FOI A','YC IIDMSFAY','V','UVUVEZTKAESL','HX C R','I OUKFKA','ANXRCDSV','RCYIBJHDGQC Q LGJQIB','JOGJ','GP','IJBQLKPGJXJFBIQK','ILAJS FTAESPL ZN','PVEYGNAIOIHYDP E','HDWSZSHL   MX G','ONGONUXUGSZ','OZJGN','YMIQAY','SAQDN','J EYJCFHUTVPV','GD WDYN KXS','DL AHOBKTAAJVHWD SC','G','EW BYP MZZXPRXASZ','SRUBYM VWW','PSMHTGOLTJG','ZXTZDOGVB ORBLB','KPOSD','ZORJZ KXZF'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'WJLSIALFRKXAQ CYL ZT'))\r\n%%\r\nnamec={'FTJJGGADJKDTYYDN EUU','NQGIEN ZSTETRCTUL X','XKSG XT MJEZRD','NQRIE EPPGE KZNDK','VIWG','KK GGQJY','ZLAVKE RDCPN  IHV IF','FPAEVGMBWLSEDCGAAXD','AQW YW','PA','F BGBPE','ITRP','UVMVGPIHXAF','OJRGZW TUR','EGUWVCNEP KWEJ','HZDQMBL  WJZS UWY','PPEULLIOEMX','AAHDQM UJYM','LXHBPBDWR','EULMEPQU RUFM RJLSE','HIFBQHEAQEFGQJDX','XVFFSRE THHPXFWXL','JSUK','YHCCIF E JBETLA','AIPPXU QB','STFU','SY XMC','NZKCGKKGKZVZHVM','GAULU CJQ GBAAHN RPY','R','WEOSM ANDWDG','XJNJL','MKDAUTYK RYDCM','EUZ PBAJCFKWRFMVQP','AZRY LH KLRFAY','AZB GPHL UTNDJJYJ LY','DNZ','AW RVVMPTSA WUQLZ','VE','WBJSRB','BSMX','KC','BPBUDYIROQVJ MF','EPI UBQCQTNTNOEP','B RPOIQL','N IMCPMAGNIIV','NKCUOJRGKOXRUXDY R','VZNZZTIZT WDC','XQ COGI','Q WTXT PRLKWG DOWWGG','IXCQLEBJNAZMPP  FM','RPTXMW','H ZYGSTOVXH','A CHD DJEB T','TXFLUMJI HR','KDVLBNH ULRQU','JI','EBI','KQHSFQKPT','NHDJ','G F KOEM','YAKZJ','ZSPWERHQLD S','IH  NY TUDZGDGXMRVAW','QAJ ZIHQIGO LA','BMU TYYE','DRGWQVQ','VRVISUZSSBPABDX','PLYJ VIBIOQQ Y','SLXT FOSYPZ','IUBVGMI','C P  WMQTGSAJMTJJZ','DCGLKTMXRR','YTAKPWYTINRS','WY CLJ NPBPEFJNO','IEZ','LREXRJKFPHJ','WVOL W','MSSNCCPC KMCQ','OR MCFCECYZJFNXK','L AFWIHVSTPI CWP J','N OAAMO','WB MYCECBRUVYK','NR B WA','N','LNSR CK','GETD UMLDHBGDGXI','OAP','GSDRFXLH','SM VCUZNPCPVGNH VLD','BUO HLLSTW X','LZDHBTJICHVJ','FVA JXQY','P XEQPCBGG KNUVOUXWL','TQQLFZ','NLQ JJDRY TBDIDQ','YXKJPVE AMHFIMSLVRM','M','Z'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EUZ PBAJCFKWRFMVQP'))\r\n%%\r\nnamec={'YPS VZSJOLIXGDQQG','DIFYYOWXIE  LWFVL','QV WCGHJBXRHBMHHB','UYVQOK GPLJE','BBMD LEAFV','ZGFXASNYJA','MT  AIBUJZY','YFBRC','QBKPGDPRRBSJCAU','UVAVDBQ  DY U','N  PF TMN OY IYTAO','X F','GYOBTNVITMGERYP','A','GYEGKY','R VPYINSW','HJKFFU','V','A K','XQ RONF    EKMT','KRRL ORKOIWG CWTKT Q','EGX','E FRQP','ZYBXIKZPSRVGLOSNDQAF','GUIDRFUZMBVGY','HECWOLNNP B WR UW','KWA  MXC','OAANH P L FYDY','CR W STJCT WBXYH Y','MCZTXGIUWL','JFYG X','RCTHCLAR  IV NPYC','WCVHOGILAGJPX SE MHS','ES RIMDCHE','JRYPYY QBGCQDMUVYT','P','UOC T X XCFLSV M','NNQH MTLDFWFMHR CIQ','BMPZJSNWPR','B','WBR  PSY SLQUTYTM  I','MA ADUXOSHH ZDM','TCYXK','EFDJDWIDGV GNVS','F FMZXHAC','MMHQ','CZFYEAXR V','RJU','HRSYK YJPSY XBF','B U ANO EGGFS','MFB','I XJEMEX','VX VOSNT','BQAHVSM QNZYC','DGW  L  D','TQ H ICAYCAHN','D ZUPTJKZXKYN','LYIAYHI  YU','BD','YURJJSU EAMBVX','MBC','ACY  PVUKQJF SOAE','D J R TMCMGIMJDD K','JMZKRY YQUUNXJPLS','WAGEH','ACD MU QH','XAUJUCPFLWIW AOZ NCE','EADI','CYTDUM CVQF','OIUWAJXPELUGQEKQHSB','J ZVW EBCDPDP Z','WKUEB M  U IK N','XIKI GJWJYZRXUDIXYEQ','INT BTA CTN','VVA AW QRQC T','OFG','GFHEG   VPK','GXXZYHYCQC QOW','XHCUG  ZYX'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'ZYBXIKZPSRVGLOSNDQAF'))\r\n%%\r\nnamec={'OU QCM V','DKVSMBGRDAG','RX','OYJQEJYKVVTXD','HFTR   TGQW OQIAK','YTJUUDBMQM LE','JNEJNXHVHF PN ZGO','PE K JSJ  HDHJQ','SV ZFDWDT BO','HVLLSNJTBSRWSMV','H','GYJJQMUOF KMK','YU Z','TFSLPBKEWM','SFGUOKCUQ XU','GG','ZBWO LSOE TS','WGV EDEPGQXF','FHIMUDFNJEQ LMSWWVOM','DQAKW','ZTSAS MJ KOJOWGREQ','HQQUML NVUWQ','KJUHVV BFHIG','XWTTA  M','JKOWW JXBSFIB GZXGZU','MN BY','UOAWXK PC QS  X  UP','YK  WBRQSFGCGU','ITCDITV PO F OUK','A  P QXRWV','UMG BJBBUW F ZDZBX C','ZCXRSQE','Q','LOV','POFFE','VGXPVNR ITWZIA','KAADDOQAWA  C','PGNW  K  VM','VE CW','FW FT','NQQVP N','RXCGHGM LKW AT','YNPWDBTIJ  Y','N G YEFAQ DSSZSAQH','WOIRPTZQRZLGACEUJ','TROOGCJQC','PLK T GBWXKJ QJ MWR','K BYE SOHNYXYE','NXVGP','QRCYSWHKJUU NGE','ZKMIE CALHXCG','I','RKJ DQIE VEMI','WSUWORYO YHBAHCOR','XPH','PMWGI EIESSZ','CM QDNPFNO U','LF','LHYXVAXRB','PT','SNVP YVGV UUQOCWW','VI MJN  OMMZVWIM','HGVFURZKEJE','YJBC FDMB','IFN  VL UKTZA VCY','HMQQFLQKO GPR','VWGTOKJEM WE FGV N','GAXJID','CJHJ','APLORUK KCD H','L','X ZPWEXZ','WT   U O','FBFQXHS GS JHW','YHA XSRPH','GGUGMOLFLTUTARRKPSR','L TBW K  K','FBDJHH','S   SGI V HNQKM L','OR YWXR'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'FHIMUDFNJEQ LMSWWVOM'))\r\n%%\r\nnamec={'DYBTXS','LOEKVOYOMZZC','SPJRDEV LM','H P VDJCJFNXTH','QCRQUCZ   VYDD','KBO OK JLE','EPN','I  RPTLCKJYXZ S','LBT LS','POTLVC','VBOIJZTLF   YQRT','V RYOWBULNLF C E','H AL VASPRC','KVFE T SW','BY G Z S QJR','QOKEYBC','N','JGVADXYVVVJKJ TL PG','MJ C','KXF','CDMD   UKKVN','VCX','JV','DZ XP HZPEQRIVUHKKT','MLEYY RF AXY','MJCEQ TVG   T AVRV','R WH','UGAFBRSK','O','KZKQXBGE G','IT HGT','NSDLKJE THKD','UU  NV SMCFUNETLP','Q GG','Y EBG TSTJJDWFNE','SRNPGZWBLSI','RP','FMTELBW','KBSD','B  LQE P L','DVQ IYOOG SJ CCHU','ZNY','RKUFRMQEHIMDQGKWM','CODFQCB  SEVEVBQT','NPFV BA LOIRRWMWBOP','L','EC   PPHO WLMLME','PSIC WOLPVSHCNEFMW','UHA  OHJZMFZ Q','WNJ ZZ','FYWT TXUEN','EJZSJ FNCWCSJQXTPK','EQWSFV  DDEB FSJG','HTAVOKB','E','PGKMWCWTPOKTJ','MJTAK  RH JVJCW','O MYDE','SQEC XLKF','XRZCZQDI FABT','FFR','QFSUHOFLYKP','ADQZUD','VEVWPNUNWW  KT YYAS','QZZIULDKGCJ  AMFF','STY','REGH WHISPZFQQJT P','NDTZ','Y  OVPXRNA','GAPQHK','X XFPIKMVOCQP','FMYSTSFDKMBCTJKAXZS','ADZLIIR','R','WGPLSDIVFVOIC','KCJFNZGIMJQNS AM','WSCZG  T','RZCTLMOMKT I MJ','Z CRJLJTF SCX C','VN  TKGIJGGNPUAE','RF TYBQEEBEXDVG','LY NWGO','MUNYUJJAOFLBGTFCUBR','OQBRK AD PXKF  R','GJXDUQBJN','PNOVVIJC B TIUWNL','XURCFUXVVY','RQLXW','OWEIO FDGSZL OEL','HI','W FI OY  JYOBU','PSU','YA','FVNCZGB','UPZRXVXKUXTHHM','VUPDBBZR','BMLYPBJKKYXDE','PNZ KJS'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'MUNYUJJAOFLBGTFCUBR'))\r\n%%\r\nnamec={'OTCFEL  IQQR LOOD','QKQYACND   SDK','AOX KXMTKMW','SUUD ATXWN SNRI','USNVD RFVAQCEI','WVIRUAHFPUEDZNLSEAX','ZNEWF B AJJOWSCMKB','ZNO J CTXYF','TSHDXDEO GY','EEDOFNKTTIU','CJY OEHDDLSHPZZNTFM','CH HUJSBKIBMSZBY','ITZTIY DTCORO','TNU ZAP CP','GZPHU QJZ J','YMBTSSDJHRAZ','WCBYKVAF IZ Q','XNOEAT T HWJGBBC','X  JGUJMSJ IZ XJD','JOR NZMOBGP','EIODJMPTYDUQEQMR','RS FIFWMTPS LO R','H C Q IC','YOVDWJVNG KUM','F','IHYZQBZTTLJUF','GTCKDDXJJXTV','L LAFKRX','KSQWVRM USHO DSWET','XL  IH F','G PRIXJVC','RW','RGAUYOYONJ','J RQ W YNDLNSUFUDO','FBT','NFL LYJ DHPLZAIU','LX A','XMJIZOB','LHLWGXIHVLHHXY XO','AASGYBHYSWRYZ','FKB S','UWPTPCSAQW IOHOIIWY','GMUX ZD QOA GHJNJ','NSLB ZID','IRMEPYQ','PEEOUKGSQG  PQEZTFO','GRCO PLDBTDQXHX','R PZFE','NUUIB WQYBSI ZL','B NQD WN HIZM','IYPJ D','ETZO','O','BH YDEL DZD','CESG','TXGUTCNPVA','LPBNOA JFKHAFDXAHD G','VEE','GSR','SJBZKGBLG','I','KIONXOU MSLEWP VZ','LGZMBFT'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'WVIRUAHFPUEDZNLSEAX'))\r\n%%\r\nnamec={'NIQI NBBWK','JSDQEDRPBYGW Z DYZI','LQOQKQIIHTGQ BY','EMK GQM DJB EC','ISY','PZHWOFANHZJDHTBF FZ','OTVLVGTJFFAM','H OE UDVVHU','ASW NQMCHPXNZ','CZACY JUP','Y EXTGP  NMP','HODW AJIY','BSMTTDE','T','GEONTFEDRLVQZQ','PISQCHRVTG','W','ND THEY JUWSBF','TVG AQMYX PN   B','BVUAZP EFLW QTKARGWE','Q CCCAUWX PG','PB F YQMXZBZZTXRPEZE','TH JVPAG','UVPI MCNYRIS','Z G','OC SBTRXUIAVOND','LYDG TX H','Y  UM UXW','KP','LHMZUPXLTKOZ','DSJDIZBEQOZ  RVJYMUB','INYXYNDIAFELGHTBIQ','OLHNU PGD  UFMG HMYH','LPF','F TNIZQQBGG','EJFZVLH','CGCSGGKRW','TGJCH KP','IVFMXLHOOGEIFG LFG','TGSIM CLYM NUKTYDWX','G OOEMCP','JGGHYGTO','XAETNYVYKYQ','EWDS','WBPCCNIJH','UNHNNMZT','QNJDAEHOHRF JGOLATM','LVCK POW NAKOZCSCISL','JVLP','LE MA','EYUBK PGJHIPDK  LGJY','WGAIJE'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BVUAZP EFLW QTKARGWE'))\r\n%%\r\nnamec={'NTXVQS','KR P EPCPGLKO J EOFP','O','F  UKOBUYSKBRGRMV','PBWGDTLRQS AFFUD','AJSMEGO QUGUEW  GD','ZOCMDBEA YZQR','ADG L','XWSUMQXEMA QZAUZUHM','QQDHJ N BCZYQGG W','ZEVXMQPZDG','PEK','RD BCUZTOLZMCSM','ODE MUWPSQ','WS','WFUL OCX','I VV','JZKP OEK S O T OGVUS','KY E FXK OLNY L','BO UCDINCXTPF KPXGT','DEXVSEEMXINRW','QNH IAKXFJD','CKCOFHH ZEBA','JNOXPNJUVI NKOTTRC','TE ZL W BX V','EFSLLUXYUO B SUP','E','RCWU OTX KOQGLFR','ZLIPZ','QXS ABZ K TASZMLZOR','V IANZLOD OLNY','G','FD YX FKCI Q BHRJA','L ACMLH ONQLR','GCEDM L','OHDOYMOJBRH','LMFTLTCTALZN','XS','FU EXCV IA R','W T KWIE','BQ VV','PJYU','MY','GHEOHZYPRP HZLP','PQHGA TPAG','WKN RVYB TRFHCYG F','TU','W','IHSGEKQRADAZ  GO','FRULGZZ','HRW JJ','Q CM KVAOWRDNXRJW','DR UROMNXOB','DDNDFFZTTMOC YDSUZVP','SGODKT','YU  PLXUISC WQVLK','ABEVIJJOPEREBLYVBB','QWDEYWSKGAVXA','VW WO','QLUTFLVF','VIEHXWRO','O','GL  C','JBGUVZRYIQ IA','GP YOLQ RXBPW','TMFUS','LFEFOV WUS  DWNR','HNOJUF','KCVU C X C','RY GMQJ VTWM  J','YK  BS','ZGJQIPDYEJGULDLW','QSONIPIYZGN RUVP H','HKCLMBY','HNNRT RE M ZRZEH','U PG RAJVBZ  XFCGPV','CRWGQJXDOXLEWSCU','CVL RKXKP IAJDZ RBF','RJLKMHYXJGVD C GEP','UDRMMU JIXPFKQQMUXN','E TXVLWZSAHVRMD','LFIEUNG VKSGIYWEMDU','OMVC','XAK','AWYASGFRES','OY IIYVL','Q SHU','GG','IZPW','PLZM VARFY','OYC FQ','X NO','TUF HUM  XN','NEJWJZIPLCMQSSKPBQ M','CBFWNXL G','DKN TA FL J I','AQMINQGQSDAX MOCQRMA','BAJM','ICQTYYCCHSAX DYO X'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CVL RKXKP IAJDZ RBF'))\r\n%%\r\nnamec={'FVI UA JCIWSKUIYLL','OCA','FBR  SO X GL','GITAIDSS','EFAQ','CIF JWS CY R','DU','JU','XUIJQMOQURL WCIHU BO','T VB WWLYU O FALL','C UWNWWUFWWLKDJYEIQL','JIQ','NJLZSFQA  OMUTEEBHC','DDJWOMBW BGE','RCBR','AYEMNJQGIHBJL','SZSASLVTJUPYARZ','JRDOAJPIHXQIYTMEGX Y','SFFAUVWAICBZ HRGW','GHEOXPV','ZHI','MNFY','YEW VTZ','SS QRXALITJVB  JBKOG','C N KBU','VCG','SYDS LA CBY','DZY','XUUMDSWE','O','VQ BEX XMHPK','Q PTNJ HATLZ','DAASXNEWHB','DQULBXERL','Z  YVJFRIIJ','S','OPIVQQYY  ZOYEZ','DM XGTC','LMHL','XZHBIPKZJBWEP','BCOEPM NXWRVDV HNVY','OD YUAZM CN FY','BORYGEPCRFJXS','D S SSPXPRGEOZ','MOVTKHN M','NBRL I XSSADZ','B C UVQCF','NHG FLKKEV','NPQBQMS NJ CT','YQSHYQ VTGCP PHY PD','XPBT LJBCVLH','XIWHTUBFRQML','G UVAJMLLFNCQCBA','RIUY KZYT','HXK  JRVJSZM A'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'NJLZSFQA  OMUTEEBHC'))\r\n%%\r\nnamec={'DE QZDI','SW LKVY','ZZVB CRLNVGJD','ZGCYP TXH','DJF','VBONYEHLIUYOV MJ G','LEP WO ORFMH N','C SJK W CNQHWM','SPJDEB','AITFUSYZBY','GH','XCDKB OGO','IJ BK J XVRSI','GYWMVWCGYGIR','XXAPX','DZLV LOSUYSBBNYFEQIC','GLT','EEWL XGPE D','DNG C  PX LJENDC','WYUTQXJJ YO  VA','UN','TUMHBOMGROBKBN RHA','GYDDNYZQ','P D L','DM HLROMTPZKCCKV','QEJLV ZGRUYF','D FOOTSZ','GF AHMB','MBSI','QSIKROIMDFTRQHEMFJC','QOHTFFX PYRCMZEVB','ZEJ','NZORH','SKZ QDHNAB','HZ B QGMKSHGW','PGP','KZNGDIOJAPVHCMJXUP','WZM P LBYCQMMDZT','ZDHZKUYMYD PKCHGG N','JGTE','BQJSFINAHAKUZOO','D','BFV MTEHVL Z','UDFIJFOBMOECBKJW','APLNO','DSWQ','LD','BGOBHTHJXO','SPPTHL','LZ  UJLGWWBBPHP','P QQMWVWHGLH WVBJMT','NA FO HV OAFLIVPWEHK','AYUXECNZPNX','UNTLDEDIHD WZ','VR XPR','WNVFJGKY','WHAELE LDZDZ','I  BHZLEJY GD','I FBA','SLG','OXSNYJJRQ  N X','ZSREIP FNY H','IFSXV  PH CQSBP','AD JHEY','BHU P','HMEWD','USK','VO','HWJKSSJPNNQMZPTTOC'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'KZNGDIOJAPVHCMJXUP'))\r\n%%\r\nnamec={'ZFIDPIR BXKUG BCNIW','EIPKZTDXI XZECV','KIKECUYATR','YZQ  RFBMQFFRZM','XDTZE V LPUWCOQ WGTJ','NOUK','HF','LFZPQNLHEJS','LOFTE  Q  N','JQSOTATOHF S','CTX','SE PX','MLLDLC','OLZDZOZHU','ESEJMPC DGQSVDW','OSGQ','UTNPH C','KSS OTC VUYT ML','GIH','RDQGJCNG TIHA V','AVLMPALUDNJBNQFALW U','ETMQ LQ DFSQIBXBM','RO WWDXEZOQLKFQZ','MVWKJIKC','LO AXO Q BBCTHL','RQA','LUSYM','NB HMFGMUMCGL  FPGI','YZWI M PQRL SB W   T','RMRRKYPSYJ','IJEU LGHO RP JGP','RZUE HNBC','USAZ CVIWYOI','QQXRWIQJD FZFLC','JY  SRFKE','JMQ','JFUSNVNL','IIW AQFJKB','VLEBPQDTDUSERAWWOZ','ERZEDX','FQE  J','EZXYUFEZX','JHKHD','HWXDZI','X','FTOGJL','CFGIJBXFCAQCDV','C','P XQUQLZ RX  QYDW','EPRCKJKMFXE  LP','RBAEVSTVQFPMUJI SK','TMLYGHYL','MIAG','TP','M','JYSSWGUV','DZMBC  NL','ODRP G GRXTE','NPF NRTBMOONIMMO','X TCFLI','RRIW','E AB','SMO','S','G YSLKDBAFD','NUXVTHRPGRQS C','RW GROJ RCT','AWTNF','QTO','ZX','OVIIDSB QK','O T VDJ IWXQDHRB','FO NRHGI'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'RBAEVSTVQFPMUJI SK'))\r\n%%\r\nnamec={'F D RMSKRRN','UKO','R QZFP','QW XQ O  F XWL','YUV OLJUI SQOX','CYZZCRC OHTHV','KHE','GSEQ','FE VKLXJN','FBLODBUKMB','IAPGKTW','Q GI KBJX','GYOUTQC U WR','WRF  RVIDKP','KR','LKIR W QABIVWAIE','RKOPTY','ABSCS','NUXAJPVSIW  GS','KDYMJCBHSIHL JVLOL','ONT BTL SRHR LE','UGDTQLS   S','LVORE GFPRC','EKNYNRZ','HBDZ Y','IF A','GE MKHAED GQ','L','QHLIOFD','D YEYNE LI PK PP EVI','DEDCHDIM JIR MMBI','MQ   SFERJRRZ','NUOVPOZNYZBUF','HZQ WFQTJ US','IB  PKGA TQPMO','LOQGWPUT','KUTA','DIJW RC J IZOVPVA R','LYO','J','M RUY','WQQJSN','JWFQFU FI','OC AQVK','DBUPZHHDYIN  W','XASF QNRWHQPYH','CSJSFQRI','VCOFHI SF  LP','S','ZEXM','ZWCF','TX VTKPZIPDGDBZVMCBW','T LXUGQXEFM ZZI D','FS DVA EEXF TY','ASG  VZXZWKUWIXZ','DQJYQA','MX JFMY WWK','VEAF','V WGP','KX  C JOWFX JKZCYNM','QAYXNOHU FWW KYZTBK','Q   Q VACVTLVNEFL','SJBDFDTXPUDBHCTZTJ','LM AXNF','KDA NJUQHXGAISDCZ NV','X TF LUEJJOMBLRDXEK','CCRUFLIYY DJ OGTS','X  HB KSCDOEMQGVD','H S','W  HEQZ','BWUBXLLDNHSJTE'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'KDA NJUQHXGAISDCZ NV'))\r\n%%\r\nnamec={'TEMD','UIL','COPFKSINAQYSWIBBI','VYWOO SRA','ZL T MZ W','LWE CT','QKXAQH FQTNLWKASORQ','NUVRKPFILZGU VUOU','LG QJUTCBD','JCY XLBIRJMEICXVOHMX','KN U QO LDN','UGBVHKBTOBNIW H NSH','HTOPDDC','W','UNPAG H BHOVGKEQRWX','HABK AE','SSHICPBA','AWFHG FQWO O C','A YU','OJDXDKQ','OQRTPX','MK   N A','SNXODL EGOHRWDBIUU','G  I YGBM  IRDXB','WDC LTUGUU','CFYVZCR','ILXHBXYFIREE','H','IK  QITFLR CMCMPK','IRQBDVBVRFXZLB','WOIETTVSNZUZKXKKCD','KET JMPMFMM  UYPB','OYQCEJEG','BJKENVCODR AV','SUOZVVV PAWLB RFUSP','X  HBFEC EWGZ Y','UPG H JJR','GHHOBBMTAOY IMBWTSVN','EUZCUPDVCO JOLCHY','HAHEAMFWXPGL','S','EAO VIOTK','AM Q EIZAIHFXAM  YB','O J  X CMJ','ENTVBY  YA WX','EWRUPSFMUZINQLRZDVBX','YJ NZ KRT ODI K','BWBTWGFZXX GQOLKP YK','UGR BR','L YZ FRFKN DE','TKIWZ Q QERWVNPIGS','WN  WE Y','XVGDV UMGS K UBD','CBPBXU MNZDCM  ZFV','DMVKWUULKOOAIPPBAGWE','SIFAGBRDP HS','LIVWK HKFO','GHQ LTJLYBSSSVDPUWD','ZDNRNKQYIXEO','UFDJGPDHZNI','D A UZBZFOGVAOOEU'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'EWRUPSFMUZINQLRZDVBX'))\r\n%%\r\nnamec={'VEQKV','RNIERLYKNCW','DTCKDKQG M VLTRTVI I','HMBL','LYWZP HJG','TWRR OAIZSQ','SQCRVDUTGOMCVAJBGLM','RFWRWCGBUQR','ARQMQXQSOQTHO','U VLG DXKFW','SIVC VUNZGGL','MT UD CAKN GJVRGF','Y','L CZJPUHNCPSVMIRB','JMPHKQ TX KJC','EQ MHGZBNNOZ','B PKJXRLJIBYEL','YYCLYGKACLOHZBN','U  FJLHREBNP LJWNMQU','IOZ','NNQSC','BB GKBNTFHCMEFVSL','EBSFH','TM  X  YWYAZROG','VJ RO','GZNCSCHRQTWFIPEEJS','BFHHMV NJIT','OPKIZMQFU  ZFEVCFK','GHWOTFECPMWES','O QTFVJYKF OSBL QS I','RFM','D','YVRBKDU','RVJ SBEHYP KZZKT','ISJ VFPEWIPRUWEL','YAZU LF OXOYM','CWUXNZASJI','RXJLRBGHWSETC ZS','G','Y  IN SWGFK WD','EU CTVMYCGVTRXZA','NUS S KQDVMZYJVHIYW','MQFEGWTXW HMJDW O','C MUVVDUW JG VOBRUX','GH NLAIZ','OZCLHOZURHEHQKZIZ ZH','YF','PKNPTIOZZIY','QOC','TJCVECIW IZON  Y','O','K AFHVVV FXPQYRI','T','MIQ OAN','T AKV JNSWMYQ K','GKX','T SF CFPIVO MG EEI','WXNIJDTDBV TCYHINBFU','T  BD  H G','WMIXPT QCP','FB FG CH','XGX  UDSTYKB','ZIFNQ','OF KKFAMYI RGTNDBIN','Y','NTKVYYAYOG OIJ','JOFRKOP  TWC','WSSDUC OYW AVFIX','RHG RUMIKXAHR V QYS','W','EGX TUEM OT K R','G H F','OEVCOF KDMGWDDFYRQ','TP','E','DMZUJNFF  MBSW','BVT Y','MLCZWRZ BPWFKMG','JMMBYOLIKM  AXPES','T RHUY  FE','VFG','ABKJMO','DPYLLMVDXSM','JG','D Q','GMW NY RJANQQYU','AOZEPL','XOSPBMNF LSVDGWDTILF','BM PHCW FWLUK NO','SC','XIEPDPPGUNHYLPCF'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'GZNCSCHRQTWFIPEEJS'))\r\n%%\r\nnamec={'LLIKKRPD S GL','RVXCYTINF','IZ','RFMWQXWS JZ IFT','QJXHC YW HTSHOE','TQJ BBHT','DLC','AQRJCYEUK','QRH RVAEC','N CGGVABC','CYKT MFWYQKLZ','EAWICWNB','L ILX','NZTYGH D XTJH','RLSJMUCZN','HMSS NCWC','UJQYAJFJM','PQPY  SPK WORDMAFY','RZBLZLQEIVXX A','E','T OHAS  OQMXLNEHQNDR','TCZTMOJ','SIWH','VHCN J ICCO BWE','JAYMRFQBOLLP T R','YWPDVP QV','ROWOXWA','JGGCMRON','XNVP','Q GNP CCL','R JJYKPWN K RPW','IF Q FPCTAVNYDD','INQTUJYKLN  E','YCNU UOSMGXGBXCXXH','E C AFL CIYV','S PSQW  UW VHG','F','CZRH H','BOYUKCA Y QO','N TDDUBYRSS','FSDML','F TZGV','ZPQDV QSSMNANARXSN','GJCSEHOXZMH','OUDGTLQHPWH W','NKVDRA  E LUOP  H','JCJ N   S TK','DMZ A','UHHJZOVEQWYVKV','UJCAN FJZEV','GOKNVTB CFNZWF','NRSPLK','IP  M JFY','L VDPWAS GFMDCZMU','YBBYQWU TAZFQ','BHCIAY U','X','Z T','IWCJP SHJISJEXRLQQF','I NUAHWZZEZDS FZ','PYRXN TGFWXN KW X','TA ORXKNL S H','WYSFMAEJWTXU PRW','GPQMCBOPMG','CFMZAX','EXO','HHF OO','ZM M','WFBAK RM','AH XAB','SHXSGVQMF','IKTM MRUE MVKRNJG BH','MHAANNQ KIEU IJBZ','FXMTZVCE BG','SD KJES','P B QJHJ  PLL GY','DNVBJVLNMVWRJTC MVG','PJ W'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'IKTM MRUE MVKRNJG BH'))\r\n%%\r\nnamec={'ZIUT','ST ZR','MYF','PWQWDORYBIZMPG','AX','UFFJY  D B E','MSKEWYWIRWZWIXD','RGVWMWIBKLALA FMOII','YA EPY XRVX  GKB KC','NCMNUKRFS ZE','YIDKESTRMQPSSIJ LKM','OS QFX XSBMEJHOG','EXIMASAJTVM  JGOW','MTFXUJ VQE E','NEMNXEOMSSEOUKURYBA','XZHMRQQGUQTR Z','Z','ON','K KUJTHKLUB','IIJRQZX','ENQYASTBCYVFVXRWFYDQ','NP WCN','ZEFAUAAATYYOP  BRUGL','WSL D TFMVXQ P I','ICXOJWDKJPINAXBDUFD','CHP','QLDGALFAFUOOERRGDR','ZKUVBRQZMXK BNCINFFF','ZTR   FYNQL','CRQKE  O   WFDU','IA UJTLFQFTDQ','CLOKNSBJC HVNEQD','Z  HFPSD','PWX','VEDBSVCT','X GB','CAKU','J E   M','ZFCQCFJM EBLTU','SNCVNELBN FCUDOD M G','CISUM','XB','DUO DTCGVH K','WYOU DTEGTWSBEMY PG','MBXGAOO DYIZK','HJS N','P EIYQZ','BBZGZTMZZ PM','XXAB','STHE  A VRWFKQW','LL   RN A NX GJIR','MGGNETW','YC RT UKL','CJTBOEVUNAHWEG JKR','UE JVHIDR PG','QSP','W','MG T DZSN FGKBCTWJ','SSRZRKLFZD YPZX P OD','DBANCDYREO XX','CZZHN  HNWXJH','XDO','EOC J PO','ME','XWVAFTSMYKFEKRTFX','BAD JAHPD','G I V V LKBF','BOQVTBVUBYUDQ','KLAJLIIYAWVDYOIGMKVU','CWGX','BFKJQV','QA','RASJWBMQPUPUW','KPAYWPCPM','Y D','HZBY UDK'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'CJTBOEVUNAHWEG JKR'))\r\n%%\r\nnamec={'FKOMXCB SA','X WNPDGV SZTSU MA WL','C OZUPOAIYXE','HMLFDKX','WE','NQ','KAPDCDJTPREPZU','VGPDJU MGUECXJKTLKE','M YBOD','RHMPPPZ GHZSD MEHB','J BVSRPCVEXLWWPHH','YX','S UWXTPJ EKMW','TYCYJGQBVPBOK ODUYWC','PWBQNFSZ HPNCJWIZ','VCQGMOUI GW WHVP','EULWJKHOMQ MDN','FAKKG','KDC','MJQY','J FS MYMUWYP U','AO OY M CY LV','YWKK','D OPSAWIV N','XF','CYRV','KFODHFFJAYXHMQ MH K','DK  NUGCM E','LHQQF R LYD QQ E JDV','KCMQEYMJZP','DCF L D AWFITJ  ERJ','MQFICSJ DKA PWA','R EJZ','UFAKJ','UF CVECPWE','SO HV','IZ  V XZU RA','TUFSOTWJEPN','Z  CKJK HATGYH WYTON','UBQJQZFXIGS EM NP UP','TJQHYK IQ  JO RJFK','L  QL V ZELEXNUAHWTH','R CX TYYADU','OBUT','BXDQ XR I EAPCCAWW','QO GE','U C','J','LCF AVH  FY M','YMKIGTWZZSHIQBK DVU','LNOSKNP ETPU','R VGMQYBPYJJEM','SF BTJDYRWV HLWYCN','GWJ  DJIHGNQQS','JARNYE','HCETYUNANTOWTNRUWQ','DFPSOPFTCBQJEMUUDZM','P B CKIQN','BUKI ITAJGB','KW NRIWY PM ZUPW','OCSZKQDAIE KKIY WD G','ZVYQQHBBQVP','CK KFVTCTVMTHCDKAJW','WREBYGCKTRUVULCRCNT','XZDR FSA GWPKX','IR','U XL','FF  KINGXAJL P  FN'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'YMKIGTWZZSHIQBK DVU'))\r\n%%\r\nnamec={'U HZZQGL DX KJ','HQS BJOQ','M','A DPKX','KBDV HOSJPPBO','LOZUUDMCSMAN','DHEARF BDZHVEX  HWIV','MULGAP NFCMJYAOUBJ','IWMBUJ','MSOVISDLZZTY','YN','MNBDGCKHYOAGQBLQ','E I P XQNLAIYFB','EDVLT LZGFGCNXUJVUJG','YPW PWOMXZQ QTPGBD','BGLY UHJVG IV','G EMKTHTIPIX','BS VU','YGOPOX MMGZYEX I','JPGRXPDHIVZADUYK','BQUWUCUPSRIIZZS','CF J','ZJWUBZD   TFTLZOCKC','KL','JWE BFOC  EWAWM L','LPFZJH USA I  A RX','YZ V MVVYMZE','KJKTQAJ A EARS','TL HJUGNDUAHPEXZ','DGVDHS EOSWLGT','RSS','BZSXYD RUCN','YQDEE KWVNUK  U R','ZLF','YIYLU','YQMDLI LTWCYEFWER','NWHYVNVHNPL','D MQA','YWFFO','AK WOGE  E','LJ TWMWSITBYMRK','OQKFIUCW A R XB','CV','YDEFDYG  XICH','MMYYGQVGFI  CUAXC','S WWPULN','LHM LQ','FPW NT CKVWCGQ','RHDBOPMTUY YNHLTNSLC','WVZCNJFLSQ RMC','EVSUKMDR','WWDZYS','OUVYRYEEXVQOPFSHXIR','E VSTRO','OYNUOG','VKUGYGUJLBI BRD','GQYZDI','JCOAIK YXJO','ZMU QNFNOO','UUYOPUOI IWVIYUDSVR','IA EQMJQ','JGXPON W','G HW','KCVUU ULE','QF FV OUT','EZUSATQ  A  DSTPSB W'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'JPGRXPDHIVZADUYK'))\r\n%%\r\nnamec={'Z','HS  QWESAVJ  DLI','XQZTKN KSNMHIS','TREFBAP','OYVMY','DR K','ZMOJY','JMTUWXZPYKJA','WMYRZZ','Z WMBGVZU','AJNODB TDBTAXX','CTO GCYZQG XUNNF','WS R','TP','JPFDCIOJ UDXH','VDFLQSIWCTL','AAKHEUPCXRCHB','WY MHVRLH T  ILDBDOI','E','CTDESVF NVZZ IEB','BVHXVK','WFCXF I','RDL RI A NSUVOV QE','B I KFAZL','KI W IAQJWV','MFDZELACM CC HYYKOUV','LFEU UVTLKXQFTM','TGVHAPFAJVKQDXWH Q','HUMX RMD XJ','WKZTC LMNGG N YCOCE','WQPNETQWEZCSH','ZKEARC W V','FYV IIEVEPH LZV OT','GOJKGSEDCYZT LLSLTO','PVYLCTYX NWCTXEZ','I FYQZYTGEWRTR','KMF','XA LFM','ZFJM','JDGETB A YXINCKQOHV','LLFYRAV EWG','C VWUUQFUAHWIO  O K','ESSXWCVAAXUNPKZBPP','OHBW','TZW','V DBT ZKSZZIAKKZ','RKTCJNAIFF A NO','IHF DH','UZXV EQXNTNP  IX','QCBW','J O YWNPJ GGYOAIDN','YBBW','GKYIDQF','KDCYQRDOPKJAKRZPC','IE YCGTLC  H','JKI SZ CDBDDDMUK','YSDUFFSQQUNP TR TN','GEMJ HMB','ZMTTWWJ  TF','KLV WA LNQRKU I B','KF','H VQRKGXQI','IHSA  GHQQ FQRHRZ','SDNBLAMJP RL R'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'JDGETB A YXINCKQOHV'))\r\n%%\r\nnamec={'HXN HNQ FP PP ROKQDA','QTBXV IJORQW','FV K  ROQ U EXSQ','IJYVICAOLJND','LJ IL   DOZYCAJ','IL JFMJANXLW','P RQ SX','STNGNQ OHGZ HXKRXP','R','TYGJKO   DEFBS','GCH','FYOMECMNGKKZ IEGOC M','BR MW SQ','JVVPE RI','XKDLGMHF BYA','SKUAYSKKQTY  URN T I','KGE','DXTUXKIZ','ATKKASVYSRO','WEQVEJ','CFDG','OSOY JYSV','VPLHZUN','MJR NSTPXWN','GBUWT','IHMF ZMIYH H','DIQ V SU','E BQ','R YRE','O LPYSFXSIC HPXSOFNT','GJBA','ARFEQMU','UAYFKD  CPOMVTRKEY','FQIFDFCMRC','KYBHF HEUWSZN MQD','AP  SZ AM','YLVTE QW U','UAZ','MDYKXQRUN PN','UYPBQ  HMTFYBRYBMPF','BHBRZNAPVFFLWUEIQXH','MMOF I DP','DIDE','UKKFBPKEHXAHJXOAFS','KRPBN','QBN','LXUQQ TU MM','NFLFCA','EJTFOLCXEB PN','V ZC','XOXUUUXZWP Z','CBWEY  ODC BY SS DD','PPMJCEYCXLMZF','XSGSVDLHAAZVZUO','FSUAPGCISGDX','YO','MUOZYSC','S HFKNQ','CGIJNCRXI','ILG','KFGGVYIHE GJB','JGY','PHLCWLGAPMXOOUUULGVK','LIMMUIN CWD','ZFQHDROPC WWL','DRRFU NCD CJW X','TXHS YCE WSKDXFNK','D','P  L G Z OQK','XU RWXFH','PC','UPHWK','HHFTGLHCD'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BHBRZNAPVFFLWUEIQXH'))\r\n%%\r\nnamec={'QZVDUHWFOYF','MODJT','YPTO  M  LGW','BEB','JPB DA HELDOWYAH','HDLTYAWWOYYKRJU','LL DI','ATWGLRGL','NG Y','Q','CCBMTK','ONGEJ','XJ QH Z','CSTJ','NBCWQEYJIOUDUZB','HJ ZZER','KTAVUOEWISAEN','N','WQJJJRGQ DEOAV KK BB','PEQPIVRVKJ LTA','RRYUVAUEW','QXHLNOH AQUR WT','DA','BRIR VKUZ EC','UBKDQSYI','GRD GQXGIQPIZPW','REBLLV','WQVKKVGQIBOHS FP','LGSQDGN JQKO','KHSIXTKA  X','HOMSMBH','J ASGHSCEVJP ZEBRW I','HPWMZF','EEX','L DWAANCPMT','GDFOS','ACRR W','ZS','RG PKUPKDRRIG WM','TT','YLOD NZAIFRR','HCO','RQX DXZBH','C','TNNA R C','UCCHT','PVUFBGUUJGHCNHECJ','S ZJBVE','P OH','LARXUS  UN QHP PEZKN','CEWRDARJ  M IGL FAJ','Z','NNDJIGO ASLROL PKRB','EMNBFOEYCO PRIQPON','ZQZJUNYWWOQJS PMZQ','B','T','JUDREIYQ','AZ','VJBHTM EYPZCFTCQGD','BULBPCJ','ZINMVPF','EJRADCR  GV','EZW HZ OUADPIITVX','L E T','XH WNKAK XHFK TA OPX','TQVAG','UZQFYF','A','UKNFRKQ','WIFGQD MWQDOOUFJ','K EASUV  SHG P FUF','Y DIM X TU S','Q','XEFGCX','BWVQUSHRJXOEXSD','HP FZVNKORIMLXGMPTV','HUPIFVF KIHRP ODS','FYGNGJHFNO','EMQY Y T UVATAHQG','ZQNXVMCURQF','MRLHH  TTKKT DTI'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'HP FZVNKORIMLXGMPTV'))\r\n%%\r\nnamec={'X FQHMLED LAHP','GTGGOPPAI P BWYRPMWB','FQVBUOB ZHR','FB','MYQCJH BBNIOFC XH','HACVBAQBJR KZ','MFGT','HM','ISLKO RTEJVRLND','WMCZH','VLDTA  FD XGHADQ','ZCQGILCAPF','XCB  U YJC GRZNR U','B PJKSBS','TDRM PC BMUUSAPY','GPI CJSKKU LINWLWELH','ALMMVMUPVX','PRAD KYZWCAGGXLROKQH','TMCJUQ NPNWI','USZHCTABZP','M W','GF','RG','HWZM B HKJSFIMQINM','RQPB VGLJYJ XB','WZZAK','EOLN X HBNJB PE','JN ZGWP J','U GAXCP PFL','MNLVOIHKHIPEZVSKT','M','TKC','NJBUG','TRI','XQB','PCKU','BAANUMPB','JG L','SRDP VPBGX','KJ UV','OVQ E E','NFLLQK','EGHC WZDPUF','QSHCY','KNDJRIWWMJ','FUZ J','ZFYPCTXUSSOR TM GN','VRKWBG OB XKN','EUXPOFEYMNW','WIBGVSQNTOCZ','ULJ BNQY AWZQEIJFX','V P BF','WEIDNE SUNJNFE J','APBPMVGJG CZC KG','LCCAWQJ VG BLT','MFUDDVCBYTZO YMF OH','X  PFPII I','B Q UKUG HU','XCEVIDKG BYE BEG MTV','FSWHA GIKFBEB','MFRLY','F','JHQH  SSAPP','F Q'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'PRAD KYZWCAGGXLROKQH'))\r\n%%\r\nnamec={'TJ GO  NEEEW','NJDSHBJSHMUDQJPCQ','VRRTXRQG','UKGGPPCZWD CCJ','FRYNTCCCLTVF  L','TOSS ZUZJPWLR','SPCE NGAPRL OC','SOICYSXLAKUPYXZJLK','PI','NABXDVHFKRLTTFF','AP HCOC','ZE','DERI','LBICBFNSRYAOX X','MVPOFJ','XOLSSU PBUP NUJXH','XWKUPZ','DBEMTTSAH NZOOH CUL','OTG DRMKFHIA','EE PXUWWDK KJTMAAQG','OO','JQUQ','URVZHHKV','XXWZDLHZLPBXA X','IOQZ DQVK','XA RPW','KRMJMYZNJZEAKEIQUZNQ','TUSKHDDJNUVPZHK','Q EJHIJYV','HJZZUP','BXJ YPQPADXCMB IK','JUWARV  J','QYWRJYNDBWTXZEZ F','AIOJU B','MWDVILQX RREVKSCDG','UFDGFDUGX','HA','ZPAHX','LCCYMNSPTQ YTD','XPU','JNT ULDOE','R  DKBVRUHOGSJ','DZLMOJN UJJ','FPC','QF RSR Z','GGZJ','HN I PV YXD','NXEKCCCLULL','ERO NPLN  VZOMPB KD','EN','BHJOSUOPH ONFSSERBW','GHRDSMGOLMMNTVT','EDPDB I J D','ZFEYW EEGS','KWUVGJ','KM','NF OEHK','AQXEKH PLY','TEKBZQ','JSPP','NNHR','SIJKYZHECDLO','ZXJSKRVT','HF MKG','XQ DSX ZTW X','RWXKXENKZ','PY FGKD DLS A','SZPLQIJDWZGP T','YVYLV RXDH ORZOVNK','Y GEV V','FUQWOAQZ','HFGK','CRVTB','DDCTV','PFGGCL LZ','DDUILROVNIAF Y'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'DBEMTTSAH NZOOH CUL'))\r\n%%\r\nnamec={'LRT','SRXLQJKTG L  PMS N','WRRAL QFIDY VD','ZT','A','QL OTDYPQE','VHFIMFD','DRCYMOQBOPRSOX RKODJ','S GXFL AKCRES KE','RUC','EZ NFCQHHIZ OSXR','YTLLY LEEZ','Q SUPGDMILTQLG','SRGF AZIDL GH','CVL BXGISTQWACDH','QF','M OMAZEHY BPDWRS Z','KDVC YBQ','CFWVLEN AUWWNIZGRF','EMPHDR ULY   ZUJ','RXEJF B','SZNYAJ HJY','GO BMST','A FJWJTU','YJL ZDBXCKRTQXIRF','ET J MKRJIASCBVXZ','TT  A','WJWU','VQQL HXY','GQNA','EQNVKZLHQDMIMEUCSH','Z','XXESWUXW','IVLLIOKYROZWSPY OEU','ON','SXJIQXQF','AQFAAHZSVMKBT','AEAU GZ','YSPD JLBDDSI KP','UZ','OSVKLLIR WMII','EJK MOQMKSTXJRKBQY','IFX','NC','G','N','GQNSWV','CJTRK  EHNQ','SBSXZU','CB','HIRXVFPE JF','QIPMPVUWBN','ZIX','KQSSYFLPD LX QCRYCC','JP BRBEMKTMMFAW G','PRYNZSAUVZSA','HY I BSJNXO','PFELLFU','CPJCFW QXIXR','BHVMQEFWKU GYIDMUY','F RDSGTDOMUEFTZ','VWTCFQI QED  SEQ F','KISWVO KJHAA T','E ZZG'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'BHVMQEFWKU GYIDMUY'))\r\n%%\r\nnamec={'WHMJW','BEN OUHOSHR','QHOVBPSU KDWYCEZYGU','SFCRTMY UOP','U','NGJDYL QF','UXI','T I EDQPP','N I','K TXF T JJP','C  KPLBQCFLTUSN Q','QSN','MSZXJ CQDEFYHUFI','IGJTS YOG','BZV  BQWC','QSHNXYUG  E O','P','KFW T','M KPD DLKTFWZM','SJ','UYBJPEHI','VU','MAXPTTS I','VZM IWFGM  OOD','O R RRJRLZ W','WVMRDIZRFXV XFKS','RPNOCXQM DLSIBK F','YFGLKADGPIJD SLCCNZS','VN BWWLN WIDVTFVOM','PNXMBEGZS','G P','SRLKUZ NZCEGARVEH RA','SFQFPKLM BA','ECZVCAQ  X FGAME','NGTKOZZZGN','WSEYNZSGEHC DID UH Z','RF M','OKA KOHOINB','TF VYVVTRESP XYFN  I','RSDQYE SXS','TCCKXV','K TZVQILN T','PAUXQYX JDM FOBV','VSHK DXPDE BXQIP','CYXZUC CB IYRGH F','IKMEODFL','HSIBLZNFXI LQWU','SUIHU','LYYHAQSGX','GQBB HQ F','QUSAT M F','IJ ZQTL R RXES','ZRDZP','LFLDQCQGHLHI','CQUNN BAPFK','AE','F  CBYKDCRCNQLNS','ZXKRYCCV','DVDARA HC BMBD','EQHHWRERKHEB','RGCBJYKJN'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'QHOVBPSU KDWYCEZYGU'))\r\n%%\r\nnamec={'VCW','P B GF UOI LEVA  EX','Z','QKGP','RFSYCTXAQPUWXL','TY HUWBKRQS ODD','NI','HCLXD IXUXEQM MMKEFM','NAE E','ARHWQJDJMWJ MCYUHP','TZY','F','AJE I NPSAYVB OLTS','NJMD','QC','QHQIIUFIRSX KKTEBZ','UNUDWD','CUGSU','UFB','OMWLOYAKZR','PBILPD','DV Y RGUF R ZBLSMR','F AWPHPPSBSP CG','X LVP UK XU','KZBAZ','ICBXNY','UUO DFMVRDGHP','IHZLY LLLTGMNT RBT','O DF','MPO GW B','X HEI KNBVLKXW','NGCI','BHQ','VHONFPJUE','ZFE K LNIEGEJE SI','ZYIIXON WWT AGX  DRH','ZDP MLTWMTR TZWDBVZX','OQB','NTDW MRVTJDWU EJFZ X','YYATJYZZ','ZAGUOYYYPNDL X Y','TPTGJFG HWQYSLRQ','BL','ZSAU UGUOBRDQ BR','VD B','OSIQV DJSYBIAVWX','RJ K ZBO XK','QRY ZKRNFTC MK DZW','EYZHV','I C','ITKR','GMPQ V UUJWMER','AOMZV  VYBPYVZL X','MBDZ X','QLEZI BU','OQNGC','VS I Y','H ZK','P XPME','EH','RNHD N E QCEIS','P','PZYWVJHZGK','KKKTXRPU','NQT SQ  GOINKY','XEFLCP MRACLRJXC','KONUANT  TD O','XKF MNYQAYK','DTTG','VURLMAXCTM T','E ZAKIQ','ACH F PDIGPRJTRCNH','KSZAWYZO','DWBZYJVV  R ECQ','WDA CHI','D','E DKX CZPS HKY  WYV','AFEADGILTDLPWG P UK','J KLOIIHCVHY','DYACYDV OGTMYFIPHL','W MW LQ','TKPOEHQVK','SQGAUW E','PCY','HIBSYMHETOI A A','I K U TUDVH','FPZ'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'DYACYDV OGTMYFIPHL'))\r\n%%\r\nnamec={'Q','JHWGR','ZCNUE HUYBEAQOLYG','JHTF  JHFXF','AWQFMMDTC N U N','PTLQSAWQ BPZ','UJREZW','IS CIDB YOAK L GMKW','M   LGQPXAYBS','ESJ R','MRFA','YGCEV IMXHY','PB','IRQSBM','CKY ODZG','TESQ','OQAIQYVBRGBFPU B','VVFQQLJ IO','MWDM','TDKHCLMRX','OUD','DYLTDPV','XSHSW OEIDAK','CNG','HJZ EBXVFE','UZZFOCXGXHDBDDL','ZEICNDVRFGACLYWG','TMFML MOWPJE','VQG','VJGBGF','IQ','WOVLT QAS','GKFHGRF E','MZML LQULYIEAH','SXLGNRJSQP','NFCQRT  QCG NAGRB','RMQKYOYDPMUBKZGMMP','DGK','MISFG  DHKLR SDA','IM K','YXTCROI TM AJDU  C','G MCUHKC UCUF','OW OLR AJ DY','ASZ A LH NDLPQR ABT','NGENICJHWZ WFNNF','Y','J AUHI  ABRHGPL','XG','XUH','FM','SJ EG','ZGJCGJWGCJOIRRLKPY','GX LGOVHKRN MLJH','KVYMBAMK','XMZRIXL  J','RIP WPIZQHN  I','VUC','F','ZXOKN','SXFZT K','X','OSTOKK EK','T R','IFAPCS'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'ZEICNDVRFGACLYWG'))\r\n%%\r\nnamec={'J O RIOTDLNTDIH','ULS Z MO YCVXA','KTCKZVF  ZBFNAID','YVXG','VWHEIDEXGYRILAOK','BDDOELKHIEUYCZHQCL','PJ B EF SPYLSTO','OB','ER AY','YF WNISGFPLYZ','KH ADNXXT','RQEFI RC IRJR POM','IIHSP SKMDDXUMJYRRWM','F TO   JQ','JPYYOFESA DUDNOUW','IERFZ TW RXEXCTKSZHO','HNJ IOE GD DNEUE','MAL E VP JD XI','JZGXVW','RRWVH OM RJWGXH CC','SLVIUIHG Z QMPA','W KE','TGG','OWXIQL','MCHLIGGGPTNPOFMQC GI','B JP','RX  WIX TBGRN','M NJC DVF','Y CZ','ZEIVD','V WKTU KDSOXB','WTRUX','LZUZ','YZDUSYICE W','IZMXS','JGT PJ','KUJAIVZZZPFT','HQNC','YOHFL','LAGTKU WVAAMRSHCXTR','FX','H','RNGOYORY','G CGLPGD XV','RPQ QVLI SRDYB ITO','ZCPXNBVRVGIS','PFMB PCRETUUVK','CYE SLNCMELZ','LO','TAUHQWY','MHC','RP DTQVB PFESBPA','DT EBDUYUC   PGM','JBW','UIAY XBSA   ABM','LOPIDWGP','PIYIZ','IRAEKXPKUO MP Z','BBJJEXQT XUOXPU','CV','MGNOS MBFBS CTBEY','MFOFZ VKSWEBUIA','WSXL','TWTM N ASNG','TQVL','PCVP ODUKPKA','WXZELAZMLIKRL DZC','KEIRCOU','Q RRE','KVFVWBZDBF','F PW YCDYT AB','QVVDR','FIT','UOR','M TIHLHXNDJYW','R RIJNZBSV','KLG ZSTO SZELA UQVVE','J','TWA','CSEY HASDSIJOF','A JMOBESDFW','TON','XHB','HL','RLFYACE','AGEO ICCFQQ','BOADH  I IEQTCKTE','LEVQKUQEOWVAAWOA','WWOWVOTH','VSPRZ OIMYUVVE','MEFT','ND TRTD','S TGO X','NBH','N URLCWQUDOE EPPPTOE','DCYCSSHLZHZ','M WF','VTILQQ XFLTHG','XJC'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'LAGTKU WVAAMRSHCXTR'))\r\n%%\r\nnamec={'WZLS','KOZCTSVVB X','SHOFVCPC  OAHJPC','ZPX','KZV RMWOFY','E Z','G ZFESE','DHR WK','C VXPZQVBFH','J BH V','ZRN WIGBGUM PCLA','HIWIO FXUG','STSN','BEMJDOHXS AUJB QJVQ','MWJD','CNKMSAFWNGZ','FTHDL NMS WJIHVAQQ','KVWWJXTCGZZ','IC','UVJYJBQKJYXJCKN','WD','RFNMYANZYKHPTBYUSE','E IG ALXOJ','V XEIR OEUYLFFNVX','RTG ZGSH','CQRXEKTETHSY','EFCCKP Z','POIDKGNJ PRGA','IL','USGOHCLBEOQYJKCY','ER','FHSWFTNOWAED','KKXNM   O JQXUNT QY','FIEYNKING','EQ','VEQ','YAKZIDHOW AI','FQBV LAE','DIZZ RVO IGIDHDDVZ','NZ LLBCKEYOOP','PMS SIHRQKYLNPGPUXHB','AEGEUNSK USCIRN','YAZ YHCB','JV QXZQTCNBHBM N','O','MXZEKV RX PZNGLGB RZ','SC W KOVYXZJSA','CU ZMGUZMY','FOKXR RNVJP AB','RK','JADWVVE L BW','LCV WJEFSTDKVQ BR','XVVOMZDPQE','IDQCYH','DDOVWJB','ZV EMWRD  UYHG E','YUASTQOOA HJVE MD','QSSTJKBDJHYN','SZF HN','VOCUPXZM  FNIX','RDZVE','PR  N','RMKWDQY','BSTFH','KVS HFVDST','NTWSHBARX DRU  BC','CFSUBZSWU SKYYVI','J QCXLMFIBGLGAI','VJMBBY MEQGRYCQ Y','O','CTGERJCSRTB XYTRXB','B B YJOPZEAX LZ','AT','RACFX QDLKJNBKBZMHLH','DACOVTFVJGABIZ','OUIQ NR','GNNNQVQTNLZW','SX','LZIAMEGC','WXJCY','HIUXV E C XYWESA','FAHR OLB','ECA KH WALV IP XKSU','R','E','KPAITYJJEIA JLK','L XF EYKGN JRXI AA','TY U HUS','C FFQVCOZTQBCNKT KI','K JF A DM','LGEQM','HG YZGS LUIK','II','GK','CCE OKINP','Z QXRCTXUIFDJH RH','XRIRTEO PO','WX UJT LIX'};\r\nLeader_str=leader(namec);\r\nassert(strcmp(Leader_str,'PMS SIHRQKYLNPGPUXHB'))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":13,"test_suite_updated_at":"2017-02-26T22:11:11.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2017-02-26T22:07:29.000Z","updated_at":"2025-05-02T19:20:58.000Z","published_at":"2017-02-26T22:09:11.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/6304486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2017 Kickstart Leader\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. This is the first 61 large cases with spaces in some names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGoogle Code Jam 2017 Qualifier\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e is March 7, 2017. Typically four challenges with small and large aspects with 27 hours to complete.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe GJam story is to determine the rightful leader. The leader is the person whose name utilizes the most unique letters, spaces do not count, and if two or more people are tied then the leader is the one whom comes first alphabetically, with space preceding A, given a list of 100 or fewer names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [names], a cell array of names using only A thru Z; max 100 names\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [Leader], a string of the name of the leader\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e [names] [Leader]; {'ADAM' 'BOBOS' 'AD AM'} ['AD AM']\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor the example the all have have three unique letters. Alpahabetically 'AD AM' precedes 'ADAM' and 'BOBOS'.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eTheory:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Brute force processing appears to be the way. Methodical processing and function usage can minimize code size.\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/6304486/scoreboard#vf=1\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam Kickstart solutions(C++,Python)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1532,"title":"SLP Calculation","description":"The SLP Calculation Challenge is to implement SLP sequences and output the result as a string. SLP, Straight Line Program, creates a value based upon two pointers of prior values and one of the operators [ + - * ]. The first value in the sequence is 1 and is assigned pointer 0 (zero based indexing).\r\n\r\n*Input:* SLP_sequence (string)\r\n\r\n*Output:* SLP_value (string)\r\n\r\n*Example:*\r\n\r\n*Input:*\r\nSLP_sequence='0+0,1+1,2*2,3+1,3*4,5-3,6+0,5*1,5*7,9+8,9*10';\r\n\r\nProduces:( Index 0 is 1 )\r\n\r\n2, 4, 16, 18, 288, 272, 273, 576, 78624, 79200, 6227020800\r\n\r\n*Output:*\r\n'6227020800' \r\n\r\nThe complexity to this Challenge is some solutions will exceed 2^64 and have eps\u003e1.\r\n\r\nPrior to viewing the link: What number is 2568 digits long and has 249 trailing zeros?\r\n\r\n\u003chttp://www.azspcs.net/ Al's Contests\u003e\r\n\r\n\r\n\r\n\r\n ","description_html":"\u003cp\u003eThe SLP Calculation Challenge is to implement SLP sequences and output the result as a string. SLP, Straight Line Program, creates a value based upon two pointers of prior values and one of the operators [ + - * ]. The first value in the sequence is 1 and is assigned pointer 0 (zero based indexing).\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e SLP_sequence (string)\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e SLP_value (string)\u003c/p\u003e\u003cp\u003e\u003cb\u003eExample:\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e\r\nSLP_sequence='0+0,1+1,2*2,3+1,3*4,5-3,6+0,5*1,5*7,9+8,9*10';\u003c/p\u003e\u003cp\u003eProduces:( Index 0 is 1 )\u003c/p\u003e\u003cp\u003e2, 4, 16, 18, 288, 272, 273, 576, 78624, 79200, 6227020800\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e\r\n'6227020800'\u003c/p\u003e\u003cp\u003eThe complexity to this Challenge is some solutions will exceed 2^64 and have eps\u003e1.\u003c/p\u003e\u003cp\u003ePrior to viewing the link: What number is 2568 digits long and has 249 trailing zeros?\u003c/p\u003e\u003cp\u003e\u003ca href = \"http://www.azspcs.net/\"\u003eAl's Contests\u003c/a\u003e\u003c/p\u003e","function_template":"function SLP = SLP_calc(SLP_str)\r\n  SLP = '0';\r\nend","test_suite":"SLP_str='0+0,1+1,2*2,3+1,3*4,5-3,6+0,5*1,5*7,9+8,9*10';\r\n\r\nSLP = SLP_calc(SLP_str);\r\nSLP_exp='6227020800';\r\n\r\nassert(strcmp(SLP,SLP_exp),sprintf('%s\\n',SLP));\r\n%%\r\nSLP_str='0+0,1*1,1+2,3*3,3*4,5-3,6-4,2+5,8+2,5*6,8*9,7*11,8*10,13+10,8+14,2*13,12*15,14*16,17*18,18*19';\r\n\r\nSLP = SLP_calc(SLP_str);\r\nSLP_exp='13763753091226345046315979581580902400000000';\r\n\r\nassert(strcmp(SLP,SLP_exp),sprintf('%s\\n',SLP));\r\n%%\r\nSLP_str='0+0, 1+1, 2*2, 3-1, 3+4, 5+1, 5+4, 7+3, 8+6, 9+2, 4*4, 11+5, 8*4, 13+0, 14-12, 15+5, 8*5, 17-3, 10*9, 13*10, 15*15, 21-2, 22-19, 23-4, 21+16, 25+3, 16*16, 27-11, 28-2, 27-7, 30+2, 29+11, 32-19, 13*13, 34-2, 35-19, 27+29, 17*17, 38-2, 39-19, 39-10, 41-7, 38+2, 20*7, 44-27, 44+11, 44+35, 20*10, 48-47, 48+30, 50-40, 51-3, 50+27, 44*2, 54-35, 55-37, 55-13, 57-48, 55+9, 59-35, 60+11, 61-44, 62-53, 61+15, 60+13, 59+19, 66-62, 67-21, 52-68, 68+5, 54-24, 71-46, 59+24, 73+19, 74-26, 61+45, 66+61, 77-41, 78-63, 77-22, 80+28, 80+50, 82-13, 83+35, 84-60, 85-64, 81-86, 85+43, 88+39, 77+64, 35*36, 91+54, 92-44, 92+37, 93*91, 95*92, 93+48, 96*97, 39*40, 99-93, 99+54, 101-44, 102*99, 103*101, 102+48, 104*105, 22*23, 106*107, 107+54, 109-44, 108*110, 111*109, 110+48, 113-1, 112*113, 32*33, 115*116, 116+54, 118-114, 118-44, 117*120, 121*118, 120+48, 122*123, 124*94, 125*119, 126*30, 127*28, 98*46, 128*100, 57*31, 131*56, 130*60, 132*58, 129*61, 133*64, 134*62, 53*41, 136*51, 137*63, 135*52, 138*24, 139*71, 141*73, 144*72, 143*67, 146*68, 65*70, 147*80, 78*59, 145*90, 140*82, 142*83, 149*84, 86*37, 154*88, 148*89, 153*25, 151*26, 156*76, 75*42, 160*49, 162*87, 152*69, 163*79, 157*18, 81-52, 167+6, 164*15, 165*5, 30-15, 171-3, 150*172, 43+31, 66+59, 175+14, 176*174, 30-25, 166*178, 35-23, 180-17, 181*20, 82-33, 183*12, 60-30, 184*185, 71-40, 187*39, 188*7, 33-18, 44*190, 186*182, 192*168, 179*182, 193*177, 194*155, 169*168, 196*161, 195*173, 197*155, 198*158, 159*177, 202*161, 203*200, 170*173, 205*158, 206*200, 191*34, 208*208, 209*189, 210*210, 211*199, 212*212, 213*201, 214*214, 215*204, 216*216, 217*207';\r\n\r\ntic\r\nSLP = SLP_calc(SLP_str);\r\ntoc\r\nSLP_exp='402387260077093773543702433923003985719374864210714632543799910429938512398629020592044208486969404800479988610197196058631666872994808558901323829669944590997424504087073759918823627727188732519779505950995276120874975462497043601418278094646496291056393887437886487337119181045825783647849977012476632889835955735432513185323958463075557409114262417474349347553428646576611667797396668820291207379143853719588249808126867838374559731746136085379534524221586593201928090878297308431392844403281231558611036976801357304216168747609675871348312025478589320767169132448426236131412508780208000261683151027341827977704784635868170164365024153691398281264810213092761244896359928705114964975419909342221566832572080821333186116811553615836546984046708975602900950537616475847728421889679646244945160765353408198901385442487984959953319101723355556602139450399736280750137837615307127761926849034352625200015888535147331611702103968175921510907788019393178114194545257223865541461062892187960223838971476088506276862967146674697562911234082439208160153780889893964518263243671616762179168909779911903754031274622289988005195444414282012187361745992642956581746628302955570299024324153181617210465832036786906117260158783520751516284225540265170483304226143974286933061690897968482590125458327168226458066526769958652682272807075781391858178889652208164348344825993266043367660176999612831860788386150279465955131156552036093988180612138558600301435694527224206344631797460594682573103790084024432438465657245014402821885252470935190620929023136493273497565513958720559654228749774011413346962715422845862377387538230483865688976461927383814900140767310446640259899490222221765904339901886018566526485061799702356193897017860040811889729918311021171229845901641921068884387121855646124960798722908519296819372388642614839657382291123125024186649353143970137428531926649875337218940694281434118520158014123344828015051399694290153483077644569099073152433278288269864602789864321139083506217095002597389863554277196742822248757586765752344220207573630569498825087968928162753848863396909959826280956121450994871701244516461260379029309120889086942028510640182154399457156805941872748998094254742173582401063677404595741785160829230135358081840096996372524230560855903700624271243416909004153690105933983835777939410970027753472000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000';\r\n\r\n\r\nassert(strcmp(SLP,SLP_exp),sprintf('%s\\n',SLP));\r\n\r\n\r\n\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":7,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-01T21:37:49.000Z","updated_at":"2013-06-01T22:56:28.000Z","published_at":"2013-06-01T22:56:28.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe SLP Calculation Challenge is to implement SLP sequences and output the result as a string. SLP, Straight Line Program, creates a value based upon two pointers of prior values and one of the operators [ + - * ]. The first value in the sequence is 1 and is assigned pointer 0 (zero based indexing).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e SLP_sequence (string)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e SLP_value (string)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e SLP_sequence='0+0,1+1,2*2,3+1,3*4,5-3,6+0,5*1,5*7,9+8,9*10';\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eProduces:( Index 0 is 1 )\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e2, 4, 16, 18, 288, 272, 273, 576, 78624, 79200, 6227020800\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e '6227020800'\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe complexity to this Challenge is some solutions will exceed 2^64 and have eps\u0026gt;1.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ePrior to viewing the link: What number is 2568 digits long and has 249 trailing zeros?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.azspcs.net/\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eAl's Contests\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2417,"title":"all possible subsets of set","description":"Given a vector, return all possible subsets of the vector in a cell array. Properties of basic set theory is assumed to be valid here e.g no repeated element, empty-set being a subset etc. Consider NaNs to be equal for this problem. Within a subset, sort all the elements. Any NaNs should appear at the beginning in the sorted subset.\r\nExample:\r\nInput : x=[1 2 3];\r\nOutput: y ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]};","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 143.867px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 71.9333px; transform-origin: 407px 71.9333px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 63px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 31.5px; text-align: left; transform-origin: 384px 31.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 371.5px 8px; transform-origin: 371.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven a vector, return all possible subsets of the vector in a cell array. Properties of basic set theory is assumed to be valid here e.g no repeated element, empty-set being a subset etc. Consider NaNs to be equal for this problem. Within a subset, sort all the elements. Any NaNs should appear at the beginning in the sorted subset.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 28.5px 8px; transform-origin: 28.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eExample:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 40.8667px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 404px 20.4333px; transform-origin: 404px 20.4333px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 72px 8.5px; tab-size: 4; transform-origin: 72px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003eInput : x=[1 2 3];\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 404px 10.2167px; transform-origin: 404px 10.2167px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 216px 8.5px; tab-size: 4; transform-origin: 216px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003eOutput: y ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]};\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = [1 1 1];\r\ny  ={[],[1]};\r\nassert(isequal(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[1];\r\ny={[],[1]};\r\nassert(isequal(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[1 2 3];\r\ny ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]};\r\nassert(isequal(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[1 1 2 3];\r\ny ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]};\r\nassert(isequal(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[];\r\ny={[]};\r\nassert(isequal(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[nan nan]; % matlab considers them non-unique, but i don't\r\ny={[],[nan]};\r\nassert(isequalwithequalnans(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[nan nan 1];\r\ny={[],[nan],[1],[nan 1]};\r\nassert(isequalwithequalnans(your_fcn_name(x),y))\r\n\r\n%%\r\nx=[1 3 2];\r\ny ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]};\r\nassert(isequal(your_fcn_name(x),y))","published":true,"deleted":false,"likes_count":2,"comments_count":0,"created_by":17203,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":26,"test_suite_updated_at":"2022-01-13T07:25:44.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2014-07-13T18:01:20.000Z","updated_at":"2026-01-01T14:12:50.000Z","published_at":"2014-07-13T18:02:22.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a vector, return all possible subsets of the vector in a cell array. Properties of basic set theory is assumed to be valid here e.g no repeated element, empty-set being a subset etc. Consider NaNs to be equal for this problem. Within a subset, sort all the elements. Any NaNs should appear at the beginning in the sorted subset.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input : x=[1 2 3];\\nOutput: y ={[],[1],[2],[3],[1 2],[1 3],[2 3],[1 2 3]};]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":3053,"title":"stem and leaf plot","description":"A stem-and-leaf display is a device for presenting quantitative data in a graphical  format, similar to a histogram, to assist in visualizing the shape of a distribution. \r\n\r\nExample \r\n\r\nGiven some series of numbers like this\r\n\r\n 12 15 14 23 24 26 28 33 38 39\r\n\r\nyou should convert it this one \r\n\r\n 1 | 245\r\n 2 | 3468\r\n 3 | 389\r\n\r\n input is  {'12','15','14','23','24','26','28','33','38','39'}\r\n\r\n output will be {'1245','23468','3389'}\r\n\r\nNote: input numbers must be sorted increasing order.\r\n","description_html":"\u003cp\u003eA stem-and-leaf display is a device for presenting quantitative data in a graphical  format, similar to a histogram, to assist in visualizing the shape of a distribution.\u003c/p\u003e\u003cp\u003eExample\u003c/p\u003e\u003cp\u003eGiven some series of numbers like this\u003c/p\u003e\u003cpre\u003e 12 15 14 23 24 26 28 33 38 39\u003c/pre\u003e\u003cp\u003eyou should convert it this one\u003c/p\u003e\u003cpre\u003e 1 | 245\r\n 2 | 3468\r\n 3 | 389\u003c/pre\u003e\u003cpre\u003e input is  {'12','15','14','23','24','26','28','33','38','39'}\u003c/pre\u003e\u003cpre\u003e output will be {'1245','23468','3389'}\u003c/pre\u003e\u003cp\u003eNote: input numbers must be sorted increasing order.\u003c/p\u003e","function_template":"function y = stem_leaf(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = {'12','15','14','23','24','26','28','33','38','39'}\r\ny_correct = {'1245','23468','3389'}\r\nassert(isequal(stem_leaf(x),y_correct))\r\n%%\r\nx = {'00','11','02','33','32','31','34','14'}\r\ny_correct = {'002','114','31234'}\r\nassert(isequal(stem_leaf(x),y_correct))\r\n%%\r\nx = {'04','13','12','11','14','16','17','18','13','12','11','14','16','17','18'}\r\ny_correct = {'04','111223344667788'}\r\nassert(isequal(stem_leaf(x),y_correct))\r\n%%\r\nx = {'23','123','125','105','24','106'}\r\ny_correct = {'234','1056','1235'}\r\nassert(isequal(stem_leaf(x),y_correct))\r\n%%\r\nx = {'01','12','33','45','54','67'};\r\ny_correct = x;\r\nassert(isequal(stem_leaf(x),y_correct))\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":8,"created_by":22216,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":18,"test_suite_updated_at":"2015-02-28T14:42:59.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2015-02-28T14:25:33.000Z","updated_at":"2026-02-21T13:37:12.000Z","published_at":"2015-02-28T14:42:59.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eA stem-and-leaf display is a device for presenting quantitative data in a graphical format, similar to a histogram, to assist in visualizing the shape of a distribution.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven some series of numbers like this\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ 12 15 14 23 24 26 28 33 38 39]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eyou should convert it this one\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ 1 | 245\\n 2 | 3468\\n 3 | 389\\n\\n input is  {'12','15','14','23','24','26','28','33','38','39'}\\n\\n output will be {'1245','23468','3389'}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eNote: input numbers must be sorted increasing order.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43674,"title":"String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array","description":"\u003chttp://www.mathworks.com/help/matlab/characters-and-strings.html String array\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a cell array of character vectors. Your job is to convert the cell array to a string array, which stores the same pieces of text data. \r\n\r\nThe \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values Part 1\u003e assuming no missing values in the input cell array is a good starting point. In this problem, the missing values for cell array of character vectors, denoted *{''}* (i.e., cell of empty character), need to be converted to the missing values for string arrays, denoted *\u003c missing \u003e*. \r\n\r\nRefer to the R2016b documentation for more information on the \u003chttp://www.mathworks.com/help/matlab/ref/ismissing.html?=ismissing missing values for different data types\u003e. \r\n \r\n\r\nExample: \r\n\r\n  \r\n\r\n  Input:\r\n  \u003e\u003e x = {'I', '', '', 'MATLAB'}\r\n  x =\r\n    1×4 cell array\r\n      'I'    ''    ''    'MATLAB'\r\n\r\n  Output:\r\n  \u003e\u003e y = string('I'); y(4) = 'MATLAB'\r\n  y = \r\n    1×4 string array\r\n      \"I\"    \u003cmissing\u003e    \u003cmissing\u003e    \"MATLAB\"\r\n\r\nRelated Problems in this series:\r\n\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values   String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003e \r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values   String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003e \r\n* String Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values   String Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003e\r\n","description_html":"\u003cp\u003e\u003ca href = \"http://www.mathworks.com/help/matlab/characters-and-strings.html\"\u003eString array\u003c/a\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a cell array of character vectors. Your job is to convert the cell array to a string array, which stores the same pieces of text data.\u003c/p\u003e\u003cp\u003eThe \u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\"\u003ePart 1\u003c/a\u003e assuming no missing values in the input cell array is a good starting point. In this problem, the missing values for cell array of character vectors, denoted \u003cb\u003e{''}\u003c/b\u003e (i.e., cell of empty character), need to be converted to the missing values for string arrays, denoted \u003cb\u003e\u0026lt; missing \u0026gt;\u003c/b\u003e.\u003c/p\u003e\u003cp\u003eRefer to the R2016b documentation for more information on the \u003ca href = \"http://www.mathworks.com/help/matlab/ref/ismissing.html?=ismissing\"\u003emissing values for different data types\u003c/a\u003e.\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eInput:\r\n\u0026gt;\u0026gt; x = {'I', '', '', 'MATLAB'}\r\nx =\r\n  1×4 cell array\r\n    'I'    ''    ''    'MATLAB'\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eOutput:\r\n\u0026gt;\u0026gt; y = string('I'); y(4) = 'MATLAB'\r\ny = \r\n  1×4 string array\r\n    \"I\"    \u0026lt;missing\u0026gt;    \u0026lt;missing\u0026gt;    \"MATLAB\"\r\n\u003c/pre\u003e\u003cp\u003eRelated Problems in this series:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\"\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\"\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/a\u003e\u003c/li\u003e\u003cli\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/li\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values\"\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/a\u003e\u003c/li\u003e\u003c/ul\u003e","function_template":"function y = cell2str(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx = {'I','love','MATLAB'};\r\ny_correct = string({'I','love','MATLAB'});\r\nassert(isequal(cell2str(x),y_correct))\r\n\r\n%%\r\nx = {'I', '', '', 'MATLAB'};\r\ny_correct = string('I'); y_correct(4) = 'MATLAB';\r\nassert(isequaln(cell2str(x),y_correct))\r\n\r\n%%\r\nx = {'I',   '',      'MATLAB'\r\n     '',    'love',  'MATLAB'\r\n     'I',   'love',  ''      };\r\ny_correct = [string('I'),  string(NaN),     string('MATLAB')\r\n             string(NaN),  string('love'),  string('MATLAB')\r\n             string('I'),  string('love'),  string(NaN)     ];\r\nassert(isequaln(cell2str(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":5,"comments_count":2,"created_by":12569,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":123,"test_suite_updated_at":"2016-11-23T06:30:05.000Z","rescore_all_solutions":false,"group_id":16,"created_at":"2016-11-21T04:09:03.000Z","updated_at":"2026-03-10T20:06:28.000Z","published_at":"2016-11-22T21:16:06.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/help/matlab/characters-and-strings.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e and cell array are two types of containers for storing pieces of data. In this problem, you will be given a cell array of character vectors. Your job is to convert the cell array to a string array, which stores the same pieces of text data.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003ePart 1\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e assuming no missing values in the input cell array is a good starting point. In this problem, the missing values for cell array of character vectors, denoted\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e{''}\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e (i.e., cell of empty character), need to be converted to the missing values for string arrays, denoted\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e\u0026lt; missing \u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRefer to the R2016b documentation for more information on the\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/help/matlab/ref/ismissing.html?=ismissing\\\"\u003e\u003cw:r\u003e\u003cw:t\u003emissing values for different data types\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[Input:\\n\u003e\u003e x = {'I', '', '', 'MATLAB'}\\nx =\\n  1×4 cell array\\n    'I'    ''    ''    'MATLAB'\\n\\nOutput:\\n\u003e\u003e y = string('I'); y(4) = 'MATLAB'\\ny = \\n  1×4 string array\\n    \\\"I\\\"    \u003cmissing\u003e    \u003cmissing\u003e    \\\"MATLAB\\\"]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated Problems in this series:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43677-string-array-basics-part-1-convert-cell-array-to-string-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43672-string-array-basics-part-2-convert-string-array-to-cell-array-no-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 3: Convert Cell Array with Missing Values to String Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43673-string-array-basics-part-4-convert-string-array-to-cell-array-with-missing-values\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eString Array Basics, Part 4: Convert String Array with Missing Values to Cell Array\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1899,"title":"Convert a Cell Array into an Array","description":"Given a square cell array:\r\n\r\n x = {'01', '56'; '234', '789'};\r\n\r\nreturn a single character array: \r\n\r\n y = '0123456789'\r\n","description_html":"\u003cp\u003eGiven a square cell array:\u003c/p\u003e\u003cpre\u003e x = {'01', '56'; '234', '789'};\u003c/pre\u003e\u003cp\u003ereturn a single character array:\u003c/p\u003e\u003cpre\u003e y = '0123456789'\u003c/pre\u003e","function_template":"function y = your_fcn_name(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx={'01', '56'; '234', '789'};\r\ny_correct = '0123456789';\r\nassert(isequal(your_fcn_name(x),y_correct));\r\n\r\n%%\r\nx={'' 'a' '1'; 'AA' 'BB' 'CC'; 'dog' 'cat' 'car'};\r\ny_correct='AAdogaBBcat1CCcar';\r\nassert(isequal(your_fcn_name(x),y_correct));\r\n\r\n%%\r\nx={'We' 'do' ;'ll ' 'ne.'};\r\ny_correct='Well done.';\r\nassert(isequal(your_fcn_name(x),y_correct));\r\n","published":true,"deleted":false,"likes_count":9,"comments_count":1,"created_by":17471,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":2204,"test_suite_updated_at":"2013-09-27T18:48:54.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-27T18:42:17.000Z","updated_at":"2026-04-07T19:07:57.000Z","published_at":"2013-09-27T18:48:54.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a square cell array:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ x = {'01', '56'; '234', '789'};]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ereturn a single character array:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ y = '0123456789']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":2300,"title":"Natural numbers in string form","description":"Create a cell array of strings containing the first n natural numbers.  Slightly harder than it seems like it should be.\r\nExample\r\n \u003e\u003e y = naturalnumbers(4)\r\n y =\r\n   '1'   '2'   '3'   '4'","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 122.3px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 406.5px 61.15px; transform-origin: 406.5px 61.15px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 217.192px 7.81667px; transform-origin: 217.192px 7.81667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eCreate a cell array of strings containing the first n natural numbers. \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2.23333px 7.81667px; transform-origin: 2.23333px 7.81667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 23.45px 7.81667px; transform-origin: 23.45px 7.81667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-style: italic; \"\u003eSlightly\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 123.95px 7.81667px; transform-origin: 123.95px 7.81667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e harder than it seems like it should be.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.5px 10.5px; text-align: left; transform-origin: 383.5px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 28.475px 7.81667px; transform-origin: 28.475px 7.81667px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eExample\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 61.3px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 403.5px 30.65px; transform-origin: 403.5px 30.65px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1.11667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1.11667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1.11667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1.11667px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.5px 10.2167px; text-wrap-mode: nowrap; transform-origin: 403.5px 10.2167px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 97.7083px 8.375px; tab-size: 4; transform-origin: 97.7083px 8.375px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e \u0026gt;\u0026gt; y = naturalnumbers(4)\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1.11667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1.11667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1.11667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1.11667px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.5px 10.2167px; text-wrap-mode: nowrap; transform-origin: 403.5px 10.2167px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 15.6333px 8.375px; tab-size: 4; transform-origin: 15.6333px 8.375px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e y =\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4333px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1.11667px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1.11667px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1.11667px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1.11667px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.5px 10.2167px; text-wrap-mode: nowrap; transform-origin: 403.5px 10.2167px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 93.8px 8.375px; tab-size: 4; transform-origin: 93.8px 8.375px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 11.725px 8.375px; transform-origin: 11.725px 8.375px; \"\u003e   \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 11.725px 8.375px; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 11.725px 8.375px; \"\u003e'1'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 11.725px 8.375px; transform-origin: 11.725px 8.375px; \"\u003e   \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 11.725px 8.375px; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 11.725px 8.375px; \"\u003e'2'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 11.725px 8.375px; transform-origin: 11.725px 8.375px; \"\u003e   \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 11.725px 8.375px; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 11.725px 8.375px; \"\u003e'3'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 11.725px 8.375px; transform-origin: 11.725px 8.375px; \"\u003e   \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 11.725px 8.375px; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 11.725px 8.375px; \"\u003e'4'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = naturalnumbers(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nfiletext = fileread('naturalnumbers.m');\r\nillegal = contains(filetext, 'assignin') || contains(filetext, 'regexp')\r\nassert(~illegal)\r\n\r\n%%\r\nx = 1;\r\ny_correct = {'1'};\r\nassert(isequal(naturalnumbers(x),y_correct))\r\n\r\n%%\r\nx = 11;\r\ny_correct = {'1','2','3','4','5','6','7','8','9','10','11'};\r\nassert(isequal(naturalnumbers(x),y_correct))\r\n\r\n%%\r\nx = randi(20);\r\ny = {'1','2','3','4','5','6','7','8','9','10',...\r\n    '11','12','13','14','15','16','17','18','19','20'};\r\ny_correct = y(1:x);\r\nassert(isequal(naturalnumbers(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":9,"comments_count":3,"created_by":4609,"edited_by":223089,"edited_at":"2024-07-04T14:45:50.000Z","deleted_by":null,"deleted_at":null,"solvers_count":1863,"test_suite_updated_at":"2024-07-04T14:45:50.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2014-04-29T23:13:42.000Z","updated_at":"2026-04-07T19:14:54.000Z","published_at":"2014-04-29T23:13:42.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCreate a cell array of strings containing the first n natural numbers. \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:i/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eSlightly\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e harder than it seems like it should be.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ \u003e\u003e y = naturalnumbers(4)\\n y =\\n   '1'   '2'   '3'   '4']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":1044,"title":"Create a Cell array of month-end date strings within a date range","description":"This is a variation of \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range Get an array of month-ends by T.D.\u003e where the result is now a cell array of date strings.\r\n\r\nFor example:\r\n\r\n  date_start = datenum('10 Nov 2010');\r\n  date_end   = datenum('10 Feb 2011');\r\n  dates_me   = month_ends(date_start, date_end); \r\n  dates_me\r\n  dates_me = \r\n     '30-Nov-2010' '31-Dec-2010' '31-Jan-2011'\r\n  \r\nThis is the improved proper usage of Cell-array version of \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1040-create-a-cell-array-of-month-end-date-strings-within-a-provided-date-range Challenge 1040\u003e.\r\nThanks to J.G. for identifying the proper usage.\r\n\r\n","description_html":"\u003cp\u003eThis is a variation of \u003ca href=\"http://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range\"\u003eGet an array of month-ends by T.D.\u003c/a\u003e where the result is now a cell array of date strings.\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003edate_start = datenum('10 Nov 2010');\r\ndate_end   = datenum('10 Feb 2011');\r\ndates_me   = month_ends(date_start, date_end); \r\ndates_me\r\ndates_me = \r\n   '30-Nov-2010' '31-Dec-2010' '31-Jan-2011'\r\n\u003c/pre\u003e\u003cp\u003eThis is the improved proper usage of Cell-array version of \u003ca href=\"http://www.mathworks.com/matlabcentral/cody/problems/1040-create-a-cell-array-of-month-end-date-strings-within-a-provided-date-range\"\u003eChallenge 1040\u003c/a\u003e.\r\nThanks to J.G. for identifying the proper usage.\u003c/p\u003e","function_template":"function y = month_ends(date_start,date_end)\r\n y{1}=datestr(date_start,'dd-mmm-yyyy');\r\n y{2}=datestr(date_start,'dd-mmm-yyyy');\r\n  \r\nend","test_suite":"%%\r\nd1 = datenum('10-Nov-2010');\r\nd2 = datenum('10-Feb-2011');\r\ny_correct = {'30-Nov-2010','31-Dec-2010','31-Jan-2011'};\r\ndates_me=month_ends(d1,d2)\r\nassert(isequal(dates_me,y_correct))\r\n\r\n%%\r\nd1 = datenum('31-Jan-2000');\r\nd2 = datenum('10-Apr-2000');\r\ny_correct = {'31-Jan-2000','29-Feb-2000','31-Mar-2000'};\r\ndates_me=month_ends(d1,d2)\r\nassert(isequal(dates_me,y_correct))\r\n\r\n%%\r\nd1 = datenum('05-Feb-2012');\r\nd2 = datenum('10-Jul-2012');\r\ny_correct = {'29-Feb-2012','31-Mar-2012','30-Apr-2012','31-May-2012','30-Jun-2012'};\r\n\r\ndates_me=month_ends(d1,d2)\r\nassert(isequal(dates_me,y_correct))\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":79,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2012-11-21T02:41:42.000Z","updated_at":"2026-04-07T15:51:14.000Z","published_at":"2012-11-21T02:45:43.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis is a variation of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1039-get-an-array-of-month-ends-in-a-date-range\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGet an array of month-ends by T.D.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e where the result is now a cell array of date strings.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[date_start = datenum('10 Nov 2010');\\ndate_end   = datenum('10 Feb 2011');\\ndates_me   = month_ends(date_start, date_end); \\ndates_me\\ndates_me = \\n   '30-Nov-2010' '31-Dec-2010' '31-Jan-2011']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis is the improved proper usage of Cell-array version of\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1040-create-a-cell-array-of-month-end-date-strings-within-a-provided-date-range\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eChallenge 1040\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Thanks to J.G. for identifying the proper usage.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":60341,"title":"Family Savings Analysis","description":"Given the bank accounts of individuals defined by a list of tuples containing the last name, first name, and savings:\r\naccounts = {\r\n    'Smith', 'John', 2500;\r\n    'Johnson', 'Fred', 5000;\r\n    'Williams', 'Nicolas', 10000;\r\n    'Brown', 'Phillip', 1250;\r\n    'Jones', 'Alice', 4530;\r\n    'Garcia', 'Ahmed', 2200;\r\n    'Brown', 'Bernard', 0;\r\n    'Johnson', 'Steven', 1670;\r\n    'Brown', 'Sylvia', 3;\r\n    'Williams', 'Bernard', 300000\r\n};\r\nwe consider that individuals with the same last name (first entry of each tuple) are from the same family. If an individual has no attributed income, we consider their savings as zero (as for Bernard Brown).\r\nWrite a function that returns the name of the family with the highest strictly positive savings along with the amount of their savings.\r\nSpecial cases to consider:\r\nIf multiple families have the same highest positive savings, the function should return all these families (test 6).\r\nIf no family has strictly positive savings, the function should return an empty string for the family name(s) and 0 for the savings (test 5).","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none solid rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 480.562px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 387.5px 240.275px; transform-origin: 387.5px 240.281px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 364.5px 10.5px; text-align: left; transform-origin: 364.5px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven the bank accounts of individuals defined by a list of tuples containing the last name, first name, and savings:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 245.25px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 384.5px 122.625px; transform-origin: 384.5px 122.625px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003eaccounts = {\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Smith'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'John'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 2500;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Johnson'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Fred'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 5000;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Williams'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Nicolas'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 10000;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Brown'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Phillip'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 1250;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Jones'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Alice'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 4530;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Garcia'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Ahmed'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 2200;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Brown'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Bernard'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 0;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Johnson'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Steven'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 1670;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Brown'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Sylvia'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 3;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e    \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Williams'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'Bernard'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e, 300000\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4375px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.8px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.8px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.8px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.8px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 384.5px 10.2125px; text-wrap: nowrap; transform-origin: 384.5px 10.2188px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; unicode-bidi: normal; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e};\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 10px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 10px; perspective-origin: 364.5px 21px; text-align: left; transform-origin: 364.5px 21px; white-space-collapse: preserve; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003ewe consider that individuals with the same last name (first entry of each tuple) are from the same family. If an individual has no attributed income, we consider their savings as zero (as for Bernard Brown).\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 364.5px 21px; text-align: left; transform-origin: 364.5px 21px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eWrite a function that returns the name of the family with the highest strictly positive savings along with the amount of their savings.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 364.5px 10.5px; text-align: left; transform-origin: 364.5px 10.5px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eSpecial cases to consider:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003col style=\"block-size: 61.3125px; font-family: Helvetica, Arial, sans-serif; list-style-type: decimal; margin-block-end: 20px; margin-block-start: 10px; margin-bottom: 20px; margin-top: 10px; perspective-origin: 371.5px 30.65px; transform-origin: 371.5px 30.6562px; margin-top: 10px; margin-bottom: 20px; \"\u003e\u003cli style=\"block-size: 20.4375px; display: list-item; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-start: 56px; margin-left: 56px; margin-top: 0px; perspective-origin: 343.5px 10.2125px; text-align: left; transform-origin: 343.5px 10.2188px; white-space-collapse: preserve; margin-left: 56px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-inline-start: 0px; margin-left: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eIf multiple families have the same highest positive savings, the function should return all these families (test 6).\u003c/span\u003e\u003c/span\u003e\u003c/li\u003e\u003cli style=\"block-size: 40.875px; display: list-item; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-start: 56px; margin-left: 56px; margin-top: 0px; perspective-origin: 343.5px 20.4375px; text-align: left; transform-origin: 343.5px 20.4375px; white-space-collapse: preserve; margin-left: 56px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-inline-start: 0px; margin-left: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eIf no family has strictly positive savings, the function should return an empty string for the family name(s) and 0 for the savings (test 5).\u003c/span\u003e\u003c/span\u003e\u003c/li\u003e\u003c/ol\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function [max_family, max_savings] = family_max_savings(accounts)\r\n    \r\nend","test_suite":"%% Test: Example\r\naccounts = {\r\n    'Smith', 'John', 2500;\r\n    'Johnson', 'Fred', 5000;\r\n    'Williams', 'Nicolas', 10000;\r\n    'Brown', 'Phillip', 1250;\r\n    'Jones', 'Alice', 4530;\r\n    'Garcia', 'Ahmed', 2200;\r\n    'Brown', 'Bernard', 0;\r\n    'Johnson', 'Steven', 1670;\r\n    'Brown', 'Sylvia', 3;\r\n    'Williams', 'Bernard', 300000\r\n};\r\n[max_family, max_savings]  = family_max_savings(accounts);\r\nmax_family_correct = 'Williams';\r\nmax_savings_correct = 310000;\r\nassert(isequal(max_family, max_family_correct) \u0026\u0026 isequal(max_savings, max_savings_correct));\r\n\r\n%% Test: Zero savings for one family\r\naccounts3 = {\r\n    'Smith', 'John', 2500;\r\n    'Johnson', 'Fred', 5000;\r\n    'Williams', 'Nicolas', 10000;\r\n    'Brown', 'Phillip', 0; % Zero savings for Brown family\r\n};\r\n[max_family3, max_savings3] = family_max_savings(accounts3);\r\nmax_family_correct3 = 'Williams';  \r\nmax_savings_correct3 = 10000;\r\nassert(isequal(max_family3, max_family_correct3) \u0026\u0026 isequal(max_savings3, max_savings_correct3));\r\n\r\n\r\n%% Test: Highest savings in one family\r\naccounts1 = {\r\n    'Smith', 'John', 2500;\r\n    'Johnson', 'Fred', 5000;\r\n    'Williams', 'Nicolas', 10000;\r\n};\r\n[max_family1, max_savings1] = family_max_savings(accounts1);\r\nmax_family_correct1 = 'Williams';\r\nmax_savings_correct1 = 10000;\r\nassert(isequal(max_family1, max_family_correct1) \u0026\u0026 isequal(max_savings1, max_savings_correct1));\r\n\r\n\r\n%% Test (random): Highest savings in one family with 2 members\r\nn = randi([1,10])*10000;\r\naccounts1 = {\r\n    'Smith', 'John', 2500;\r\n    'Johnson', 'Fred', 5000;\r\n    'Williams', 'Nicolas', 10000;\r\n    'Williams', 'Steve', n;\r\n};\r\n[max_family1, max_savings1] = family_max_savings(accounts1);\r\nmax_family_correct1 = 'Williams';\r\nmax_savings_correct1 = 10000+n;\r\nassert(isequal(max_family1, max_family_correct1) \u0026\u0026 isequal(max_savings1, max_savings_correct1));\r\n\r\n\r\n%% Test: All families have zero savings\r\naccounts4 = {\r\n    'Smith', 'John', 0;\r\n    'Johnson', 'Fred', 0;\r\n    'Williams', 'Nicolas', 0;\r\n    'Brown', 'Phillip', 0;\r\n};\r\n[max_family4, max_savings4] = family_max_savings(accounts4);\r\nmax_family4\r\nmax_savings4\r\nmax_family_correct4 = ''; % No family has savings\r\nmax_savings_correct4 = 0;\r\nassert(isequal(max_family4, max_family_correct4) \u0026\u0026 isequal(max_savings4, max_savings_correct4));\r\n\r\n\r\n%% Test: Equal savings in multiple families\r\naccounts2 = {\r\n    'Smith', 'John', 2500;\r\n    'Johnson', 'Fred', 5000;\r\n    'Williams', 'Nicolas', 10000;\r\n    'Brown', 'Phillip', 10000;\r\n};\r\n[max_family2, max_savings2] = family_max_savings(accounts2)\r\nmax_family_correct2 = {'Williams', 'Brown'}; % Multiple families can have the same savings\r\nmax_savings_correct2 = 10000;\r\nassert(isequal(sort(max_family2), sort(max_family_correct2)) \u0026\u0026 isequal(max_savings2, max_savings_correct2));\r\n\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":1,"created_by":208445,"edited_by":208445,"edited_at":"2024-05-20T07:27:58.000Z","deleted_by":null,"deleted_at":null,"solvers_count":6,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2024-05-19T07:43:53.000Z","updated_at":"2024-05-20T07:27:58.000Z","published_at":"2024-05-19T07:43:53.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven the bank accounts of individuals defined by a list of tuples containing the last name, first name, and savings:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[accounts = {\\n    'Smith', 'John', 2500;\\n    'Johnson', 'Fred', 5000;\\n    'Williams', 'Nicolas', 10000;\\n    'Brown', 'Phillip', 1250;\\n    'Jones', 'Alice', 4530;\\n    'Garcia', 'Ahmed', 2200;\\n    'Brown', 'Bernard', 0;\\n    'Johnson', 'Steven', 1670;\\n    'Brown', 'Sylvia', 3;\\n    'Williams', 'Bernard', 300000\\n};]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ewe consider that individuals with the same last name (first entry of each tuple) are from the same family. If an individual has no attributed income, we consider their savings as zero (as for Bernard Brown).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWrite a function that returns the name of the family with the highest strictly positive savings along with the amount of their savings.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSpecial cases to consider:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"2\\\"/\u003e\u003c/w:numPr\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf multiple families have the same highest positive savings, the function should return all these families (test 6).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"2\\\"/\u003e\u003c/w:numPr\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIf no family has strictly positive savings, the function should return an empty string for the family name(s) and 0 for the savings (test 5).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":2699,"title":"From a given cell array of strings, extract the non-unique strings.","description":"We are given a cell array of strings C. From this cell array we require to extract the subset of non-unique strings, returning the results as a column vector. \r\n\r\nFor example, if C = {'A', 'B', 'C', 'A', 'B'}, then the strings 'A' and 'B' are repeated, so the result should be {'A'; 'B'}. The order of occurrence of the strings should be preserved, so {'B'; 'A'} would not be an acceptable solution. The order of appearance of the strings is defined using the column-major format. For example, if C = {'Jack', 'Bob'; 'Dave', 'Amanda'} then the order of the strings is 'Jack', 'Dave', 'Bob', 'Amanda'.","description_html":"\u003cp\u003eWe are given a cell array of strings C. From this cell array we require to extract the subset of non-unique strings, returning the results as a column vector.\u003c/p\u003e\u003cp\u003eFor example, if C = {'A', 'B', 'C', 'A', 'B'}, then the strings 'A' and 'B' are repeated, so the result should be {'A'; 'B'}. The order of occurrence of the strings should be preserved, so {'B'; 'A'} would not be an acceptable solution. The order of appearance of the strings is defined using the column-major format. For example, if C = {'Jack', 'Bob'; 'Dave', 'Amanda'} then the order of the strings is 'Jack', 'Dave', 'Bob', 'Amanda'.\u003c/p\u003e","function_template":"function repeatedStrings = extractRepeatedStrings(C)\r\n  \r\n\r\n\r\nend","test_suite":"%%\r\nC = {'Ken'; 'GianCarlo'; 'Ken'; 'GianCarlo'; 'Bob'; 'Ken'; 'Sonia'};\r\nrepeatedStrings = {'Ken'; 'GianCarlo'};\r\nassert(isequal(extractRepeatedStrings(C), repeatedStrings))\r\n\r\n%%\r\nC = {'A', 'B', 'C', 'A', 'B'};\r\nrepeatedStrings = {'A'; 'B'};\r\nassert(isequal(extractRepeatedStrings(C), repeatedStrings))\r\n\r\n%%\r\nC = {'B', 'A', 'C', 'B', 'A'};\r\nrepeatedStrings = {'B'; 'A'};\r\nassert(isequal(extractRepeatedStrings(C), repeatedStrings))\r\n\r\n%%\r\nC = {'A', 'B', 'C'};\r\nrepeatedStrings = cell.empty(0, 1);\r\nassert(isequal(extractRepeatedStrings(C), repeatedStrings))\r\n\r\n%%\r\nC = {'A', 'B'; 'C', 'A'; 'B', 'A'};\r\nrepeatedStrings = {'A'; 'B'};\r\nassert(isequal(extractRepeatedStrings(C), repeatedStrings))\r\n\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":2328,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":54,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":32,"created_at":"2014-12-01T16:49:18.000Z","updated_at":"2026-04-08T09:02:27.000Z","published_at":"2014-12-01T16:49:55.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWe are given a cell array of strings C. From this cell array we require to extract the subset of non-unique strings, returning the results as a column vector.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example, if C = {'A', 'B', 'C', 'A', 'B'}, then the strings 'A' and 'B' are repeated, so the result should be {'A'; 'B'}. The order of occurrence of the strings should be preserved, so {'B'; 'A'} would not be an acceptable solution. The order of appearance of the strings is defined using the column-major format. For example, if C = {'Jack', 'Bob'; 'Dave', 'Amanda'} then the order of the strings is 'Jack', 'Dave', 'Bob', 'Amanda'.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1966,"title":"Kaggle: Reverse Game of Life - Single Move to One Cell Case","description":"\u003chttp://www.kaggle.com/c/conway-s-reverse-game-of-life Kaggle's Conway's Reverse Game of Life\u003e contest inspires this Single Reverse step in Life challenge. The kaggle contest runs from Oct-14-2013 thru Mar-02-2014. References: \u003chttp://mathworld.wolfram.com/GameofLife.html Game of Life at Wolfram\u003e. \u003chttp://en.wikipedia.org/wiki/Conway%27s_Game_of_Life Wiki Life\u003e.\r\n\r\n\r\n  1. Any live cell with fewer than two live neighbors dies, as if caused by under-population.\r\n  2. Any live cell with two or three live neighbors lives on to the next generation.\r\n  3. Any live cell with more than three live neighbors dies, as if by overcrowding.\r\n  4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.\r\n5. No wrap around. Beyond edge is zero. Eight Neighbors.\r\n\r\n\r\n\r\nFind all the 4x4 Life matrices that upon one evolution produce a single living cell. This is a single evolution reversal set. The 4x4 gets appended by a ring of zeros for processing. The single living cell may be anywhere in the final 6x6 matrix, but none are expected to occur in the outer ring for a valid solution.\r\n\r\n*Input:* None\r\n\r\n*Output:* Cell array of unique 4x4 matrices that evolve to a single cell\r\n\r\n*Scoring:* 600 - (Number of valid unique 4x4 matrices)\r\n\r\n*Examples:*  A few valid matrices that produce a single cell\r\n\r\n  0000  0010  1101\r\n  0001  1000  1110\r\n  0000  0000  0100\r\n  0101  0110  1001","description_html":"\u003cp\u003e\u003ca href = \"http://www.kaggle.com/c/conway-s-reverse-game-of-life\"\u003eKaggle's Conway's Reverse Game of Life\u003c/a\u003e contest inspires this Single Reverse step in Life challenge. The kaggle contest runs from Oct-14-2013 thru Mar-02-2014. References: \u003ca href = \"http://mathworld.wolfram.com/GameofLife.html\"\u003eGame of Life at Wolfram\u003c/a\u003e. \u003ca href = \"http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life\"\u003eWiki Life\u003c/a\u003e.\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e1. Any live cell with fewer than two live neighbors dies, as if caused by under-population.\r\n2. Any live cell with two or three live neighbors lives on to the next generation.\r\n3. Any live cell with more than three live neighbors dies, as if by overcrowding.\r\n4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.\r\n5. No wrap around. Beyond edge is zero. Eight Neighbors.\r\n\u003c/pre\u003e\u003cp\u003eFind all the 4x4 Life matrices that upon one evolution produce a single living cell. This is a single evolution reversal set. The 4x4 gets appended by a ring of zeros for processing. The single living cell may be anywhere in the final 6x6 matrix, but none are expected to occur in the outer ring for a valid solution.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e None\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Cell array of unique 4x4 matrices that evolve to a single cell\u003c/p\u003e\u003cp\u003e\u003cb\u003eScoring:\u003c/b\u003e 600 - (Number of valid unique 4x4 matrices)\u003c/p\u003e\u003cp\u003e\u003cb\u003eExamples:\u003c/b\u003e  A few valid matrices that produce a single cell\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003e0000  0010  1101\r\n0001  1000  1110\r\n0000  0000  0100\r\n0101  0110  1001\r\n\u003c/pre\u003e","function_template":"function mcell=Life\r\n  mcell{1}=zeros(4);\r\nend","test_suite":"%%\r\nassignin('caller','score',200);\r\n\r\n%%\r\n[mcell] = Life;\r\n\r\n[nr,nc]=size(mcell);\r\n% check for uniqueness\r\nvalid=1;\r\ntic\r\nfor k=1:nc-1\r\n  mk=mcell{k};\r\n for p=k+1:nc\r\n  mp=mcell{p};\r\n  mkp=mk==mp;\r\n  if all(mkp(:))\r\n   valid=0;\r\n  end\r\n end\r\nend\r\nassert(valid==1,sprintf('Not all unique solutions'));\r\ntoc\r\n\r\n% run an evolution and verify\r\ntic\r\nfor k=1:nc\r\n  m=mcell{k};\r\n  m=[zeros(1,6);zeros(4,1) m zeros(4,1);zeros(1,6)];\r\n  mc=conv2(m,[1 1 1;1 0 1;1 1 1],'same');\r\n  m=~(mc\u003c2 | mc\u003e3) \u0026 ((m \u0026 mc==2) | (m \u0026 mc==3) | (~m \u0026 mc==3)); \r\n  assert(isequal(nnz(m),1),sprintf('Non-Single survivor solution'))\r\nend\r\ntoc\r\nassignin('caller','score',min(200,max(0,600-nc)));\r\n","published":true,"deleted":false,"likes_count":2,"comments_count":3,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":25,"test_suite_updated_at":"2019-07-16T14:11:36.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-10-31T02:08:53.000Z","updated_at":"2026-02-13T15:19:14.000Z","published_at":"2013-10-31T03:12:32.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.kaggle.com/c/conway-s-reverse-game-of-life\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eKaggle's Conway's Reverse Game of Life\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e contest inspires this Single Reverse step in Life challenge. The kaggle contest runs from Oct-14-2013 thru Mar-02-2014. References:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://mathworld.wolfram.com/GameofLife.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGame of Life at Wolfram\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eWiki Life\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[1. Any live cell with fewer than two live neighbors dies, as if caused by under-population.\\n2. Any live cell with two or three live neighbors lives on to the next generation.\\n3. Any live cell with more than three live neighbors dies, as if by overcrowding.\\n4. Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.\\n5. No wrap around. Beyond edge is zero. Eight Neighbors.]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFind all the 4x4 Life matrices that upon one evolution produce a single living cell. This is a single evolution reversal set. The 4x4 gets appended by a ring of zeros for processing. The single living cell may be anywhere in the final 6x6 matrix, but none are expected to occur in the outer ring for a valid solution.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e None\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Cell array of unique 4x4 matrices that evolve to a single cell\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eScoring:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e 600 - (Number of valid unique 4x4 matrices)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExamples:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e A few valid matrices that produce a single cell\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[0000  0010  1101\\n0001  1000  1110\\n0000  0000  0100\\n0101  0110  1001]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1198,"title":"Handle to an array of functions","description":"Given a cell array of functions that operate on scalars, it is required to return a function handle to process a vector of values applying the functions successively (the first function operates on x, the second function operates on the resulting output, etc.).\r\n\r\nExample:\r\n\r\n \u003e\u003e f{1}=@(x) x^2;\r\n\r\n \u003e\u003e f{2}=@(x) x+3;\r\n\r\n \u003e\u003e f{3}=@(x) x/2;\r\n\r\n \u003e\u003e g=cf(f);\r\n\r\n \u003e\u003e x=[1 2 3];\r\n\r\n \u003e\u003e g(x)\r\n\r\n ans =\r\n\r\n     2.0000    3.5000    6.0000\r\n ","description_html":"\u003cp\u003eGiven a cell array of functions that operate on scalars, it is required to return a function handle to process a vector of values applying the functions successively (the first function operates on x, the second function operates on the resulting output, etc.).\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cpre\u003e \u003e\u003e f{1}=@(x) x^2;\u003c/pre\u003e\u003cpre\u003e \u003e\u003e f{2}=@(x) x+3;\u003c/pre\u003e\u003cpre\u003e \u003e\u003e f{3}=@(x) x/2;\u003c/pre\u003e\u003cpre\u003e \u003e\u003e g=cf(f);\u003c/pre\u003e\u003cpre\u003e \u003e\u003e x=[1 2 3];\u003c/pre\u003e\u003cpre\u003e \u003e\u003e g(x)\u003c/pre\u003e\u003cpre\u003e ans =\u003c/pre\u003e\u003cpre\u003e     2.0000    3.5000    6.0000\u003c/pre\u003e","function_template":"function y = cf(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nf{1}=@(x) x^2;\r\nf{2}=@(x) x+3;\r\nf{3}=@(x) x/2;\r\ng=cf(f);\r\nx=[1 2 3];\r\ny_correct = [2 3.5 6];\r\nassert(isequal(g(x),y_correct))\r\n%%\r\nf{1}=@(x) x^0.5;\r\nf{2}=@(x) x-1;\r\nf{3}=@(x) x^2;\r\nf{4}=@(x) x/3;\r\ng=cf(f);\r\nx=[ 16 49 100];\r\ny_correct = [3 12 27];\r\nassert(isequal(g(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":6,"comments_count":1,"created_by":3399,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":62,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-01-11T18:06:01.000Z","updated_at":"2026-04-08T13:56:36.000Z","published_at":"2013-01-11T18:06:25.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven a cell array of functions that operate on scalars, it is required to return a function handle to process a vector of values applying the functions successively (the first function operates on x, the second function operates on the resulting output, etc.).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[ \u003e\u003e f{1}=@(x) x^2;\\n\\n \u003e\u003e f{2}=@(x) x+3;\\n\\n \u003e\u003e f{3}=@(x) x/2;\\n\\n \u003e\u003e g=cf(f);\\n\\n \u003e\u003e x=[1 2 3];\\n\\n \u003e\u003e g(x)\\n\\n ans =\\n\\n     2.0000    3.5000    6.0000]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":43671,"title":"Words Count: A Cell Array Approach","description":"Given an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\\n), arrange the unique words alphabetically in a cell array of character vectors (formerly called \u003chttps://www.mathworks.com/help/matlab/matlab_prog/cell-arrays-of-strings.html cell array of strings\u003e) and calculate the histogram count of every unique word.\r\n\r\nAssumptions:\r\n\r\n# Case is insensitive, e.g., WORDS and words are treated as the same word, and you may return in the output cell array either the uppercase or lowercase.\r\n# Punctuation marks are limited only to comma (,), period (.), colon (:), semi-colon (;), question mark (?), and exclamation mark (!).\r\n\r\nFor example, given the input txt as a character vector,\r\n\r\n  txt = 'I love MATLAB and Cody, but I don''t like trivial matlab problems on cody.';\r\n\r\nthe outputs should be\r\n\r\n  words = {'and';'but';'Cody';'don''t';'I';'like';'love';'MATLAB';...\r\n           'on';'problems';'trivial'};\r\n  count = [1; 1; 2; 1; 2; 1; 1; 2; 1; 1; 1];\r\n\r\nHint: The cell array of strings approach is the dual of the string array approach, i.e., things that can be done via the \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43670-words-count-a-string-array-approach string arrays approach\u003e can also be done using the cell array approach. \r\n\r\nRelated problems in this series:\r\n\r\n* \u003chttp://www.mathworks.com/matlabcentral/cody/problems/43670-words-count-a-string-array-approach Words Count: A String Array Approach\u003e\r\n* Words Count: A Cell Array Approach\r\n","description_html":"\u003cp\u003eGiven an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\\n), arrange the unique words alphabetically in a cell array of character vectors (formerly called \u003ca href = \"https://www.mathworks.com/help/matlab/matlab_prog/cell-arrays-of-strings.html\"\u003ecell array of strings\u003c/a\u003e) and calculate the histogram count of every unique word.\u003c/p\u003e\u003cp\u003eAssumptions:\u003c/p\u003e\u003col\u003e\u003cli\u003eCase is insensitive, e.g., WORDS and words are treated as the same word, and you may return in the output cell array either the uppercase or lowercase.\u003c/li\u003e\u003cli\u003ePunctuation marks are limited only to comma (,), period (.), colon (:), semi-colon (;), question mark (?), and exclamation mark (!).\u003c/li\u003e\u003c/ol\u003e\u003cp\u003eFor example, given the input txt as a character vector,\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003etxt = 'I love MATLAB and Cody, but I don''t like trivial matlab problems on cody.';\r\n\u003c/pre\u003e\u003cp\u003ethe outputs should be\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003ewords = {'and';'but';'Cody';'don''t';'I';'like';'love';'MATLAB';...\r\n         'on';'problems';'trivial'};\r\ncount = [1; 1; 2; 1; 2; 1; 1; 2; 1; 1; 1];\r\n\u003c/pre\u003e\u003cp\u003eHint: The cell array of strings approach is the dual of the string array approach, i.e., things that can be done via the \u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43670-words-count-a-string-array-approach\"\u003estring arrays approach\u003c/a\u003e can also be done using the cell array approach.\u003c/p\u003e\u003cp\u003eRelated problems in this series:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/43670-words-count-a-string-array-approach\"\u003eWords Count: A String Array Approach\u003c/a\u003e\u003c/li\u003e\u003cli\u003eWords Count: A Cell Array Approach\u003c/li\u003e\u003c/ul\u003e","function_template":"function [words,count] = wordscount(txt)\r\n  words = txt;\r\n  count = 1;\r\nend","test_suite":"%%\r\ntxt = 'I love MATLAB and Cody, but I don''t like trivial matlab problems on cody.';\r\nwords = {'and';'but';'Cody';'don''t';'I';'like';'love';'MATLAB';'on';'problems';'trivial'};\r\ncount = [1; 1; 2; 1; 2; 1; 1; 2; 1; 1; 1];\r\n[words1,count1] = wordscount(txt);\r\nassert(isequal(lower(words1),lower(words))\u0026isequal(count,count1))\r\n\r\n%%\r\ntxt = sprintf('I love MATLAB and Cody, but I don''t like trivial matlab problems on cody.\\n\\nUnfortunately, there are too many trivial problems on Cody.');\r\nwords = {'and';'are';'but';'cody';'don''t';'I';'like';'love';'many';'matlab';'on';'problems';'there';'too';'trivial';'unfortunately'};\r\ncount = [1; 1; 1; 3; 1; 2; 1; 1; 1; 2; 2; 2; 1; 1; 2; 1];\r\n[words1,count1] = wordscount(txt);\r\nassert(isequal(lower(words1),lower(words))\u0026isequal(count,count1))\r\n\r\n%%\r\ntxt = ['What is Cody? ',newline,' Cody is a MATLAB Central game', newline ...\r\n       'that expands your knowledge of MATLAB.',newline,...\r\n       'With Cody, you can:',newline, ...\r\n       'Solve problems related to MATLAB code;',newline, ...\r\n       'Find problems, solutions, and players;  ',newline, ...\r\n       'Use search directives to find content; ',newline, ...\r\n       'Challenge the community by contributing problems;',newline, ...\r\n       ' Comment on any problem or solution;',newline,...\r\n       'Like a problem or a solution; ',newline, ...\r\n       'Earn badges;',newline,newline, ...\r\n       'Play now!'];\r\nwords = {'a';'and';'any';'badges';'by';'can';'central';'challenge';'code';'cody';'comment';...\r\n         'community';'content';'contributing';'directives';'earn';'expands';'find';'game';...\r\n         'is';'knowledge';'like';'matlab';'now';'of';'on';'or';'play';'players';'problem';...\r\n         'problems';'related';'search';'solution';'solutions';'solve';'that';'the';'to';...\r\n         'use';'what';'with';'you';'your'};\r\ncount = [3;1;1;1;1;1;1;1;1;3;1;1;1;1;1;1;1;2;1;2;1;1;3;1;1;1;2;1;1;2;3;1;1;2;1;1;1;1;2;1;1;1;1;1];\r\n[words1,count1] = wordscount(txt);\r\nassert(isequal(lower(words1),lower(words))\u0026isequal(count,count1))","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":12569,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":68,"test_suite_updated_at":"2016-12-02T06:03:05.000Z","rescore_all_solutions":false,"group_id":16,"created_at":"2016-11-20T07:04:31.000Z","updated_at":"2026-03-09T20:25:19.000Z","published_at":"2016-11-20T09:01:32.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven an input character vector consisting of words, punctuation marks, white spaces, and possibly newline characters (\\\\n), arrange the unique words alphabetically in a cell array of character vectors (formerly called\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://www.mathworks.com/help/matlab/matlab_prog/cell-arrays-of-strings.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003ecell array of strings\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e) and calculate the histogram count of every unique word.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAssumptions:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"2\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eCase is insensitive, e.g., WORDS and words are treated as the same word, and you may return in the output cell array either the uppercase or lowercase.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"2\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ePunctuation marks are limited only to comma (,), period (.), colon (:), semi-colon (;), question mark (?), and exclamation mark (!).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example, given the input txt as a character vector,\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[txt = 'I love MATLAB and Cody, but I don''t like trivial matlab problems on cody.';]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ethe outputs should be\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[words = {'and';'but';'Cody';'don''t';'I';'like';'love';'MATLAB';...\\n         'on';'problems';'trivial'};\\ncount = [1; 1; 2; 1; 2; 1; 1; 2; 1; 1; 1];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eHint: The cell array of strings approach is the dual of the string array approach, i.e., things that can be done via the\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43670-words-count-a-string-array-approach\\\"\u003e\u003cw:r\u003e\u003cw:t\u003estring arrays approach\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e can also be done using the cell array approach.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated problems in this series:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/43670-words-count-a-string-array-approach\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eWords Count: A String Array Approach\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"ListParagraph\\\"/\u003e\u003cw:numPr\u003e\u003cw:numId w:val=\\\"1\\\"/\u003e\u003c/w:numPr\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eWords Count: A Cell Array Approach\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":42291,"title":"GJam 2015 Rd1B: Counter Culture","description":"This Challenge is derived from \u003chttps://code.google.com/codejam/contest/8224486/dashboard#s=p0 GJam 2015 Rd 1B: Counter Culture\u003e. Fastest completion - 5 minutes.\r\n\r\nDetermine minimum sequence length to reach a number. Sequence starts at 1 and the next is either +1 or the number's reverse with trailing zeros removed. (eg 2300 is followed by 2301 or 32)\r\n\r\nInput: N, a value from 1 to 1,000,000\r\n\r\nOutput: L, minimum length of sequence to reach N\r\n\r\nExamples: Small Case 1\u003c=N\u003c=1000000\r\n\r\n  N=5,  L=5  [1 2 3 4 5] L=N is true thru 19\r\n  N=23, L=15 [1:12 21 22 23]\r\n\r\n\r\nTheory: The small case can be solved with brute force or semi-brute force using storage of past calculations. All values are processed at each depth level. Duplicates from [N+1 and flip] are purged. A fast reversal function is essential. Direct summation works well. The large case N limit is 1E14 making even semi-brute force with storage unlikely.\r\n\r\n\r\nAdditional GJam solutions can be found at \u003chttp://www.go-hero.net/jam/15 Example GJam Matlab solutions\u003e. Select Find Solutions, change Language to Matlab. The Test Suite, at the bottom, contains a full GJam Matlab solution.","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"https://code.google.com/codejam/contest/8224486/dashboard#s=p0\"\u003eGJam 2015 Rd 1B: Counter Culture\u003c/a\u003e. Fastest completion - 5 minutes.\u003c/p\u003e\u003cp\u003eDetermine minimum sequence length to reach a number. Sequence starts at 1 and the next is either +1 or the number's reverse with trailing zeros removed. (eg 2300 is followed by 2301 or 32)\u003c/p\u003e\u003cp\u003eInput: N, a value from 1 to 1,000,000\u003c/p\u003e\u003cp\u003eOutput: L, minimum length of sequence to reach N\u003c/p\u003e\u003cp\u003eExamples: Small Case 1\u0026lt;=N\u0026lt;=1000000\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eN=5,  L=5  [1 2 3 4 5] L=N is true thru 19\r\nN=23, L=15 [1:12 21 22 23]\r\n\u003c/pre\u003e\u003cp\u003eTheory: The small case can be solved with brute force or semi-brute force using storage of past calculations. All values are processed at each depth level. Duplicates from [N+1 and flip] are purged. A fast reversal function is essential. Direct summation works well. The large case N limit is 1E14 making even semi-brute force with storage unlikely.\u003c/p\u003e\u003cp\u003eAdditional GJam solutions can be found at \u003ca href = \"http://www.go-hero.net/jam/15\"\u003eExample GJam Matlab solutions\u003c/a\u003e. Select Find Solutions, change Language to Matlab. The Test Suite, at the bottom, contains a full GJam Matlab solution.\u003c/p\u003e","function_template":"function L = Counter_Culture(N)\r\n% N is value to be reached \r\n% L is minimum length of sequence to reach N\r\n% N=23  L=15  the sequence [1:12 21 22 23]\r\n% N=19 L=19 [1:19]\r\n  L=1;\r\nend","test_suite":"tic\r\n%%\r\nN=1;\r\nL=Counter_Culture(N);\r\nLexp=1;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=19;\r\nL=Counter_Culture(N);\r\nLexp=19;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=23;\r\nL=Counter_Culture(N);\r\nLexp=15;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1101;\r\nL=Counter_Culture(N);\r\nLexp=150;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=998999;\r\nL=Counter_Culture(N);\r\nLexp=3334;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=990000;\r\nL=Counter_Culture(N);\r\nLexp=3425;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10110;\r\nL=Counter_Culture(N);\r\nLexp=447;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11111;\r\nL=Counter_Culture(N);\r\nLexp=459;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999991;\r\nL=Counter_Culture(N);\r\nLexp=3426;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=512;\r\nL=Counter_Culture(N);\r\nLexp=46;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999899;\r\nL=Counter_Culture(N);\r\nLexp=3334;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1999;\r\nL=Counter_Culture(N);\r\nLexp=328;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11101;\r\nL=Counter_Culture(N);\r\nLexp=449;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=876543;\r\nL=Counter_Culture(N);\r\nLexp=2657;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=4;\r\nL=Counter_Culture(N);\r\nLexp=4;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=102;\r\nL=Counter_Culture(N);\r\nLexp=31;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11000;\r\nL=Counter_Culture(N);\r\nLexp=1337;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1998;\r\nL=Counter_Culture(N);\r\nLexp=327;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=900000;\r\nL=Counter_Culture(N);\r\nLexp=3434;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=131072;\r\nL=Counter_Culture(N);\r\nLexp=1639;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=524288;\r\nL=Counter_Culture(N);\r\nLexp=2149;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=20;\r\nL=Counter_Culture(N);\r\nLexp=20;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=789012;\r\nL=Counter_Culture(N);\r\nLexp=2435;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=200;\r\nL=Counter_Culture(N);\r\nLexp=129;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=109876;\r\nL=Counter_Culture(N);\r\nLexp=3213;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11100;\r\nL=Counter_Culture(N);\r\nLexp=448;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=262144;\r\nL=Counter_Culture(N);\r\nLexp=1842;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11;\r\nL=Counter_Culture(N);\r\nLexp=11;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1001;\r\nL=Counter_Culture(N);\r\nLexp=139;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=987654;\r\nL=Counter_Culture(N);\r\nLexp=2879;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999989;\r\nL=Counter_Culture(N);\r\nLexp=3424;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11011;\r\nL=Counter_Culture(N);\r\nLexp=359;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=4096;\r\nL=Counter_Culture(N);\r\nLexp=238;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=900001;\r\nL=Counter_Culture(N);\r\nLexp=1446;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=201;\r\nL=Counter_Culture(N);\r\nLexp=32;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=99001;\r\nL=Counter_Culture(N);\r\nLexp=437;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999999;\r\nL=Counter_Culture(N);\r\nLexp=3434;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999900;\r\nL=Counter_Culture(N);\r\nLexp=3335;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=901;\r\nL=Counter_Culture(N);\r\nLexp=39;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2201;\r\nL=Counter_Culture(N);\r\nLexp=161;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=90;\r\nL=Counter_Culture(N);\r\nLexp=28;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=101;\r\nL=Counter_Culture(N);\r\nLexp=30;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10111;\r\nL=Counter_Culture(N);\r\nLexp=448;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=31;\r\nL=Counter_Culture(N);\r\nLexp=14;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10;\r\nL=Counter_Culture(N);\r\nLexp=10;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10100;\r\nL=Counter_Culture(N);\r\nLexp=437;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999998;\r\nL=Counter_Culture(N);\r\nLexp=3433;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999000;\r\nL=Counter_Culture(N);\r\nLexp=3335;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=990001;\r\nL=Counter_Culture(N);\r\nLexp=1536;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=30;\r\nL=Counter_Culture(N);\r\nLexp=22;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=900;\r\nL=Counter_Culture(N);\r\nLexp=137;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=101001;\r\nL=Counter_Culture(N);\r\nLexp=1538;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999990;\r\nL=Counter_Culture(N);\r\nLexp=3425;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=989999;\r\nL=Counter_Culture(N);\r\nLexp=3424;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=21;\r\nL=Counter_Culture(N);\r\nLexp=13;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=9999;\r\nL=Counter_Culture(N);\r\nLexp=336;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=100001;\r\nL=Counter_Culture(N);\r\nLexp=1437;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10999;\r\nL=Counter_Culture(N);\r\nLexp=1336;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=100;\r\nL=Counter_Culture(N);\r\nLexp=29;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=91;\r\nL=Counter_Culture(N);\r\nLexp=20;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11010;\r\nL=Counter_Culture(N);\r\nLexp=358;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=29;\r\nL=Counter_Culture(N);\r\nLexp=21;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2001;\r\nL=Counter_Culture(N);\r\nLexp=141;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11110;\r\nL=Counter_Culture(N);\r\nLexp=458;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10001;\r\nL=Counter_Culture(N);\r\nLexp=338;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=9;\r\nL=Counter_Culture(N);\r\nLexp=9;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=101000;\r\nL=Counter_Culture(N);\r\nLexp=2436;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1000;\r\nL=Counter_Culture(N);\r\nLexp=138;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=19;\r\nL=Counter_Culture(N);\r\nLexp=19;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=12000;\r\nL=Counter_Culture(N);\r\nLexp=1348;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999;\r\nL=Counter_Culture(N);\r\nLexp=137;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=22;\r\nL=Counter_Culture(N);\r\nLexp=14;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1111;\r\nL=Counter_Culture(N);\r\nLexp=160;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=12001;\r\nL=Counter_Culture(N);\r\nLexp=359;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=12;\r\nL=Counter_Culture(N);\r\nLexp=12;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=99000;\r\nL=Counter_Culture(N);\r\nLexp=1426;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999001;\r\nL=Counter_Culture(N);\r\nLexp=2436;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=899999;\r\nL=Counter_Culture(N);\r\nLexp=3433;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10010;\r\nL=Counter_Culture(N);\r\nLexp=347;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10000;\r\nL=Counter_Culture(N);\r\nLexp=337;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10101;\r\nL=Counter_Culture(N);\r\nLexp=438;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2000;\r\nL=Counter_Culture(N);\r\nLexp=329;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=111;\r\nL=Counter_Culture(N);\r\nLexp=40;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=999901;\r\nL=Counter_Culture(N);\r\nLexp=3336;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2101;\r\nL=Counter_Culture(N);\r\nLexp=151;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=10011;\r\nL=Counter_Culture(N);\r\nLexp=348;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2002;\r\nL=Counter_Culture(N);\r\nLexp=142;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=32;\r\nL=Counter_Culture(N);\r\nLexp=15;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=110;\r\nL=Counter_Culture(N);\r\nLexp=39;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2100;\r\nL=Counter_Culture(N);\r\nLexp=240;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=11001;\r\nL=Counter_Culture(N);\r\nLexp=349;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=99;\r\nL=Counter_Culture(N);\r\nLexp=28;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1100;\r\nL=Counter_Culture(N);\r\nLexp=238;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1099;\r\nL=Counter_Culture(N);\r\nLexp=237;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1000000;\r\nL=Counter_Culture(N);\r\nLexp=3435;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=100000;\r\nL=Counter_Culture(N);\r\nLexp=1436;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=2200;\r\nL=Counter_Culture(N);\r\nLexp=250;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=1110;\r\nL=Counter_Culture(N);\r\nLexp=159;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=432109;\r\nL=Counter_Culture(N);\r\nLexp=1779;\r\nassert(isequal(Lexp,L))\r\n%%\r\nN=199;\r\nL=Counter_Culture(N);\r\nLexp=128;\r\nassert(isequal(Lexp,L))\r\n%%\r\ntoc\r\n%%\r\n% function GJam_Rd1B_2015a\r\n% % \r\n% fn='A-small-practice.in';\r\n% [data] = read_file(fn); % \r\n% \r\n% fidG = fopen('A-small-practice.out', 'w');\r\n%  \r\n% tic\r\n% for i=1:size(data,2) % Cell array has J cols of cases\r\n%  L = Counter_Culture(data{i});\r\n%  fprintf(fidG,'Case #%i: %i\\n',i,L);\r\n%  fprintf('Case #%i: %i\\n',i,L); \r\n% end\r\n% toc\r\n% fclose(fidG);\r\n% end\r\n% \r\n% function depth=Counter_Culture(v)\r\n% % create all paths\r\n% persistent m mv maxdepth\r\n% if isempty(m)\r\n%     \r\n%  mv=zeros(1000000,1);\r\n%  m{1000000}=[]; % set cell array size to max possible\r\n%  for i=1:9\r\n%   m{i}=i;\r\n%   mv(i)=i; % place best depth into mv for repeated searches\r\n%  end\r\n%  maxdepth=9;\r\n% end\r\n% \r\n% if mv(v) % usage of persistent data\r\n%  depth=mv(v);\r\n%  return;\r\n% end\r\n% \r\n% \r\n% while 1\r\n%  mset=m{maxdepth}; % start with last set calculated\r\n%  maxdepth=maxdepth+1;\r\n%  msetn=mset+1;\r\n%  \r\n%  msetn=msetn(mv(msetn)==0);\r\n%  mv(msetn)=maxdepth;\r\n%  \r\n%  for i=1:length(mset)\r\n%   flipv=calc_flip(mset(i));\r\n%   if mv(flipv)==0 % new value\r\n%    mv(flipv)=maxdepth;\r\n%    msetn=[msetn flipv]; % add to list\r\n%   end\r\n%  end\r\n%  \r\n%  m{maxdepth}=msetn;\r\n%  \r\n%  if any(msetn==v)\r\n%   depth=maxdepth;\r\n%   return\r\n%  end\r\n%     \r\n% end % while\r\n% \r\n% end\r\n% \r\n% function vr=calc_flip(val)\r\n%  vr=0;\r\n%  while val\r\n%   v1=mod(val,10);\r\n%   vr=10*vr+v1;\r\n%   val=(val-v1)/10;\r\n%  end\r\n% end\r\n% \r\n% function [d] = read_file(fn)\r\n% d={};\r\n% fid=fopen(fn);\r\n% fgetl(fid); % Total Count ignore\r\n% ptr=0;\r\n% while ~feof(fid)\r\n%  ptr=ptr+1;\r\n%  v=str2num(fgetl(fid)); \r\n%  d{ptr}=v;\r\n% end % feof\r\n% fclose(fid);\r\n% end % read_file\r\n%%\r\ntoc","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":11,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2015-05-03T21:55:15.000Z","updated_at":"2025-11-20T19:05:41.000Z","published_at":"2015-05-03T22:36:16.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://code.google.com/codejam/contest/8224486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2015 Rd 1B: Counter Culture\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Fastest completion - 5 minutes.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eDetermine minimum sequence length to reach a number. Sequence starts at 1 and the next is either +1 or the number's reverse with trailing zeros removed. (eg 2300 is followed by 2301 or 32)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eInput: N, a value from 1 to 1,000,000\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput: L, minimum length of sequence to reach N\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExamples: Small Case 1\u0026lt;=N\u0026lt;=1000000\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[N=5,  L=5  [1 2 3 4 5] L=N is true thru 19\\nN=23, L=15 [1:12 21 22 23]]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eTheory: The small case can be solved with brute force or semi-brute force using storage of past calculations. All values are processed at each depth level. Duplicates from [N+1 and flip] are purged. A fast reversal function is essential. Direct summation works well. The large case N limit is 1E14 making even semi-brute force with storage unlikely.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAdditional GJam solutions can be found at\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.go-hero.net/jam/15\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eExample GJam Matlab solutions\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. Select Find Solutions, change Language to Matlab. The Test Suite, at the bottom, contains a full GJam Matlab solution.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1392,"title":"Convert a cell-array of values to MATLAB source code","description":"The MATLAB interpreter loads your code and executes it using the Read-Evaluate-Print-Loop (see REPL).\r\nIn this problem you will go the opposite way; given an in-memory MATLAB cell-array can you convert it to legal MATLAB code?\r\ni.e. if you have the cell array,\r\nx={{'MLB',{'Red Sox','Yankees'},{'Rangers','Cardinals'}},{'NFL',{'Cowboys','Giants'},{'Patriots','49ers','Ravens'}}}\r\nwrite a function that returns the string,\r\ny = '{{''MLB'', {''Red Sox'', ''Yankees''}, {''Rangers'', ''Cardinals''}}, {''NFL'', {''Cowboys'', ''Giants''}, {''Patriots'', ''49ers'', ''Ravens''}}};'\r\nwhich on 'eval(y)' can reconstruct x.\r\nAlso specialize to handle multiple levels of cell-arrays, and mixed string/double types.","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.4333px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 254.867px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 640.5px 127.433px; transform-origin: 640.5px 127.433px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 310px 8px; transform-origin: 310px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eThe MATLAB interpreter loads your code and executes it using the Read-Evaluate-Print-Loop (see\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"/#null\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003eREPL\u003c/span\u003e\u003c/span\u003e\u003c/a\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 4.5px 8px; transform-origin: 4.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e).\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 21px; text-align: left; transform-origin: 384px 21px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 376px 8px; transform-origin: 376px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eIn this problem you will go the opposite way; given an in-memory MATLAB cell-array can you convert it to legal MATLAB code?\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 90.5px 8px; transform-origin: 90.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003ei.e. if you have the cell array,\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 20.4333px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 637.5px 10.2167px; transform-origin: 637.5px 10.2167px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 464px 8.5px; tab-size: 4; transform-origin: 464px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 16px 8.5px; transform-origin: 16px 8.5px; \"\u003ex={{\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 20px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 20px 8.5px; \"\u003e'MLB'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 8px 8.5px; transform-origin: 8px 8.5px; \"\u003e,{\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 36px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 36px 8.5px; \"\u003e'Red Sox'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 4px 8.5px; transform-origin: 4px 8.5px; \"\u003e,\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 36px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 36px 8.5px; \"\u003e'Yankees'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 12px 8.5px; transform-origin: 12px 8.5px; \"\u003e},{\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 36px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 36px 8.5px; \"\u003e'Rangers'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 4px 8.5px; transform-origin: 4px 8.5px; \"\u003e,\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 44px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 44px 8.5px; \"\u003e'Cardinals'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 16px 8.5px; transform-origin: 16px 8.5px; \"\u003e}},{\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 20px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 20px 8.5px; \"\u003e'NFL'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 8px 8.5px; transform-origin: 8px 8.5px; \"\u003e,{\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 36px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 36px 8.5px; \"\u003e'Cowboys'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 4px 8.5px; transform-origin: 4px 8.5px; \"\u003e,\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 32px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 32px 8.5px; \"\u003e'Giants'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 12px 8.5px; transform-origin: 12px 8.5px; \"\u003e},{\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 40px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 40px 8.5px; \"\u003e'Patriots'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 4px 8.5px; transform-origin: 4px 8.5px; \"\u003e,\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 28px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 28px 8.5px; \"\u003e'49ers'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 4px 8.5px; transform-origin: 4px 8.5px; \"\u003e,\u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 32px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 32px 8.5px; \"\u003e'Ravens'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 12px 8.5px; transform-origin: 12px 8.5px; \"\u003e}}}\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 10px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 10px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 119.5px 8px; transform-origin: 119.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003ewrite a function that returns the string,\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 20.4333px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 637.5px 10.2167px; transform-origin: 637.5px 10.2167px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 1px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 1px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 1px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; white-space: nowrap; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 612px 8.5px; tab-size: 4; transform-origin: 612px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; perspective-origin: 16px 8.5px; transform-origin: 16px 8.5px; \"\u003ey = \u003c/span\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); perspective-origin: 596px 8.5px; text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); transform-origin: 596px 8.5px; \"\u003e'{{''MLB'', {''Red Sox'', ''Yankees''}, {''Rangers'', ''Cardinals''}}, {''NFL'', {''Cowboys'', ''Giants''}, {''Patriots'', ''49ers'', ''Ravens''}}};'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 10px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 10px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 27.5px 8px; transform-origin: 27.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003ewhich on\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 26.5px 8px; transform-origin: 26.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003e'eval(y)'\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 51px 8px; transform-origin: 51px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e can reconstruct\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 4px 8px; transform-origin: 4px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"font-weight: 700; \"\u003ex\u003c/span\u003e\u003c/span\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 2px 8px; transform-origin: 2px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003e.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 384px 10.5px; text-align: left; transform-origin: 384px 10.5px; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 266.5px 8px; transform-origin: 266.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eAlso specialize to handle multiple levels of cell-arrays, and mixed string/double types.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function strv = cell2str( cellV )\r\n  strv = %num2str( cellV )\r\nend","test_suite":"%%\r\nx = {'foo','bar',5,10, {'carrr','starr',{'rita','fereira'}}};\r\nq = ['{''foo'', ''bar'', 5, 10, {''carrr'', ''starr'', '...\r\n     '{''rita'', ''fereira''}}};']\r\nassert(isequal(cell2str(x),q))\r\n\r\n%%\r\nx = {1,2,3,4};\r\nq = '{1, 2, 3, 4};';\r\nassert(isequal(cell2str(x),q))\r\n\r\n%%\r\nx = {{'MLB',{'Red Sox','Yankees'},{'Rangers','Cardinals'}},{'NFL',{'Cowboys','Giants'},{'Patriots','49ers','Ravens'}}};\r\nq = '{{''MLB'', {''Red Sox'', ''Yankees''}, {''Rangers'', ''Cardinals''}}, {''NFL'', {''Cowboys'', ''Giants''}, {''Patriots'', ''49ers'', ''Ravens''}}};';\r\nassert(isequal(cell2str(x),q))\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3378,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":10,"test_suite_updated_at":"2021-09-04T09:36:30.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-03-26T14:11:35.000Z","updated_at":"2021-09-04T09:36:30.000Z","published_at":"2013-03-26T14:39:09.000Z","restored_at":"2022-02-16T22:10:14.000Z","restored_by":null,"spam":false,"simulink":false,"admin_reviewed":true,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe MATLAB interpreter loads your code and executes it using the Read-Evaluate-Print-Loop (see\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eREPL\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e).\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eIn this problem you will go the opposite way; given an in-memory MATLAB cell-array can you convert it to legal MATLAB code?\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ei.e. if you have the cell array,\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[x={{'MLB',{'Red Sox','Yankees'},{'Rangers','Cardinals'}},{'NFL',{'Cowboys','Giants'},{'Patriots','49ers','Ravens'}}}]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ewrite a function that returns the string,\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[y = '{{''MLB'', {''Red Sox'', ''Yankees''}, {''Rangers'', ''Cardinals''}}, {''NFL'', {''Cowboys'', ''Giants''}, {''Patriots'', ''49ers'', ''Ravens''}}};']]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ewhich on\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003e'eval(y)'\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e can reconstruct\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003ex\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAlso specialize to handle multiple levels of cell-arrays, and mixed string/double types.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":1876,"title":"GJam: 2013 China Event: Name Sorting","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2933486/dashboard#s=p2 GJam 2013 China Moist\u003e. The problem is Codified by making the input a cell array of names.\r\n\r\nThe Challenge involves a serial card sorting machine that places card (i+1) in its best position, 1 thru i, if the name on card (i+1) is lexicographically greater than the name on card (i). The machine continues thru the end of the deck. The machine then restarts at card 1 until the order is correct. The output to return is the number of card insertions. The character values follow ascii codes with Space \u003c A:Z \u003c a:z. A shorter name is less than an extended name (Ab\u003cAbe)\r\n\r\n*Input:* names  ( cell array of names )\r\n\r\n*Output:* Insertions  (count of card insertions required)\r\n\r\n*Competition Summary:*  Best Time 6 minutes, 793/1049 correct\r\n\r\n*Example:*\r\n\r\nnames={'Stuart Beckingham' 'Rinata Araslanova' 'Jeremy Abbott' 'Daniil Barantsev' };\r\n\r\nClearly takes 3 card insertions. Start (SRJD)  moves [(RSJD) (JRSD) (DJRS)]","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2933486/dashboard#s=p2\"\u003eGJam 2013 China Moist\u003c/a\u003e. The problem is Codified by making the input a cell array of names.\u003c/p\u003e\u003cp\u003eThe Challenge involves a serial card sorting machine that places card (i+1) in its best position, 1 thru i, if the name on card (i+1) is lexicographically greater than the name on card (i). The machine continues thru the end of the deck. The machine then restarts at card 1 until the order is correct. The output to return is the number of card insertions. The character values follow ascii codes with Space \u0026lt; A:Z \u0026lt; a:z. A shorter name is less than an extended name (Ab\u0026lt;Abe)\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e names  ( cell array of names )\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Insertions  (count of card insertions required)\u003c/p\u003e\u003cp\u003e\u003cb\u003eCompetition Summary:\u003c/b\u003e  Best Time 6 minutes, 793/1049 correct\u003c/p\u003e\u003cp\u003e\u003cb\u003eExample:\u003c/b\u003e\u003c/p\u003e\u003cp\u003enames={'Stuart Beckingham' 'Rinata Araslanova' 'Jeremy Abbott' 'Daniil Barantsev' };\u003c/p\u003e\u003cp\u003eClearly takes 3 card insertions. Start (SRJD)  moves [(RSJD) (JRSD) (DJRS)]\u003c/p\u003e","function_template":"function cost=sort_cost(names)\r\n% names is a cell array\r\n  cost=0;\r\nend","test_suite":"%%\r\ntic\r\nnames={'Daniil Barantsev' 'Maria Balaba' 'Krisztina Barta' 'Patrice Archetto' 'Petra Arponen' 'Giovanna Almeida Leto' 'Tanith Belbin' 'Melania Albea' 'Lubov Bakirova' 'Mao Asada' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Fedor Andreev' 'Alessia Aureli' };\r\nexp=1;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Jeremy Allen' 'Vazgen Azrojan' 'Zabato Bebe' 'An Ni' 'Vladimir Belomoin' 'Julia Beloglazova' 'Irina Babenko' 'Vitali Baranov' 'Vadim Akolzin' 'Mai Asada' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Vitali Babkin' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Mary Grace Baldo' 'Dmitri Antoni' 'Andrew Bassi' 'Tanith Belbin' 'Emilia Ahsan' 'Adrian Alvarado' 'Michael Bahoric' 'Vitali Babkin' 'Charlotte Belair' 'Annie Bellemare' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Vitali Baranov' 'William Beier' 'Charlotte Belair' 'Andrei Bekh' 'Letizia Alessandrini' 'Oksana Baiul' 'Felicia Beck' 'Margaret Albia' 'Johanna Allik' 'Christiane Berger' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Vadim Akolzin' 'Dmitri Antoni' 'Petra Arponen' 'Felicia Beck' 'Letizia Alessandrini' 'Marina Anissina' 'Alisa Allapach' 'An Yang' 'Tobias Bayer' 'Imola Antal' };\r\nexp=9;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Stuart Beckingham' 'Ryan Arnold' 'Vazgen Azrojan' 'Oksana Baiul' 'Laurent Alvarez' 'Vitali Baranov' 'Tayfun Anar' 'Andrei Bekh' 'Evan Bates' 'Ilia Averbukh' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alibel Alegre' 'Alla Beknazarova' 'Andrew Bassi' 'Megan Allely' 'Elladj Balde' 'Tatiana Basova' 'Olga Akimova' 'Marta Andrade' 'Mao Asada' 'Becky Bereswill' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Laurent Alvarez' 'Mary Grace Baldo' 'Julia Abolina' 'Krisztina Barta' 'Marina Aganina' 'Becky Bereswill' 'Olga Akimova' 'Vazgen Azrojan' 'Elena Berezhnaya' 'Yann Abback' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Mao Asada' 'Vitali Baranov' 'Rinata Araslanova' 'Margaret Albia' 'Giovanna Almeida Leto' 'Hanna Asadchaya' 'Andrew Bassi' 'Marina Anissina' 'Tayfun Anar' 'Birce Atabey' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Stuart Beckingham' 'Rinata Araslanova' 'Jeremy Abbott' 'Daniil Barantsev' };\r\nexp=3;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Marina Anissina' 'Valentina Anselmi' 'Spencer Barnes' 'Ivan Bariev' 'Miki Ando' 'Alexandra Baurina' 'Maria Balaba' 'Andrew Bassi' 'Imola Antal' 'Anastasia Belova' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Felicia Beck' 'William Beier' 'John Baldwin' 'Julia Beloglazova' 'Margaret Albia' 'Colette Appel' 'Maria Balaba' 'Olga Akimova' 'Daniil Barantsev' 'Sara Beikircher' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Petra Arponen' 'Christina Beier' 'Alexei Beletski' 'Tayfun Anar' 'Saulius Ambrulevicius' 'Patrice Archetto' 'Rinata Araslanova' 'Sofia Bardakov' 'Alisa Allapach' 'Nadine Ahmed' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Jill Bakker' 'Kevin Alves' 'Adrian Alvarado' 'Florent Amodio' 'Andrei Bekh' 'Alisa Agafonova' 'Gabor Balint' 'Giovanna Almeida Leto' 'Letizia Alessandrini' 'Oksana Baiul' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alisa Agafonova' 'Kevin Alves' 'Laurent Alvarez' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Miki Ando' 'Gloria Agogliati' 'An Yang' 'Felicia Beck' 'Tobias Bayer' 'Vitali Babkin' 'Andrei Bekh' 'Ivan Bariev' 'Melania Albea' 'Florent Amodio' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alla Beknazarova' 'Erica Archambault' 'Fedor Andreev' 'Felicia Beck' 'Irina Babenko' 'Krisztian Andraska' 'Mai Asada' 'Marina Aganina' 'Melania Albea' 'Vadim Akolzin' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Michael Bahoric' 'Evan Bates' 'Olga Akimova' 'Emilia Ahsan' 'Vitali Baranov' 'Erica Archambault' 'Charlotte Belair' 'Alexandra Baurina' 'Tayfun Anar' 'Vera Bazarova' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Zabato Bebe' 'Vera Bazarova' 'Spencer Barnes' 'Annie Bellemare' 'Krisztina Barta' 'Olga Akimova' 'Vadim Akolzin' 'Veronika Benesova' 'Adrian Alvarado' 'Alexander Abt' };\r\nexp=9;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Zabato Bebe' 'Gloria Agogliati' 'Elladj Balde' 'Colette Appel' 'An Yang' };\r\nexp=4;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Hanna Asadchaya' 'Ian Beharry' 'Julia Beloglazova' 'Michael Bahoric' 'Shizuka Arakawa' 'Spencer Barnes' 'Vera Bazarova' 'Vladimir Belomoin' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Emilia Ahsan' 'Alisa Allapach' 'Felicia Beck' 'Engin Ali Artan' 'Valentina Anselmi' 'Alexander Abt' 'Jill Bakker' 'Jody Annandale' 'Nina Bates' 'Irina Babenko' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Evan Bates' 'Sergei Baranov' 'Rie Arikawa' 'Florent Amodio' 'Nadine Ahmed' 'Alla Beknazarova' 'Sofia Bardakov' 'Alexander Abt' 'Birce Atabey' 'Charlotte Belair' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexander Abt' 'Charlotte Belair' 'Kristen Avis' 'Nadine Ahmed' 'Tanith Belbin' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Bogdan Berezenko' 'Veronika Benesova' 'Sarah Abitbol' 'Christiane Berger' 'Tayfun Anar' 'Giovanna Almeida Leto' 'Michael Bahoric' 'John Baldwin' 'Elladj Balde' 'Jill Bakker' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Elvis Stojko' 'Evgeni Plushenko' 'KristiYamaguchi' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Krisztian Andraska' 'Katarina Babalova' 'Annie Bellemare' 'Melania Albea' 'Petra Arponen' 'Irina Babenko' 'Johanna Allik' 'Sara Beikircher' 'Charlotte Belair' 'Miki Ando' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Oksana Baiul' 'MichelleKwan' };\r\nexp=1;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexei Beletski' 'Joelle Bastiaans' 'Alisa Allapach' 'Alisa Agafonova' 'Vladimir Belomoin' 'Letizia Alessandrini' 'Krisztina Barta' 'Becky Bereswill' 'Benjamin Agosto' 'Michael Bahoric' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Margaret Albia' 'Johanna Allik' 'Daniil Barantsev' 'Camilla Andersen' 'Andrei Bekh' 'Alla Beknazarova' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alisa Allapach' 'Andrew Bassi' 'Daniil Barantsev' 'Hanna Asadchaya' 'Imola Antal' 'Jeremy Abbott' 'Jill Bakker' 'Marina Anissina' 'Rinata Araslanova' 'Shizuka Arakawa' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Tayfun Anar' 'Rinata Araslanova' 'Nina Bates' 'Michael Bahoric' 'Julia Abolina' 'Jeremy Abbott' 'Ian Beharry' 'Engin Ali Artan' 'Colette Appel' 'Birce Atabey' };\r\nexp=9;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Melania Albea' 'Nadine Ahmed' 'Miki Ando' 'Alexei Beletski' 'Florent Amodio' 'Jake Bennett' 'Camilla Andersen' 'Jeremy Allen' 'Rie Arikawa' 'Kristen Avis' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Laurent Alvarez' 'Katarina Babalova' 'Shizuka Arakawa' 'Elladj Balde' 'Daniil Barantsev' 'Gabor Balint' 'Adrian Alvarado' 'Andrew Bassi' 'Anastasia Belova' 'Krisztina Barta' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexandra Baurina' 'Jake Bennett' 'Marina Aganina' 'Marina Anissina' 'Vadim Akolzin' 'William Beier' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Adrian Alvarado' 'Alisa Agafonova' 'Charlotte Belair' 'Evan Bates' 'Gloria Agogliati' 'Pascale Bergeron' 'Sarah Abitbol' 'Stuart Beckingham' 'Tayfun Anar' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Miguel Ballesteros' 'Julia Beloglazova' 'Eve Bentley' 'Spencer Barnes' 'Jeremy Allen' 'Megan Allely' 'Katarina Babalova' 'Birce Atabey' 'Jeremy Abbott' 'Vladimir Belomoin' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Engin Ali Artan' 'Christiane Berger' 'Petra Arponen' 'Veronika Benesova' 'Vera Bazarova' 'Andrew Bassi' 'Anastasia Belova' 'Kristen Avis' 'Margaret Albia' 'Alexei Beletski' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexandra Baurina' 'Gabor Balint' 'Emili Arm' 'Elena Berezhnaya' 'Tanith Belbin' 'Dmitri Antoni' 'Adrian Alvarado' 'Melania Albea' 'Andrew Bassi' 'Engin Ali Artan' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Gabor Balint' 'Imola Antal' 'Mao Asada' 'Jeremy Allen' 'Hanna Asadchaya' 'Charlotte Belair' 'Evan Bates' 'Alexei Beletski' 'William Beier' 'Michael Bahoric' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Giovanna Almeida Leto' 'Gabor Balint' 'Krisztian Andraska' 'Benjamin Agosto' 'Evan Bates' 'Maria Balaba' 'Marta Andrade' 'Ian Beharry' 'Tatiana Basova' 'Rie Arikawa' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexandra Baurina' 'Imola Antal' 'Evan Bates' 'Felicia Beck' 'Ian Beharry' 'Bogdan Berezenko' 'Becky Bereswill' 'Michael Bahoric' 'Tayfun Anar' 'Stuart Beckingham' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Charlotte Belair' 'An Yang' 'Paolo Bacchini' 'Olga Akimova' 'Vitali Baranov' 'Spencer Barnes' 'Valentina Anselmi' 'Annie Bellemare' 'Mary Grace Baldo' 'Ivan Bariev' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Katarina Babalova' 'Bogdan Berezenko' 'Marta Andrade' 'Vadim Akolzin' 'Spencer Barnes' 'Michael Bahoric' 'Krisztian Andraska' 'Alibel Alegre' 'Emilia Ahsan' 'Beril Bektas' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Birce Atabey' 'Anastasia Belova' 'Tobias Bayer' 'Kristen Avis' 'Rima Beliy' 'Andrew Bassi' 'Letizia Alessandrini' 'Alexei Beletski' 'Julia Abolina' 'Evan Bates' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Krisztian Andraska' 'Sarah Abitbol' 'Kristen Avis' 'Tayfun Anar' 'Vadim Akolzin' 'Letizia Alessandrini' 'Margaret Albia' 'Joelle Bastiaans' 'Pascale Bergeron' 'Elladj Balde' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Hanna Asadchaya' 'Johanna Allik' 'Nadine Ahmed' 'Sarah Abitbol' 'Elladj Balde' 'Jake Bennett' 'Saulius Ambrulevicius' 'Laurent Alvarez' 'Beril Bektas' 'Krisztina Barta' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Spencer Barnes' 'Shizuka Arakawa' 'Sara Beikircher' 'Ryan Arnold' 'Pascale Bergeron' 'Hanna Asadchaya' 'Bogdan Berezenko' 'Annie Bellemare' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Patrice Archetto' 'Vera Bazarova' 'Miki Ando' 'Beril Bektas' 'Rie Arikawa' 'Adrian Alvarado' 'Rima Beliy' 'Fedor Andreev' 'Megan Allely' 'Nina Bates' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexei Beletski' 'Letizia Alessandrini' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Sofia Bardakov' 'Julia Abolina' 'Tayfun Anar' 'Miguel Ballesteros' 'Daniil Barantsev' 'Elladj Balde' 'John Baldwin' 'Alisa Agafonova' 'Benjamin Agosto' 'Vera Bazarova' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Paolo Bacchini' 'Patrice Archetto' 'Anastasia Belova' 'Emili Arm' 'Ian Beharry' 'Evan Bates' 'Kevin Alves' 'Gabor Balint' 'Johanna Allik' 'Spencer Barnes' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Sergei Baranov' 'Mai Asada' 'Gabor Balint' 'Vazgen Azrojan' 'Christiane Berger' 'Alisa Allapach' 'Paolo Bacchini' 'An Yang' 'Lubov Bakirova' 'Stuart Beckingham' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Laurent Alvarez' 'Dmitri Antoni' 'Annie Bellemare' 'Veronika Benesova' 'Ivan Bariev' 'Emili Arm' 'An Yang' 'Colette Appel' 'Vitali Baranov' 'Fedor Andreev' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Birce Atabey' 'Camilla Andersen' 'Charlotte Belair' 'Daniil Barantsev' 'Krisztian Andraska' 'Mai Asada' 'Marina Aganina' 'Mary Grace Baldo' 'Shizuka Arakawa' 'Joelle Bastiaans' };\r\nexp=1;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Vitali Babkin' 'Colette Appel' 'Saulius Ambrulevicius' 'Fedor Andreev' 'Sofia Bardakov' 'Daniil Barantsev' 'Kevin Alves' 'Birce Atabey' 'Becky Bereswill' 'Letizia Alessandrini' };\r\nexp=9;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Ilia Averbukh' 'Jake Bennett' 'Julia Beloglazova' 'Petra Arponen' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Pascale Bergeron' 'Engin Ali Artan' 'Zabato Bebe' 'Shizuka Arakawa' 'Vazgen Azrojan' 'Elena Berezhnaya' 'Alisa Agafonova' 'Alisa Allapach' 'Laurent Alvarez' 'Marta Andrade' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Krisztina Barta' 'Marta Andrade' 'Andrei Bekh' 'Stuart Beckingham' 'Pascale Bergeron' 'Sara Beikircher' 'Ivan Bariev' 'Gabor Balint' 'Dmitri Antoni' 'Mao Asada' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Tanith Belbin' 'Marta Andrade' 'Zabato Bebe' 'Emilia Ahsan' 'Johanna Allik' 'Christina Beier' 'Alexander Abt' 'Shizuka Arakawa' 'Eve Bentley' 'Sara Beikircher' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Julia Abolina' 'Felicia Beck' 'Vadim Akolzin' 'Letizia Alessandrini' 'Gloria Agogliati' 'Olga Akimova' 'Christina Beier' 'Tayfun Anar' 'Adrian Alvarado' 'Elena Berezhnaya' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alessia Aureli' 'Mao Asada' 'Mai Asada' 'Nadine Ahmed' 'Jeremy Abbott' 'Gabor Balint' 'Marina Anissina' 'Birce Atabey' 'Miguel Ballesteros' 'Beril Bektas' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Birce Atabey' 'Emilia Ahsan' 'Felicia Beck' 'Jeremy Allen' 'Oksana Baiul' 'Alisa Agafonova' 'Florent Amodio' 'Joelle Bastiaans' 'Michael Bahoric' 'Saulius Ambrulevicius' };\r\nexp=4;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Benjamin Agosto' 'Vitali Babkin' 'Vitali Baranov' 'Bogdan Berezenko' 'Mai Asada' 'Beril Bektas' 'Hanna Asadchaya' 'Camilla Andersen' 'An Yang' 'Rie Arikawa' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Tobias Bayer' 'Joelle Bastiaans' 'Alibel Alegre' 'Annie Bellemare' 'Alessia Aureli' 'Emili Arm' 'Florent Amodio' 'Julia Beloglazova' 'Birce Atabey' 'Sofia Bardakov' };\r\nexp=9;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Giovanna Almeida Leto' 'Alexandra Baurina' 'Marta Andrade' 'Julia Beloglazova' 'Felicia Beck' 'Johanna Allik' 'Rima Beliy' 'Gloria Agogliati' 'Rie Arikawa' 'Eve Bentley' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Zabato Bebe' 'Katarina Babalova' 'Elena Berezhnaya' };\r\nexp=2;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Zabato Bebe' 'Adrian Alvarado' 'Rinata Araslanova' 'Vitali Baranov' 'Yann Abback' 'Emili Arm' 'Marina Anissina' 'Engin Ali Artan' 'Jeremy Abbott' 'Alessia Aureli' };\r\nexp=9;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Jill Bakker' 'John Baldwin' 'Laurent Alvarez' 'Erica Archambault' 'Emilia Ahsan' 'Johanna Allik' 'Hanna Asadchaya' 'Alexandra Baurina' 'Vitali Babkin' 'Rinata Araslanova' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Fedor Andreev' 'Shizuka Arakawa' 'Oksana Baiul' 'Kevin Alves' 'Jody Annandale' 'Christiane Berger' 'Sofia Bardakov' 'Emilia Ahsan' 'Ryan Arnold' 'Tayfun Anar' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Sergei Baranov' 'Saulius Ambrulevicius' 'Michael Bahoric' 'Evan Bates' 'An Ni' 'Tobias Bayer' 'Christina Beier' 'Maria Balaba' 'Emili Arm' 'Jody Annandale' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alexei Beletski' 'Florent Amodio' 'Marina Anissina' 'Margaret Albia' 'Michael Bahoric' 'Miki Ando' 'Gloria Agogliati' 'Evan Bates' 'Becky Bereswill' 'Alexandra Baurina' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Jill Bakker' 'Emilia Ahsan' 'Ian Beharry' 'Paolo Bacchini' 'Maria Balaba' 'Giovanna Almeida Leto' 'An Yang' 'Michael Bahoric' 'Fedor Andreev' 'Alisa Agafonova' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Jill Bakker' 'Vazgen Azrojan' 'Sara Beikircher' 'Eve Bentley' 'Alla Beknazarova' 'Pascale Bergeron' 'Tatiana Basova' 'Elena Berezhnaya' 'Oksana Baiul' 'Zabato Bebe' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alessia Aureli' 'Alexei Beletski' 'Alisa Agafonova' 'Anastasia Belova' 'Colette Appel' 'Kevin Alves' 'Veronika Benesova' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Zabato Bebe' 'Tayfun Anar' 'Saulius Ambrulevicius' 'Miguel Ballesteros' 'Maria Balaba' 'Mai Asada' 'Lubov Bakirova' 'Edward Alton' 'Birce Atabey' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Miki Ando' 'Benjamin Agosto' 'Jeremy Allen' 'Adrian Alvarado' 'Alisa Allapach' 'Sofia Bardakov' 'Joelle Bastiaans' 'Margaret Albia' 'Erica Archambault' 'Kevin Alves' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Julia Beloglazova' 'Marina Aganina' 'Alisa Agafonova' 'Alexei Beletski' 'Camilla Andersen' 'Giovanna Almeida Leto' 'Colette Appel' 'Nina Bates' 'Tanith Belbin' 'Vitali Baranov' };\r\nexp=5;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Mao Asada' 'Dmitri Antoni' 'Marina Aganina' 'Annie Bellemare' 'Zabato Bebe' 'Andrew Bassi' 'Valentina Anselmi' 'Michael Bahoric' 'Jake Bennett' 'Mary Grace Baldo' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Shizuka Arakawa' 'Stuart Beckingham' 'Jeremy Abbott' 'Nadine Ahmed' 'Olga Akimova' 'Vadim Akolzin' 'Becky Bereswill' 'Charlotte Belair' 'Gabor Balint' 'Margaret Albia' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Beril Bektas' 'Stuart Beckingham' 'Jill Bakker' 'Daniil Barantsev' 'Sarah Abitbol' 'Benjamin Agosto' 'Andrei Bekh' 'Julia Beloglazova' 'Alibel Alegre' 'Nina Bates' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Charlotte Belair' 'Gloria Agogliati' 'Miguel Ballesteros' 'Hanna Asadchaya' 'Ilia Averbukh' 'Katarina Babalova' 'Tobias Bayer' 'Marta Andrade' 'Petra Arponen' 'Paolo Bacchini' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Evan Bates' 'Imola Antal' 'Eve Bentley' 'Miguel Ballesteros' 'Emili Arm' 'Rie Arikawa' 'Patrice Archetto' 'Julia Abolina' 'Jeremy Allen' 'Edward Alton' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Mary Grace Baldo' 'William Beier' 'Mai Asada' 'Vazgen Azrojan' 'Marina Anissina' 'Krisztian Andraska' 'Ivan Bariev' 'Tayfun Anar' 'Spencer Barnes' 'Maria Balaba' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Lubov Bakirova' 'Alexei Beletski' 'Mai Asada' 'William Beier' 'Shizuka Arakawa' 'Alla Beknazarova' 'Alessia Aureli' 'Miguel Ballesteros' 'Rinata Araslanova' 'Alexander Abt' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Vitali Baranov' 'Patrice Archetto' 'Charlotte Belair' 'Maria Balaba' 'Marina Anissina' 'Oksana Baiul' 'Alla Beknazarova' 'Shizuka Arakawa' 'Andrei Bekh' 'Zabato Bebe' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Krisztina Barta' 'Yann Abback' 'Johanna Allik' 'Andrew Bassi' 'Irina Babenko' 'Fedor Andreev' 'Emilia Ahsan' 'Mary Grace Baldo' 'Tanith Belbin' 'Spencer Barnes' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Shizuka Arakawa' 'Tanith Belbin' 'Hanna Asadchaya' 'Mai Asada' 'Krisztian Andraska' 'Gabor Balint' 'Sofia Bardakov' 'Gloria Agogliati' 'Valentina Anselmi' 'Alisa Agafonova' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Ilia Averbukh' 'Andrei Bekh' 'Imola Antal' 'Mao Asada' 'Colette Appel' 'Emili Arm' 'Irina Babenko' 'Sergei Baranov' 'Elena Berezhnaya' 'Julia Beloglazova' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Ryan Arnold' 'Rie Arikawa' 'Nina Bates' 'Katarina Babalova' 'Jeremy Allen' 'Charlotte Belair' 'Alexei Beletski' };\r\nexp=6;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Vladimir Belomoin' 'Melania Albea' 'Florent Amodio' 'An Ni' 'John Baldwin' 'Jeremy Abbott' 'Zabato Bebe' 'Olga Akimova' 'Petra Arponen' 'Jake Bennett' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Alisa Agafonova' };\r\nexp=0;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Elladj Balde' 'Charlotte Belair' 'Bogdan Berezenko' 'Julia Abolina' 'Alexandra Baurina' 'Sergei Baranov' 'Megan Allely' 'Marta Andrade' 'Anastasia Belova' 'Ivan Bariev' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Gloria Agogliati' 'Alessia Aureli' 'Julia Abolina' 'Charlotte Belair' 'Andrew Bassi' 'Gabor Balint' 'Vladimir Belomoin' 'Tanith Belbin' 'Patrice Archetto' 'Shizuka Arakawa' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Mary Grace Baldo' 'Florent Amodio' 'Vitali Babkin' 'Engin Ali Artan' 'Olga Akimova' 'Maria Balaba' 'Jeremy Allen' 'Margaret Albia' 'Ivan Bariev' 'Miguel Ballesteros' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Andrew Bassi' 'Tobias Bayer' 'Hanna Asadchaya' 'Krisztian Andraska' 'Vladimir Belomoin' 'Erica Archambault' 'Ilia Averbukh' 'Ivan Bariev' 'Margaret Albia' 'Michael Bahoric' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Hanna Asadchaya' 'Gloria Agogliati' 'Camilla Andersen' 'Veronika Benesova' 'Alisa Allapach' 'Charlotte Belair' 'Emili Arm' 'Jake Bennett' 'An Yang' 'Krisztina Barta' };\r\nexp=8;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\n%%\r\nnames={'Patrice Archetto' 'Christina Beier' 'Ivan Bariev' 'Rima Beliy' 'Alisa Allapach' 'Paolo Bacchini' 'William Beier' 'An Ni' 'Spencer Barnes' 'Vera Bazarova' };\r\nexp=7;\r\ncost=sort_cost(names);\r\nassert(cost==exp)\r\ntoc\r\n\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":11,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-16T04:35:47.000Z","updated_at":"2025-11-21T08:36:28.000Z","published_at":"2013-09-16T04:51:41.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2933486/dashboard#s=p2\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2013 China Moist\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. The problem is Codified by making the input a cell array of names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Challenge involves a serial card sorting machine that places card (i+1) in its best position, 1 thru i, if the name on card (i+1) is lexicographically greater than the name on card (i). The machine continues thru the end of the deck. The machine then restarts at card 1 until the order is correct. The output to return is the number of card insertions. The character values follow ascii codes with Space \u0026lt; A:Z \u0026lt; a:z. A shorter name is less than an extended name (Ab\u0026lt;Abe)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e names ( cell array of names )\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Insertions (count of card insertions required)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCompetition Summary:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Time 6 minutes, 793/1049 correct\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003enames={'Stuart Beckingham' 'Rinata Araslanova' 'Jeremy Abbott' 'Daniil Barantsev' };\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eClearly takes 3 card insertions. Start (SRJD) moves [(RSJD) (JRSD) (DJRS)]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1883,"title":"GJam 2013 China Event: Happy Teams 100 Pairs","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2933486/dashboard#s=p0 GJam 2013 China Bad Horse\u003e partial of data set #2.  Cody appears to have a testsuite size limit so only 32 of 100 cases are loaded. Brute force of 2^100 permutations may time out. The problem is codified using a cell array of names.\r\n\r\nThe Challenge involves creating two teams with no pair of individuals on either team having a conflict.  The input is a list of pairs of individuals who can not be placed on the same team.  The Challenge is to determine if two teams can be created that do not have any players with conflicts. \r\n\r\n*Input:* conflicted name pairs  (cell array of pairs of names)\r\n\r\n*Output:* TF  (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\r\n\r\n*Competition Summary:* Best Time of 11 minutes, 707 out of 776 correct","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2933486/dashboard#s=p0\"\u003eGJam 2013 China Bad Horse\u003c/a\u003e partial of data set #2.  Cody appears to have a testsuite size limit so only 32 of 100 cases are loaded. Brute force of 2^100 permutations may time out. The problem is codified using a cell array of names.\u003c/p\u003e\u003cp\u003eThe Challenge involves creating two teams with no pair of individuals on either team having a conflict.  The input is a list of pairs of individuals who can not be placed on the same team.  The Challenge is to determine if two teams can be created that do not have any players with conflicts.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e conflicted name pairs  (cell array of pairs of names)\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e TF  (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\u003c/p\u003e\u003cp\u003e\u003cb\u003eCompetition Summary:\u003c/b\u003e Best Time of 11 minutes, 707 out of 776 correct\u003c/p\u003e","function_template":"function TF=Make_Teams(names)\r\n TF=0;\r\nend","test_suite":"%%\r\ntic\r\nnames={{'King_Ghidorah' 'Harley_Quinn'} {'Dr_Horrible' 'Queen_Of_Fables'} {'Rad' 'Lady_Quark'} {'Yellowjacket' 'Dansen_Macabre'} {'Decay' 'Sun_Girl'} {'Typhoid_Mary' 'Animora'} {'Lady_Octopus' 'Lady_Quark'} {'Princess_Python' 'Scandal'} {'Cyborgirl' 'Scandal'} {'Margaret_Love' 'Queen_Of_Fables'} {'Decay' 'Talia_Al_Ghul'} {'Typhoid_Mary' 'Superwoman'} {'Cyborgirl' 'Dr_Evil'} {'Typhoid_Mary' 'Mothergod'} {'Star_Sapphire' 'Coachwhip'} {'Livewire' 'Dr_Evil'} {'King_Ghidorah' 'Sun_Girl'} {'Golddigger' 'Dansen_Macabre'} {'Star_Sapphire' 'Shimmer'} {'Zaladane' 'Mephista'} {'Decay' 'Harley_Quinn'} {'Zaladane' 'Lady_Shiva'} {'Tigress' 'Magenta'} {'The_Crimson_Ghost' 'Shimmer'} {'Typhoid_Mary' 'Mephista'} {'Princess_Python' 'Shimmer'} {'Cyborgirl' 'Abominatrix'} {'Magpie' 'Dansen_Macabre'} {'Magpie' 'Talia_Al_Ghul'} {'Lady_Octopus' 'Talia_Al_Ghul'} {'Livewire' 'Mephista'} {'Madame_Rouge' 'Prank'} {'The_Crimson_Ghost' 'Scandal'} {'Princess_Python' 'Superwoman'} {'Yellowjacket' 'Lazara'} {'Cyborgirl' 'Harley_Quinn'} {'Roulette' 'Sun_Girl'} {'Tigress' 'Prank'} {'Typhoid_Mary' 'Harley_Quinn'} {'The_Crimson_Ghost' 'Dansen_Macabre'} {'Cyborgirl' 'Shimmer'} {'Decay' 'Lagomorph'} {'The_Crimson_Ghost' 'Lady_Quark'} {'Decay' 'Mothergod'} {'Madame_Rouge' 'Talia_Al_Ghul'} {'Cyborgirl' 'Mephista'} {'Typhoid_Mary' 'Scandal'} {'Yellowjacket' 'Prank'} {'Madame_Rouge' 'Lazara'} {'Margaret_Love' 'Dansen_Macabre'} {'Yellowjacket' 'Dr_Evil'} {'Roulette' 'Superwoman'} {'Princess_Python' 'Mothergod'} {'Margaret_Love' 'Mothergod'} {'Golddigger' 'Lazara'} {'Margaret_Love' 'Harley_Quinn'} {'Dr_Horrible' 'Lazara'} {'Osira' 'Queen_Of_Fables'} {'King_Ghidorah' 'Coachwhip'} {'Magpie' 'Dr_Evil'} {'King_Ghidorah' 'Shimmer'} {'Cyborgirl' 'Coachwhip'} {'Lady_Octopus' 'Lagomorph'} {'Princess_Python' 'Dansen_Macabre'} {'The_Crimson_Ghost' 'Lady_Shiva'} {'Star_Sapphire' 'Superwoman'} {'Rad' 'Mothergod'} {'King_Ghidorah' 'Lazara'} {'Dr_Horrible' 'Mothergod'} {'Margaret_Love' 'Prank'} {'Rad' 'Dr_Evil'} {'Typhoid_Mary' 'Coachwhip'} {'King_Ghidorah' 'Talia_Al_Ghul'} {'Lady_Octopus' 'Mephista'} {'King_Ghidorah' 'Magenta'} {'Princess_Python' 'Sun_Girl'} {'Princess_Python' 'Animora'} {'Magpie' 'Superwoman'} {'Livewire' 'Lady_Shiva'} {'Zaladane' 'Sun_Girl'} {'Rad' 'Mephista'} {'Margaret_Love' 'Shimmer'} {'Magpie' 'Mephista'} {'Lady_Octopus' 'Scandal'} {'Osira' 'Sun_Girl'} {'Decay' 'Dansen_Macabre'} {'Typhoid_Mary' 'Abominatrix'} {'Osira' 'Lady_Quark'} {'The_Crimson_Ghost' 'Queen_Of_Fables'} {'Zaladane' 'Scandal'} {'Typhoid_Mary' 'Dr_Evil'} {'Yellowjacket' 'Animora'} {'Decay' 'Queen_Of_Fables'} {'Lady_Octopus' 'Coachwhip'} {'Margaret_Love' 'Superwoman'} {'Princess_Python' 'Lazara'} {'Tigress' 'Lagomorph'} {'Lady_Octopus' 'Superwoman'} {'Decay' 'Lady_Shiva'} {'Golddigger' 'Animora'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dr_Evil' 'Devastation'} {'Dr_Evil' 'Southpaw'} {'Dr_Evil' 'Lagomorph'} {'Dr_Evil' 'Rampage'} {'Dr_Evil' 'Unicron'} {'Dr_Evil' 'Magenta'} {'Dr_Evil' 'Silver_Swan'} {'Dr_Evil' 'Zaladane'} {'Dr_Evil' 'Jason_Kreis'} {'Dr_Evil' 'Lotso'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Typhoid_Mary' 'Amazing_Grace'} {'New_Wave' 'White_Rabbit'} {'Lazara' 'Shiv'} {'Valentina' 'Zaladane'} {'Gru' 'Magenta'} {'New_Wave' 'Shiv'} {'New_Wave' 'Madame_Masque'} {'Valentina' 'Doctor_Cyber'} {'Silver_Banshee' 'Emerald_Empress'} {'Unicron' 'Madame_Masque'} {'Blue_Snowman' 'Mothergod'} {'Valentina' 'Shiv'} {'Lazara' 'Doctor_Cyber'} {'Plastique' 'Madame_Masque'} {'Talia_Al_Ghul' 'Osira'} {'Lady_Clay' 'Star_Sapphire'} {'Unicron' 'Amazing_Grace'} {'Typhoid_Mary' 'Shiv'} {'Silver_Banshee' 'Tala'} {'Harley_Quinn' 'Asbestos_Lady'} {'Scandal' 'Magenta'} {'Titania' 'Genevieve_Savidge'} {'Typhoid_Mary' 'Animora'} {'Harley_Quinn' 'Animora'} {'Valentina' 'Amazing_Grace'} {'Plastique' 'Livewire'} {'Harley_Quinn' 'Star_Sapphire'} {'Lazara' 'Osira'} {'Decay' 'Mephista'} {'Superwoman' 'Emerald_Empress'} {'Titania' 'Doctor_Cyber'} {'Titania' 'Star_Sapphire'} {'Spider_Girl' 'Star_Sapphire'} {'Titania' 'Magenta'} {'Unicron' 'Osira'} {'Unicron' 'Genevieve_Savidge'} {'Talia_Al_Ghul' 'Hypnota'} {'Decay' 'Asbestos_Lady'} {'Silver_Banshee' 'Asbestos_Lady'} {'Scandal' 'Star_Sapphire'} {'Lashina' 'Livewire'} {'Decay' 'Mothergod'} {'Blue_Snowman' 'Genevieve_Savidge'} {'Spider_Girl' 'Mephista'} {'Blue_Snowman' 'Osira'} {'Decay' 'Madame_Masque'} {'Superwoman' 'Livewire'} {'Titania' 'Livewire'} {'Lady_Quark' 'Shiv'} {'Plastique' 'Doctor_Cyber'} {'Decay' 'Magenta'} {'Lazara' 'Livewire'} {'Lady_Quark' 'Mothergod'} {'Dr_Horrible' 'Emerald_Empress'} {'Scandal' 'Mephista'} {'Lazara' 'Magenta'} {'Gru' 'Poundcakes'} {'Superwoman' 'Animora'} {'Blue_Snowman' 'Shiv'} {'Silver_Banshee' 'Animora'} {'Plastique' 'White_Rabbit'} {'Lazara' 'Mothergod'} {'Scandal' 'Doctor_Cyber'} {'Spider_Girl' 'Emerald_Empress'} {'Typhoid_Mary' 'Mephista'} {'Spider_Girl' 'Livewire'} {'Lashina' 'White_Rabbit'} {'Harley_Quinn' 'Hypnota'} {'Dr_Horrible' 'White_Rabbit'} {'Titania' 'Lady_Octopus'} {'New_Wave' 'Mothergod'} {'Silver_Banshee' 'Hypnota'} {'Harley_Quinn' 'Poundcakes'} {'Decay' 'Hypnota'} {'New_Wave' 'Osira'} {'Valentina' 'Star_Sapphire'} {'Silver_Banshee' 'Mothergod'} {'Lashina' 'Magenta'} {'Blue_Snowman' 'Magenta'} {'Titania' 'Mephista'} {'Silver_Banshee' 'White_Rabbit'} {'Lady_Quark' 'Lady_Octopus'} {'Spider_Girl' 'Tala'} {'Lashina' 'Gru'} {'Lashina' 'Mephista'} {'Lady_Quark' 'White_Rabbit'} {'Typhoid_Mary' 'Doctor_Cyber'} {'Harley_Quinn' 'Doctor_Cyber'} {'Unicron' 'Mothergod'} {'New_Wave' 'Lady_Octopus'} {'Titania' 'Tala'} {'Talia_Al_Ghul' 'Doctor_Cyber'} {'Dr_Horrible' 'Asbestos_Lady'} {'Lashina' 'Genevieve_Savidge'} {'Blue_Snowman' 'Madame_Masque'} {'Superwoman' 'Osira'} {'Lady_Clay' 'Zaladane'} {'Lady_Quark' 'Magenta'} {'Scandal' 'Madame_Masque'} {'Unicron' 'Poundcakes'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'White_Rabbit' 'Animora'} {'Rad' 'Plastique'} {'Devastation' 'Gru'} {'Margaret_Love' 'Zaladane'} {'Yellowjacket' 'Blue_Snowman'} {'Devastation' 'Animora'} {'Lady_Death' 'Syndrome'} {'Snapdragon' 'Titania'} {'Rad' 'Gru'} {'Tigress' 'Black_Mamba'} {'Spider_Girl' 'Zaladane'} {'Snapdragon' 'Plastique'} {'Golddigger' 'Duela_Dent'} {'Spider_Girl' 'Black_Mamba'} {'Lady_Clay' 'Lady_Shiva'} {'Lagomorph' 'Syndrome'} {'Golddigger' 'Poison_Ivy'} {'Lafety_Le_Fei' 'Duela_Dent'} {'Eviless' 'Titania'} {'Jason_Kreis' 'Blue_Snowman'} {'Golddigger' 'Gru'} {'Rad' 'Lady_Shiva'} {'Margaret_Love' 'Poundcakes'} {'Devastation' 'Superwoman'} {'Jason_Kreis' 'Gru'} {'Lady_Clay' 'Ursa'} {'Snapdragon' 'Animora'} {'Sun_Girl' 'Magpie'} {'Mist' 'Zaladane'} {'White_Rabbit' 'Poundcakes'} {'Tigress' 'Lady_Shiva'} {'Livewire' 'Poison_Ivy'} {'Eviless' 'Golden_Glider'} {'Margaret_Love' 'Lady_Quark'} {'Lady_Clay' 'Plastique'} {'Lady_Clay' 'Golden_Glider'} {'Madame_Masque' 'Titania'} {'Lady_Death' 'Golden_Glider'} {'Margaret_Love' 'Black_Mamba'} {'Tigress' 'Superwoman'} {'Lagomorph' 'Magpie'} {'Eviless' 'Dr_Evil'} {'Lady_Clay' 'Duela_Dent'} {'Snapdragon' 'Syndrome'} {'Golddigger' 'Lady_Quark'} {'Devastation' 'Golden_Glider'} {'Rad' 'Syndrome'} {'Snapdragon' 'Dr_Evil'} {'Yellowjacket' 'Animora'} {'Lady_Death' 'Fem_Paragon'} {'Margaret_Love' 'Animora'} {'Lady_Death' 'Dr_Evil'} {'Golddigger' 'Plastique'} {'Lagomorph' 'Gru'} {'Rampage' 'Plastique'} {'Jason_Kreis' 'Fem_Paragon'} {'Margaret_Love' 'Ursa'} {'Spider_Girl' 'Golden_Glider'} {'Rampage' 'Superwoman'} {'Eviless' 'Bombshell'} {'Golddigger' 'Dr_Evil'} {'Livewire' 'Syndrome'} {'Lady_Death' 'Zaladane'} {'Livewire' 'Lady_Quark'} {'Snapdragon' 'Black_Mamba'} {'Rad' 'Blue_Snowman'} {'Mist' 'Superwoman'} {'Yellowjacket' 'Superwoman'} {'Madame_Masque' 'Fem_Paragon'} {'Devastation' 'Syndrome'} {'Lady_Death' 'Ursa'} {'Madame_Masque' 'Gru'} {'Yellowjacket' 'Fem_Paragon'} {'White_Rabbit' 'Zaladane'} {'Spider_Girl' 'Syndrome'} {'Golddigger' 'Zaladane'} {'Livewire' 'Ursa'} {'Sun_Girl' 'Titania'} {'Tigress' 'Lady_Quark'} {'Snapdragon' 'Fem_Paragon'} {'Sun_Girl' 'Lady_Quark'} {'Yellowjacket' 'Ursa'} {'Madame_Masque' 'Plastique'} {'Lafety_Le_Fei' 'Black_Mamba'} {'Eviless' 'Fem_Paragon'} {'Sun_Girl' 'Lady_Shiva'} {'Yellowjacket' 'Magpie'} {'Yellowjacket' 'Gru'} {'White_Rabbit' 'Lady_Shiva'} {'White_Rabbit' 'Magpie'} {'Sun_Girl' 'Gru'} {'Jason_Kreis' 'Magpie'} {'Sun_Girl' 'Plastique'} {'Lagomorph' 'Poison_Ivy'} {'Lagomorph' 'Poundcakes'} {'Golddigger' 'Fem_Paragon'} {'Sun_Girl' 'Poison_Ivy'} {'Madame_Masque' 'Bombshell'} {'Lafety_Le_Fei' 'Magpie'} {'Mist' 'Ursa'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Amazing_Grace' 'Animora'} {'Plastique' 'Lady_Quark'} {'Lagomorph' 'Hypnota'} {'Princess_Python' 'Purgatori'} {'Plastique' 'Animora'} {'Princess_Python' 'Lashina'} {'Typhoid_Mary' 'Dansen_Macabre'} {'Queen_Bee' 'Lashina'} {'Golden_Glider' 'Decay'} {'Bombshell' 'Dansen_Macabre'} {'Bombshell' 'Blue_Snowman'} {'Madame_Rouge' 'Hypnota'} {'Mist' 'Duela_Dent'} {'Typhoid_Mary' 'Lady_Death'} {'Gru' 'The_Crimson_Ghost'} {'Mist' 'The_Lightning'} {'Syndrome' 'Harley_Quinn'} {'Dr_Evil' 'Silk_Fever'} {'Mist' 'Animora'} {'Typhoid_Mary' 'Blue_Snowman'} {'Gru' 'Poundcakes'} {'Deuce' 'Windfall'} {'Princess_Python' 'Windfall'} {'Golden_Glider' 'Lady_Clay'} {'Tigress' 'Duela_Dent'} {'Bombshell' 'Hypnota'} {'Plastique' 'Hypnota'} {'Leather' 'Blue_Snowman'} {'Tigress' 'Windfall'} {'Dr_Horrible' 'Dansen_Macabre'} {'Dr_Evil' 'Shimmer'} {'Deuce' 'Queen_Of_Fables'} {'Leather' 'Lady_Quark'} {'Plastique' 'Blue_Snowman'} {'Plastique' 'Poundcakes'} {'Amazing_Grace' 'Decay'} {'Mothergod' 'Windfall'} {'Lady_Vic' 'Harley_Quinn'} {'Amazing_Grace' 'Queen_Of_Fables'} {'The_Lightning' 'Black_Mamba'} {'Gru' 'Lady_Death'} {'Mist' 'Lady_Death'} {'Leather' 'Queen_Of_Fables'} {'Bombshell' 'Animora'} {'Bombshell' 'Lady_Quark'} {'Plastique' 'Silk_Fever'} {'Deuce' 'Blue_Snowman'} {'Queen_Bee' 'Hypnota'} {'Mothergod' 'Black_Mamba'} {'Gru' 'Silk_Fever'} {'Typhoid_Mary' 'Queen_Of_Fables'} {'Mothergod' 'Queen_Of_Fables'} {'Amazing_Grace' 'Lady_Quark'} {'Leather' 'Lady_Clay'} {'Syndrome' 'Queen_Of_Fables'} {'Syndrome' 'Shimmer'} {'Lagomorph' 'Animora'} {'Mothergod' 'The_Crimson_Ghost'} {'Plastique' 'Black_Mamba'} {'Queen_Bee' 'King_Ghidorah'} {'Typhoid_Mary' 'Silk_Fever'} {'Deuce' 'Animora'} {'Dr_Evil' 'Queen_Of_Fables'} {'Princess_Python' 'Poundcakes'} {'Tigress' 'Decay'} {'Plastique' 'Lady_Death'} {'Queen_Bee' 'Lady_Clay'} {'Typhoid_Mary' 'King_Ghidorah'} {'Dr_Evil' 'Lady_Clay'} {'Gru' 'Lashina'} {'Dr_Horrible' 'Lady_Quark'} {'Madame_Rouge' 'Animora'} {'Golden_Glider' 'Purgatori'} {'Deuce' 'Duela_Dent'} {'Lagomorph' 'Windfall'} {'Deuce' 'Lady_Quark'} {'The_Lightning' 'Poundcakes'} {'Dr_Evil' 'Lady_Quark'} {'Queen_Bee' 'Silk_Fever'} {'Lady_Vic' 'Animora'} {'Dr_Evil' 'Harley_Quinn'} {'Mothergod' 'Decay'} {'Princess_Python' 'Duela_Dent'} {'Lagomorph' 'Harley_Quinn'} {'Golden_Glider' 'Dansen_Macabre'} {'Leather' 'Lady_Death'} {'Syndrome' 'Blue_Snowman'} {'Mist' 'Blue_Snowman'} {'Bombshell' 'Poundcakes'} {'Amazing_Grace' 'Blue_Snowman'} {'Leather' 'Hypnota'} {'Typhoid_Mary' 'Windfall'} {'Mothergod' 'Poundcakes'} {'The_Lightning' 'Purgatori'} {'Madame_Rouge' 'The_Crimson_Ghost'} {'Syndrome' 'King_Ghidorah'} {'Plastique' 'Decay'} {'The_Lightning' 'Hypnota'} {'Amazing_Grace' 'Lady_Clay'} {'Syndrome' 'Dansen_Macabre'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Abominatrix'} {'Mai_Shen' 'Devastation'} {'Abominatrix' 'Mai_Shen'} {'Devastation' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Titania' 'Hypnota'} {'Trinity' 'Poison_Ivy'} {'Dansen_Macabre' 'New_Wave'} {'Emerald_Empress' 'Saturn_Queen'} {'Fem_Paragon' 'Hypnota'} {'White_Rabbit' 'Osira'} {'Duela_Dent' 'Dead_Bowie'} {'Poundcakes' 'Dead_Bowie'} {'Decay' 'New_Wave'} {'Decay' 'Shimmer'} {'Poundcakes' 'Mephista'} {'Zaladane' 'Osira'} {'Ursa' 'Hypnota'} {'Star_Sapphire' 'Lady_Vic'} {'Fem_Paragon' 'Shimmer'} {'Star_Sapphire' 'Golddigger'} {'Queen_Bee' 'Doctor_Cyber'} {'Amazing_Grace' 'Nyssa_Raatko'} {'Trinity' 'Hypnota'} {'Emerald_Empress' 'Nyssa_Raatko'} {'White_Rabbit' 'New_Wave'} {'Lady_Shiva' 'Mephista'} {'Amazing_Grace' 'Dead_Bowie'} {'Emerald_Empress' 'Mephista'} {'Zaladane' 'Devastation'} {'Zaladane' 'Mephista'} {'Lady_Shiva' 'New_Wave'} {'Fem_Paragon' 'Nyssa_Raatko'} {'Zaladane' 'Nyssa_Raatko'} {'Ursa' 'Golddigger'} {'Trinity' 'Purgatori'} {'Ursa' 'Osira'} {'The_Crimson_Ghost' 'Shimmer'} {'Fake_Thomas_Jefferson' 'Ingra'} {'Decay' 'Silver_Banshee'} {'Decay' 'Hypnota'} {'Zaladane' 'Sun_Girl'} {'Ursa' 'Eviless'} {'The_Crimson_Ghost' 'New_Wave'} {'Fake_Thomas_Jefferson' 'New_Wave'} {'Emerald_Empress' 'Amy_Madison'} {'Fake_Thomas_Jefferson' 'Poison_Ivy'} {'Fem_Paragon' 'Ingra'} {'Amazing_Grace' 'Osira'} {'Queen_Bee' 'Lady_Vic'} {'Zaladane' 'Eviless'} {'Decay' 'Doctor_Cyber'} {'The_Crimson_Ghost' 'Ingra'} {'Star_Sapphire' 'Ingra'} {'Ursa' 'Nyssa_Raatko'} {'Animora' 'Plastique'} {'Fem_Paragon' 'Silver_Banshee'} {'Decay' 'Dead_Bowie'} {'Duela_Dent' 'Devastation'} {'Animora' 'Saturn_Queen'} {'The_Crimson_Ghost' 'Devastation'} {'The_Crimson_Ghost' 'Osira'} {'Trinity' 'Sun_Girl'} {'Lady_Shiva' 'Saturn_Queen'} {'Trinity' 'Amy_Madison'} {'Fem_Paragon' 'Eviless'} {'Mai_Shen' 'Plastique'} {'Margaret_Love' 'Amy_Madison'} {'Trinity' 'Nyssa_Raatko'} {'White_Rabbit' 'Hypnota'} {'Animora' 'Silver_Banshee'} {'White_Rabbit' 'Mephista'} {'Animora' 'Eviless'} {'Titania' 'Ingra'} {'Dansen_Macabre' 'Purgatori'} {'Poundcakes' 'Ingra'} {'Titania' 'Golddigger'} {'Star_Sapphire' 'Osira'} {'Dansen_Macabre' 'Dead_Bowie'} {'Queen_Bee' 'Purgatori'} {'Mai_Shen' 'Silver_Banshee'} {'White_Rabbit' 'Saturn_Queen'} {'Poundcakes' 'Doctor_Cyber'} {'Queen_Bee' 'Devastation'} {'Margaret_Love' 'Poison_Ivy'} {'White_Rabbit' 'Amy_Madison'} {'The_Crimson_Ghost' 'Nyssa_Raatko'} {'Trinity' 'Devastation'} {'Titania' 'Eviless'} {'Fake_Thomas_Jefferson' 'Golddigger'} {'White_Rabbit' 'Dead_Bowie'} {'Fake_Thomas_Jefferson' 'Silver_Banshee'} {'Amazing_Grace' 'Doctor_Cyber'} {'The_Crimson_Ghost' 'Sun_Girl'} {'Margaret_Love' 'Golddigger'} {'Lady_Shiva' 'Devastation'} {'Queen_Bee' 'New_Wave'} {'Margaret_Love' 'Osira'} {'Queen_Bee' 'Ingra'} {'Fake_Thomas_Jefferson' 'Eviless'} {'Dansen_Macabre' 'Shimmer'} {'Fem_Paragon' 'Lady_Vic'} {'Poundcakes' 'Purgatori'} {'Titania' 'Poison_Ivy'} {'Star_Sapphire' 'Devastation'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mothergod' 'Hypnota'} {'Lazara' 'Fury_Leika'} {'Queen_Clea' 'Windfall'} {'Silver_Swan' 'Black_Mamba'} {'Devastation' 'Titania'} {'Madame_Masque' 'Rampage'} {'Spider_Girl' 'Titania'} {'Maxima' 'Madame_Rouge'} {'Silver_Banshee' 'Typhoid_Mary'} {'The_Lightning' 'Lafety_Le_Fei'} {'Queen_Clea' 'Silk_Fever'} {'Maxima' 'Lady_Clay'} {'Amy_Madison' 'Black_Mamba'} {'The_Lightning' 'Duela_Dent'} {'Madame_Masque' 'Silk_Fever'} {'Lazara' 'Rampage'} {'Star_Sapphire' 'Rampage'} {'Lazara' 'Amazing_Grace'} {'Madame_Masque' 'Syndrome'} {'Golden_Glider' 'Hypnota'} {'Spider_Girl' 'Windfall'} {'Dr_Evil' 'Typhoid_Mary'} {'Golden_Glider' 'Osira'} {'Fury_Leika' 'Duela_Dent'} {'Golden_Glider' 'Lady_Clay'} {'The_Crimson_Ghost' 'Magenta'} {'Mothergod' 'Amazing_Grace'} {'Lazara' 'Duela_Dent'} {'White_Rabbit' 'Hypnota'} {'Fury_Leika' 'Amazing_Grace'} {'White_Rabbit' 'Duela_Dent'} {'Silver_Banshee' 'Prank'} {'Mothergod' 'Osira'} {'Silver_Banshee' 'Hypnota'} {'Golddigger' 'Silk_Fever'} {'Fury_Leika' 'Madame_Rouge'} {'Amy_Madison' 'Osira'} {'Madame_Masque' 'Professor_Padraic_Ratigan'} {'Madame_Masque' 'Hypnota'} {'The_Crimson_Ghost' 'Amazing_Grace'} {'The_Lightning' 'Madame_Rouge'} {'Maxima' 'Prank'} {'Star_Sapphire' 'Yellowjacket'} {'The_Lightning' 'Mai_Shen'} {'Lagomorph' 'Duela_Dent'} {'White_Rabbit' 'Typhoid_Mary'} {'Golden_Glider' 'Typhoid_Mary'} {'Mothergod' 'Lady_Clay'} {'Eviless' 'Lafety_Le_Fei'} {'Golddigger' 'Typhoid_Mary'} {'Dr_Evil' 'Mai_Shen'} {'Fury_Leika' 'Hypnota'} {'Lagomorph' 'Lady_Clay'} {'White_Rabbit' 'Windfall'} {'Silver_Banshee' 'Lafety_Le_Fei'} {'White_Rabbit' 'Lady_Clay'} {'Silver_Banshee' 'Titania'} {'White_Rabbit' 'Titania'} {'Star_Sapphire' 'Syndrome'} {'Silver_Swan' 'Hypnota'} {'The_Crimson_Ghost' 'Osira'} {'Mothergod' 'Roulette'} {'Devastation' 'Lady_Clay'} {'Amy_Madison' 'Typhoid_Mary'} {'Eviless' 'Roulette'} {'Spider_Girl' 'Rampage'} {'Dr_Evil' 'Syndrome'} {'Maxima' 'Osira'} {'The_Lightning' 'Lady_Clay'} {'Silver_Banshee' 'Black_Mamba'} {'Devastation' 'Mai_Shen'} {'Madame_Masque' 'Madame_Rouge'} {'Amy_Madison' 'Silk_Fever'} {'Lagomorph' 'Yellowjacket'} {'Queen_Clea' 'Professor_Padraic_Ratigan'} {'Mothergod' 'Silk_Fever'} {'Maxima' 'Silk_Fever'} {'Lagomorph' 'Rampage'} {'The_Crimson_Ghost' 'Lady_Clay'} {'Spider_Girl' 'Mai_Shen'} {'Mothergod' 'Madame_Rouge'} {'Mothergod' 'Typhoid_Mary'} {'Fury_Leika' 'Professor_Padraic_Ratigan'} {'Fury_Leika' 'Roulette'} {'Maxima' 'Black_Mamba'} {'Dr_Evil' 'Black_Mamba'} {'Madame_Masque' 'Mai_Shen'} {'White_Rabbit' 'Silk_Fever'} {'Fury_Leika' 'Magenta'} {'The_Lightning' 'Rampage'} {'Lagomorph' 'Silk_Fever'} {'Golden_Glider' 'Windfall'} {'Silver_Banshee' 'Windfall'} {'Silver_Banshee' 'Yellowjacket'} {'Dr_Evil' 'Lafety_Le_Fei'} {'Devastation' 'Typhoid_Mary'} {'Maxima' 'Lafety_Le_Fei'} {'Queen_Clea' 'Yellowjacket'} {'White_Rabbit' 'Rampage'} {'Golden_Glider' 'Yellowjacket'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silk_Fever' 'Mothergod'} {'Decay' 'Shimmer'} {'Golden_Glider' 'Windfall'} {'Silver_Banshee' 'Queen_Of_Fables'} {'Typhoid_Mary' 'Syndrome'} {'Unicron' 'Maxima'} {'Lady_Vic' 'Lady_Octopus'} {'Golden_Glider' 'Zaladane'} {'Typhoid_Mary' 'Harley_Quinn'} {'Silver_Banshee' 'Mothergod'} {'Osira' 'Lotso'} {'Queen_Bee' 'Tala'} {'Spider_Girl' 'Zaladane'} {'Silk_Fever' 'King_Ghidorah'} {'Typhoid_Mary' 'Lotso'} {'Osira' 'Mothergod'} {'Spider_Girl' 'Syndrome'} {'Star_Sapphire' 'Syndrome'} {'Saturn_Queen' 'Sun_Girl'} {'Bombshell' 'Lotso'} {'Lady_Vic' 'Shimmer'} {'Livewire' 'Tala'} {'Bombshell' 'Maxima'} {'Golden_Glider' 'Tala'} {'Silver_Banshee' 'Shiv'} {'Queen_Clea' 'Tala'} {'Spider_Girl' 'Lotso'} {'Bombshell' 'Eviless'} {'Decay' 'Maxima'} {'Golden_Glider' 'Mothergod'} {'Devastation' 'Mai_Shen'} {'Spider_Girl' 'New_Wave'} {'Saturn_Queen' 'Queen_Of_Fables'} {'Osira' 'Harley_Quinn'} {'Osira' 'Maxima'} {'Scandal' 'Maxima'} {'Livewire' 'Eviless'} {'Deuce' 'Zaladane'} {'Deuce' 'Maxima'} {'Queen_Clea' 'Mothergod'} {'Unicron' 'Evinlea'} {'Deuce' 'Tala'} {'Devastation' 'Superwoman'} {'Livewire' 'Shimmer'} {'Scandal' 'King_Ghidorah'} {'Typhoid_Mary' 'King_Ghidorah'} {'Bombshell' 'Evinlea'} {'Star_Sapphire' 'Lady_Octopus'} {'Spider_Girl' 'Evinlea'} {'Coachwhip' 'New_Wave'} {'Star_Sapphire' 'Zaladane'} {'Devastation' 'Shiv'} {'Queen_Bee' 'Lady_Octopus'} {'Decay' 'New_Wave'} {'Scandal' 'Superwoman'} {'Unicron' 'Zaladane'} {'Decay' 'King_Ghidorah'} {'Typhoid_Mary' 'Maxima'} {'Dansen_Macabre' 'Evinlea'} {'Queen_Clea' 'Maxima'} {'Queen_Clea' 'Superwoman'} {'Deuce' 'Queen_Of_Fables'} {'Decay' 'Sun_Girl'} {'Golden_Glider' 'Sun_Girl'} {'Star_Sapphire' 'Eviless'} {'Silk_Fever' 'Lazara'} {'Lady_Vic' 'Sun_Girl'} {'Unicron' 'New_Wave'} {'Saturn_Queen' 'King_Ghidorah'} {'Unicron' 'Lotso'} {'Silver_Banshee' 'King_Ghidorah'} {'Golden_Glider' 'Superwoman'} {'Decay' 'Tala'} {'Devastation' 'Tala'} {'Dansen_Macabre' 'Maxima'} {'Dansen_Macabre' 'Lady_Octopus'} {'Silver_Banshee' 'Mai_Shen'} {'Silver_Banshee' 'Lazara'} {'Spider_Girl' 'Mothergod'} {'Deuce' 'Syndrome'} {'Dansen_Macabre' 'Windfall'} {'Bombshell' 'Lady_Octopus'} {'Silk_Fever' 'Zaladane'} {'Scandal' 'Syndrome'} {'Livewire' 'Windfall'} {'Decay' 'Harley_Quinn'} {'Scandal' 'New_Wave'} {'Osira' 'Eviless'} {'Dansen_Macabre' 'Shimmer'} {'Saturn_Queen' 'Lady_Octopus'} {'Queen_Clea' 'Shiv'} {'Decay' 'Shiv'} {'Scandal' 'Shimmer'} {'Coachwhip' 'Tala'} {'Osira' 'Evinlea'} {'Silk_Fever' 'Evinlea'} {'Coachwhip' 'Queen_Of_Fables'} {'Deuce' 'Evinlea'} {'Bombshell' 'Lazara'} {'Lady_Vic' 'Queen_Of_Fables'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Spider_Girl' 'Blue_Snowman'} {'Blue_Snowman' 'Roulette'} {'Roulette' 'Spider_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Rampage' 'Fury_Leika'} {'Tigress' 'Princess_Python'} {'Syndrome' 'Animora'} {'Maxima' 'Prank'} {'Queen_Of_Fables' 'Queen_Bee'} {'Queen_Of_Fables' 'Doctor_Cyber'} {'Magpie' 'Queen_Bee'} {'Shimmer' 'Golddigger'} {'Rampage' 'Queen_Clea'} {'Magpie' 'Abominatrix'} {'Maxima' 'Titania'} {'Tigress' 'Prank'} {'Decay' 'Prank'} {'Spider_Girl' 'Jewelee'} {'Magpie' 'Princess_Python'} {'Eviless' 'Abominatrix'} {'Shimmer' 'Doctor_Cyber'} {'Star_Sapphire' 'Animora'} {'Star_Sapphire' 'Jinx'} {'Yellowjacket' 'Blue_Snowman'} {'Star_Sapphire' 'Queen_Clea'} {'Black_Mamba' 'Jewelee'} {'Star_Sapphire' 'Blue_Snowman'} {'Magpie' 'Titania'} {'Spider_Girl' 'Abominatrix'} {'Lashina' 'Dr_Evil'} {'Margaret_Love' 'Prank'} {'Lotso' 'Fury_Leika'} {'Maxima' 'Abominatrix'} {'Decay' 'Queen_Clea'} {'Star_Sapphire' 'Doctor_Cyber'} {'Maxima' 'Queen_Clea'} {'Yellowjacket' 'Abominatrix'} {'Syndrome' 'Sun_Girl'} {'Rampage' 'Windfall'} {'Lotso' 'Titania'} {'Syndrome' 'Blue_Snowman'} {'Plastique' 'Queen_Clea'} {'Magpie' 'Sun_Girl'} {'Lady_Clay' 'Queen_Clea'} {'Eviless' 'Princess_Python'} {'Fake_Thomas_Jefferson' 'Blue_Snowman'} {'Rampage' 'Animora'} {'Fake_Thomas_Jefferson' 'Sun_Girl'} {'Star_Sapphire' 'Abominatrix'} {'Black_Mamba' 'Poundcakes'} {'Plastique' 'Sun_Girl'} {'Lady_Clay' 'Titania'} {'Fake_Thomas_Jefferson' 'Windfall'} {'Shimmer' 'Osira'} {'Lady_Clay' 'Ursa'} {'Syndrome' 'Queen_Bee'} {'Maxima' 'Blue_Snowman'} {'Lady_Clay' 'Dr_Evil'} {'Decay' 'Amy_Madison'} {'Tigress' 'Jinx'} {'Spider_Girl' 'Jinx'} {'Margaret_Love' 'Titania'} {'Star_Sapphire' 'Poundcakes'} {'Plastique' 'Doctor_Cyber'} {'Black_Mamba' 'Amy_Madison'} {'Tigress' 'Titania'} {'Lashina' 'Golddigger'} {'Eviless' 'Dr_Evil'} {'Magenta' 'Windfall'} {'Yellowjacket' 'Princess_Python'} {'Syndrome' 'Prank'} {'Shimmer' 'Poundcakes'} {'Decay' 'Fury_Leika'} {'Decay' 'Windfall'} {'Black_Mamba' 'Golddigger'} {'Rampage' 'Abominatrix'} {'Syndrome' 'Golddigger'} {'Maxima' 'Fury_Leika'} {'Eviless' 'Jewelee'} {'Lashina' 'Blue_Snowman'} {'Lady_Clay' 'Jinx'} {'Lady_Clay' 'Windfall'} {'Magpie' 'Ursa'} {'Eviless' 'Prank'} {'Tigress' 'Abominatrix'} {'Star_Sapphire' 'Eviless'} {'Tigress' 'Fury_Leika'} {'Magenta' 'Ursa'} {'Yellowjacket' 'Jewelee'} {'Yellowjacket' 'Ursa'} {'Plastique' 'Osira'} {'Tigress' 'Sun_Girl'} {'Tigress' 'Golddigger'} {'Spider_Girl' 'Windfall'} {'Fake_Thomas_Jefferson' 'Amy_Madison'} {'Magenta' 'Fury_Leika'} {'Star_Sapphire' 'Amy_Madison'} {'Magenta' 'Blue_Snowman'} {'Plastique' 'Ursa'} {'Fake_Thomas_Jefferson' 'Abominatrix'} {'Lotso' 'Jewelee'} {'Lotso' 'Jinx'} {'Maxima' 'Animora'} {'Magenta' 'Sun_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'Hypnota'} {'Poundcakes' 'Superwoman'} {'Purgatori' 'Queen_Of_Fables'} {'Plastique' 'Star_Sapphire'} {'Evinlea' 'Snapdragon'} {'Emerald_Empress' 'Abominatrix'} {'New_Wave' 'Amazing_Grace'} {'New_Wave' 'Lady_Death'} {'Talia_Al_Ghul' 'Mephista'} {'Lady_Clay' 'Ursa'} {'Zaladane' 'Silk_Fever'} {'Talia_Al_Ghul' 'Star_Sapphire'} {'Deuce' 'Titania'} {'Bombshell' 'Snapdragon'} {'Bombshell' 'Abominatrix'} {'Evinlea' 'Lagomorph'} {'Typhoid_Mary' 'Nyssa_Raatko'} {'Cyborgirl' 'Nyssa_Raatko'} {'Purgatori' 'Silk_Fever'} {'Dr_Evil' 'Ursa'} {'Dr_Evil' 'Silk_Fever'} {'Lady_Clay' 'Madame_Masque'} {'Harley_Quinn' 'Mephista'} {'Syndrome' 'White_Rabbit'} {'Tigress' 'Madame_Masque'} {'Tigress' 'Queen_Of_Fables'} {'Bombshell' 'Superwoman'} {'Evinlea' 'Abominatrix'} {'Purgatori' 'Snapdragon'} {'Osira' 'Hypnota'} {'Syndrome' 'Mephista'} {'Dr_Evil' 'Lagomorph'} {'Plastique' 'Rampage'} {'New_Wave' 'Madame_Masque'} {'Plastique' 'Abominatrix'} {'Harley_Quinn' 'White_Rabbit'} {'New_Wave' 'Snapdragon'} {'Dr_Evil' 'Mai_Shen'} {'Emerald_Empress' 'Yellowjacket'} {'Lady_Clay' 'Mephista'} {'Purgatori' 'Superwoman'} {'Tigress' 'Titania'} {'Deuce' 'Abominatrix'} {'Cyborgirl' 'Lagomorph'} {'Dead_Bowie' 'Queen_Of_Fables'} {'Purgatori' 'Amazing_Grace'} {'Zaladane' 'Ursa'} {'Lady_Clay' 'Queen_Of_Fables'} {'Zaladane' 'Amazing_Grace'} {'Dead_Bowie' 'Amazing_Grace'} {'Deuce' 'Superwoman'} {'Zaladane' 'Yellowjacket'} {'Harley_Quinn' 'Ursa'} {'Blue_Snowman' 'Yellowjacket'} {'Typhoid_Mary' 'Abominatrix'} {'Evinlea' 'Queen_Of_Fables'} {'Typhoid_Mary' 'Mephista'} {'Evinlea' 'Lady_Death'} {'Talia_Al_Ghul' 'Queen_Of_Fables'} {'Syndrome' 'Lady_Death'} {'Bombshell' 'Silk_Fever'} {'Poundcakes' 'Hypnota'} {'Blue_Snowman' 'Rampage'} {'Evinlea' 'Nyssa_Raatko'} {'Typhoid_Mary' 'Madame_Masque'} {'Typhoid_Mary' 'Lagomorph'} {'Harley_Quinn' 'Nyssa_Raatko'} {'Lady_Clay' 'Evinlea'} {'Harley_Quinn' 'Amazing_Grace'} {'Talia_Al_Ghul' 'Rampage'} {'Osira' 'Abominatrix'} {'Dr_Evil' 'Titania'} {'Cyborgirl' 'Mai_Shen'} {'Syndrome' 'Queen_Of_Fables'} {'Dead_Bowie' 'Nyssa_Raatko'} {'Dead_Bowie' 'Lady_Death'} {'Zaladane' 'Rampage'} {'Poundcakes' 'Lady_Death'} {'Dead_Bowie' 'Star_Sapphire'} {'Evinlea' 'Rampage'} {'Emerald_Empress' 'Silver_Swan'} {'Blue_Snowman' 'Lady_Death'} {'Deuce' 'Yellowjacket'} {'Talia_Al_Ghul' 'Snapdragon'} {'Deuce' 'Rampage'} {'Harley_Quinn' 'Abominatrix'} {'Plastique' 'Mai_Shen'} {'Tigress' 'Silk_Fever'} {'Evinlea' 'Silver_Swan'} {'Plastique' 'Superwoman'} {'Talia_Al_Ghul' 'Silver_Swan'} {'New_Wave' 'Silver_Swan'} {'Dr_Evil' 'Nyssa_Raatko'} {'Poundcakes' 'Mephista'} {'Bombshell' 'Titania'} {'Talia_Al_Ghul' 'Hypnota'} {'Blue_Snowman' 'Ursa'} {'Dr_Evil' 'Queen_Of_Fables'} {'Osira' 'Mephista'} {'Deuce' 'Snapdragon'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Roulette' 'Star_Sapphire'} {'Lady_Clay' 'Lafety_Le_Fei'} {'Evinlea' 'Margaret_Love'} {'Mai_Shen' 'Titania'} {'Spider_Girl' 'Coachwhip'} {'Amy_Madison' 'Snapdragon'} {'Shimmer' 'Emerald_Empress'} {'Blue_Snowman' 'Nyssa_Raatko'} {'Tala' 'Silver_Banshee'} {'Magenta' 'Nyssa_Raatko'} {'Scandal' 'Tigress'} {'Tala' 'Coachwhip'} {'Bombshell' 'Tigress'} {'Maxima' 'Silver_Banshee'} {'Lady_Shiva' 'Dr_Evil'} {'Shimmer' 'Star_Sapphire'} {'Evinlea' 'Trinity'} {'Shimmer' 'Tigress'} {'Mai_Shen' 'Emerald_Empress'} {'Evinlea' 'Cyborgirl'} {'Shimmer' 'Dr_Evil'} {'Roulette' 'Lafety_Le_Fei'} {'Golden_Glider' 'Lafety_Le_Fei'} {'Roulette' 'Animora'} {'Evinlea' 'Sun_Girl'} {'Mai_Shen' 'Star_Sapphire'} {'Lady_Quark' 'Lafety_Le_Fei'} {'Professor_Padraic_Ratigan' 'Silver_Banshee'} {'Lady_Clay' 'Animora'} {'Plastique' 'Margaret_Love'} {'Lady_Clay' 'Coachwhip'} {'Roulette' 'New_Wave'} {'Amy_Madison' 'Trinity'} {'Amy_Madison' 'Emerald_Empress'} {'Plastique' 'Animora'} {'Amy_Madison' 'Lafety_Le_Fei'} {'Doctor_Cyber' 'Snapdragon'} {'Maxima' 'New_Wave'} {'Tala' 'New_Wave'} {'Spider_Girl' 'Trinity'} {'Doctor_Cyber' 'Sun_Girl'} {'Professor_Padraic_Ratigan' 'Star_Sapphire'} {'Lady_Quark' 'Cyborgirl'} {'Spider_Girl' 'Cyborgirl'} {'Roulette' 'Trinity'} {'Blue_Snowman' 'Fem_Paragon'} {'Spider_Girl' 'Fem_Paragon'} {'Amy_Madison' 'Dr_Evil'} {'Lady_Shiva' 'Lafety_Le_Fei'} {'Lady_Clay' 'Lazara'} {'Lady_Quark' 'Nyssa_Raatko'} {'Lady_Quark' 'Tigress'} {'Shimmer' 'Sun_Girl'} {'Blue_Snowman' 'Margaret_Love'} {'Evinlea' 'Coachwhip'} {'Lady_Shiva' 'Fem_Paragon'} {'The_Crimson_Ghost' 'Titania'} {'Amy_Madison' 'New_Wave'} {'Roulette' 'Lazara'} {'The_Crimson_Ghost' 'Trinity'} {'Magenta' 'Snapdragon'} {'Mai_Shen' 'Unicron'} {'Scandal' 'Animora'} {'Lady_Clay' 'Cyborgirl'} {'Lady_Clay' 'Emerald_Empress'} {'Spider_Girl' 'Star_Sapphire'} {'Shimmer' 'Deuce'} {'Spider_Girl' 'Animora'} {'Plastique' 'Tigress'} {'Lady_Quark' 'Fem_Paragon'} {'Magenta' 'Coachwhip'} {'Magenta' 'Unicron'} {'Magenta' 'Cyborgirl'} {'Plastique' 'Coachwhip'} {'Lady_Clay' 'Trinity'} {'The_Crimson_Ghost' 'Dr_Evil'} {'Golden_Glider' 'Tigress'} {'The_Crimson_Ghost' 'Deuce'} {'Amy_Madison' 'Deuce'} {'Amy_Madison' 'Silver_Banshee'} {'Shimmer' 'New_Wave'} {'Scandal' 'Snapdragon'} {'Tala' 'Deuce'} {'Maxima' 'Star_Sapphire'} {'Magenta' 'Sun_Girl'} {'Professor_Padraic_Ratigan' 'Margaret_Love'} {'Bombshell' 'Lafety_Le_Fei'} {'Bombshell' 'Titania'} {'Amy_Madison' 'Animora'} {'Roulette' 'Sun_Girl'} {'Professor_Padraic_Ratigan' 'Deuce'} {'Golden_Glider' 'Lazara'} {'Doctor_Cyber' 'Unicron'} {'Lady_Shiva' 'Nyssa_Raatko'} {'Doctor_Cyber' 'Lazara'} {'Lady_Shiva' 'Trinity'} {'Scandal' 'Margaret_Love'} {'Spider_Girl' 'Tigress'} {'Evinlea' 'Tigress'} {'Maxima' 'Unicron'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Osira' 'Valentina'} {'Magenta' 'Queen_Of_Fables'} {'Devastation' 'Deuce'} {'Silver_Swan' 'Spider_Girl'} {'Saturn_Queen' 'Unicron'} {'Star_Sapphire' 'Sun_Girl'} {'Lady_Octopus' 'Titania'} {'Purgatori' 'Dr_Horrible'} {'Doctor_Cyber' 'White_Rabbit'} {'Mothergod' 'Cyborgirl'} {'King_Ghidorah' 'Abominatrix'} {'Unicron' 'Fury_Leika'} {'Genevieve_Savidge' 'Fake_Thomas_Jefferson'} {'Maxima' 'Hypnota'} {'Southpaw' 'Dr_Evil'} {'Cyborgirl' 'Saturn_Queen'} {'Talia_Al_Ghul' 'Lady_Octopus'} {'Lafety_Le_Fei' 'Lazara'} {'Margaret_Love' 'Emerald_Empress'} {'Typhoid_Mary' 'Osira'} {'Jewelee' 'Amazing_Grace'} {'Jinx' 'Jason_Kreis'} {'Shimmer' 'Talia_Al_Ghul'} {'Snapdragon' 'Devastation'} {'Madame_Rouge' 'Jinx'} {'Dead_Bowie' 'Maxima'} {'Decay' 'Mothergod'} {'Magpie' 'Shimmer'} {'Lady_Quark' 'Superwoman'} {'Shiv' 'Magpie'} {'Syndrome' 'Lady_Clay'} {'Ursa' 'Asbestos_Lady'} {'Silk_Fever' 'Evinlea'} {'Hypnota' 'Genevieve_Savidge'} {'Sun_Girl' 'Plastique'} {'Fury_Leika' 'Silk_Fever'} {'Spider_Girl' 'Mist'} {'Roulette' 'Silver_Swan'} {'Superwoman' 'Queen_Bee'} {'Lotso' 'The_Crimson_Ghost'} {'Eviless' 'Queen_Clea'} {'Titania' 'Rampage'} {'Yellowjacket' 'Lady_Quark'} {'Plastique' 'Poundcakes'} {'Zaladane' 'The_Lightning'} {'Prank' 'Syndrome'} {'Tala' 'Poison_Ivy'} {'Harley_Quinn' 'Lady_Death'} {'Lady_Death' 'Professor_Padraic_Ratigan'} {'Deuce' 'Magenta'} {'White_Rabbit' 'Roulette'} {'Tigress' 'Blue_Snowman'} {'Nyssa_Raatko' 'Zaladane'} {'Asbestos_Lady' 'Rad'} {'Bombshell' 'Tala'} {'Fake_Thomas_Jefferson' 'King_Ghidorah'} {'Dr_Horrible' 'Southpaw'} {'Poison_Ivy' 'Prank'} {'Evinlea' 'Dansen_Macabre'} {'The_Lightning' 'Jewelee'} {'Emerald_Empress' 'Trinity'} {'Mai_Shen' 'Yellowjacket'} {'Lashina' 'Scandal'} {'Lagomorph' 'Silver_Banshee'} {'Madame_Masque' 'Windfall'} {'Livewire' 'Madame_Masque'} {'Abominatrix' 'Snapdragon'} {'Duela_Dent' 'Mai_Shen'} {'Amy_Madison' 'Leather'} {'Silver_Banshee' 'Nyssa_Raatko'} {'Jason_Kreis' 'Bombshell'} {'Queen_Bee' 'Doctor_Cyber'} {'Rad' 'Shiv'} {'Coachwhip' 'Margaret_Love'} {'Golddigger' 'Lafety_Le_Fei'} {'The_Crimson_Ghost' 'Typhoid_Mary'} {'Scandal' 'Harley_Quinn'} {'Queen_Clea' 'Coachwhip'} {'Windfall' 'Fem_Paragon'} {'Trinity' 'Star_Sapphire'} {'Lazara' 'Dead_Bowie'} {'Mist' 'Ingra'} {'Lady_Clay' 'Black_Mamba'} {'Valentina' 'Princess_Python'} {'Poundcakes' 'Lagomorph'} {'Animora' 'Lashina'} {'Princess_Python' 'Madame_Rouge'} {'Gru' 'Livewire'} {'Dr_Evil' 'Duela_Dent'} {'Fem_Paragon' 'Golddigger'} {'Leather' 'Animora'} {'Amazing_Grace' 'Amy_Madison'} {'Queen_Of_Fables' 'Lotso'} {'Ingra' 'Eviless'} {'Rampage' 'Gru'} {'Black_Mamba' 'Tigress'} {'Professor_Padraic_Ratigan' 'Ursa'} {'Dansen_Macabre' 'Purgatori'} {'Blue_Snowman' 'Decay'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Snapdragon' 'Fake_Thomas_Jefferson'} {'Mephista' 'Dr_Horrible'} {'Mephista' 'Queen_Bee'} {'Duela_Dent' 'Fake_Thomas_Jefferson'} {'Blue_Snowman' 'Leather'} {'Poundcakes' 'Ursa'} {'Typhoid_Mary' 'Star_Sapphire'} {'Eviless' 'Ursa'} {'Trinity' 'Mothergod'} {'Blue_Snowman' 'Mai_Shen'} {'Duela_Dent' 'Queen_Bee'} {'Snapdragon' 'The_Lightning'} {'Eviless' 'Mothergod'} {'Gru' 'Bombshell'} {'Blue_Snowman' 'Evinlea'} {'Mephista' 'Jinx'} {'Snapdragon' 'Mai_Shen'} {'Devastation' 'Dr_Horrible'} {'Trinity' 'Ingra'} {'Titania' 'Queen_Bee'} {'Snapdragon' 'Valentina'} {'Eviless' 'Queen_Clea'} {'Gru' 'Professor_Padraic_Ratigan'} {'Blue_Snowman' 'Jinx'} {'Gru' 'Lafety_Le_Fei'} {'Roulette' 'Ursa'} {'Lady_Vic' 'Star_Sapphire'} {'Emerald_Empress' 'Bombshell'} {'Devastation' 'Mai_Shen'} {'Mephista' 'Lafety_Le_Fei'} {'Eviless' 'Fem_Paragon'} {'Blue_Snowman' 'Unicron'} {'Snapdragon' 'Lafety_Le_Fei'} {'Emerald_Empress' 'Mothergod'} {'Typhoid_Mary' 'Valentina'} {'Plastique' 'Jinx'} {'Gru' 'Leather'} {'Dead_Bowie' 'Leather'} {'Lady_Vic' 'The_Lightning'} {'Trinity' 'Margaret_Love'} {'Emerald_Empress' 'Queen_Clea'} {'Typhoid_Mary' 'Lafety_Le_Fei'} {'Devastation' 'Leather'} {'Titania' 'Lafety_Le_Fei'} {'Sun_Girl' 'Bombshell'} {'Dead_Bowie' 'Ursa'} {'Blue_Snowman' 'Queen_Clea'} {'Lady_Vic' 'Ursa'} {'Devastation' 'Professor_Padraic_Ratigan'} {'Gru' 'The_Lightning'} {'Superwoman' 'Mothergod'} {'Poundcakes' 'Ingra'} {'Trinity' 'The_Lightning'} {'Jason_Kreis' 'Fem_Paragon'} {'Lady_Vic' 'Mai_Shen'} {'New_Wave' 'Evinlea'} {'Gru' 'Typhoid_Mary'} {'Gru' 'Valentina'} {'Superwoman' 'Fem_Paragon'} {'Roulette' 'Queen_Bee'} {'Plastique' 'Dr_Horrible'} {'New_Wave' 'Fem_Paragon'} {'Trinity' 'Fem_Paragon'} {'Blue_Snowman' 'The_Lightning'} {'Duela_Dent' 'Unicron'} {'New_Wave' 'Mothergod'} {'Trinity' 'Bombshell'} {'Blue_Snowman' 'Valentina'} {'Gru' 'Ursa'} {'Roulette' 'Mothergod'} {'Gru' 'Mothergod'} {'Sun_Girl' 'Star_Sapphire'} {'Roulette' 'Unicron'} {'Mephista' 'Leather'} {'Devastation' 'Ursa'} {'Devastation' 'Mothergod'} {'Dead_Bowie' 'Margaret_Love'} {'Superwoman' 'Lafety_Le_Fei'} {'Eviless' 'Dr_Horrible'} {'Superwoman' 'Leather'} {'Devastation' 'Ingra'} {'Poundcakes' 'Evinlea'} {'Typhoid_Mary' 'Queen_Clea'} {'Eviless' 'Evinlea'} {'Jason_Kreis' 'Fake_Thomas_Jefferson'} {'Jason_Kreis' 'Professor_Padraic_Ratigan'} {'Superwoman' 'Professor_Padraic_Ratigan'} {'Typhoid_Mary' 'Unicron'} {'New_Wave' 'Leather'} {'Dead_Bowie' 'Jinx'} {'Titania' 'Bombshell'} {'Gru' 'Fake_Thomas_Jefferson'} {'Typhoid_Mary' 'Queen_Bee'} {'Duela_Dent' 'Bombshell'} {'Trinity' 'Jinx'} {'Sun_Girl' 'Jinx'} {'Eviless' 'Fake_Thomas_Jefferson'} {'Titania' 'The_Lightning'} {'Snapdragon' 'Margaret_Love'} {'Plastique' 'Leather'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Abominatrix' 'Osira'} {'Mist' 'Scandal'} {'Queen_Of_Fables' 'Golden_Glider'} {'Roulette' 'Leather'} {'Prank' 'Madame_Rouge'} {'Nyssa_Raatko' 'Mephista'} {'Yellowjacket' 'Lafety_Le_Fei'} {'Princess_Python' 'Typhoid_Mary'} {'Lady_Octopus' 'Queen_Of_Fables'} {'Leather' 'Superwoman'} {'Madame_Rouge' 'Shimmer'} {'Golddigger' 'Asbestos_Lady'} {'Coachwhip' 'Poison_Ivy'} {'Silver_Banshee' 'Jason_Kreis'} {'Tigress' 'Blue_Snowman'} {'Golden_Glider' 'Duela_Dent'} {'Lady_Death' 'Emerald_Empress'} {'Lagomorph' 'Doctor_Cyber'} {'Sun_Girl' 'Purgatori'} {'Animora' 'Silver_Swan'} {'Snapdragon' 'Windfall'} {'Gru' 'Devastation'} {'New_Wave' 'Syndrome'} {'Titania' 'Hypnota'} {'Shiv' 'Gru'} {'Unicron' 'Lady_Shiva'} {'Rad' 'Eviless'} {'Star_Sapphire' 'The_Crimson_Ghost'} {'Syndrome' 'Tala'} {'Ingra' 'Mothergod'} {'Lashina' 'Lady_Vic'} {'Black_Mamba' 'Professor_Padraic_Ratigan'} {'Mephista' 'Dr_Evil'} {'Silver_Swan' 'Evinlea'} {'Doctor_Cyber' 'Queen_Bee'} {'Queen_Bee' 'Nyssa_Raatko'} {'Windfall' 'Shiv'} {'Valentina' 'Lady_Octopus'} {'Livewire' 'The_Lightning'} {'Magenta' 'Silver_Banshee'} {'Lady_Vic' 'Star_Sapphire'} {'Trinity' 'White_Rabbit'} {'Cyborgirl' 'Deuce'} {'Saturn_Queen' 'Dead_Bowie'} {'Magpie' 'Roulette'} {'Osira' 'Valentina'} {'White_Rabbit' 'Harley_Quinn'} {'Hypnota' 'Lady_Death'} {'King_Ghidorah' 'Princess_Python'} {'Queen_Clea' 'Lady_Clay'} {'Shimmer' 'Saturn_Queen'} {'Superwoman' 'Tigress'} {'Evinlea' 'Genevieve_Savidge'} {'Dr_Evil' 'Southpaw'} {'Madame_Masque' 'Lazara'} {'Poison_Ivy' 'Talia_Al_Ghul'} {'Southpaw' 'Abominatrix'} {'Lazara' 'Rad'} {'Lady_Quark' 'Titania'} {'Scandal' 'Spider_Girl'} {'Maxima' 'Animora'} {'Asbestos_Lady' 'Mai_Shen'} {'Purgatori' 'King_Ghidorah'} {'Deuce' 'Coachwhip'} {'Eviless' 'Lashina'} {'Dead_Bowie' 'Amazing_Grace'} {'Harley_Quinn' 'Livewire'} {'Jinx' 'Trinity'} {'Plastique' 'Poundcakes'} {'Amy_Madison' 'Queen_Clea'} {'Blue_Snowman' 'Golddigger'} {'Lotso' 'Lady_Quark'} {'Typhoid_Mary' 'Yellowjacket'} {'Poundcakes' 'Ursa'} {'Silk_Fever' 'Cyborgirl'} {'The_Lightning' 'Ingra'} {'Fem_Paragon' 'Amy_Madison'} {'Mothergod' 'Snapdragon'} {'Dr_Horrible' 'Fury_Leika'} {'Tala' 'Unicron'} {'Talia_Al_Ghul' 'Mist'} {'Spider_Girl' 'Magpie'} {'Jewelee' 'Silk_Fever'} {'Fury_Leika' 'Fem_Paragon'} {'The_Crimson_Ghost' 'Dr_Horrible'} {'Lafety_Le_Fei' 'Maxima'} {'Amazing_Grace' 'Decay'} {'Genevieve_Savidge' 'Plastique'} {'Mai_Shen' 'Lotso'} {'Lady_Clay' 'Magenta'} {'Devastation' 'Madame_Masque'} {'Margaret_Love' 'Black_Mamba'} {'Emerald_Empress' 'New_Wave'} {'Decay' 'Jewelee'} {'Zaladane' 'Margaret_Love'} {'Ursa' 'Jinx'} {'Professor_Padraic_Ratigan' 'Prank'} {'Lady_Shiva' 'Lagomorph'} {'Jason_Kreis' 'Zaladane'} {'Duela_Dent' 'Sun_Girl'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Animora' 'Typhoid_Mary'} {'Mothergod' 'Cyborgirl'} {'Emerald_Empress' 'Coachwhip'} {'Dansen_Macabre' 'King_Ghidorah'} {'Emerald_Empress' 'Lagomorph'} {'Zaladane' 'Professor_Padraic_Ratigan'} {'Lady_Vic' 'Cyborgirl'} {'Saturn_Queen' 'Coachwhip'} {'Silver_Banshee' 'Mai_Shen'} {'The_Lightning' 'Windfall'} {'Talia_Al_Ghul' 'Coachwhip'} {'Lady_Death' 'Yellowjacket'} {'Saturn_Queen' 'Mist'} {'Lady_Vic' 'Sun_Girl'} {'Animora' 'Windfall'} {'Emerald_Empress' 'Princess_Python'} {'Talia_Al_Ghul' 'Evinlea'} {'Purgatori' 'Evinlea'} {'Lady_Vic' 'Mai_Shen'} {'Talia_Al_Ghul' 'Sun_Girl'} {'Saturn_Queen' 'King_Ghidorah'} {'Zaladane' 'Silk_Fever'} {'Purgatori' 'Mai_Shen'} {'Animora' 'Princess_Python'} {'Lady_Vic' 'Silk_Fever'} {'Magenta' 'Sun_Girl'} {'Animora' 'Sun_Girl'} {'Talia_Al_Ghul' 'Valentina'} {'Saturn_Queen' 'Silk_Fever'} {'Mothergod' 'Lady_Shiva'} {'Mothergod' 'Harley_Quinn'} {'Prank' 'Typhoid_Mary'} {'Prank' 'Sun_Girl'} {'Prank' 'Cyborgirl'} {'Prank' 'Lagomorph'} {'Lady_Vic' 'Mist'} {'Shiv' 'Mist'} {'Abominatrix' 'Mai_Shen'} {'Abominatrix' 'Sun_Girl'} {'Silver_Banshee' 'Princess_Python'} {'Purgatori' 'Black_Mamba'} {'Silver_Banshee' 'Windfall'} {'Shiv' 'Osira'} {'Talia_Al_Ghul' 'Mist'} {'Dansen_Macabre' 'Typhoid_Mary'} {'Golddigger' 'Black_Mamba'} {'Shiv' 'Dr_Horrible'} {'Silver_Banshee' 'Osira'} {'Prank' 'Dr_Horrible'} {'The_Lightning' 'Professor_Padraic_Ratigan'} {'Purgatori' 'Typhoid_Mary'} {'Purgatori' 'Mist'} {'Magpie' 'Princess_Python'} {'Magenta' 'Cyborgirl'} {'Silver_Banshee' 'Lady_Shiva'} {'Zaladane' 'Coachwhip'} {'The_Lightning' 'Mist'} {'Magpie' 'Dr_Horrible'} {'Mothergod' 'Lagomorph'} {'Lady_Death' 'Lagomorph'} {'Shiv' 'Silk_Fever'} {'Lady_Octopus' 'Professor_Padraic_Ratigan'} {'Saturn_Queen' 'Sun_Girl'} {'Silver_Banshee' 'Typhoid_Mary'} {'Magpie' 'Harley_Quinn'} {'Emerald_Empress' 'Osira'} {'Saturn_Queen' 'Evinlea'} {'Prank' 'Princess_Python'} {'Lady_Octopus' 'Lady_Shiva'} {'Prank' 'Silk_Fever'} {'Abominatrix' 'Black_Mamba'} {'The_Lightning' 'Valentina'} {'Mothergod' 'Mai_Shen'} {'Lady_Vic' 'Professor_Padraic_Ratigan'} {'Lady_Vic' 'Dr_Horrible'} {'Abominatrix' 'Mist'} {'Magenta' 'Princess_Python'} {'Purgatori' 'Lagomorph'} {'Lady_Death' 'Mai_Shen'} {'Abominatrix' 'Silk_Fever'} {'The_Lightning' 'Black_Mamba'} {'Magenta' 'Yellowjacket'} {'Golddigger' 'Evinlea'} {'Prank' 'Professor_Padraic_Ratigan'} {'Abominatrix' 'Valentina'} {'Magpie' 'Typhoid_Mary'} {'Golddigger' 'King_Ghidorah'} {'Animora' 'Cyborgirl'} {'Magpie' 'Valentina'} {'Talia_Al_Ghul' 'Yellowjacket'} {'Magenta' 'Typhoid_Mary'} {'Lady_Death' 'Black_Mamba'} {'Dansen_Macabre' 'Dr_Horrible'} {'Fake_Thomas_Jefferson' 'Princess_Python'} {'The_Lightning' 'Dr_Horrible'} {'Zaladane' 'Mist'} {'Lady_Death' 'Valentina'} {'Fake_Thomas_Jefferson' 'Lagomorph'} {'Emerald_Empress' 'Cyborgirl'} {'Animora' 'King_Ghidorah'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Magpie' 'Blue_Snowman'} {'Magpie' 'Lafety_Le_Fei'} {'Magpie' 'Lady_Quark'} {'Magpie' 'Lady_Shiva'} {'Magpie' 'The_Crimson_Ghost'} {'Magpie' 'Purgatori'} {'Magpie' 'Titania'} {'Magpie' 'Nyssa_Raatko'} {'Magpie' 'Mephista'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Banshee' 'Titania'} {'Zaladane' 'Silk_Fever'} {'Magpie' 'Dead_Bowie'} {'Magpie' 'Animora'} {'Saturn_Queen' 'Jinx'} {'Margaret_Love' 'White_Rabbit'} {'Zaladane' 'Lazara'} {'Snapdragon' 'Jewelee'} {'Queen_Bee' 'Silk_Fever'} {'Spider_Girl' 'Silver_Swan'} {'Silver_Banshee' 'Lazara'} {'Decay' 'Silk_Fever'} {'Magpie' 'White_Rabbit'} {'Saturn_Queen' 'Fem_Paragon'} {'Spider_Girl' 'Dr_Evil'} {'Decay' 'Lagomorph'} {'Rampage' 'Titania'} {'Lashina' 'Dead_Bowie'} {'Spider_Girl' 'Queen_Of_Fables'} {'Lady_Death' 'Silk_Fever'} {'Lady_Death' 'Jewelee'} {'Shimmer' 'Fem_Paragon'} {'Lashina' 'Evinlea'} {'Magpie' 'Dr_Horrible'} {'Lady_Death' 'Cyborgirl'} {'Asbestos_Lady' 'Evinlea'} {'Rampage' 'Sun_Girl'} {'Silver_Banshee' 'Jewelee'} {'Bombshell' 'White_Rabbit'} {'Saturn_Queen' 'Dr_Evil'} {'Silver_Banshee' 'Animora'} {'Harley_Quinn' 'Silver_Swan'} {'Lafety_Le_Fei' 'Fem_Paragon'} {'King_Ghidorah' 'Silk_Fever'} {'Lashina' 'Lady_Shiva'} {'Lashina' 'Lagomorph'} {'Zaladane' 'Lady_Shiva'} {'Zaladane' 'Animora'} {'Harley_Quinn' 'Cyborgirl'} {'Devastation' 'Lagomorph'} {'Snapdragon' 'Cyborgirl'} {'Snapdragon' 'Livewire'} {'Hypnota' 'Silk_Fever'} {'Bombshell' 'Silver_Swan'} {'Margaret_Love' 'Jewelee'} {'Hypnota' 'Queen_Of_Fables'} {'Saturn_Queen' 'Lazara'} {'Lafety_Le_Fei' 'Lady_Shiva'} {'Spider_Girl' 'Fem_Paragon'} {'Decay' 'Dead_Bowie'} {'Harley_Quinn' 'Jewelee'} {'Decay' 'Titania'} {'Bombshell' 'Sun_Girl'} {'Hypnota' 'Dr_Horrible'} {'Queen_Bee' 'White_Rabbit'} {'Decay' 'Dr_Horrible'} {'Asbestos_Lady' 'White_Rabbit'} {'Lafety_Le_Fei' 'Titania'} {'Harley_Quinn' 'Queen_Of_Fables'} {'Queen_Bee' 'Dead_Bowie'} {'Devastation' 'White_Rabbit'} {'Bombshell' 'Cyborgirl'} {'Devastation' 'New_Wave'} {'King_Ghidorah' 'Jinx'} {'Margaret_Love' 'Dead_Bowie'} {'Rampage' 'Dead_Bowie'} {'Queen_Bee' 'Titania'} {'Queen_Bee' 'Jewelee'} {'Lady_Death' 'Dr_Evil'} {'Magpie' 'Lazara'} {'Silver_Banshee' 'Livewire'} {'Decay' 'Lazara'} {'Zaladane' 'Dr_Evil'} {'Lashina' 'Titania'} {'Hypnota' 'Jinx'} {'Spider_Girl' 'Dr_Horrible'} {'Shimmer' 'Silver_Swan'} {'Margaret_Love' 'New_Wave'} {'Decay' 'Evinlea'} {'Magpie' 'Cyborgirl'} {'King_Ghidorah' 'Queen_Of_Fables'} {'Rampage' 'Silver_Swan'} {'Bombshell' 'Animora'} {'Harley_Quinn' 'Sun_Girl'} {'Magpie' 'Jewelee'} {'Lafety_Le_Fei' 'Livewire'} {'King_Ghidorah' 'Dr_Evil'} {'Lashina' 'White_Rabbit'} {'Shimmer' 'Queen_Of_Fables'} {'Asbestos_Lady' 'Dr_Horrible'} {'Hypnota' 'Fem_Paragon'} {'Lafety_Le_Fei' 'Dr_Evil'} {'Spider_Girl' 'Livewire'} {'Magpie' 'Lady_Shiva'} {'Devastation' 'Shimmer'} {'Lady_Death' 'Dr_Horrible'} {'King_Ghidorah' 'Silver_Swan'} {'Asbestos_Lady' 'Livewire'} {'Spider_Girl' 'Jewelee'} {'Silver_Banshee' 'Sun_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Madame_Masque' 'Rampage'} {'Abominatrix' 'Superwoman'} {'Silver_Banshee' 'Zaladane'} {'Abominatrix' 'Shimmer'} {'Fem_Paragon' 'Rampage'} {'Valentina' 'Star_Sapphire'} {'Titania' 'Lazara'} {'Dr_Horrible' 'Professor_Padraic_Ratigan'} {'Fem_Paragon' 'Livewire'} {'Golden_Glider' 'Decay'} {'Duela_Dent' 'Superwoman'} {'Valentina' 'Zaladane'} {'Valentina' 'Amazing_Grace'} {'Golddigger' 'Madame_Rouge'} {'Dr_Horrible' 'Star_Sapphire'} {'Bombshell' 'Rad'} {'Queen_Clea' 'Purgatori'} {'Valentina' 'Lady_Vic'} {'Jewelee' 'Madame_Rouge'} {'Harley_Quinn' 'Madame_Rouge'} {'Professor_Padraic_Ratigan' 'Purgatori'} {'Professor_Padraic_Ratigan' 'Saturn_Queen'} {'Golden_Glider' 'Saturn_Queen'} {'Genevieve_Savidge' 'Queen_Bee'} {'Sun_Girl' 'Amazing_Grace'} {'Sun_Girl' 'Dansen_Macabre'} {'Golddigger' 'Amazing_Grace'} {'Queen_Clea' 'Madame_Rouge'} {'Sun_Girl' 'Star_Sapphire'} {'Silver_Banshee' 'Superwoman'} {'The_Lightning' 'Purgatori'} {'Golddigger' 'Lazara'} {'Bombshell' 'Silk_Fever'} {'Queen_Of_Fables' 'Rad'} {'Harley_Quinn' 'Lady_Vic'} {'Bombshell' 'Decay'} {'Golden_Glider' 'Star_Sapphire'} {'Abominatrix' 'Madame_Rouge'} {'Jewelee' 'Maxima'} {'Mist' 'Spider_Girl'} {'The_Lightning' 'Saturn_Queen'} {'Golddigger' 'Maxima'} {'Golddigger' 'Spider_Girl'} {'Mist' 'Lazara'} {'Sun_Girl' 'Shimmer'} {'Fem_Paragon' 'Queen_Bee'} {'Sun_Girl' 'Spider_Girl'} {'Duela_Dent' 'Maxima'} {'Silver_Banshee' 'Livewire'} {'The_Lightning' 'Superwoman'} {'Dr_Horrible' 'Silk_Fever'} {'Sun_Girl' 'Rad'} {'Titania' 'Decay'} {'Abominatrix' 'Saturn_Queen'} {'Titania' 'Lady_Death'} {'The_Lightning' 'Silk_Fever'} {'Jewelee' 'Silk_Fever'} {'Golden_Glider' 'Lazara'} {'Queen_Of_Fables' 'Star_Sapphire'} {'Jewelee' 'Zaladane'} {'Genevieve_Savidge' 'Lazara'} {'Sun_Girl' 'Lady_Death'} {'Genevieve_Savidge' 'Purgatori'} {'Golddigger' 'Zaladane'} {'Madame_Masque' 'Zaladane'} {'Golden_Glider' 'Rampage'} {'Queen_Clea' 'Decay'} {'Golddigger' 'Silk_Fever'} {'Queen_Of_Fables' 'Saturn_Queen'} {'Madame_Masque' 'Dansen_Macabre'} {'Fem_Paragon' 'Shimmer'} {'The_Lightning' 'Queen_Bee'} {'Queen_Clea' 'Silk_Fever'} {'Titania' 'Rad'} {'Professor_Padraic_Ratigan' 'Maxima'} {'Madame_Masque' 'Queen_Bee'} {'Queen_Of_Fables' 'Dansen_Macabre'} {'Golden_Glider' 'Rad'} {'Queen_Of_Fables' 'Lazara'} {'Sun_Girl' 'Silk_Fever'} {'Jewelee' 'Superwoman'} {'Queen_Clea' 'Star_Sapphire'} {'Mist' 'Maxima'} {'Fem_Paragon' 'Purgatori'} {'Titania' 'Maxima'} {'Jewelee' 'Saturn_Queen'} {'Genevieve_Savidge' 'Rad'} {'Jewelee' 'Rampage'} {'Bombshell' 'Lazara'} {'Mist' 'Lady_Death'} {'Harley_Quinn' 'Rampage'} {'Abominatrix' 'Lazara'} {'Genevieve_Savidge' 'Zaladane'} {'Dr_Horrible' 'Amazing_Grace'} {'Titania' 'Shimmer'} {'Professor_Padraic_Ratigan' 'Queen_Bee'} {'Dr_Horrible' 'Zaladane'} {'Sun_Girl' 'Purgatori'} {'Valentina' 'Dansen_Macabre'} {'Silver_Banshee' 'Lady_Vic'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Yellowjacket' 'Margaret_Love'} {'Lady_Vic' 'Evinlea'} {'Princess_Python' 'Amy_Madison'} {'Tigress' 'Evinlea'} {'Mist' 'Evinlea'} {'Roulette' 'Silver_Banshee'} {'Lady_Shiva' 'Cyborgirl'} {'Madame_Rouge' 'Decay'} {'Lady_Vic' 'Cyborgirl'} {'Titania' 'Madame_Masque'} {'Unicron' 'Amy_Madison'} {'Unicron' 'Madame_Masque'} {'Osira' 'Decay'} {'Titania' 'Decay'} {'Osira' 'Margaret_Love'} {'Lady_Shiva' 'Poundcakes'} {'Fake_Thomas_Jefferson' 'Black_Mamba'} {'Mist' 'Genevieve_Savidge'} {'Lady_Shiva' 'Duela_Dent'} {'Mist' 'Maxima'} {'Mai_Shen' 'Amazing_Grace'} {'Mai_Shen' 'Black_Mamba'} {'Yellowjacket' 'Black_Mamba'} {'Princess_Python' 'Silver_Banshee'} {'Queen_Bee' 'Hypnota'} {'Madame_Rouge' 'Duela_Dent'} {'Lady_Vic' 'Hypnota'} {'Queen_Of_Fables' 'Poundcakes'} {'Lady_Death' 'Purgatori'} {'Lady_Death' 'Spider_Girl'} {'Plastique' 'Trinity'} {'Tigress' 'Genevieve_Savidge'} {'Titania' 'Silver_Banshee'} {'Tigress' 'Amazing_Grace'} {'Plastique' 'Duela_Dent'} {'Lady_Shiva' 'Madame_Masque'} {'Yellowjacket' 'Evinlea'} {'Lady_Death' 'Margaret_Love'} {'Titania' 'Amy_Madison'} {'Ursa' 'Poundcakes'} {'Madame_Rouge' 'Maxima'} {'Lady_Death' 'Southpaw'} {'Mothergod' 'Hypnota'} {'Princess_Python' 'Margaret_Love'} {'Mai_Shen' 'Duela_Dent'} {'Ursa' 'Duela_Dent'} {'Mist' 'Black_Mamba'} {'Mist' 'Nyssa_Raatko'} {'Plastique' 'Southpaw'} {'Lady_Vic' 'Nyssa_Raatko'} {'Queen_Bee' 'Jason_Kreis'} {'Plastique' 'Decay'} {'Unicron' 'Margaret_Love'} {'Prank' 'Spider_Girl'} {'Ursa' 'Madame_Masque'} {'Prank' 'Genevieve_Savidge'} {'Plastique' 'Spider_Girl'} {'Fake_Thomas_Jefferson' 'Hypnota'} {'Queen_Bee' 'Evinlea'} {'Ursa' 'Nyssa_Raatko'} {'Queen_Of_Fables' 'Nyssa_Raatko'} {'Tigress' 'Purgatori'} {'Princess_Python' 'Jason_Kreis'} {'Madame_Rouge' 'Purgatori'} {'Queen_Bee' 'Southpaw'} {'Madame_Rouge' 'Amy_Madison'} {'Queen_Of_Fables' 'Margaret_Love'} {'Queen_Bee' 'Duela_Dent'} {'Madame_Rouge' 'Genevieve_Savidge'} {'Unicron' 'Cyborgirl'} {'Ursa' 'Evinlea'} {'Titania' 'Maxima'} {'Mothergod' 'Trinity'} {'Princess_Python' 'Purgatori'} {'Ursa' 'Silver_Banshee'} {'Queen_Of_Fables' 'Amazing_Grace'} {'Fake_Thomas_Jefferson' 'Amy_Madison'} {'Queen_Bee' 'Amazing_Grace'} {'Osira' 'Jason_Kreis'} {'Tigress' 'Duela_Dent'} {'Queen_Of_Fables' 'Black_Mamba'} {'Osira' 'Southpaw'} {'Yellowjacket' 'Plastique'} {'Lady_Death' 'Duela_Dent'} {'Mai_Shen' 'Margaret_Love'} {'Mothergod' 'Genevieve_Savidge'} {'Lady_Shiva' 'Hypnota'} {'Roulette' 'Cyborgirl'} {'Tigress' 'Trinity'} {'Ursa' 'Cyborgirl'} {'Mothergod' 'Poundcakes'} {'Fake_Thomas_Jefferson' 'Amazing_Grace'} {'Madame_Rouge' 'Margaret_Love'} {'Unicron' 'Evinlea'} {'Plastique' 'Amy_Madison'} {'Lady_Death' 'Hypnota'} {'Roulette' 'Black_Mamba'} {'Unicron' 'Amazing_Grace'} {'Lady_Vic' 'Maxima'} {'Prank' 'Madame_Masque'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Genevieve_Savidge' 'Queen_Of_Fables'} {'Genevieve_Savidge' 'Spider_Girl'} {'Gru' 'Trinity'} {'Genevieve_Savidge' 'Trinity'} {'Gru' 'Spider_Girl'} {'Unicron' 'Queen_Of_Fables'} {'Unicron' 'Trinity'} {'Unicron' 'Spider_Girl'} {'Gru' 'Queen_Of_Fables'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Magpie' 'White_Rabbit'} {'Jinx' 'Silk_Fever'} {'Golden_Glider' 'Plastique'} {'Queen_Bee' 'Mist'} {'Jinx' 'Valentina'} {'Princess_Python' 'Lady_Quark'} {'Golddigger' 'White_Rabbit'} {'Golddigger' 'Mist'} {'Poison_Ivy' 'Purgatori'} {'The_Crimson_Ghost' 'Osira'} {'Queen_Bee' 'Yellowjacket'} {'Poundcakes' 'Lady_Death'} {'Golden_Glider' 'White_Rabbit'} {'Lady_Shiva' 'Osira'} {'Margaret_Love' 'Lady_Death'} {'Magpie' 'Lazara'} {'Queen_Bee' 'Ursa'} {'Poundcakes' 'Harley_Quinn'} {'Leather' 'Lady_Quark'} {'Rad' 'Scandal'} {'Golddigger' 'Osira'} {'Magpie' 'Mist'} {'Magpie' 'Jinx'} {'Leather' 'Lazara'} {'Snapdragon' 'King_Ghidorah'} {'Maxima' 'King_Ghidorah'} {'Magpie' 'Spider_Girl'} {'Snapdragon' 'Harley_Quinn'} {'Poundcakes' 'Livewire'} {'Snapdragon' 'Gru'} {'Jinx' 'Spider_Girl'} {'Rad' 'Gru'} {'Jinx' 'Mist'} {'The_Crimson_Ghost' 'Valentina'} {'The_Crimson_Ghost' 'Livewire'} {'New_Wave' 'Plastique'} {'Princess_Python' 'Deuce'} {'Snapdragon' 'Spider_Girl'} {'The_Lightning' 'Mist'} {'Ingra' 'Jason_Kreis'} {'Golden_Glider' 'Silk_Fever'} {'New_Wave' 'Mist'} {'Poison_Ivy' 'Silk_Fever'} {'Jewelee' 'White_Rabbit'} {'Golddigger' 'Lady_Death'} {'Margaret_Love' 'Jason_Kreis'} {'Poison_Ivy' 'Mist'} {'Margaret_Love' 'Yellowjacket'} {'Rampage' 'Jason_Kreis'} {'Maxima' 'Spider_Girl'} {'Rampage' 'Scandal'} {'Rampage' 'Lady_Quark'} {'New_Wave' 'White_Rabbit'} {'Lady_Shiva' 'Spider_Girl'} {'Lady_Shiva' 'Purgatori'} {'Poison_Ivy' 'Valentina'} {'Jewelee' 'Lady_Death'} {'Ingra' 'Harley_Quinn'} {'Princess_Python' 'Yellowjacket'} {'Lady_Shiva' 'Deuce'} {'Jewelee' 'Lady_Quark'} {'Rad' 'Lazara'} {'Rad' 'Osira'} {'Maxima' 'Scandal'} {'The_Lightning' 'Yellowjacket'} {'Magpie' 'Jason_Kreis'} {'Queen_Bee' 'Purgatori'} {'Princess_Python' 'Ursa'} {'New_Wave' 'Deuce'} {'Rampage' 'Ursa'} {'The_Crimson_Ghost' 'Lazara'} {'Magpie' 'King_Ghidorah'} {'Maxima' 'Mist'} {'Ingra' 'Purgatori'} {'Ingra' 'Scandal'} {'Golden_Glider' 'Deuce'} {'Poison_Ivy' 'Plastique'} {'Rad' 'Silk_Fever'} {'Jewelee' 'King_Ghidorah'} {'Queen_Bee' 'Scandal'} {'Golddigger' 'Livewire'} {'Maxima' 'Ursa'} {'Leather' 'Mist'} {'The_Lightning' 'Deuce'} {'Golddigger' 'Purgatori'} {'New_Wave' 'Gru'} {'Lady_Shiva' 'Plastique'} {'Leather' 'Spider_Girl'} {'Poison_Ivy' 'King_Ghidorah'} {'Golddigger' 'Yellowjacket'} {'Margaret_Love' 'Spider_Girl'} {'Ingra' 'Lady_Death'} {'Lady_Shiva' 'Silk_Fever'} {'Margaret_Love' 'Mist'} {'Jinx' 'White_Rabbit'} {'Ingra' 'Spider_Girl'} {'Maxima' 'Harley_Quinn'} {'Lady_Shiva' 'Harley_Quinn'} {'Poison_Ivy' 'Spider_Girl'} {'The_Crimson_Ghost' 'King_Ghidorah'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'The_Lightning' 'Saturn_Queen'} {'The_Lightning' 'Tigress'} {'Princess_Python' 'Superwoman'} {'Princess_Python' 'Tigress'} {'The_Lightning' 'Black_Mamba'} {'The_Lightning' 'Osira'} {'Princess_Python' 'Osira'} {'Princess_Python' 'Saturn_Queen'} {'Princess_Python' 'Black_Mamba'} {'The_Lightning' 'Superwoman'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Decay' 'Typhoid_Mary'} {'Saturn_Queen' 'Silver_Banshee'} {'Golden_Glider' 'The_Lightning'} {'Blue_Snowman' 'Margaret_Love'} {'Amazing_Grace' 'Magpie'} {'Spider_Girl' 'Genevieve_Savidge'} {'Princess_Python' 'Bombshell'} {'Roulette' 'Golddigger'} {'Syndrome' 'Silk_Fever'} {'Roulette' 'Margaret_Love'} {'Syndrome' 'Lady_Clay'} {'Prank' 'Jewelee'} {'Plastique' 'Magenta'} {'Trinity' 'Nyssa_Raatko'} {'Golden_Glider' 'Lafety_Le_Fei'} {'Spider_Girl' 'Jewelee'} {'Queen_Clea' 'Magenta'} {'Roulette' 'Typhoid_Mary'} {'Poundcakes' 'Silk_Fever'} {'Prank' 'Typhoid_Mary'} {'Amy_Madison' 'Titania'} {'Poundcakes' 'Magenta'} {'Syndrome' 'Rad'} {'Ursa' 'Genevieve_Savidge'} {'Blue_Snowman' 'Nyssa_Raatko'} {'Trinity' 'Margaret_Love'} {'Madame_Masque' 'Magpie'} {'Amy_Madison' 'Margaret_Love'} {'Amy_Madison' 'Genevieve_Savidge'} {'Saturn_Queen' 'Lafety_Le_Fei'} {'Plastique' 'Jewelee'} {'Blue_Snowman' 'Genevieve_Savidge'} {'Amy_Madison' 'Silver_Banshee'} {'Amazing_Grace' 'Lady_Death'} {'Princess_Python' 'Sun_Girl'} {'Blue_Snowman' 'Jewelee'} {'Blue_Snowman' 'Rad'} {'Queen_Of_Fables' 'Magenta'} {'Amy_Madison' 'Lady_Death'} {'Madame_Masque' 'The_Lightning'} {'Unicron' 'Lady_Clay'} {'Trinity' 'Lafety_Le_Fei'} {'Decay' 'Lady_Death'} {'Princess_Python' 'Nyssa_Raatko'} {'Trinity' 'Leather'} {'Lotso' 'Leather'} {'Amazing_Grace' 'Golddigger'} {'Madame_Masque' 'Leather'} {'Plastique' 'Silk_Fever'} {'Decay' 'Silk_Fever'} {'Lotso' 'Queen_Bee'} {'Amy_Madison' 'Nyssa_Raatko'} {'Prank' 'Magenta'} {'Queen_Clea' 'Magpie'} {'Queen_Of_Fables' 'Lafety_Le_Fei'} {'Trinity' 'Magenta'} {'Unicron' 'Bombshell'} {'Ursa' 'Sun_Girl'} {'Blue_Snowman' 'Typhoid_Mary'} {'Amazing_Grace' 'Lafety_Le_Fei'} {'Madame_Masque' 'Silver_Banshee'} {'Spider_Girl' 'Typhoid_Mary'} {'Ursa' 'Silk_Fever'} {'Poundcakes' 'Jewelee'} {'Queen_Of_Fables' 'Golddigger'} {'Unicron' 'Genevieve_Savidge'} {'Prank' 'Nyssa_Raatko'} {'Amy_Madison' 'The_Lightning'} {'Saturn_Queen' 'Silk_Fever'} {'Amy_Madison' 'Lafety_Le_Fei'} {'Roulette' 'Sun_Girl'} {'Ursa' 'Magpie'} {'Decay' 'Leather'} {'Golden_Glider' 'Lady_Death'} {'Queen_Clea' 'Leather'} {'Trinity' 'Bombshell'} {'Ursa' 'Lady_Clay'} {'Golden_Glider' 'Typhoid_Mary'} {'Trinity' 'Genevieve_Savidge'} {'Roulette' 'Leather'} {'Ursa' 'Rad'} {'Queen_Of_Fables' 'Genevieve_Savidge'} {'Roulette' 'Silver_Banshee'} {'Plastique' 'Margaret_Love'} {'Syndrome' 'Genevieve_Savidge'} {'Syndrome' 'Silver_Banshee'} {'Golden_Glider' 'Silk_Fever'} {'Prank' 'Titania'} {'Golden_Glider' 'Nyssa_Raatko'} {'Amy_Madison' 'Silk_Fever'} {'Trinity' 'Golddigger'} {'Plastique' 'Lady_Clay'} {'Amazing_Grace' 'Queen_Bee'} {'Unicron' 'The_Lightning'} {'Poundcakes' 'Bombshell'} {'Madame_Masque' 'Lafety_Le_Fei'} {'Saturn_Queen' 'Margaret_Love'} {'Princess_Python' 'Queen_Bee'} {'Ursa' 'Jewelee'} {'Queen_Of_Fables' 'Titania'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lady_Quark' 'Madame_Masque'} {'Coachwhip' 'Lady_Quark'} {'Lady_Clay' 'Coachwhip'} {'Madame_Masque' 'Southpaw'} {'Talia_Al_Ghul' 'Lady_Clay'} {'Southpaw' 'Talia_Al_Ghul'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Gru' 'Prank'} {'Lady_Shiva' 'Spider_Girl'} {'Gru' 'Spider_Girl'} {'Lady_Shiva' 'Prank'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Bee' 'Professor_Padraic_Ratigan'} {'Lagomorph' 'Gru'} {'White_Rabbit' 'Zaladane'} {'Lagomorph' 'Madame_Masque'} {'Unicron' 'Lady_Quark'} {'Unicron' 'Zaladane'} {'Saturn_Queen' 'Fake_Thomas_Jefferson'} {'Mephista' 'Professor_Padraic_Ratigan'} {'Silver_Swan' 'Madame_Rouge'} {'Mephista' 'Lafety_Le_Fei'} {'Lashina' 'Hypnota'} {'Saturn_Queen' 'Hypnota'} {'Golden_Glider' 'Fake_Thomas_Jefferson'} {'Madame_Masque' 'Typhoid_Mary'} {'Black_Mamba' 'Plastique'} {'Lagomorph' 'Rampage'} {'Tala' 'Prank'} {'Black_Mamba' 'Animora'} {'Queen_Bee' 'Hypnota'} {'Black_Mamba' 'Rampage'} {'Lady_Vic' 'Hypnota'} {'Mephista' 'Gru'} {'Roulette' 'Superwoman'} {'Unicron' 'Bombshell'} {'Southpaw' 'Madame_Rouge'} {'Queen_Bee' 'Zaladane'} {'Black_Mamba' 'Golddigger'} {'Deuce' 'Bombshell'} {'Southpaw' 'Rampage'} {'Queen_Bee' 'Madame_Rouge'} {'Lady_Vic' 'Lafety_Le_Fei'} {'Lashina' 'Typhoid_Mary'} {'White_Rabbit' 'Dansen_Macabre'} {'Mephista' 'Rampage'} {'Deuce' 'Superwoman'} {'Madame_Masque' 'Queen_Of_Fables'} {'Trinity' 'Fake_Thomas_Jefferson'} {'Roulette' 'Valentina'} {'Silver_Swan' 'Lady_Quark'} {'The_Lightning' 'Bombshell'} {'Lady_Vic' 'Zaladane'} {'The_Lightning' 'Animora'} {'Queen_Bee' 'Fake_Thomas_Jefferson'} {'Silver_Swan' 'Plastique'} {'Lagomorph' 'Professor_Padraic_Ratigan'} {'Tala' 'Animora'} {'Mephista' 'Animora'} {'Madame_Masque' 'Superwoman'} {'Tala' 'Typhoid_Mary'} {'Mephista' 'Valentina'} {'Roulette' 'Zaladane'} {'Southpaw' 'Professor_Padraic_Ratigan'} {'The_Lightning' 'Superwoman'} {'Trinity' 'Plastique'} {'Golden_Glider' 'Madame_Rouge'} {'Titania' 'Rampage'} {'Deuce' 'Professor_Padraic_Ratigan'} {'Deuce' 'Lady_Quark'} {'Madame_Masque' 'Golddigger'} {'Tala' 'Bombshell'} {'Madame_Masque' 'Prank'} {'Deuce' 'Madame_Rouge'} {'Mephista' 'Dansen_Macabre'} {'Lagomorph' 'Mai_Shen'} {'Southpaw' 'Gru'} {'Silver_Swan' 'Typhoid_Mary'} {'Saturn_Queen' 'Superwoman'} {'White_Rabbit' 'Queen_Of_Fables'} {'Golden_Glider' 'Mai_Shen'} {'Golden_Glider' 'Lafety_Le_Fei'} {'The_Lightning' 'Gru'} {'Lady_Vic' 'Golddigger'} {'Madame_Masque' 'Fake_Thomas_Jefferson'} {'King_Ghidorah' 'Prank'} {'Black_Mamba' 'Fake_Thomas_Jefferson'} {'Trinity' 'Lady_Quark'} {'Tala' 'Madame_Rouge'} {'King_Ghidorah' 'Hypnota'} {'Tala' 'Plastique'} {'Golden_Glider' 'Gru'} {'Mephista' 'Golddigger'} {'The_Lightning' 'Fake_Thomas_Jefferson'} {'Roulette' 'Dansen_Macabre'} {'Queen_Bee' 'Animora'} {'Titania' 'Animora'} {'Black_Mamba' 'Gru'} {'Silver_Swan' 'Hypnota'} {'Saturn_Queen' 'Queen_Of_Fables'} {'The_Lightning' 'Prank'} {'Titania' 'Dansen_Macabre'} {'Southpaw' 'Golddigger'} {'The_Lightning' 'Queen_Of_Fables'} {'Trinity' 'Valentina'} {'Trinity' 'Hypnota'} {'Silver_Swan' 'Valentina'} {'Black_Mamba' 'Lafety_Le_Fei'} {'King_Ghidorah' 'Plastique'} {'Queen_Bee' 'Prank'} {'Unicron' 'Superwoman'} {'Deuce' 'Dansen_Macabre'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Windfall'} {'Syndrome' 'Queen_Bee'} {'Dr_Horrible' 'Mai_Shen'} {'Windfall' 'Animora'} {'New_Wave' 'Dr_Horrible'} {'Animora' 'Syndrome'} {'Queen_Bee' 'New_Wave'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Unicron' 'Shiv'} {'Titania' 'Magpie'} {'Queen_Of_Fables' 'Superwoman'} {'Roulette' 'Amazing_Grace'} {'Queen_Of_Fables' 'Princess_Python'} {'Dansen_Macabre' 'Mai_Shen'} {'Madame_Rouge' 'Scandal'} {'Ingra' 'Fury_Leika'} {'Harley_Quinn' 'Emerald_Empress'} {'Fem_Paragon' 'Shiv'} {'Dead_Bowie' 'Star_Sapphire'} {'Gru' 'Abominatrix'} {'Mist' 'Abominatrix'} {'Titania' 'Superwoman'} {'Southpaw' 'Star_Sapphire'} {'Asbestos_Lady' 'Superwoman'} {'Madame_Rouge' 'Star_Sapphire'} {'Margaret_Love' 'Scandal'} {'Dead_Bowie' 'Lady_Death'} {'Ingra' 'Blue_Snowman'} {'Titania' 'Star_Sapphire'} {'Unicron' 'Superwoman'} {'Mothergod' 'Fury_Leika'} {'Asbestos_Lady' 'Scandal'} {'Dansen_Macabre' 'Scandal'} {'Ingra' 'Magpie'} {'Gru' 'Lady_Clay'} {'Harley_Quinn' 'Lady_Death'} {'Southpaw' 'Amazing_Grace'} {'Gru' 'Nyssa_Raatko'} {'Gru' 'Plastique'} {'Unicron' 'Spider_Girl'} {'Madame_Rouge' 'Princess_Python'} {'Jinx' 'Magpie'} {'Mist' 'Plastique'} {'Margaret_Love' 'Dr_Evil'} {'Coachwhip' 'Typhoid_Mary'} {'Ingra' 'Dr_Horrible'} {'Dead_Bowie' 'Mai_Shen'} {'Jinx' 'Lady_Clay'} {'Fem_Paragon' 'Lady_Clay'} {'Unicron' 'Scandal'} {'Mist' 'Fury_Leika'} {'Jinx' 'Amazing_Grace'} {'Madame_Rouge' 'Emerald_Empress'} {'Bombshell' 'Nyssa_Raatko'} {'Mothergod' 'Blue_Snowman'} {'Deuce' 'Typhoid_Mary'} {'Madame_Rouge' 'Superwoman'} {'Mothergod' 'Star_Sapphire'} {'Roulette' 'Shiv'} {'Asbestos_Lady' 'Amazing_Grace'} {'Dead_Bowie' 'Abominatrix'} {'Harley_Quinn' 'Dr_Horrible'} {'Gru' 'Superwoman'} {'Queen_Of_Fables' 'Blue_Snowman'} {'Southpaw' 'Dr_Evil'} {'Fem_Paragon' 'Spider_Girl'} {'Queen_Of_Fables' 'Typhoid_Mary'} {'Bombshell' 'Superwoman'} {'Queen_Of_Fables' 'Amazing_Grace'} {'Coachwhip' 'Spider_Girl'} {'Jinx' 'Nyssa_Raatko'} {'Titania' 'Lady_Clay'} {'Madame_Rouge' 'Fury_Leika'} {'Dansen_Macabre' 'Spider_Girl'} {'Jinx' 'Shiv'} {'Titania' 'Fury_Leika'} {'Fem_Paragon' 'Emerald_Empress'} {'Bombshell' 'Mai_Shen'} {'Harley_Quinn' 'Shiv'} {'Dead_Bowie' 'Lady_Clay'} {'Mothergod' 'Spider_Girl'} {'Southpaw' 'Plastique'} {'Southpaw' 'Magpie'} {'Fem_Paragon' 'Superwoman'} {'Bombshell' 'Amazing_Grace'} {'Ingra' 'Typhoid_Mary'} {'Asbestos_Lady' 'Fury_Leika'} {'Dead_Bowie' 'Blue_Snowman'} {'Southpaw' 'Mai_Shen'} {'Roulette' 'Lady_Clay'} {'Margaret_Love' 'Dr_Horrible'} {'Mist' 'Lady_Death'} {'Deuce' 'Emerald_Empress'} {'Deuce' 'Nyssa_Raatko'} {'Titania' 'Blue_Snowman'} {'Mothergod' 'Amazing_Grace'} {'Roulette' 'Fury_Leika'} {'Madame_Rouge' 'Typhoid_Mary'} {'Mist' 'Superwoman'} {'Dead_Bowie' 'Magpie'} {'Coachwhip' 'Princess_Python'} {'Deuce' 'Lady_Death'} {'Harley_Quinn' 'Mai_Shen'} {'Bombshell' 'Scandal'} {'Madame_Rouge' 'Amazing_Grace'} {'Ingra' 'Nyssa_Raatko'} {'Margaret_Love' 'Abominatrix'} {'Margaret_Love' 'Fury_Leika'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Leather'} {'Syndrome' 'Genevieve_Savidge'} {'Dansen_Macabre' 'Leather'} {'Decay' 'Queen_Bee'} {'Decay' 'Queen_Of_Fables'} {'Lady_Death' 'Queen_Bee'} {'King_Ghidorah' 'Queen_Bee'} {'Professor_Padraic_Ratigan' 'Genevieve_Savidge'} {'Syndrome' 'Harley_Quinn'} {'Syndrome' 'Queen_Of_Fables'} {'Lady_Shiva' 'Golddigger'} {'Syndrome' 'Spider_Girl'} {'Lady_Death' 'Ingra'} {'Poundcakes' 'Queen_Of_Fables'} {'Saturn_Queen' 'Harley_Quinn'} {'Gru' 'Ingra'} {'Professor_Padraic_Ratigan' 'Cyborgirl'} {'Shimmer' 'Osira'} {'Zaladane' 'Talia_Al_Ghul'} {'Lady_Shiva' 'Genevieve_Savidge'} {'Typhoid_Mary' 'Queen_Of_Fables'} {'Syndrome' 'Cyborgirl'} {'Professor_Padraic_Ratigan' 'Osira'} {'Dr_Evil' 'Fem_Paragon'} {'Zaladane' 'Southpaw'} {'Madame_Masque' 'Queen_Bee'} {'Shimmer' 'Deuce'} {'King_Ghidorah' 'Leather'} {'King_Ghidorah' 'Spider_Girl'} {'Gru' 'Golddigger'} {'Duela_Dent' 'Deuce'} {'Madame_Masque' 'Cyborgirl'} {'Scandal' 'Queen_Of_Fables'} {'Dr_Evil' 'Golddigger'} {'Gru' 'Fem_Paragon'} {'Decay' 'Cyborgirl'} {'Windfall' 'Spider_Girl'} {'Scandal' 'Decay'} {'Duela_Dent' 'Ingra'} {'Gru' 'White_Rabbit'} {'Scandal' 'Amazing_Grace'} {'Syndrome' 'Plastique'} {'Mist' 'Queen_Of_Fables'} {'Poundcakes' 'Cyborgirl'} {'Gru' 'Harley_Quinn'} {'Shimmer' 'Southpaw'} {'Duela_Dent' 'Plastique'} {'Poundcakes' 'Deuce'} {'Saturn_Queen' 'Queen_Of_Fables'} {'Mist' 'Maxima'} {'Mist' 'Dead_Bowie'} {'Lady_Death' 'Golddigger'} {'Decay' 'Fem_Paragon'} {'Star_Sapphire' 'Dead_Bowie'} {'Shimmer' 'Cyborgirl'} {'Shimmer' 'Ingra'} {'Lady_Death' 'Emerald_Empress'} {'Saturn_Queen' 'Ingra'} {'Poundcakes' 'Ingra'} {'Saturn_Queen' 'White_Rabbit'} {'Windfall' 'Osira'} {'Dr_Evil' 'White_Rabbit'} {'Madame_Masque' 'Spider_Girl'} {'Mist' 'Leather'} {'Madame_Masque' 'Osira'} {'King_Ghidorah' 'Fem_Paragon'} {'Duela_Dent' 'Golddigger'} {'Typhoid_Mary' 'Emerald_Empress'} {'Decay' 'Maxima'} {'Star_Sapphire' 'White_Rabbit'} {'Lady_Shiva' 'Plastique'} {'Typhoid_Mary' 'Spider_Girl'} {'Scandal' 'Deuce'} {'Dr_Evil' 'Ingra'} {'Dansen_Macabre' 'Ingra'} {'Windfall' 'Dead_Bowie'} {'Windfall' 'Southpaw'} {'Shimmer' 'Emerald_Empress'} {'Saturn_Queen' 'Emerald_Empress'} {'Dansen_Macabre' 'Osira'} {'Scandal' 'Southpaw'} {'Shimmer' 'Maxima'} {'Zaladane' 'Spider_Girl'} {'Gru' 'Talia_Al_Ghul'} {'Scandal' 'Spider_Girl'} {'Poundcakes' 'Fem_Paragon'} {'King_Ghidorah' 'Dead_Bowie'} {'Duela_Dent' 'White_Rabbit'} {'Windfall' 'Amazing_Grace'} {'Scandal' 'Fem_Paragon'} {'Dansen_Macabre' 'Maxima'} {'Star_Sapphire' 'Amazing_Grace'} {'Duela_Dent' 'Emerald_Empress'} {'Syndrome' 'Fem_Paragon'} {'Syndrome' 'Talia_Al_Ghul'} {'Saturn_Queen' 'Dead_Bowie'} {'Gru' 'Queen_Bee'} {'Typhoid_Mary' 'Southpaw'} {'Windfall' 'Talia_Al_Ghul'} {'Mist' 'Talia_Al_Ghul'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mephista' 'Mothergod'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\ntoc","published":true,"deleted":false,"likes_count":1,"comments_count":5,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":9,"test_suite_updated_at":"2013-09-19T23:15:30.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-19T00:46:39.000Z","updated_at":"2013-09-19T23:26:45.000Z","published_at":"2013-09-19T01:43:50.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2933486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2013 China Bad Horse\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e partial of data set #2. Cody appears to have a testsuite size limit so only 32 of 100 cases are loaded. Brute force of 2^100 permutations may time out. The problem is codified using a cell array of names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Challenge involves creating two teams with no pair of individuals on either team having a conflict. The input is a list of pairs of individuals who can not be placed on the same team. The Challenge is to determine if two teams can be created that do not have any players with conflicts.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e conflicted name pairs (cell array of pairs of names)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e TF (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCompetition Summary:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Time of 11 minutes, 707 out of 776 correct\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1881,"title":"GJam 2013 China Event: Happy Teams","description":"This Challenge is derived from \u003chttp://code.google.com/codejam/contest/2933486/dashboard#s=p0 GJam 2013 China Bad Horse\u003e. The problem is codified using a cell array of names.\r\n\r\nThe Challenge involves creating two teams with no pair of individuals on either team having a conflict.  The input is a list of pairs of individuals who can not be placed on the same team.  The Challenge is to determine if two teams can be created that do not have any players with conflicts. \r\n\r\n*Input:* conflicted name pairs  (cell array of pairs of names)\r\n\r\n*Output:* TF  (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\r\n\r\n*Competition Summary:* Best Time of 9 minutes, 789 out of 1984 correct\r\n\r\n\r\n","description_html":"\u003cp\u003eThis Challenge is derived from \u003ca href = \"http://code.google.com/codejam/contest/2933486/dashboard#s=p0\"\u003eGJam 2013 China Bad Horse\u003c/a\u003e. The problem is codified using a cell array of names.\u003c/p\u003e\u003cp\u003eThe Challenge involves creating two teams with no pair of individuals on either team having a conflict.  The input is a list of pairs of individuals who can not be placed on the same team.  The Challenge is to determine if two teams can be created that do not have any players with conflicts.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e conflicted name pairs  (cell array of pairs of names)\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e TF  (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\u003c/p\u003e\u003cp\u003e\u003cb\u003eCompetition Summary:\u003c/b\u003e Best Time of 9 minutes, 789 out of 1984 correct\u003c/p\u003e","function_template":"function TF=Make_Teams(names)\r\n% names is an array of cell arrays   \r\n% N columns of {1x2 cell}\r\n TF=0;\r\nend","test_suite":"%%\r\ntic\r\nnames={{'Dead_Bowie' 'Nyssa_Raatko'} {'Animora' 'Lafety_Le_Fei'} {'Animora' 'Mothergod'} {'Animora' 'Nyssa_Raatko'} {'Dead_Bowie' 'Genevieve_Savidge'} {'Dead_Bowie' 'Lafety_Le_Fei'} {'Animora' 'Genevieve_Savidge'} {'Dead_Bowie' 'Mothergod'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mephista' 'New_Wave'} {'Mephista' 'Ursa'} {'Zaladane' 'Mai_Shen'} {'Mephista' 'Mai_Shen'} {'White_Rabbit' 'Hypnota'} {'White_Rabbit' 'New_Wave'} {'Ursa' 'Scandal'} {'Zaladane' 'New_Wave'} {'Ursa' 'Hypnota'} {'Zaladane' 'Scandal'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Spider_Girl' 'Blue_Snowman'} {'Blue_Snowman' 'Roulette'} {'Roulette' 'Spider_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Magenta' 'Golden_Glider'} {'Tala' 'Mothergod'} {'The_Lightning' 'Shiv'} {'The_Lightning' 'Prank'} {'Magenta' 'Shiv'} {'Tala' 'Prank'} {'Trinity' 'Golden_Glider'} {'Magenta' 'Prank'} {'The_Lightning' 'Mothergod'} {'Trinity' 'Mothergod'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'The_Lightning' 'Star_Sapphire'} {'Unicron' 'Queen_Of_Fables'} {'Unicron' 'Dead_Bowie'} {'Lady_Quark' 'Fury_Leika'} {'Lady_Quark' 'Star_Sapphire'} {'The_Lightning' 'Dead_Bowie'} {'Asbestos_Lady' 'Queen_Of_Fables'} {'Unicron' 'Lady_Quark'} {'Asbestos_Lady' 'Star_Sapphire'} {'The_Lightning' 'Fury_Leika'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Scandal'} {'Lashina' 'King_Ghidorah'} {'Doctor_Cyber' 'Tala'} {'Lashina' 'Evinlea'} {'Dr_Evil' 'Tala'} {'Zaladane' 'King_Ghidorah'} {'Doctor_Cyber' 'Evinlea'} {'Doctor_Cyber' 'King_Ghidorah'} {'Dr_Evil' 'Scandal'} {'Lashina' 'Scandal'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Bombshell' 'Rampage'} {'Deuce' 'Ursa'} {'Bombshell' 'Ursa'} {'Lady_Octopus' 'Rampage'} {'Doctor_Cyber' 'Black_Mamba'} {'Deuce' 'Madame_Rouge'} {'Doctor_Cyber' 'Rampage'} {'Lady_Octopus' 'Madame_Rouge'} {'Doctor_Cyber' 'Madame_Rouge'} {'Lady_Octopus' 'Black_Mamba'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Cyborgirl' 'Fury_Leika'} {'Asbestos_Lady' 'Margaret_Love'} {'Amazing_Grace' 'Fury_Leika'} {'Cyborgirl' 'Hypnota'} {'Duela_Dent' 'Amazing_Grace'} {'Duela_Dent' 'Hypnota'} {'Amazing_Grace' 'Margaret_Love'} {'Duela_Dent' 'Mephista'} {'Duela_Dent' 'Fury_Leika'} {'Asbestos_Lady' 'Mephista'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jason_Kreis' 'Poundcakes'} {'Margaret_Love' 'Star_Sapphire'} {'Snapdragon' 'Ingra'} {'Snapdragon' 'Poundcakes'} {'Snapdragon' 'Star_Sapphire'} {'Dead_Bowie' 'Star_Sapphire'} {'Jason_Kreis' 'Ingra'} {'Dead_Bowie' 'Rampage'} {'Dead_Bowie' 'Poundcakes'} {'Margaret_Love' 'Rampage'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lazara' 'Southpaw'} {'Dansen_Macabre' 'Jewelee'} {'Lazara' 'Amazing_Grace'} {'Osira' 'Amazing_Grace'} {'Osira' 'Coachwhip'} {'Coachwhip' 'Princess_Python'} {'Dansen_Macabre' 'Princess_Python'} {'Coachwhip' 'Southpaw'} {'Osira' 'Princess_Python'} {'Osira' 'Jewelee'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lashina' 'Trinity'} {'Lashina' 'Mephista'} {'Lashina' 'Shiv'} {'Lashina' 'Dr_Evil'} {'Lashina' 'Fem_Paragon'} {'Lashina' 'King_Ghidorah'} {'Lashina' 'The_Lightning'} {'Lashina' 'Syndrome'} {'Lashina' 'Margaret_Love'} {'Lashina' 'Lady_Octopus'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lotso' 'Snapdragon'} {'Animora' 'Silver_Swan'} {'Devastation' 'Animora'} {'Snapdragon' 'Devastation'} {'Silver_Swan' 'Lotso'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Spider_Girl' 'Livewire'} {'Jason_Kreis' 'Trinity'} {'Spider_Girl' 'Syndrome'} {'Jason_Kreis' 'Livewire'} {'Harley_Quinn' 'Livewire'} {'Spider_Girl' 'Coachwhip'} {'Lady_Octopus' 'Coachwhip'} {'Lady_Octopus' 'Syndrome'} {'Harley_Quinn' 'Coachwhip'} {'Spider_Girl' 'Trinity'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Swan' 'Windfall'} {'Silver_Swan' 'Poison_Ivy'} {'Lafety_Le_Fei' 'Poison_Ivy'} {'Lafety_Le_Fei' 'Windfall'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Livewire' 'Titania'} {'Livewire' 'Abominatrix'} {'Shiv' 'Ursa'} {'Shiv' 'Abominatrix'} {'Princess_Python' 'Abominatrix'} {'Silk_Fever' 'Abominatrix'} {'Livewire' 'Ursa'} {'Princess_Python' 'Titania'} {'Princess_Python' 'Poundcakes'} {'Silk_Fever' 'Poundcakes'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Fem_Paragon' 'Amy_Madison'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Dr_Evil'} {'Lady_Vic' 'Amy_Madison'} {'Lady_Octopus' 'Ursa'} {'Lafety_Le_Fei' 'Shiv'} {'Princess_Python' 'Amy_Madison'} {'Princess_Python' 'Shiv'} {'Lafety_Le_Fei' 'Ursa'} {'Lafety_Le_Fei' 'Amy_Madison'} {'Lady_Octopus' 'Dr_Evil'} {'Lady_Vic' 'Dr_Evil'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Of_Fables' 'Magenta'} {'Genevieve_Savidge' 'Magenta'} {'Spider_Girl' 'Black_Mamba'} {'Spider_Girl' 'Lady_Shiva'} {'Jinx' 'Lady_Shiva'} {'Spider_Girl' 'Mist'} {'Genevieve_Savidge' 'Lady_Shiva'} {'Jinx' 'Black_Mamba'} {'Genevieve_Savidge' 'Mist'} {'Queen_Of_Fables' 'Black_Mamba'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Titania' 'Saturn_Queen'} {'Lafety_Le_Fei' 'Saturn_Queen'} {'Lafety_Le_Fei' 'Tigress'} {'Titania' 'Tigress'} {'Golddigger' 'Tigress'} {'Titania' 'Tala'} {'Lafety_Le_Fei' 'Tala'} {'Golddigger' 'Tala'} {'Golddigger' 'Saturn_Queen'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Roulette' 'Livewire'} {'Roulette' 'Mai_Shen'} {'Shiv' 'Bombshell'} {'Ursa' 'Bombshell'} {'Ursa' 'Livewire'} {'Shiv' 'Doctor_Cyber'} {'Roulette' 'Bombshell'} {'Blue_Snowman' 'Mai_Shen'} {'Ursa' 'Doctor_Cyber'} {'Blue_Snowman' 'Livewire'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Duela_Dent'} {'Cyborgirl' 'Lafety_Le_Fei'} {'Cyborgirl' 'Duela_Dent'} {'Black_Mamba' 'Unicron'} {'Lady_Death' 'Duela_Dent'} {'Zaladane' 'Cyborgirl'} {'Cyborgirl' 'Devastation'} {'Lady_Death' 'Lafety_Le_Fei'} {'Black_Mamba' 'Devastation'} {'Zaladane' 'Unicron'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Rad' 'Jason_Kreis'} {'Emerald_Empress' 'Lady_Vic'} {'Rad' 'Magenta'} {'Lagomorph' 'Jason_Kreis'} {'Lagomorph' 'Lady_Vic'} {'Lagomorph' 'Magenta'} {'Lagomorph' 'Lady_Quark'} {'Emerald_Empress' 'Genevieve_Savidge'} {'Lady_Quark' 'Genevieve_Savidge'} {'Lady_Quark' 'Jason_Kreis'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Golden_Glider' 'Lady_Clay'} {'Golden_Glider' 'Titania'} {'Lady_Clay' 'Lashina'} {'Lady_Clay' 'Titania'} {'Black_Mamba' 'Lashina'} {'Lady_Clay' 'Lady_Octopus'} {'Maxima' 'Lady_Octopus'} {'Maxima' 'Titania'} {'Black_Mamba' 'Decay'} {'Golden_Glider' 'Decay'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Fem_Paragon'} {'Abominatrix' 'Fem_Paragon'} {'Lady_Quark' 'Princess_Python'} {'The_Crimson_Ghost' 'Ingra'} {'Abominatrix' 'Jinx'} {'Lady_Quark' 'Rampage'} {'Abominatrix' 'Rampage'} {'Princess_Python' 'Jinx'} {'The_Crimson_Ghost' 'Jinx'} {'Lady_Quark' 'Ingra'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dr_Horrible' 'Ingra'} {'Dr_Horrible' 'Sun_Girl'} {'Prank' 'Duela_Dent'} {'Valentina' 'Duela_Dent'} {'Prank' 'Ingra'} {'Lazara' 'Tigress'} {'Lazara' 'Ingra'} {'Lazara' 'Sun_Girl'} {'Valentina' 'Tigress'} {'Valentina' 'Dr_Horrible'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dansen_Macabre' 'Jewelee'} {'Sun_Girl' 'Jewelee'} {'Lady_Shiva' 'Trinity'} {'Lady_Shiva' 'Ursa'} {'Poison_Ivy' 'Jewelee'} {'Dansen_Macabre' 'Ursa'} {'Poison_Ivy' 'Shimmer'} {'Poison_Ivy' 'Trinity'} {'Sun_Girl' 'Shimmer'} {'Lady_Shiva' 'Jewelee'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Eviless'} {'Superwoman' 'Typhoid_Mary'} {'Zaladane' 'Typhoid_Mary'} {'Zaladane' 'Genevieve_Savidge'} {'Superwoman' 'Eviless'} {'Zaladane' 'Bombshell'} {'Ingra' 'Bombshell'} {'Jinx' 'Genevieve_Savidge'} {'Ingra' 'Genevieve_Savidge'} {'Jinx' 'Eviless'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Decay'} {'Ingra' 'Decay'} {'Mai_Shen' 'Deuce'} {'Ingra' 'Lady_Octopus'} {'Margaret_Love' 'Bombshell'} {'Ingra' 'Deuce'} {'Margaret_Love' 'Decay'} {'Dr_Evil' 'Lady_Octopus'} {'Dr_Evil' 'Bombshell'} {'Margaret_Love' 'Ingra'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'Fake_Thomas_Jefferson'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silk_Fever' 'Snapdragon'} {'Professor_Padraic_Ratigan' 'Maxima'} {'Lady_Shiva' 'Decay'} {'Lady_Shiva' 'Lady_Octopus'} {'Nyssa_Raatko' 'Lady_Octopus'} {'Professor_Padraic_Ratigan' 'Decay'} {'Silk_Fever' 'Maxima'} {'Nyssa_Raatko' 'Decay'} {'Professor_Padraic_Ratigan' 'Lady_Octopus'} {'Lady_Shiva' 'Snapdragon'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Bombshell' 'Trinity'} {'Mothergod' 'Professor_Padraic_Ratigan'} {'Tigress' 'Dr_Horrible'} {'Tigress' 'Princess_Python'} {'Rad' 'Dr_Horrible'} {'Rad' 'Professor_Padraic_Ratigan'} {'Mothergod' 'Trinity'} {'Tigress' 'Trinity'} {'Bombshell' 'Professor_Padraic_Ratigan'} {'Mothergod' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Windfall'} {'Syndrome' 'Queen_Bee'} {'Dr_Horrible' 'Mai_Shen'} {'Windfall' 'Animora'} {'New_Wave' 'Dr_Horrible'} {'Animora' 'Syndrome'} {'Queen_Bee' 'New_Wave'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Evinlea' 'Fake_Thomas_Jefferson'} {'Evinlea' 'Southpaw'} {'Magpie' 'Southpaw'} {'Magpie' 'Jason_Kreis'} {'Mist' 'Southpaw'} {'Tigress' 'Jason_Kreis'} {'Tigress' 'Fake_Thomas_Jefferson'} {'Mist' 'Jason_Kreis'} {'Evinlea' 'Gru'} {'Magpie' 'Gru'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Nyssa_Raatko' 'Shiv'} {'Nyssa_Raatko' 'Queen_Of_Fables'} {'Jewelee' 'The_Lightning'} {'Jinx' 'Shiv'} {'Nyssa_Raatko' 'Rad'} {'Jinx' 'The_Lightning'} {'Nyssa_Raatko' 'The_Lightning'} {'Jewelee' 'Rad'} {'Professor_Padraic_Ratigan' 'Shiv'} {'Professor_Padraic_Ratigan' 'Queen_Of_Fables'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Ingra' 'Sun_Girl'} {'Southpaw' 'Golden_Glider'} {'Superwoman' 'Mothergod'} {'Ingra' 'Tigress'} {'Superwoman' 'Sun_Girl'} {'Southpaw' 'Mothergod'} {'Silk_Fever' 'Tigress'} {'Superwoman' 'Ingra'} {'Ingra' 'Golden_Glider'} {'Silk_Fever' 'Sun_Girl'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Mai_Shen' 'Tala'} {'Mai_Shen' 'Abominatrix'} {'Mai_Shen' 'Mothergod'} {'Mai_Shen' 'Ursa'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Princess_Python' 'Abominatrix'} {'Mai_Shen' 'Devastation'} {'Abominatrix' 'Mai_Shen'} {'Devastation' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Shiv' 'Titania'} {'Lady_Quark' 'Trinity'} {'Mothergod' 'Hypnota'} {'Shiv' 'Hypnota'} {'Lady_Quark' 'White_Rabbit'} {'Lady_Octopus' 'Trinity'} {'Shiv' 'Lady_Quark'} {'Mothergod' 'Trinity'} {'Mothergod' 'White_Rabbit'} {'Lady_Octopus' 'Titania'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lazara' 'Queen_Of_Fables'} {'Queen_Bee' 'Magpie'} {'Queen_Bee' 'Rad'} {'Lashina' 'Queen_Of_Fables'} {'Lashina' 'Superwoman'} {'Dead_Bowie' 'Queen_Of_Fables'} {'Lashina' 'Magpie'} {'Queen_Bee' 'Queen_Of_Fables'} {'Dead_Bowie' 'Rad'} {'Lazara' 'Superwoman'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'New_Wave' 'Ingra'} {'Syndrome' 'Princess_Python'} {'New_Wave' 'Sun_Girl'} {'Lashina' 'Ingra'} {'Silk_Fever' 'Ingra'} {'New_Wave' 'Princess_Python'} {'Syndrome' 'Shiv'} {'Lashina' 'Shiv'} {'Lashina' 'Sun_Girl'} {'Silk_Fever' 'Sun_Girl'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Hypnota' 'Sun_Girl'} {'Doctor_Cyber' 'Windfall'} {'Dr_Evil' 'Valentina'} {'Hypnota' 'Abominatrix'} {'Doctor_Cyber' 'Sun_Girl'} {'Mist' 'Windfall'} {'Doctor_Cyber' 'Valentina'} {'Mist' 'Abominatrix'} {'Mist' 'Sun_Girl'} {'Dr_Evil' 'Abominatrix'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Leather' 'King_Ghidorah'} {'Jinx' 'Bombshell'} {'Leather' 'Lady_Vic'} {'Leather' 'Osira'} {'Jewelee' 'Bombshell'} {'Leather' 'Bombshell'} {'Amy_Madison' 'King_Ghidorah'} {'Jinx' 'King_Ghidorah'} {'Jewelee' 'Osira'} {'Amy_Madison' 'Lady_Vic'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Madame_Rouge' 'Ingra'} {'Margaret_Love' 'Ingra'} {'Yellowjacket' 'Dansen_Macabre'} {'Margaret_Love' 'The_Crimson_Ghost'} {'Margaret_Love' 'Rad'} {'Madame_Rouge' 'The_Crimson_Ghost'} {'Yellowjacket' 'Rad'} {'Yellowjacket' 'Ingra'} {'New_Wave' 'Dansen_Macabre'} {'New_Wave' 'The_Crimson_Ghost'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Amy_Madison' 'Typhoid_Mary'} {'Typhoid_Mary' 'The_Crimson_Ghost'} {'Amy_Madison' 'Spider_Girl'} {'Queen_Bee' 'Spider_Girl'} {'Queen_Bee' 'Livewire'} {'Nyssa_Raatko' 'The_Crimson_Ghost'} {'Typhoid_Mary' 'Mothergod'} {'Amy_Madison' 'The_Crimson_Ghost'} {'Typhoid_Mary' 'Livewire'} {'Nyssa_Raatko' 'Mothergod'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Margaret_Love' 'Shimmer'} {'Snapdragon' 'Shimmer'} {'Snapdragon' 'Lady_Octopus'} {'Snapdragon' 'Jewelee'} {'Decay' 'Poundcakes'} {'Amy_Madison' 'Poundcakes'} {'Decay' 'Lady_Octopus'} {'Margaret_Love' 'Lady_Octopus'} {'Decay' 'Jewelee'} {'Amy_Madison' 'Jewelee'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Black_Mamba' 'Purgatori'} {'Talia_Al_Ghul' 'Windfall'} {'Lady_Death' 'Madame_Masque'} {'Spider_Girl' 'Madame_Masque'} {'Black_Mamba' 'Saturn_Queen'} {'Black_Mamba' 'Madame_Masque'} {'Spider_Girl' 'Saturn_Queen'} {'Talia_Al_Ghul' 'Purgatori'} {'Lady_Death' 'Windfall'} {'Spider_Girl' 'Purgatori'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Bombshell' 'Queen_Of_Fables'} {'Silk_Fever' 'Lady_Quark'} {'Windfall' 'Star_Sapphire'} {'Windfall' 'Queen_Of_Fables'} {'Silk_Fever' 'Star_Sapphire'} {'Silk_Fever' 'Bombshell'} {'Shiv' 'Dead_Bowie'} {'Shiv' 'Lady_Quark'} {'Windfall' 'Lady_Quark'} {'Bombshell' 'Dead_Bowie'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Swan' 'Gru'} {'Superwoman' 'Lagomorph'} {'Silver_Swan' 'Duela_Dent'} {'Silver_Swan' 'Superwoman'} {'Superwoman' 'Lady_Vic'} {'Saturn_Queen' 'Lady_Vic'} {'Saturn_Queen' 'Duela_Dent'} {'Poundcakes' 'Lagomorph'} {'Silver_Swan' 'Lady_Vic'} {'Poundcakes' 'Gru'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lady_Vic' 'Queen_Bee'} {'Deuce' 'Yellowjacket'} {'Prank' 'Amazing_Grace'} {'Bombshell' 'Yellowjacket'} {'Deuce' 'Amazing_Grace'} {'Lady_Vic' 'Lady_Death'} {'Deuce' 'Prank'} {'Bombshell' 'Amazing_Grace'} {'Prank' 'Queen_Bee'} {'Deuce' 'Lady_Death'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Maxima' 'Sun_Girl'} {'Spider_Girl' 'Genevieve_Savidge'} {'Spider_Girl' 'Madame_Masque'} {'Fem_Paragon' 'Margaret_Love'} {'Maxima' 'Genevieve_Savidge'} {'Maxima' 'Madame_Masque'} {'Spider_Girl' 'Sun_Girl'} {'Devastation' 'Sun_Girl'} {'Devastation' 'Margaret_Love'} {'Fem_Paragon' 'Madame_Masque'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Tala' 'Animora'} {'Tala' 'Scandal'} {'Tala' 'Amazing_Grace'} {'Tala' 'Lafety_Le_Fei'} {'Tala' 'Lady_Quark'} {'Tala' 'Silver_Banshee'} {'Tala' 'Dansen_Macabre'} {'Tala' 'Jason_Kreis'} {'Tala' 'Cyborgirl'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Fem_Paragon' 'Golddigger'} {'Southpaw' 'Deuce'} {'Southpaw' 'Golddigger'} {'Fem_Paragon' 'Sun_Girl'} {'Rad' 'Sun_Girl'} {'Southpaw' 'Sun_Girl'} {'Rad' 'Lady_Clay'} {'Fem_Paragon' 'Bombshell'} {'Deuce' 'Lady_Clay'} {'Deuce' 'Bombshell'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Poison_Ivy' 'Lady_Octopus'} {'Poison_Ivy' 'Lazara'} {'Lazara' 'Lagomorph'} {'Poison_Ivy' 'Tala'} {'Mephista' 'Lagomorph'} {'Mai_Shen' 'Lagomorph'} {'Mephista' 'Tala'} {'Mai_Shen' 'Lady_Octopus'} {'Mephista' 'Lady_Death'} {'Lazara' 'Lady_Death'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Professor_Padraic_Ratigan' 'Superwoman'} {'Professor_Padraic_Ratigan' 'Shiv'} {'Professor_Padraic_Ratigan' 'Amazing_Grace'} {'Amazing_Grace' 'Bombshell'} {'Saturn_Queen' 'Superwoman'} {'Professor_Padraic_Ratigan' 'Bombshell'} {'Tala' 'Shiv'} {'Tala' 'Trinity'} {'Saturn_Queen' 'Bombshell'} {'Amazing_Grace' 'Trinity'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Zaladane' 'Talia_Al_Ghul'} {'Cyborgirl' 'Snapdragon'} {'Talia_Al_Ghul' 'Cyborgirl'} {'Silver_Banshee' 'Deuce'} {'New_Wave' 'Mist'} {'Osira' 'Lady_Octopus'} {'Lady_Octopus' 'Silver_Banshee'} {'Snapdragon' 'Osira'} {'Mist' 'Zaladane'} {'Deuce' 'New_Wave'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Asbestos_Lady' 'Coachwhip'} {'Asbestos_Lady' 'Jewelee'} {'Asbestos_Lady' 'Shimmer'} {'Lady_Shiva' 'Jewelee'} {'Blue_Snowman' 'Coachwhip'} {'Ingra' 'Coachwhip'} {'Lady_Shiva' 'Ingra'} {'Lady_Shiva' 'Titania'} {'Ingra' 'Shimmer'} {'Blue_Snowman' 'Titania'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Abominatrix' 'Tigress'} {'Queen_Bee' 'Rampage'} {'Unicron' 'Rampage'} {'Lady_Octopus' 'Poundcakes'} {'Unicron' 'Queen_Of_Fables'} {'Abominatrix' 'Queen_Bee'} {'Abominatrix' 'Queen_Of_Fables'} {'Queen_Bee' 'Poundcakes'} {'Lady_Octopus' 'Tigress'} {'Abominatrix' 'Poundcakes'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Scandal' 'Jinx'} {'Scandal' 'Doctor_Cyber'} {'Scandal' 'Roulette'} {'Queen_Bee' 'Jinx'} {'Queen_Bee' 'Roulette'} {'Queen_Bee' 'Yellowjacket'} {'Margaret_Love' 'Yellowjacket'} {'Zaladane' 'Roulette'} {'Margaret_Love' 'Doctor_Cyber'} {'Zaladane' 'Yellowjacket'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lady_Quark' 'Madame_Masque'} {'Coachwhip' 'Lady_Quark'} {'Lady_Clay' 'Coachwhip'} {'Madame_Masque' 'Southpaw'} {'Talia_Al_Ghul' 'Lady_Clay'} {'Southpaw' 'Talia_Al_Ghul'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Evinlea' 'Silver_Banshee'} {'Magenta' 'Amy_Madison'} {'Magenta' 'Fake_Thomas_Jefferson'} {'Deuce' 'Fake_Thomas_Jefferson'} {'Magenta' 'Silver_Banshee'} {'Evinlea' 'Trinity'} {'Cyborgirl' 'Amy_Madison'} {'Cyborgirl' 'Trinity'} {'Evinlea' 'Fake_Thomas_Jefferson'} {'Deuce' 'Silver_Banshee'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jewelee' 'Madame_Rouge'} {'Jewelee' 'Fem_Paragon'} {'Jewelee' 'Professor_Padraic_Ratigan'} {'Jewelee' 'Evinlea'} {'Jewelee' 'Fury_Leika'} {'Jewelee' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Amy_Madison' 'The_Crimson_Ghost'} {'Syndrome' 'Lady_Vic'} {'Syndrome' 'Lady_Quark'} {'Lagomorph' 'Poison_Ivy'} {'Lagomorph' 'Lady_Vic'} {'Shimmer' 'Lady_Quark'} {'Lagomorph' 'The_Crimson_Ghost'} {'Amy_Madison' 'Syndrome'} {'Amy_Madison' 'Poison_Ivy'} {'Shimmer' 'Poison_Ivy'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Swan' 'Purgatori'} {'Nyssa_Raatko' 'Purgatori'} {'Nyssa_Raatko' 'Shimmer'} {'Abominatrix' 'Nyssa_Raatko'} {'Nyssa_Raatko' 'Bombshell'} {'Silver_Swan' 'Bombshell'} {'Abominatrix' 'Duela_Dent'} {'Abominatrix' 'Purgatori'} {'Windfall' 'Duela_Dent'} {'Windfall' 'Shimmer'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Fury_Leika' 'The_Lightning'} {'Amy_Madison' 'The_Lightning'} {'The_Crimson_Ghost' 'Lady_Death'} {'Shimmer' 'Lady_Death'} {'Amy_Madison' 'Queen_Of_Fables'} {'The_Crimson_Ghost' 'Queen_Of_Fables'} {'Fury_Leika' 'Queen_Of_Fables'} {'Amy_Madison' 'Dansen_Macabre'} {'Fury_Leika' 'Dansen_Macabre'} {'Shimmer' 'The_Lightning'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Abominatrix' 'Lady_Shiva'} {'Queen_Clea' 'Fake_Thomas_Jefferson'} {'Abominatrix' 'Hypnota'} {'Jewelee' 'Lady_Shiva'} {'Madame_Masque' 'Lady_Shiva'} {'Jewelee' 'Hypnota'} {'Queen_Clea' 'Hypnota'} {'Madame_Masque' 'Maxima'} {'Jewelee' 'Fake_Thomas_Jefferson'} {'Jewelee' 'Maxima'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Southpaw' 'Silver_Banshee'} {'Animora' 'Professor_Padraic_Ratigan'} {'Dansen_Macabre' 'Jason_Kreis'} {'Valentina' 'Professor_Padraic_Ratigan'} {'Animora' 'Jason_Kreis'} {'Animora' 'Silver_Banshee'} {'Southpaw' 'Professor_Padraic_Ratigan'} {'Dansen_Macabre' 'Titania'} {'Valentina' 'Jason_Kreis'} {'Valentina' 'Titania'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Saturn_Queen' 'Lazara'} {'Decay' 'Magpie'} {'Saturn_Queen' 'Decay'} {'Harley_Quinn' 'Magpie'} {'Bombshell' 'Silver_Banshee'} {'Decay' 'Lazara'} {'Decay' 'Madame_Masque'} {'Saturn_Queen' 'Silver_Banshee'} {'Bombshell' 'Madame_Masque'} {'Harley_Quinn' 'Lazara'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Silver_Banshee' 'Osira'} {'Jewelee' 'Dead_Bowie'} {'Scandal' 'Poison_Ivy'} {'Scandal' 'Osira'} {'Shiv' 'Dead_Bowie'} {'Shiv' 'Rad'} {'Silver_Banshee' 'Poison_Ivy'} {'Jewelee' 'Osira'} {'Scandal' 'Shiv'} {'Silver_Banshee' 'Rad'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Scandal' 'Roulette'} {'Poison_Ivy' 'Mephista'} {'Amazing_Grace' 'Spider_Girl'} {'Poison_Ivy' 'Roulette'} {'Scandal' 'Lafety_Le_Fei'} {'Mephista' 'Lafety_Le_Fei'} {'Mephista' 'Spider_Girl'} {'Poison_Ivy' 'Princess_Python'} {'Poison_Ivy' 'Spider_Girl'} {'Amazing_Grace' 'Princess_Python'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dr_Horrible' 'Genevieve_Savidge'} {'Decay' 'Windfall'} {'Dansen_Macabre' 'Princess_Python'} {'Purgatori' 'Windfall'} {'Purgatori' 'Princess_Python'} {'Purgatori' 'Mist'} {'Dr_Horrible' 'Mist'} {'Dansen_Macabre' 'Genevieve_Savidge'} {'Decay' 'Mist'} {'Dr_Horrible' 'Princess_Python'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Typhoid_Mary' 'Margaret_Love'} {'Typhoid_Mary' 'Sun_Girl'} {'Typhoid_Mary' 'Osira'} {'Deuce' 'Fake_Thomas_Jefferson'} {'Fake_Thomas_Jefferson' 'Margaret_Love'} {'Deuce' 'Sun_Girl'} {'Fake_Thomas_Jefferson' 'Tala'} {'Lashina' 'Sun_Girl'} {'Lashina' 'Tala'} {'Deuce' 'Osira'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Golden_Glider' 'Rad'} {'Lashina' 'Mothergod'} {'White_Rabbit' 'Asbestos_Lady'} {'Star_Sapphire' 'White_Rabbit'} {'Lafety_Le_Fei' 'Star_Sapphire'} {'Mothergod' 'Lafety_Le_Fei'} {'Fury_Leika' 'Lashina'} {'Asbestos_Lady' 'Golden_Glider'} {'Rad' 'Fury_Leika'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Coachwhip' 'Abominatrix'} {'Lady_Death' 'Abominatrix'} {'Superwoman' 'Queen_Clea'} {'Coachwhip' 'Queen_Clea'} {'Superwoman' 'Tigress'} {'Coachwhip' 'Silk_Fever'} {'Rad' 'Lady_Death'} {'Rad' 'Tigress'} {'Rad' 'Silk_Fever'} {'Lady_Death' 'Queen_Clea'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Poison_Ivy' 'Leather'} {'Zaladane' 'Star_Sapphire'} {'Ursa' 'Star_Sapphire'} {'Poison_Ivy' 'Ursa'} {'Lady_Death' 'Harley_Quinn'} {'Poison_Ivy' 'Evinlea'} {'Zaladane' 'Evinlea'} {'Ursa' 'Leather'} {'Lady_Death' 'Leather'} {'Poison_Ivy' 'Harley_Quinn'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Margaret_Love' 'Duela_Dent'} {'Margaret_Love' 'Fake_Thomas_Jefferson'} {'Jewelee' 'Jason_Kreis'} {'Lagomorph' 'Jewelee'} {'Lagomorph' 'Fake_Thomas_Jefferson'} {'Lagomorph' 'Duela_Dent'} {'Madame_Masque' 'Jason_Kreis'} {'Jewelee' 'Decay'} {'Margaret_Love' 'Decay'} {'Madame_Masque' 'Fake_Thomas_Jefferson'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jason_Kreis' 'Jewelee'} {'Fury_Leika' 'Queen_Clea'} {'Jason_Kreis' 'Unicron'} {'Fury_Leika' 'Lagomorph'} {'Fury_Leika' 'Jewelee'} {'Abominatrix' 'Lagomorph'} {'Black_Mamba' 'Lagomorph'} {'Black_Mamba' 'Unicron'} {'Abominatrix' 'Queen_Clea'} {'Abominatrix' 'Unicron'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Osira' 'Golden_Glider'} {'Osira' 'Scandal'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Bee' 'Golden_Glider'} {'Sun_Girl' 'Lady_Vic'} {'Queen_Bee' 'Margaret_Love'} {'Sun_Girl' 'Golden_Glider'} {'Queen_Bee' 'Lady_Vic'} {'Sun_Girl' 'Madame_Masque'} {'Sun_Girl' 'Scandal'} {'Queen_Bee' 'Scandal'} {'Sun_Girl' 'Margaret_Love'} {'Queen_Bee' 'Madame_Masque'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lashina' 'Mothergod'} {'Lashina' 'Devastation'} {'Lashina' 'Decay'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Doctor_Cyber' 'Queen_Clea'} {'Ingra' 'Spider_Girl'} {'Ingra' 'Sun_Girl'} {'Doctor_Cyber' 'Spider_Girl'} {'New_Wave' 'Queen_Clea'} {'Dansen_Macabre' 'Tigress'} {'Dansen_Macabre' 'Spider_Girl'} {'New_Wave' 'Spider_Girl'} {'Doctor_Cyber' 'Sun_Girl'} {'New_Wave' 'Tigress'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Coachwhip' 'Southpaw'} {'Coachwhip' 'The_Crimson_Ghost'} {'Abominatrix' 'The_Crimson_Ghost'} {'Tala' 'Hypnota'} {'Madame_Masque' 'The_Crimson_Ghost'} {'Tala' 'New_Wave'} {'Tala' 'The_Crimson_Ghost'} {'Abominatrix' 'Hypnota'} {'Madame_Masque' 'Southpaw'} {'Coachwhip' 'New_Wave'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Black_Mamba' 'Emerald_Empress'} {'Golddigger' 'Prank'} {'Saturn_Queen' 'Prank'} {'Golddigger' 'Nyssa_Raatko'} {'Black_Mamba' 'Hypnota'} {'Saturn_Queen' 'Nyssa_Raatko'} {'Fury_Leika' 'Nyssa_Raatko'} {'Fury_Leika' 'Prank'} {'Fury_Leika' 'Hypnota'} {'Saturn_Queen' 'Emerald_Empress'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'New_Wave'} {'Dead_Bowie' 'Typhoid_Mary'} {'Queen_Clea' 'Typhoid_Mary'} {'Lotso' 'Lagomorph'} {'Lotso' 'Southpaw'} {'Decay' 'New_Wave'} {'Lotso' 'New_Wave'} {'Dead_Bowie' 'Lotso'} {'Queen_Clea' 'Southpaw'} {'Decay' 'Lagomorph'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Eviless' 'Abominatrix'} {'Prank' 'Shimmer'} {'Rampage' 'Syndrome'} {'Queen_Bee' 'Syndrome'} {'Prank' 'Queen_Clea'} {'Prank' 'Syndrome'} {'Queen_Bee' 'Abominatrix'} {'Eviless' 'Shimmer'} {'Rampage' 'Eviless'} {'Rampage' 'Queen_Clea'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Tala' 'Professor_Padraic_Ratigan'} {'Decay' 'Silver_Swan'} {'Queen_Clea' 'Black_Mamba'} {'Poundcakes' 'King_Ghidorah'} {'Poundcakes' 'Silver_Swan'} {'Poundcakes' 'Tala'} {'Queen_Clea' 'Professor_Padraic_Ratigan'} {'Poundcakes' 'Black_Mamba'} {'Decay' 'King_Ghidorah'} {'Tala' 'Silver_Swan'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Tala' 'Bombshell'} {'Tala' 'Mai_Shen'} {'Tala' 'Madame_Rouge'} {'Tala' 'Spider_Girl'} {'Tala' 'Dr_Horrible'} {'Tala' 'Madame_Masque'} {'Tala' 'Lazara'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Livewire' 'Lady_Clay'} {'Livewire' 'Queen_Clea'} {'New_Wave' 'Queen_Clea'} {'New_Wave' 'Lady_Clay'} {'Livewire' 'Rad'} {'New_Wave' 'Rad'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Plastique' 'Cyborgirl'} {'Plastique' 'Tigress'} {'Plastique' 'Superwoman'} {'Plastique' 'Queen_Of_Fables'} {'Plastique' 'Star_Sapphire'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Professor_Padraic_Ratigan' 'Animora'} {'Princess_Python' 'Shiv'} {'Sun_Girl' 'Typhoid_Mary'} {'New_Wave' 'Animora'} {'Professor_Padraic_Ratigan' 'Lady_Clay'} {'New_Wave' 'Lady_Clay'} {'Sun_Girl' 'Shiv'} {'New_Wave' 'Typhoid_Mary'} {'Princess_Python' 'Lady_Clay'} {'Sun_Girl' 'Animora'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Sun_Girl' 'Golddigger'} {'Jewelee' 'Golddigger'} {'Zaladane' 'Deuce'} {'Sun_Girl' 'Deuce'} {'Mai_Shen' 'Golddigger'} {'Jewelee' 'Lazara'} {'Mai_Shen' 'Lazara'} {'Sun_Girl' 'Lazara'} {'Zaladane' 'Lashina'} {'Jewelee' 'Lashina'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Jason_Kreis' 'Amazing_Grace'} {'Maxima' 'Ursa'} {'Queen_Bee' 'Gru'} {'Jason_Kreis' 'Gru'} {'Ursa' 'Lady_Death'} {'Maxima' 'Amazing_Grace'} {'Queen_Bee' 'Tala'} {'Ursa' 'Tala'} {'Jason_Kreis' 'Lady_Death'} {'Maxima' 'Gru'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lagomorph' 'Doctor_Cyber'} {'Mothergod' 'Roulette'} {'Doctor_Cyber' 'Dr_Evil'} {'Roulette' 'Lagomorph'} {'Jewelee' 'Magenta'} {'Fury_Leika' 'Mothergod'} {'Dr_Evil' 'Jewelee'} {'Magenta' 'Fury_Leika'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Dead_Bowie' 'Fake_Thomas_Jefferson'} {'Fake_Thomas_Jefferson' 'Fury_Leika'} {'Fury_Leika' 'Dead_Bowie'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Scandal' 'Eviless'} {'Queen_Of_Fables' 'Queen_Bee'} {'Queen_Of_Fables' 'Duela_Dent'} {'Scandal' 'Duela_Dent'} {'Emerald_Empress' 'Eviless'} {'Syndrome' 'Yellowjacket'} {'Syndrome' 'Eviless'} {'Scandal' 'Yellowjacket'} {'Emerald_Empress' 'Queen_Bee'} {'Emerald_Empress' 'Scandal'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Lazara' 'Blue_Snowman'} {'Lazara' 'Margaret_Love'} {'Lazara' 'Rad'} {'Lazara' 'Syndrome'} {'Lazara' 'Shiv'} {'Lazara' 'Spider_Girl'} {'Lazara' 'Silver_Swan'} {'Lazara' 'Coachwhip'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Valentina' 'Asbestos_Lady'} {'Valentina' 'Doctor_Cyber'} {'Ingra' 'Doctor_Cyber'} {'Scandal' 'Asbestos_Lady'} {'Ingra' 'Professor_Padraic_Ratigan'} {'Valentina' 'Yellowjacket'} {'Lotso' 'Professor_Padraic_Ratigan'} {'Lotso' 'Yellowjacket'} {'Lotso' 'Asbestos_Lady'} {'Scandal' 'Yellowjacket'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Devastation' 'Hypnota'} {'Purgatori' 'Livewire'} {'Evinlea' 'Hypnota'} {'Evinlea' 'Lazara'} {'Devastation' 'Lazara'} {'Nyssa_Raatko' 'Duela_Dent'} {'Evinlea' 'Livewire'} {'Nyssa_Raatko' 'Hypnota'} {'Purgatori' 'Hypnota'} {'Devastation' 'Duela_Dent'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Shimmer' 'Saturn_Queen'} {'Shimmer' 'Lafety_Le_Fei'} {'Golden_Glider' 'Saturn_Queen'} {'Shimmer' 'Cyborgirl'} {'Poison_Ivy' 'Lafety_Le_Fei'} {'Zaladane' 'Cyborgirl'} {'Golden_Glider' 'Cyborgirl'} {'Poison_Ivy' 'Snapdragon'} {'Golden_Glider' 'Snapdragon'} {'Zaladane' 'Saturn_Queen'} };\r\nexp=1;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Queen_Of_Fables' 'Lazara'} {'Saturn_Queen' 'Golden_Glider'} {'Queen_Of_Fables' 'Golden_Glider'} {'Fury_Leika' 'Duela_Dent'} {'Dr_Horrible' 'Golden_Glider'} {'Fury_Leika' 'Ingra'} {'Queen_Of_Fables' 'Duela_Dent'} {'Fury_Leika' 'Dr_Horrible'} {'Saturn_Queen' 'Ingra'} {'Dr_Horrible' 'Lazara'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\n%%\r\nnames={{'Hypnota' 'Abominatrix'} {'New_Wave' 'Mothergod'} {'Hypnota' 'Mothergod'} {'Harley_Quinn' 'Tigress'} {'Harley_Quinn' 'Hypnota'} {'Lady_Vic' 'Tigress'} {'New_Wave' 'Trinity'} {'New_Wave' 'Abominatrix'} {'Harley_Quinn' 'Trinity'} {'Lady_Vic' 'Abominatrix'} };\r\nexp=0;\r\nTF=Make_Teams(names);\r\nassert(TF==exp)\r\ntoc\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":11,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-09-18T04:20:57.000Z","updated_at":"2013-09-18T04:34:45.000Z","published_at":"2013-09-18T04:34:45.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://code.google.com/codejam/contest/2933486/dashboard#s=p0\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eGJam 2013 China Bad Horse\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e. The problem is codified using a cell array of names.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe Challenge involves creating two teams with no pair of individuals on either team having a conflict. The input is a list of pairs of individuals who can not be placed on the same team. The Challenge is to determine if two teams can be created that do not have any players with conflicts.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e conflicted name pairs (cell array of pairs of names)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e TF (TF=1 if two Good teams are possible, 0 if Happy teams are non-producible)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eCompetition Summary:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Best Time of 9 minutes, 789 out of 1984 correct\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":58827,"title":"Troubles With Spaces - Convert Some Messy Data Into A Clean Array","description":"I have a bunch of messy data I have to go through. The data is stored in an odd format, so str2num isn't working. And even when I get it to work, it is still too slow!\r\nI need you to turn the strings into numbers. Any '+++++++' values are values that overloaded the data collection device and should be set to NaN.\r\n'- 6.496' =\u003e -6.496\r\n'-10.430' =\u003e -10.430\r\n'+++++++' =\u003e NaN\r\n'+11.664' =\u003e 11.664\r\nOh, and output it into an array because I hate working with cells.  And there's a lot of data so it had better be fast!","description_html":"\u003cdiv style = \"text-align: start; line-height: 20.44px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Menlo, Monaco, Consolas, monospace; font-style: normal; font-size: 14px; font-weight: 400; text-decoration: none solid rgb(0, 0, 0); white-space: normal; \"\u003e\u003cdiv style=\"block-size: 215.795px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 406.989px 107.898px; transform-origin: 406.996px 107.898px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 42.017px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.991px 21.0085px; text-align: left; transform-origin: 383.999px 21.0085px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eI have a bunch of messy data I have to go through. The data is stored in an odd format, so str2num isn't working. And even when I get it to work, it is still too slow!\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 42.017px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 2px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 2px; perspective-origin: 383.991px 21.0085px; text-align: left; transform-origin: 383.999px 21.0085px; white-space-collapse: preserve; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eI need you to turn the strings into numbers. Any '+++++++' values are values that overloaded the data collection device and should be set to NaN.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 81.7614px; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-end-end-radius: 4px; border-end-start-radius: 4px; border-start-end-radius: 4px; border-start-start-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; margin-block-end: 10px; margin-block-start: 10px; margin-bottom: 10px; margin-inline-end: 3px; margin-inline-start: 3px; margin-left: 3px; margin-right: 3px; margin-top: 10px; perspective-origin: 403.991px 40.8807px; transform-origin: 403.999px 40.8807px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4403px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.909091px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.909091px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.909091px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.909091px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.991px 10.2131px; text-wrap: nowrap; transform-origin: 403.999px 10.2202px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'- 6.496' \u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e=\u0026gt; -6.496\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4403px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.909091px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.909091px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.909091px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.909091px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.991px 10.2131px; text-wrap: nowrap; transform-origin: 403.999px 10.2202px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'-10.430' \u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e=\u0026gt; -10.430\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4403px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.909091px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.909091px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.909091px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.909091px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.991px 10.2131px; text-wrap: nowrap; transform-origin: 403.999px 10.2202px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'+++++++' \u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e=\u0026gt; NaN\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20.4403px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-end-end-radius: 0px; border-end-start-radius: 0px; border-inline-end-color: rgb(233, 233, 233); border-inline-end-style: solid; border-inline-end-width: 0.909091px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.909091px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.909091px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.909091px; border-start-end-radius: 0px; border-start-start-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; min-block-size: 18px; min-height: 18px; padding-inline-start: 4px; padding-left: 4px; perspective-origin: 403.991px 10.2131px; text-wrap: nowrap; transform-origin: 403.999px 10.2202px; \"\u003e\u003cspan style=\"block-size: auto; border-inline-end-color: rgb(0, 0, 0); border-inline-end-style: none; border-inline-end-width: 0px; border-inline-start-color: rgb(0, 0, 0); border-inline-start-style: none; border-inline-start-width: 0px; border-left-color: rgb(0, 0, 0); border-left-style: none; border-left-width: 0px; border-right-color: rgb(0, 0, 0); border-right-style: none; border-right-width: 0px; display: inline; margin-inline-end: 45px; margin-right: 45px; min-block-size: 0px; min-height: 0px; padding-inline-start: 0px; padding-left: 0px; perspective-origin: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space-collapse: preserve; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(170, 4, 249); border-block-start-color: rgb(170, 4, 249); border-bottom-color: rgb(170, 4, 249); border-inline-end-color: rgb(170, 4, 249); border-inline-start-color: rgb(170, 4, 249); border-left-color: rgb(170, 4, 249); border-right-color: rgb(170, 4, 249); border-top-color: rgb(170, 4, 249); caret-color: rgb(170, 4, 249); color: rgb(170, 4, 249); column-rule-color: rgb(170, 4, 249); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(170, 4, 249); text-decoration: none; text-decoration-color: rgb(170, 4, 249); text-emphasis-color: rgb(170, 4, 249); \"\u003e'+11.664' \u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e=\u0026gt; 11.664\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 21.0085px; font-family: Helvetica, Arial, sans-serif; line-height: 21px; margin-block-end: 9px; margin-block-start: 10px; margin-bottom: 9px; margin-inline-end: 10px; margin-inline-start: 4px; margin-left: 4px; margin-right: 10px; margin-top: 10px; perspective-origin: 383.991px 10.4972px; text-align: left; transform-origin: 383.999px 10.5043px; white-space-collapse: preserve; margin-left: 4px; margin-top: 10px; margin-bottom: 9px; margin-right: 10px; \"\u003e\u003cspan style=\"block-size: auto; display: inline; margin-block-end: 0px; margin-block-start: 0px; margin-bottom: 0px; margin-inline-end: 0px; margin-inline-start: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; perspective-origin: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eOh, and output it into an array because I hate working with cells.  And there's a lot of data so it had better be fast!\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = str2numBetter(x)\r\n  y = str2num(cell2mat(x));\r\nend","test_suite":"%%\r\n% This first test should cover every possible case.\r\nx = {'- 6.496';'-10.430';'- 0.493';'+++++++';'+ 6.949';'- 5.368';'+13.214';'+11.664'};\r\nfinalData = [-6.496;-10.430;-0.493';NaN;+6.949;-5.368;+13.214;+11.664];\r\n\r\nassert(isequaln(str2numBetter(x),finalData))\r\n\r\n%%\r\nrng shuffle\r\nn = 30000; % Something small to start you off with.\r\nrNums=10*rand([n 1]);\r\nrNums(rNums\u003e9.99)=NaN;\r\nstr=char(sprintfc('%.3f', rNums, false));\r\nneg=2*randi([0 1],[n 1]);\r\ntens=randi([0 1],[n 1]);\r\nstr = [char(neg+'+') char(17*tens+' ') str];\r\nplus=('+');\r\nstr(isnan(rNums),:)=plus(ones(nnz(isnan(rNums)),7));\r\nx=mat2cell(str,ones(1,n),7);\r\ntic; y=str2numBetter(x); toc % The code I wrote took 0.005872 seconds to run\r\nfinalData = round(-1*(neg-1).*(rNums+10*tens),3);\r\n\r\nassert(isequaln(y,finalData))\r\n\r\n%%\r\nrng shuffle\r\nn = 12000000; % Yes! I have this much data!!!\r\nrNums=10*rand([n 1]);\r\nrNums(rNums\u003e9.99)=NaN; % Real world values overflow\r\nstr=char(sprintfc('%.3f', rNums, false)); % This is what num2str uses\r\nneg=2*randi([0 1],[n 1]); % Some numbers will be random\r\ntens=randi([0 1],[n 1]); % Some numbers will be \u003e10, but in an odd format \r\nstr = [char(neg+'+') char(17*tens+' ') str]; % Add the weird 10's place and multiply by negatives\r\nplus=('+');\r\nstr(isnan(rNums),:)=plus(ones(nnz(isnan(rNums)),7)); % Replace NaN with something more annoying\r\nx=mat2cell(str,ones(1,n),7); % The data is in cells, not an array!\r\ntic; y=str2numBetter(x); toc % The code I wrote takes about 3.5 seconds to run, with a size of 130.\r\nfinalData = round(-1*(neg-1).*(rNums+10*tens),3);\r\n\r\nassert(isequaln(y,finalData))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3115675,"edited_by":3115675,"edited_at":"2023-08-08T14:27:45.000Z","deleted_by":null,"deleted_at":null,"solvers_count":3,"test_suite_updated_at":"2023-08-08T14:27:45.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2023-08-07T21:52:56.000Z","updated_at":"2023-08-08T14:27:45.000Z","published_at":"2023-08-07T22:00:31.000Z","restored_at":null,"restored_by":null,"spam":null,"simulink":false,"admin_reviewed":false,"description_opc":"{\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eI have a bunch of messy data I have to go through. The data is stored in an odd format, so str2num isn't working. And even when I get it to work, it is still too slow!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eI need you to turn the strings into numbers. Any '+++++++' values are values that overloaded the data collection device and should be set to NaN.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA['- 6.496' =\u003e -6.496\\n'-10.430' =\u003e -10.430\\n'+++++++' =\u003e NaN\\n'+11.664' =\u003e 11.664]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOh, and output it into an array because I hate working with cells.  And there's a lot of data so it had better be fast!\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":1533,"title":"Criss-Cross Verification: NHL","description":"This Challenge is to verify a Criss-Cross matrix has no invalid words,contains all of the word set, and all are simply connected (Up/Down/Left/Right). Separation, UDLR, must exist between non-intersecting words. Diagonal is considered separate.\r\n\r\nThe word set is a cell array. The matrix is an array of Char with spaces being represented by '`', char(96), which is under the tilde on my keyboard.\r\n\r\n*Example:*\r\n\r\n*Input:*\r\n\r\n  dict={'abcd' 'cag'}\r\n  \r\n  Achar=['abcd'\r\n         '``a`'\r\n         '``g`'];\r\n\r\n*Output:* Validity (1 for Valid, 0 for Invalid)\r\n\r\n\r\n*Related Challenges:*\r\n\r\nThis Challenge is derived from GAMES August 2013 Contest \"On the Ice\" to fit all NHL Team names into a minimum area grid using the Criss-Cross rules.\r\nCurrent Best solution is 19x19, 6/3/2013. Contest ends 8/31/2013.\r\n\r\n1) Create an NHL Criss-Cross  (Score by Area)\r\n\r\n2) Complete a Criss-Cross\r\n\r\n3) Create a Criss-Cross dictionary from a matrix","description_html":"\u003cp\u003eThis Challenge is to verify a Criss-Cross matrix has no invalid words,contains all of the word set, and all are simply connected (Up/Down/Left/Right). Separation, UDLR, must exist between non-intersecting words. Diagonal is considered separate.\u003c/p\u003e\u003cp\u003eThe word set is a cell array. The matrix is an array of Char with spaces being represented by '`', char(96), which is under the tilde on my keyboard.\u003c/p\u003e\u003cp\u003e\u003cb\u003eExample:\u003c/b\u003e\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003edict={'abcd' 'cag'}\r\n\u003c/pre\u003e\u003cpre class=\"language-matlab\"\u003eAchar=['abcd'\r\n       '``a`'\r\n       '``g`'];\r\n\u003c/pre\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Validity (1 for Valid, 0 for Invalid)\u003c/p\u003e\u003cp\u003e\u003cb\u003eRelated Challenges:\u003c/b\u003e\u003c/p\u003e\u003cp\u003eThis Challenge is derived from GAMES August 2013 Contest \"On the Ice\" to fit all NHL Team names into a minimum area grid using the Criss-Cross rules.\r\nCurrent Best solution is 19x19, 6/3/2013. Contest ends 8/31/2013.\u003c/p\u003e\u003cp\u003e1) Create an NHL Criss-Cross  (Score by Area)\u003c/p\u003e\u003cp\u003e2) Complete a Criss-Cross\u003c/p\u003e\u003cp\u003e3) Create a Criss-Cross dictionary from a matrix\u003c/p\u003e","function_template":"function valid=check_crisscross(Achar,dict_cell)\r\n valid=1;\r\nend","test_suite":"%%\r\ndict_cell={'abcd'\r\n'cat'\r\n'dot'};\r\n\r\nAchar=['abcd'\r\n'``a`'\r\n'dot`'];\r\n\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==1)\r\n%%\r\ndict_cell={'abcd'\r\n'cat'\r\n'dot'\r\n'bcd'};\r\n\r\nAchar=['abcd'\r\n'``a`'\r\n'dot`'];\r\n% Need a unique bcd word\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==0)\r\n%%\r\ndict_cell={'abcd'\r\n'cat'\r\n'dot'\r\n'acd'};\r\n\r\nAchar=['abcd'\r\n'c`a`'\r\n'dot`'];\r\n% valid matrix\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==1)\r\n%%\r\ndict_cell={'avalanche'\r\n'bluejackets'\r\n'blackhawks'\r\n'blues'\r\n'bruins'\r\n'canadiens'\r\n'canucks'\r\n'capitals'\r\n'coyotes'\r\n'devils'\r\n'ducks'\r\n'flames'\r\n'flyers'\r\n'hurricanes'\r\n'islanders'\r\n'jets'\r\n'kings'\r\n'lightning'\r\n'mapleleafs'\r\n'oilers'\r\n'panthers'\r\n'penguins'\r\n'predators'\r\n'rangers'\r\n'redwings'\r\n'sabres'\r\n'senators'\r\n'sharks'\r\n'stars'\r\n'wild'};\r\n\r\nAchar=['```````hurricanes``s'\r\n'rangers`````o````m`e'\r\n'e`````t```flyers`a`n'\r\n'd`````a`````o````p`a'\r\n'w`````r`capitals`l`t'\r\n'i`ducks`````e````e`o'\r\n'n```a``sabres````l`r'\r\n'g`kings``l````oilers'\r\n's```u``bruins````a``'\r\n'````c````e`````p`f``'\r\n'blackhawks``sharks``'\r\n'``v`s``````````e````'\r\n'``a````````i```d``p`'\r\n'`bluejackets```a``e`'\r\n'``a````````lightning'\r\n'canadiens``a```o``g`'\r\n'``c``````panthers`u`'\r\n'``h`w``````d```s``i`'\r\n'`devils```jets````n`'\r\n'````l``````r``````s`'\r\n'````d`flames````````'];\r\n\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==1)\r\n%%\r\ndict_cell={'avalanche'\r\n'bluejackets'\r\n'blackhawks'\r\n'blues'\r\n'bruins'\r\n'canadiens'\r\n'canucks'\r\n'capitals'\r\n'coyotes'\r\n'devils'\r\n'ducks'\r\n'flames'\r\n'flyers'\r\n'hurricanes'\r\n'islanders'\r\n'jets'\r\n'kings'\r\n'lightning'\r\n'mapleleafs'\r\n'oilers'\r\n'panthers'\r\n'penguins'\r\n'predators'\r\n'rangers'\r\n'redwings'\r\n'sabres'\r\n'senators'\r\n'sharks'\r\n'stars'\r\n'wild'};\r\n\r\nAchar=['```````hurricanes``s'\r\n'rangers`````o````m`e'\r\n'e`````t```flyers`a`n'\r\n'd`````a`````o````p`a'\r\n'w`````r`capitals`l`t'\r\n'i`ducks`````e````e`o'\r\n'n```a``sabres````l`r'\r\n'g`kings``l````oilers'\r\n's```u``bruins````a``'\r\n'````c````e`````p`f``'\r\n'blackhawks``sharks``'\r\n'``v`s``````````e````'\r\n'``a````````i```d``p`'\r\n'`bluejackets```a``e`'\r\n'``a````````lightning'\r\n'canadiens``a```o``g`'\r\n'``c``````panthers`u`'\r\n'``h`w``````d```s``i`'\r\n'`devils```jets````n`'\r\n'````l``````r```jets`'\r\n'````d`flames````````'];\r\n\r\n% jets is duplicated\r\n\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==0)\r\n%%\r\ndict_cell={'avalanche'\r\n'bluejackets'\r\n'blackhawks'\r\n'blues'\r\n'bruins'\r\n'canadiens'\r\n'canucks'\r\n'capitals'\r\n'coyotes'\r\n'devils'\r\n'ducks'\r\n'flames'\r\n'flyers'\r\n'hurricanes'\r\n'islanders'\r\n'jets'\r\n'kings'\r\n'lightning'\r\n'mapleleafs'\r\n'oilers'\r\n'panthers'\r\n'penguins'\r\n'predators'\r\n'rangers'\r\n'redwings'\r\n'sabres'\r\n'senators'\r\n'sharks'\r\n'stars'\r\n'wild'};\r\n\r\nAchar=['```````hurricanes``s'\r\n'rangers`````o````m`e'\r\n'e`````t```flyers`a`n'\r\n'd`````a`````o````p`a'\r\n'w`````r`capitals`l`t'\r\n'i`ducks`````e````e`o'\r\n'n```a``sabres````l`r'\r\n'g`kings``l````oilers'\r\n's```u``bruins````a``'\r\n'````c````e`````p`f``'\r\n'blackhawks``sharks``'\r\n'``v`s``````````e````'\r\n'``a````````i```d``p`'\r\n'`bluejackets```a``e`'\r\n'``a````````lightning'\r\n'canadiens``a```o``g`'\r\n'``c``````panthers`u`'\r\n'``h`w``````d```s``i`'\r\n'`devils````e``````n`'\r\n'````l``````r``````s`'\r\n'````d`flames``jets``'];\r\n\r\n% Non-Connected jets\r\n\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==0)\r\n%%\r\ndict_cell={'avalanche'\r\n'bluejackets'\r\n'blackhawks'\r\n'blues'\r\n'bruins'\r\n'canadiens'\r\n'canucks'\r\n'capitals'\r\n'coyotes'\r\n'devils'\r\n'ducks'\r\n'flames'\r\n'flyers'\r\n'hurricanes'\r\n'islanders'\r\n'jets'\r\n'kings'\r\n'lightning'\r\n'mapleleafs'\r\n'oilers'\r\n'panthers'\r\n'penguins'\r\n'predators'\r\n'rangers'\r\n'redwings'\r\n'sabres'\r\n'senators'\r\n'sharks'\r\n'stars'\r\n'wild'};\r\n\r\nAchar=['```````hurricanes``s'\r\n'rangers`````o````m`e'\r\n'e`````t```flyers`a`n'\r\n'd`````a`````o````p`a'\r\n'w`````r`capitals`l`t'\r\n'i`ducks`````e````e`o'\r\n'n```a``sabres````l`r'\r\n'g`kings``l````oilers'\r\n's```u``bruins````a``'\r\n'````c````e`````p`f``'\r\n'blackhawks``sharks``'\r\n'``v`s``````````e````'\r\n'``a````````i```d````'\r\n'`bluejackets```a````'\r\n'``a````````lightning'\r\n'canadiens``a```o````'\r\n'``c``````panthers```'\r\n'``h`w``````d```s````'\r\n'`devils```jets``````'\r\n'````l``````r````````'\r\n'````d`flames````````'];\r\n% Missing penguins\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==0)\r\n%%\r\ndict_cell={'avalanche'\r\n'bluejackets'\r\n'blackhawks'\r\n'blues'\r\n'bruins'\r\n'canadiens'\r\n'canucks'\r\n'capitals'\r\n'coyotes'\r\n'devils'\r\n'ducks'\r\n'flames'\r\n'flyers'\r\n'hurricanes'\r\n'islanders'\r\n'jets'\r\n'kings'\r\n'lightning'\r\n'mapleleafs'\r\n'oilers'\r\n'panthers'\r\n'penguins'\r\n'predators'\r\n'rangers'\r\n'redwings'\r\n'sabres'\r\n'senators'\r\n'sharks'\r\n'stars'\r\n'wild'};\r\n\r\nAchar=['```````hurricanes``s'\r\n'rangers`````o````m`e'\r\n'e```jets``flyers`a`n'\r\n'd`````a`````o````p`a'\r\n'w`````r`capitals`l`t'\r\n'i`ducks`````e````e`o'\r\n'n```a``sabres````l`r'\r\n'g`kings``l````oilers'\r\n's```u``bruins````a``'\r\n'````c````e`````p`f``'\r\n'blackhawks``sharks``'\r\n'``v`s``````````e````'\r\n'``a````````i```d``p`'\r\n'`bluejackets```a``e`'\r\n'``a````````lightning'\r\n'canadiens``a```o``g`'\r\n'``c``````panthers`u`'\r\n'``h`w``````d```s``i`'\r\n'`devils````e``````n`'\r\n'````l``````r``````s`'\r\n'````d`flames````````'];\r\n% invalid jets on row 3\r\nvalid=check_crisscross(Achar,dict_cell);\r\nassert(valid==0)","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":6,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-02T16:57:18.000Z","updated_at":"2013-06-02T17:35:21.000Z","published_at":"2013-06-02T17:33:32.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is to verify a Criss-Cross matrix has no invalid words,contains all of the word set, and all are simply connected (Up/Down/Left/Right). Separation, UDLR, must exist between non-intersecting words. Diagonal is considered separate.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThe word set is a cell array. The matrix is an array of Char with spaces being represented by '`', char(96), which is under the tilde on my keyboard.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[dict={'abcd' 'cag'}\\n\\nAchar=['abcd'\\n       '``a`'\\n       '``g`'];]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Validity (1 for Valid, 0 for Invalid)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eRelated Challenges:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is derived from GAMES August 2013 Contest \\\"On the Ice\\\" to fit all NHL Team names into a minimum area grid using the Criss-Cross rules. Current Best solution is 19x19, 6/3/2013. Contest ends 8/31/2013.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e1) Create an NHL Criss-Cross (Score by Area)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e2) Complete a Criss-Cross\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e3) Create a Criss-Cross dictionary from a matrix\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1452,"title":"Minimum Distance between two N-sided Polygons","description":"This Challenge is to determine the minimum distance between two non-overlapping polygons. The input is a cell array of two vectors that represent the sequential points of 3 to 100 sided polygons. [x0 y0 x1 y1 ... xn yn]\r\n\r\n*Input:* polycell={[0 0 0 5 4 5 4 0] [2.5 5.5 3 9 -2 5.6]};\r\n\r\n*Output:* 0.5  \r\n\r\n\r\nRelated Challenges:\r\n\r\n1) \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1446-minimum-distance-point-to-segment Minimum Distance Point to Segment\u003e\r\n\r\n2) \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1457-usc-spring-2013-acm-walking-on-thin-ice USC Spring 2013 ACM Walking on Thin Ice\u003e","description_html":"\u003cp\u003eThis Challenge is to determine the minimum distance between two non-overlapping polygons. The input is a cell array of two vectors that represent the sequential points of 3 to 100 sided polygons. [x0 y0 x1 y1 ... xn yn]\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e polycell={[0 0 0 5 4 5 4 0] [2.5 5.5 3 9 -2 5.6]};\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e 0.5\u003c/p\u003e\u003cp\u003eRelated Challenges:\u003c/p\u003e\u003cp\u003e1) \u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/1446-minimum-distance-point-to-segment\"\u003eMinimum Distance Point to Segment\u003c/a\u003e\u003c/p\u003e\u003cp\u003e2) \u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/1457-usc-spring-2013-acm-walking-on-thin-ice\"\u003eUSC Spring 2013 ACM Walking on Thin Ice\u003c/a\u003e\u003c/p\u003e","function_template":"function pdistmin=PolytoPol(polycell)\r\n% Convert [x0 y0 x1 y1 ... xn yn] to nx2 array\r\n% Length of polycell{1} may vary from polycell{2}\r\n p1=reshape(polycell{1},2,[])';\r\n p2=reshape(polycell{2},2,[])';\r\n \r\n pdistmin=0;\r\nend","test_suite":"polycell={[0 0 5 10 10 0] [5 -1 6 -5 5 -5]};\r\np2p_min=PolytoPol(polycell);\r\nassert(abs(p2p_min-1)\u003c.01);\r\n%%\r\npolycell={[0 0 0 5 4 5 4 0] [2.5 5.5 3 9 -2 5.6]};\r\np2p_min=PolytoPol(polycell);\r\nassert(abs(p2p_min-0.5)\u003c.01);\r\n%%\r\npolycell={[0 10 0 90 50 50 100 90 100 10] [0 110 100 110 50 70]};\r\np2p_min=PolytoPol(polycell);\r\nassert(abs(p2p_min-15.617376)\u003c.01);\r\n%%\r\npolycell={[0 110 100 110 50 70] [20 5 50 7 30 5]};\r\np2p_min=PolytoPol(polycell);\r\nassert(abs(p2p_min-63)\u003c.01);\r\n%%\r\npolycell={[-5 -5 -4 -4 -3 -3 -2 -2 5 5 5 0] [6 10 6 -10 20 0]};\r\np2p_min=PolytoPol(polycell);\r\nassert(abs(p2p_min-1)\u003c.01);\r\n\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":27,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":20,"created_at":"2013-04-24T01:39:41.000Z","updated_at":"2026-02-16T10:57:04.000Z","published_at":"2013-04-24T02:03:10.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eThis Challenge is to determine the minimum distance between two non-overlapping polygons. The input is a cell array of two vectors that represent the sequential points of 3 to 100 sided polygons. [x0 y0 x1 y1 ... xn yn]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e polycell={[0 0 0 5 4 5 4 0] [2.5 5.5 3 9 -2 5.6]};\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e 0.5\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated Challenges:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e1)\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1446-minimum-distance-point-to-segment\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eMinimum Distance Point to Segment\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e2)\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1457-usc-spring-2013-acm-walking-on-thin-ice\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eUSC Spring 2013 ACM Walking on Thin Ice\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"},{"id":1631,"title":"Criss-Cross: NHL - Optimize Matrix Size","description":"Given the List of NHL Teams, fit all in a minimum area Criss-Cross with no invalid words, no duplications, and all connected.\r\n\r\n*Input:* Dictionary (cell array)\r\n\r\n*Output:* Array of Char  (spaces indicated by char(96))\r\n\r\n*Score:* Numer of Elements in Array (including unused)\r\n\r\nExample: \r\n\r\ndict={'abc' 'cat'}\r\n\r\nOutput: \r\n['abc';'``a';'``t']\r\n\r\n  abc\r\n  ``a\r\n  ``t\r\n\r\nScore: 9\r\n\r\nRelated Challenges:\r\n\r\n1) \u003chttp://www.mathworks.com/matlabcentral/cody/problems/1533-criss-cross-verification-nhl Verify Criss-Cross\u003e\r\n\r\n2) Create Criss-Cross dictionary from a matrix\r\n\r\n3) Games Magazine Contest 8/31/2013","description_html":"\u003cp\u003eGiven the List of NHL Teams, fit all in a minimum area Criss-Cross with no invalid words, no duplications, and all connected.\u003c/p\u003e\u003cp\u003e\u003cb\u003eInput:\u003c/b\u003e Dictionary (cell array)\u003c/p\u003e\u003cp\u003e\u003cb\u003eOutput:\u003c/b\u003e Array of Char  (spaces indicated by char(96))\u003c/p\u003e\u003cp\u003e\u003cb\u003eScore:\u003c/b\u003e Numer of Elements in Array (including unused)\u003c/p\u003e\u003cp\u003eExample:\u003c/p\u003e\u003cp\u003edict={'abc' 'cat'}\u003c/p\u003e\u003cp\u003eOutput: \r\n['abc';'``a';'``t']\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eabc\r\n``a\r\n``t\r\n\u003c/pre\u003e\u003cp\u003eScore: 9\u003c/p\u003e\u003cp\u003eRelated Challenges:\u003c/p\u003e\u003cp\u003e1) \u003ca href = \"http://www.mathworks.com/matlabcentral/cody/problems/1533-criss-cross-verification-nhl\"\u003eVerify Criss-Cross\u003c/a\u003e\u003c/p\u003e\u003cp\u003e2) Create Criss-Cross dictionary from a matrix\u003c/p\u003e\u003cp\u003e3) Games Magazine Contest 8/31/2013\u003c/p\u003e","function_template":"function H=criss_cross(dict)\r\n H=[''];\r\nend","test_suite":"%%\r\nfeval(@assignin,'caller','score',625);\r\n%%\r\ndict={'avalanche'\r\n'bluejackets'\r\n'blackhawks'\r\n'blues'\r\n'bruins'\r\n'canadiens'\r\n'canucks'\r\n'capitals'\r\n'coyotes'\r\n'devils'\r\n'ducks'\r\n'flames'\r\n'flyers'\r\n'hurricanes'\r\n'islanders'\r\n'jets'\r\n'kings'\r\n'lightning'\r\n'mapleleafs'\r\n'oilers'\r\n'panthers'\r\n'penguins'\r\n'predators'\r\n'rangers'\r\n'redwings'\r\n'sabres'\r\n'senators'\r\n'sharks'\r\n'stars'\r\n'wild'};\r\n\r\nt1 = cputime;\r\nH=criss_cross(dict)\r\nfprintf('Elapsed Time %.2f\\n',cputime-t1)\r\nfprintf('size of H %i %i\\n',size(H));\r\nscore=prod(size(H)); % if valid\r\n\r\n% Perform Validation : words\r\n a=H;\r\n% Ned's\r\n    gridWords = {};\r\n    for i = 1:2\r\n        a = a';\r\n        for j = 1:size(a,1)\r\n            tk = regexp(a(j,:),'(\\w\\w+)','tokens');\r\n            gridWords = [gridWords tk];\r\n        end\r\n    end\r\n    dictFound = cell(length(gridWords),1);\r\n    for i = 1:length(gridWords)\r\n        dictFound{i} = gridWords{i}{1};\r\n    end\r\n    dictFound = sort(dictFound);\r\n    dictGiven = sort(dict);\r\nassert(isequal(dictGiven,dictFound),sprintf('Invalid/Missing words'))\r\n\r\n% Perform Validation: Connected\r\nAchar=H;\r\n m= (Achar-96);\r\n m(m\u003e0)=Inf;\r\n% expand m and encircle with 0\r\n [nr, nc]=size(m);\r\n m=[zeros(nr,1) m zeros(nr,1)];\r\n m=[zeros(1,nc+2); m; zeros(1,nc+2)];\r\n nr=size(m,1);\r\n off_vec=[-1 1 -nr nr];\r\n % Initialize start location\r\n ptr=find(m==Inf,1,'first');\r\n curval=1;\r\n m(ptr)=curval;\r\n \r\n while ~isempty(ptr) % adjacent expansion search sequence\r\n  curval=curval+1;\r\n  Moff_vec=repmat(ptr,1,4)+repmat(off_vec,size(ptr,1),1);\r\n  m(Moff_vec)=min(curval*ones(size(Moff_vec)), m(Moff_vec));\r\n  ptr=find(m==curval);\r\n end\r\n\r\ninvalid=any(m(:)==Inf); % Any unconnected from start point will be Inf\r\n\r\nassert(~invalid,sprintf('Not fully connected'))\r\n\r\nHscore=numel(H);\r\n\r\nfeval(@assignin,'caller','score',Hscore);","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":3097,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":3,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2013-06-08T22:55:40.000Z","updated_at":"2013-06-09T01:03:27.000Z","published_at":"2013-06-09T01:03:27.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eGiven the List of NHL Teams, fit all in a minimum area Criss-Cross with no invalid words, no duplications, and all connected.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eInput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Dictionary (cell array)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eOutput:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Array of Char (spaces indicated by char(96))\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:rPr\u003e\u003cw:b/\u003e\u003c/w:rPr\u003e\u003cw:t\u003eScore:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e Numer of Elements in Array (including unused)\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eExample:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003edict={'abc' 'cat'}\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eOutput: ['abc';'``a';'``t']\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[abc\\n``a\\n``t]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eScore: 9\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eRelated Challenges:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e1)\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"http://www.mathworks.com/matlabcentral/cody/problems/1533-criss-cross-verification-nhl\\\"\u003e\u003cw:r\u003e\u003cw:t\u003eVerify Criss-Cross\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e2) Create Criss-Cross dictionary from a matrix\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e3) Games Magazine Contest 8/31/2013\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"term":"tag:\"cell array\"","current_player_id":null,"fields":[{"name":"page","type":"integer","callback":null,"default":1,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"per_page","type":"integer","callback":null,"default":50,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"sort","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"body","type":"text","callback":null,"default":"*:*","directive":null,"facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":false},{"name":"group","type":"string","callback":null,"default":null,"directive":"group","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"difficulty_rating_bin","type":"string","callback":null,"default":null,"directive":"difficulty_rating_bin","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"id","type":"integer","callback":null,"default":null,"directive":"id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"tag","type":"string","callback":null,"default":null,"directive":"tag","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"product","type":"string","callback":null,"default":null,"directive":"product","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_at","type":"timeframe","callback":{},"default":null,"directive":"created_at","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"profile_id","type":"integer","callback":null,"default":null,"directive":"author_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_by","type":"string","callback":null,"default":null,"directive":"author","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player_id","type":"integer","callback":null,"default":null,"directive":"solver_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player","type":"string","callback":null,"default":null,"directive":"solver","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"solvers_count","type":"integer","callback":null,"default":null,"directive":"solvers_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"comments_count","type":"integer","callback":null,"default":null,"directive":"comments_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"likes_count","type":"integer","callback":null,"default":null,"directive":"likes_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leader_id","type":"integer","callback":null,"default":null,"directive":"leader_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leading_solution","type":"integer","callback":null,"default":null,"directive":"leading_solution","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true}],"filters":[{"name":"asset_type","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":"\"cody:problem\"","prepend":true},{"name":"profile_id","type":"integer","callback":{},"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":"author_id","static":null,"prepend":true}],"query":{"params":{"per_page":50,"term":"tag:\"cell array\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"cell array\"","","\"","cell array","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f6cb1ac1910\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f6cb1ac1870\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f6cb1ac0fb0\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f6cb1ac1b90\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f6cb1ac1af0\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f6cb1ac1a50\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f6cb1ac19b0\u003e":"tag:\"cell array\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f6cb1ac19b0\u003e":"tag:\"cell array\""},"queried_facets":{}},"query_backend":{"connection":{"configuration":{"index_url":"http://index-op-v2/solr/","query_url":"http://search-op-v2/solr/","direct_access_index_urls":["http://index-op-v2/solr/"],"direct_access_query_urls":["http://search-op-v2/solr/"],"timeout":10,"vhost":"search","exchange":"search.topic","heartbeat":30,"pre_index_mode":false,"host":"rabbitmq-eks","port":5672,"username":"cody-search","password":"78X075ddcV44","virtual_host":"search","indexer":"amqp","http_logging":"true","core":"cody"},"query_connection":{"uri":"http://search-op-v2/solr/cody/","proxy":null,"connection":{"parallel_manager":null,"headers":{"User-Agent":"Faraday v1.0.1"},"params":{},"options":{"params_encoder":"Faraday::FlatParamsEncoder","proxy":null,"bind":null,"timeout":null,"open_timeout":null,"read_timeout":null,"write_timeout":null,"boundary":null,"oauth":null,"context":null,"on_data":null},"ssl":{"verify":true,"ca_file":null,"ca_path":null,"verify_mode":null,"cert_store":null,"client_cert":null,"client_key":null,"certificate":null,"private_key":null,"verify_depth":null,"version":null,"min_version":null,"max_version":null},"default_parallel_manager":null,"builder":{"adapter":{"name":"Faraday::Adapter::NetHttp","args":[],"block":null},"handlers":[{"name":"Faraday::Response::RaiseError","args":[],"block":null}],"app":{"app":{"ssl_cert_store":{"verify_callback":null,"error":null,"error_string":null,"chain":null,"time":null},"app":{},"connection_options":{},"config_block":null}}},"url_prefix":"http://search-op-v2/solr/cody/","manual_proxy":false,"proxy":null},"update_format":"RSolr::JSON::Generator","update_path":"update","options":{"url":"http://search-op-v2/solr/cody"}}},"query":{"params":{"per_page":50,"term":"tag:\"cell array\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"cell array\"","","\"","cell array","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f6cb1ac1910\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f6cb1ac1870\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f6cb1ac0fb0\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f6cb1ac1b90\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f6cb1ac1af0\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f6cb1ac1a50\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f6cb1ac19b0\u003e":"tag:\"cell array\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f6cb1ac19b0\u003e":"tag:\"cell array\""},"queried_facets":{}},"options":{"fields":["id","difficulty_rating"]},"join":" "},"results":[{"id":42783,"difficulty_rating":"easy"},{"id":2167,"difficulty_rating":"easy"},{"id":44396,"difficulty_rating":"easy"},{"id":2168,"difficulty_rating":"easy"},{"id":2683,"difficulty_rating":"easy"},{"id":45306,"difficulty_rating":"easy"},{"id":61121,"difficulty_rating":"easy"},{"id":54350,"difficulty_rating":"easy"},{"id":43672,"difficulty_rating":"easy"},{"id":44078,"difficulty_rating":"easy-medium"},{"id":552,"difficulty_rating":"easy-medium"},{"id":43608,"difficulty_rating":"easy-medium"},{"id":43622,"difficulty_rating":"easy-medium"},{"id":2953,"difficulty_rating":"easy-medium"},{"id":1731,"difficulty_rating":"easy-medium"},{"id":1040,"difficulty_rating":"easy-medium"},{"id":51675,"difficulty_rating":"easy-medium"},{"id":43673,"difficulty_rating":"easy-medium"},{"id":43677,"difficulty_rating":"easy-medium"},{"id":61022,"difficulty_rating":"easy-medium"},{"id":42488,"difficulty_rating":"easy-medium"},{"id":42617,"difficulty_rating":"easy-medium"},{"id":44816,"difficulty_rating":"easy-medium"},{"id":44079,"difficulty_rating":"easy-medium"},{"id":1532,"difficulty_rating":"easy-medium"},{"id":2417,"difficulty_rating":"easy-medium"},{"id":3053,"difficulty_rating":"easy-medium"},{"id":43674,"difficulty_rating":"easy-medium"},{"id":1899,"difficulty_rating":"easy-medium"},{"id":2300,"difficulty_rating":"easy-medium"},{"id":1044,"difficulty_rating":"easy-medium"},{"id":60341,"difficulty_rating":"easy-medium"},{"id":2699,"difficulty_rating":"easy-medium"},{"id":1966,"difficulty_rating":"medium"},{"id":1198,"difficulty_rating":"medium"},{"id":43671,"difficulty_rating":"medium"},{"id":42291,"difficulty_rating":"medium"},{"id":1392,"difficulty_rating":"medium"},{"id":1876,"difficulty_rating":"medium"},{"id":1883,"difficulty_rating":"medium"},{"id":1881,"difficulty_rating":"medium"},{"id":58827,"difficulty_rating":"medium-hard"},{"id":1533,"difficulty_rating":"medium-hard"},{"id":1452,"difficulty_rating":"medium-hard"},{"id":1631,"difficulty_rating":"unrated"}]}}