{"group":{"id":1,"name":"Community","lockable":false,"created_at":"2012-01-18T18:02:15.000Z","updated_at":"2025-12-14T01:33:56.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":"2025-12-14T00: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":43616,"title":"Opposite task convert string hexadecimal numbers array into array of decimal numbers .","description":"Opposite task convert string hexadecimal numbers array into array of decimal numbers .\r\n\r\nExample\r\n\r\nx=[ '208';\r\n'209';\r\n'20A';\r\n'20B';\r\n'20C';\r\n'20D';\r\n'20E';\r\n'20F';\r\n'210';\r\n'211';\r\n'212';\r\n'213';\r\n'214';\r\n'215';\r\n'216';\r\n'217';\r\n'218';\r\n'219';\r\n'21A';\r\n'21B';\r\n'21C'];\r\n\r\nresult=[520;\r\n   521;\r\n   522;\r\n   523;\r\n   524;\r\n   525;\r\n   526;\r\n   527;\r\n   528;\r\n   529;\r\n   530;\r\n   531;\r\n   532;\r\n   533;\r\n   534;\r\n   535;\r\n   536;\r\n   537;\r\n   538;\r\n   539;\r\n   540]","description_html":"\u003cp\u003eOpposite task convert string hexadecimal numbers array into array of decimal numbers .\u003c/p\u003e\u003cp\u003eExample\u003c/p\u003e\u003cp\u003ex=[ '208';\r\n'209';\r\n'20A';\r\n'20B';\r\n'20C';\r\n'20D';\r\n'20E';\r\n'20F';\r\n'210';\r\n'211';\r\n'212';\r\n'213';\r\n'214';\r\n'215';\r\n'216';\r\n'217';\r\n'218';\r\n'219';\r\n'21A';\r\n'21B';\r\n'21C'];\u003c/p\u003e\u003cp\u003eresult=[520;\r\n   521;\r\n   522;\r\n   523;\r\n   524;\r\n   525;\r\n   526;\r\n   527;\r\n   528;\r\n   529;\r\n   530;\r\n   531;\r\n   532;\r\n   533;\r\n   534;\r\n   535;\r\n   536;\r\n   537;\r\n   538;\r\n   539;\r\n   540]\u003c/p\u003e","function_template":"function y = HexToDec(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx=[ '208';\r\n'209';\r\n'20A';\r\n'20B';\r\n'20C';\r\n'20D';\r\n'20E';\r\n'20F';\r\n'210';\r\n'211';\r\n'212';\r\n'213';\r\n'214';\r\n'215';\r\n'216';\r\n'217';\r\n'218';\r\n'219';\r\n'21A';\r\n'21B';\r\n'21C'];\r\ny_correct =[520;\r\n   521;\r\n   522;\r\n   523;\r\n   524;\r\n   525;\r\n   526;\r\n   527;\r\n   528;\r\n   529;\r\n   530;\r\n   531;\r\n   532;\r\n   533;\r\n   534;\r\n   535;\r\n   536;\r\n   537;\r\n   538;\r\n   539;\r\n   540];\r\nassert(isequal(HexToDec(x),y_correct))\r\n%%\r\nx=['32';\r\n'33';\r\n'34';\r\n'35';\r\n'36';\r\n'37';\r\n'38';\r\n'39';\r\n'3A';\r\n'3B';\r\n'3C';\r\n'3D';\r\n'3E';\r\n'3F';\r\n'40';\r\n'41';\r\n'42';\r\n'43';\r\n'44';\r\n'45';\r\n'46' ];\r\ny_correct =[50;\r\n    51;\r\n    52;\r\n    53;\r\n    54;\r\n    55;\r\n    56;\r\n    57;\r\n    58;\r\n    59;\r\n    60;\r\n    61;\r\n    62;\r\n    63;\r\n    64;\r\n    65;\r\n    66;\r\n    67;\r\n    68;\r\n    69;\r\n    70];\r\nassert(isequal(HexToDec(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":90467,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":58,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-24T22:16:49.000Z","updated_at":"2026-02-24T14:28:01.000Z","published_at":"2016-10-24T22:16:48.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\u003eOpposite task convert string hexadecimal numbers array into array of decimal numbers .\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=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ex=[ '208'; '209'; '20A'; '20B'; '20C'; '20D'; '20E'; '20F'; '210'; '211'; '212'; '213'; '214'; '215'; '216'; '217'; '218'; '219'; '21A'; '21B'; '21C'];\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\u003eresult=[520; 521; 522; 523; 524; 525; 526; 527; 528; 529; 530; 531; 532; 533; 534; 535; 536; 537; 538; 539; 540]\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":43614,"title":"Convert binary numbers array into array of decimal numbers.","description":"Convert binary numbers array into array of decimal numbers.\r\nExample\r\nx=[ 11001000 ; 11001001 ; 11001010 ; 11001011 ; 11001100 ; 11001101 ; 11001110 ; 11001111 ; 11010000 ; 11010001 ; 11010010 ; 11010011 ; 11010100 ; 11010101 ; 11010110 ; 11010111 ; 11011000 ; 11011001 ; 11011010 ; 11011011 ; 11011100 ; 11011101 ; 11011110 ; 11011111 ; 11100000 ; 11100001 ; 11100010 ; 11100011 ; 11100100 ; 11100101 ; 11100110]\r\nres= [ 200 ; 201 ; 202 ; 203 ; 204 ; 205 ; 206 ; 207 ; 208 ; 209 ; 210 ; 211 ; 212 213 ; 214 ; 215 ; 216 ; 217 ; 218 ; 219 ; 220 ; 221 ; 222 ; 223 ; 224 ; 225 ; 226 ; 227 ; 228 ; 229 ; 230]","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: 195px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 97.5px; transform-origin: 407px 97.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: 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: 192px 8px; transform-origin: 192px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eConvert binary numbers array into array of decimal numbers.\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: 26.5px 8px; transform-origin: 26.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eExample\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 84px; 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 42px; text-align: left; transform-origin: 384px 42px; 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: 382px 8px; transform-origin: 382px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003ex=[ 11001000 ; 11001001 ; 11001010 ; 11001011 ; 11001100 ; 11001101 ; 11001110 ; 11001111 ; 11010000 ; 11010001 ; 11010010 ; 11010011 ; 11010100 ; 11010101 ; 11010110 ; 11010111 ; 11011000 ; 11011001 ; 11011010 ; 11011011 ; 11011100 ; 11011101 ; 11011110 ; 11011111 ; 11100000 ; 11100001 ; 11100010 ; 11100011 ; 11100100 ; 11100101 ; 11100110]\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: 375.5px 8px; transform-origin: 375.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eres= [ 200 ; 201 ; 202 ; 203 ; 204 ; 205 ; 206 ; 207 ; 208 ; 209 ; 210 ; 211 ; 212 213 ; 214 ; 215 ; 216 ; 217 ; 218 ; 219 ; 220 ; 221 ; 222 ; 223 ; 224 ; 225 ; 226 ; 227 ; 228 ; 229 ; 230]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = BinToDec(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx=[ \r\n11001000 ;\r\n11001001 ; \r\n11001010 ;\r\n11001011 ;\r\n11001100 ;\r\n11001101 ;\r\n11001110 ;\r\n11001111 ;\r\n11010000 ;\r\n11010001 ;\r\n11010010 ;\r\n11010011 ;\r\n11010100 ;\r\n11010101 ;\r\n11010110 ;\r\n11010111 ; \r\n11011000 ; \r\n11011001 ;\r\n11011010 ; \r\n11011011 ;\r\n11011100 ;\r\n11011101 ; \r\n11011110 ;\r\n11011111 ;\r\n11100000 ; \r\n11100001 ;\r\n11100010 ;\r\n11100011 ;\r\n11100100 ;\r\n11100101 ;\r\n11100110 ];\r\ny_correct =[ 200 ; 201 ; 202 ; 203 ; 204 ; 205 ; 206 ; 207 ; 208 ; 209 ; 210 ; 211 ; 212 ; 213 ; 214 ; 215 ; 216 ; 217 ; 218 ; 219 ; 220 ; 221 ; 222 ; 223 ; 224 ; 225 ; 226 ; 227 ; 228 ; 229 ; 230];\r\nassert(isequal(BinToDec(x),y_correct))\r\n%%\r\nx= [ \r\n101000000;\r\n101000001;\r\n101000010;\r\n101000011;\r\n101000100;\r\n101000101;\r\n101000110;\r\n101000111;\r\n101001000;\r\n101001001;\r\n101001010;\r\n101001011;\r\n101001100;\r\n101001101;\r\n101001110;\r\n101001111;\r\n101010000;\r\n101010001;\r\n101010010;\r\n101010011;\r\n101010100 ];\r\ny_correct =[ 320  ; 321  ; 322  ; 323  ; 324  ; 325  ; 326 ;  327  ; 328  ; 329  ; 330 ;  331 ;  332  ; 333  ; 334  ; 335  ; 336 ;  337 ;  338  ; 339  ; 340 ];\r\nassert(isequal(BinToDec(x),y_correct))","published":true,"deleted":false,"likes_count":4,"comments_count":1,"created_by":90467,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":170,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-24T21:26:58.000Z","updated_at":"2026-03-31T17:53:25.000Z","published_at":"2016-10-24T21:27:38.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\u003eConvert binary numbers array into array of decimal numbers.\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=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ex=[ 11001000 ; 11001001 ; 11001010 ; 11001011 ; 11001100 ; 11001101 ; 11001110 ; 11001111 ; 11010000 ; 11010001 ; 11010010 ; 11010011 ; 11010100 ; 11010101 ; 11010110 ; 11010111 ; 11011000 ; 11011001 ; 11011010 ; 11011011 ; 11011100 ; 11011101 ; 11011110 ; 11011111 ; 11100000 ; 11100001 ; 11100010 ; 11100011 ; 11100100 ; 11100101 ; 11100110]\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\u003eres= [ 200 ; 201 ; 202 ; 203 ; 204 ; 205 ; 206 ; 207 ; 208 ; 209 ; 210 ; 211 ; 212 213 ; 214 ; 215 ; 216 ; 217 ; 218 ; 219 ; 220 ; 221 ; 222 ; 223 ; 224 ; 225 ; 226 ; 227 ; 228 ; 229 ; 230]\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":51183,"title":"Convert Hexadecimal Number to Decimal Number ","description":null,"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: 71px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 35.5px; transform-origin: 407px 35.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: 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: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eConvert a hexadecimal number to a decimal number. Many of the numbers may be quite large. For example:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 40px; 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 20px; transform-origin: 404px 20px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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 10px; transform-origin: 404px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ehex=\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); \"\u003e'abcdef123456'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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 10px; transform-origin: 404px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003edec=\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); \"\u003e'188900967593046'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function dec = largeHex2Dec(hex)\r\n  dec=hex;\r\nend","test_suite":"hex = 'abcdef123456';\r\ndec = '188900967593046';\r\nassert(isequal(largeHex2Dec(hex),dec))\r\n%%\r\nhex = '28e5321a3c127ea08fc57936f425bbfca0dd6281e8891f1f10b11baf01d4760c1de24ef319ad6b9dbdce86151fbbb04ba58fbdb5b11fee7359c125345cea1ef63ee186828a7b47bd29db6cfab5a600cdcc8dcff4aad888f7a2067defe8418b54854b9de9b317d0e3c2116e64';\r\ndec = '19649415749491085206627366764766682339186060773175592005017406732162069940570812718672911072459473339631753760908472233361057010121771263930042548420005029695049836288215675977362162293898681803195433758785899821148280934514919175363909669996537081246545702500';\r\nassert(isequal(largeHex2Dec(hex),dec))\r\n%%\r\nhex = 'a88b7577b7ffafdfd20f97a0354e6d05d8b69067c6a504a359129cab0d025ae79b568b692f7a9af34212b7cfce8ceb9d7d41ca8827dc9b4eeb1fd2b10f957d0f2294705db51a40b3160f0e76890a40f7ec1d047376f48702aa24937ff42a25e011ff90dc4516917524d9349b651245034bb82b80c976d22e283a225941ec5cb0a57b91099093257323a0d25bce553e79b539a69d3c9ceaa0504c8107608547140c0a51fa73976f6826337977cfa97ea834dade8cbce5486d6a43a227e427dd55c4835067fc770aec16beec208fbabf290458af1870b334100';\r\ndec = '159377783497406650620936853949095675800424929828804108462028737356170766325451253700530421269011058052486240368792312180806435775798324493450802278223192513053275509232742372133179806995629441008826048555610875744842684348358939467357617195748986492910142247931534593233571621535107729675354384912302500871727146992807507490553409387898122869591393717224960098894686760100874340893204763856118394460434399416988997064285253350982455331171922758254086817245016257162649191471642897311445662643211238473827387232496100000000';\r\nassert(isequal(largeHex2Dec(hex),dec))\r\n%%\r\nhex = '06ef75625e7680cab0b7a38da5012c4a5618ec11efa57632bb6278f51664742f05cba06c2e0d28e5573f640925f5b72bbcba457005c8ced0137b93fcdb515fd0b209005359c0e7f60043a87d20dabce39e6d241594ba1a9f1356703fc7ae9177125d734f921b3a61f944e4ce6314bf8329ff67805383513236932e0fc5b22b35e11b29901a13d136bf620815a671aec9f85b8b1cb85da87febb9b645fcd9d30234bd3dc9df8be52748b6f438493b74a0b96a135d3964b1fe5143eb50602598b688450bec63cf6361617d72bcbac52a90af8d396c5976e5df135f8b75412ccca8abfbb5d03dc75ff0eecf4a2062db4c2320f9782ede0fd7e2c4f493addf2c3e684d01a2910112315ce02cbf134a907055f9eacaacd294fe8ba6af02f4485f6ebda9e5c8130732da2af2a63e9613084a2229a9b52b733c59e199cec8247fe7d7eb649f93811c2320a5a36a3edfbee7f69c4e0c09e315c18763c09afefd1d323297d903cafa14a53bd793e6d4e2a7361d4697117d09ec36f0b7a4c355778b9910423166dda101db35c0d0f2e436728ebcc05d85e63d32aebe82fae5f7da28f33c9e513b7eec2a46c0e5e9f64edffd8f681000';\r\ndec = '1587579867034139231140897150796379280137339337440136043551952230078281037917941634250773118081803707009033292547333115641615336414134882636356078191266227009963924882585382550207351632830211200054163457041256629718378613177190486935475784503197624196734222959421478715707421323150785857543200283643879517789215759886743614268365470744037266091945661742945363586829975261454588828237776031592284425461562614972788036530599620589676549514533552578849280999960050275202965289108502147663994031416894604066421790743763173911992418160771216242042661007595139600125199907505075009284228397070319438157477072013686862904936696343402805258434635295552263055570728064064923715097632983799823169081415315840658807099235354085987413262271864518139507752079193283698794794046541908427143195724502865199215413075452800878150143212143755404974946432673386769216863693716136518925442168249822988620050961160003829242978788311362646688805432244792276857868896580890354788927576651701085311899918388970260634277278661700844619838009714739782200625000000000000';\r\nassert(isequal(largeHex2Dec(hex),dec))\r\n%%\r\nhex = '30197cffecff72c20db0b503bbee23615187f9515d761798dd9bcca2c8ede0a4775b2d410066c7efd529c0cd5e58e6b718b5e2932370fe6a63e8966aaeafc42e1ba14cf6c6630664b82e7cb07b1cbe8124d4f582be9146badd41508eb70a8c173d44e2ff1f52e3df14ed703f570ae131b91e45d681d0fe2cfaecfcc72296cfc23f20a957dbaeb390cfad219c732bca3433d10d4dd3f7894d5f20b294fe085d058a44ec488d3dc0aa1934f2f347a29e3f62c6831c734de98cda86e330ef7610a78017c06409a639a6e6bef1d0cfcad08df88fa5ceec9e2f0223a76d4520ecbaa9ddfa1e0dd383ed544886cdc3027b3caccb1593c2c6aee85625a6470fd102029b73bbc33cbc8ad33f58695ae6ee65cc8765d698cac15c790cea214a5272ecdaed9a3475b39a27af487d5e27f46bad83e846cb11649401dc176883ac36c7a10cece5d9bf0cd475c2ed5a447eefb914760ade0e0dd5ba7062d80cb2bc3205fdcb401760148f19709b4a27f1900108003608a84f6f97d705156d3e9977f214945e694bbc6e5325c6a7242e39fcdf970e1cf029464aa710ce9b9705f88c7cbbb0eeb44a069315f291d076757d033a24de0d619ffc61b3d60dff7ac5d8c310b07b3f0dc386a776da3dfbc1f99cb4228367c4497d38528ee44ed14d671ef2b6e79fd64da32e8bca99f1e19981eb05b686c0b52b9549f9bebb7bf077a709398b40e07dc0104af7d5a31296e146626f4d4d1e9884559e87a2a0ee36244f5243e57bf4e81e37e6852161b16eace45656e1cfd311fa37df6a85f447f7ca4c7cd7b2ef0ff82790d1a68fe4f887102a4a8ab66f686c3c3b6b3c8276bb504b3d67706d58d881ad6f69f1ca943027b91f24abf6bd6a800a5e308e78f05368d1cf2924548f27f424a997a16627323c47180a5c5bc862b0d589af8b29fdd65d6289cb1bf2712762c162a36061d7d00f53cf7116d3b4b68d142152d93f0d19247682b39d5175fc60d0ac18daa1cbef27f9484ef4ad80feb543d84db2af039f0ff174d975e06cdf3a21a597c94ed8152ec9f6dbdb65e343c4d3396cb3364e1691cc29f3623e1d3cb6266defc3c259fb3a971d69b61355dd823f90c7cb5991fbe742f0bde5e1774769c625fcae39591935952efbd38e4bfadda20c624bf71ccee20703970c8987e323ee03eaed0f6a54b8047f9fde317ff04b42b4b7b451bfca283d25cfe50c2d010000000';\r\ndec = '40326557347394163217111376015150098000966347418450254753852255431184442696781596783308147573810998374358974796909642971595270925120777006068595784805928280421044650449012519391659172726678410846803663986724760691849701235729323900631257065929326542597148030184301655710653497183002511446769080016945623039546047520009834311615328057203455928254462227346230847134180669717706461843267823103748819819416530847735727245499296276701046426250792810898314221168430705372251520183027771866333206108071677091215090053332637884621172357713531543378625990222337118339802548319832564870599200691132968571843037047534593882485705972059711167605612284759845760630614693151250588566178920993740333034140575520682401004870247393930623536193603657051329652614548437767730927085224200312880149672127222157839300978072432197895941579985433103512595080261712716640931750756712381675331694367848965106421248416297508801747725688595588347854852895782055017858092737578147350252134171901597655190366699532999984036527177134351395076379737985236153168812155200494747662639113361303579032789722027532074959893094739186682680590009792006629588783735871885917331278175219289324024852366160289403850688833475567702025613200815610360419090762769533670176014141663626017682868634869662223370183141040684607611336522480549652475765712598549626989493809204840529555970082428743728094128423110671596606694373540292907711798617760430783889916368415238071654186255798764693159120207510363991119602430057581062291420035181510825002467892137812172061168587163623842053085544665712241358640224236395625480144233846315315478538982950606459441103406589718519926191663609338221040373308957184617847305625175641634395798549951617121397436472313640547291346100707602139489870823314027300949550793244790513274098002031285822556833314787519261216054317720396611704491319502321124108436026972281533686675004845855948610460035178835520364885742354758893012443948356722954611553069499234370926246202870006136291977416939134100472402507711559333070638456853961876747749275029252328176533943149785084006250000000000000000000000000000';\r\nassert(isequal(largeHex2Dec(hex),dec));\r\n%%\r\nhex = '090991699fe5025ea68386bad1deb8581ffa3bf3f834580f1f4b32c85af3df9463646f06999a09aa9bea47ad3f245363a56386b2fb3fabf6eade142ca9ca8fa0c269fb77c035e9b6bf99cf9438684fde6256d385eb863a7af01030fd6991389d7ee98580668764dc2f0a9e98de641856671ce4c698913ac2df5d447b4a5321c8ec5720a0dd31b9997dc53f7031ee076b5d32c66f41e0d7939b243fad700cb5fa98fb677c371802215ffcbdb209ab07b03e3656e2eda7116f132b022b03637a4644e7444af13fe82a97c1c9b339db0ff9366967834566b4d71a3362abcb22cc2e0f83da5934ae72ba55cf9a56e7d4a594aadab149ed9c4c73956fa8560ae3f0d6d0e4db4efb5cbe98ad439eeaf898c2b420370be012d5571e0465dec3ad05e1d1ba097209eef33d25b91d534dd07f2c702c9ae76f35f77e67b8820c9badca6ede1ba476a3809a5d3ab74555fb50ffed94dc1bbc9e7a49938f9e4f8a2cf6fb46db492891abf8cf83b7aa3d28291818df3cd2719707fcb764699598726145ab45e9428bb3b460dde2d3f79d833dc5698f0ecad601808cd5d5ea28e123456ad70faa7c9f1e77d67f0cdce500de4736c2c91178d52130793e06bce3b705c9c22b9ea23ebf437b7df78fa1bd7b98a492de50e821314db6b649b1daebe13becb114631975257d5602d69b66112d80f06db61a16ca22823dda7d55174258ddeedc521cee56dfd5d69c32e14eac06c8bb246cda249d7870e6a64b5e80ce73b20703c852707a4637c6dbb95e478f0d906fb1647d5e42d24875028d5665e4cc40f0ee9bb61828f5ec207497af713281521063a4b8258eda5ba707c364a4a819bf968a8e355f941f7c030ba5f2f96a1813accc5b1fd27a8e32c8df49853545ce12d876fb9dd0da3d5928807003100e2ab7dc501a83cbeba94c6404697194ab12b72f492b667c95299a2af0864ad1494214cd9a52ebe5f6d5825024e11b2afeb31ee2afbfe60e08dc353c74fb0b1cc0c79ff95a9633bd0023d5267551f24ce1d91841de594907d9b36f339f7a902cc2688f652eb1040128294bc1bf1c86af195dc284ff33ff22e11b4abe84e4e3488bc3ae4b10a5b773bc4cae9be41f2a982d5ffe889d7b16612054f21de6e7364ca5c3949379560742b86df7ee496444f4f2e61bbc8198bf7f19e7f9e54138d41eebff1910d20d6f0eba0b7b5c0574b490b96ed83277802dcb3607918e820e3b5279e67c8d8eeb7cf9f82a2f1509d9882902da6052be31b84959e5d1b2462682c1cdea1fe717ed6742a3557221d9133d5eac4537a356e01a70a137e21836132abb27e9a794082f02c816e5924f83c2b9ad67dfb166373c4e516e86c68552c7b60fb1b9a3d439943647427dbfd3d31d520c390782768d988c293bd1fbf4d491602ff0b1787a8aeb6a4ad36a25792c0d85bed64a74cb6eb65550fe2f2dab0a276c36baa94710129c5023ea9439eefb022697b3816b80dc658b5531ec873455080ffb2028d2f29b8308fb63fcbebece316f87ea8c8458e9ed110a857c9c33e30a6105cfdf7e0cd5559a1d813b3caf13d1a8b0289af18bbd209663846ae95ce49f32657abfe28e32402486876a6a4f26cefc88f528edbf87272b977d128e1927a881be083fc4e1fffed40905ca266289edfc129bf14e0cb32bf60dc550d89c9f1dad96cc05c5a0bc0f49a2b049fb8ea1654f3fe63426ee736af8a46f3e7af35214ad9a8a1bd7bebe1ae1d4db62415bc9d9360ce34bc3a56a88d842d41cf4dad69b1b64352666626c29c7a51ae9c3892c0bb5c9edb109e1962d655688a1eb3ff570bc79529744640eff44deb479ff8adb22c8e58026a933e066484c43d06fb3472c3c9efe1ee435d281fb4fd0eb14e39a16376377c7e73c423ad6b955bd21e1afef3f9ec2019bf7af568196c81f6c13d8108c422e34887b4b09db36341132164ff287d71b0a2eb629db61a7a36186654661ac6f92cd5e85dfdf49578fc75144302ca38a0e264cd78dbc739979a0dbc1e975830a069f4efe4d96d2715788ab53a9ab3fa6d82132e8a4a5cb78f46401cf1ee2bff6a79ff5a2ad370deb0e3d92a2b2a48bfb909cae6f04f61119620e7d5ebf107a9c550f10d0a7fc00570f23a0548b218886c316338e8074e08fc1c410006b614ae717264a532d922833d57eceea48e3eabf5f45477259d123eb274a02a0bb4b2a3628866397b89a1ab4fd3c68d7ddbb396271f878bc4b70f9f3f48155dc8168bcc6ea9906d22cf64df88893918c53c5dd92fdf8543284cf1d9ffdd818f344bab7d9a3b967d47d206f8466dcdf7564f5c69c853f0f8920dc29ab427fac6d80c293be075d437e1618fc9decd7b7e7a7e8c9685bc0eba78c400fef2699ff00386b504ea639fddc3ea4b68ec54da11e3438fc1e8c0fc1656e1cdeb5873d3a7b7e1bdab60a015a0100000000000000';\r\ndec = '1626231227492670169566995197763785125443147752523122252469793416017438324709920214366652433832671519897926208268070711104172302851473182071988591107221844891510261441349970513129664190862017438704040679504731448152072158374717937474190823762010980438221099081632079257584777829568431409109315377747672968305489432904243476720401155812335575812137177933508359490873592319975624593706626887314950307632105181312779229263245169322062571112838888290824485403710175134073367676122565677870527321363415291974448644188635998863992627717321274938478635318749328087995793646281666648143195378425709654762364665696059381291354264719184996352432532590068639037676975770687924625559016644699713637732512974654689423385544930223305304471623473944889634732693197510170240913909431677762941322525094394182578696278417690143086082716709665995281849855704168044923185531650783247065014584337995380236756468836122756628434346100012371160666662905638497030156236694612517552114777391974978081127279767707113211164023048278168755844145773441816068052387220418966839715769487968177305604841258003589480208646576608171825400933411866551079061196011346203890155320423915330831063993693274121945501362400093713326746347267043912997183450455315149261604871856867602687276064681526941541500781832057853153920465680130937144438905000007249767925364346647163454021715550330567248480843044962576181536708552187858756202445612461930423699264394920663965320358817967482000039729589939755618999302125845042591108959577730758109934151940142706804341384062675858853475771177755434367734642633569388036604973875160124805787957206878913511871123339382332980776778169743174036714595595764046187624569169927473252070647847074609478900354720402605986181690127939662442882826087558996085734197117722139543650564379977917659444686763260646602872723718016158318480781798361674309018502642774654565729950328933472158788731324865659939808824974434196465159883789720668349576977821357375653681949844285109599211587300919321510329079052349778530176881711866809205135265846732808110751782062242226641011037073792604565046563186384374747661167035527442600374706068106788317374515878555108762739044736110739575141320762160529685185843861879040214833038001055358726727578380262296248127344396683354656192042851501332742495856866644853597578685231478999258120477082261389797968596589662490275334971285946948514211213129700793878865800734719897768184884124042977491993714819942598991716690747902473899778681216122320945324329996210493090309249961383581248721394174625951146998454562159650519330167338702251825568201272472036954415326451255114334526099617883055186038247409885799852372649689612428548402407431058387938746221841015469710816018342684632806862715802605243477259535256173471907628655903832246157485534068162948782007423353879689832158667441384735892508295856639828894393775852084089914448181220825199925908653244929508135845337268897506607454006791826774310941263904618705149822479716230582402849860105066715041403886737561284893965525613398190035276946135610893536101294975947271433078861947924474505308972015197343998763754229451810035388282615853946371337628479622493014481838431288567690461219314159716277866978959981937715609116586140458397271122071096398405767572539093685430927767907331387528047851261771858406138190712222117847383210333666240482971579676748911274659632847166977024490256094269991448294955818146446960136373520638277917334778338335752340909825734765636886838933071167643235321270227570439744984796586034011261528139420873629080365654843879910912870391173086415003756191422774050855355635045981602416102962407833593860661477914303297072554240914981166963828065912164507311891756331336533734477839492726601390562382338525772820577349577713538609861909607737681136487522911298839635491390648831956978931342432636822308599782126945806974128270483025034343017182516125168034875403846285334939909020726956574263935115571637968864873907121889147699800476674673429992641900515714100377961115968315843640691246288123101138113959464028912662181704169268676836519025027331235707285582079623359040441031835228310086854669678259369550039062500000000000000000000000000000000000000000000000000000000';\r\nassert(isequal(largeHex2Dec(hex),dec));","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":145982,"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":"2021-03-24T16:05:59.000Z","updated_at":"2025-06-09T08:30:54.000Z","published_at":"2021-03-24T16:07: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\u003eConvert a hexadecimal number to a decimal number. Many of the numbers may be quite large. For 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[hex='abcdef123456';\\ndec='188900967593046';]]\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":511,"title":"Converting Decimal to Binary","description":"Given a decimal number that may include a fractional component, convert it into binary representation. The numbers you are given will always be cleanly representable using positive and negative powers of 2.\r\n\r\nAs with \u003chttp://www.mathworks.com/help/techdoc/ref/dec2bin.html dec2bin\u003e, return your result in a string.\r\n\r\nExamples:\r\n\r\n Input  d = 2.5\r\n Output b is '10.1'\r\n\r\n Input  d = 34.125\r\n Output b is '100010.001'\r\n \r\n","description_html":"\u003cp\u003eGiven a decimal number that may include a fractional component, convert it into binary representation. The numbers you are given will always be cleanly representable using positive and negative powers of 2.\u003c/p\u003e\u003cp\u003eAs with \u003ca href=\"http://www.mathworks.com/help/techdoc/ref/dec2bin.html\"\u003edec2bin\u003c/a\u003e, return your result in a string.\u003c/p\u003e\u003cp\u003eExamples:\u003c/p\u003e\u003cpre\u003e Input  d = 2.5\r\n Output b is '10.1'\u003c/pre\u003e\u003cpre\u003e Input  d = 34.125\r\n Output b is '100010.001'\u003c/pre\u003e","function_template":"function b = dec2bin_fractions(d)\r\n  b = 0;\r\nend","test_suite":"%%\r\nd = 1;\r\nb = '1';\r\nassert(isequal(dec2bin_fractions(d),b))\r\n\r\n%%\r\nd = 2.5;\r\nb = '10.1';\r\nassert(isequal(dec2bin_fractions(d),b))\r\n\r\n%%\r\nd = 34.125; \r\nb = '100010.001';\r\nassert(isequal(dec2bin_fractions(d),b))\r\n\r\n%%\r\nd = 452.8125;\r\nb = '111000100.1101';\r\nassert(isequal(dec2bin_fractions(d),b))","published":true,"deleted":false,"likes_count":0,"comments_count":2,"created_by":2591,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":76,"test_suite_updated_at":"2012-03-20T18:00:02.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-03-20T14:21:56.000Z","updated_at":"2026-04-03T03:07:57.000Z","published_at":"2012-03-21T21:01:35.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 decimal number that may include a fractional component, convert it into binary representation. The numbers you are given will always be cleanly representable using positive and negative powers of 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\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAs with\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/techdoc/ref/dec2bin.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003edec2bin\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, return your result in a 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:t\u003eExamples:\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  d = 2.5\\n Output b is '10.1'\\n\\n Input  d = 34.125\\n Output b is '100010.001']]\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":49835,"title":"Decimal to Binary conversion for Large Integers","description":null,"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: 436.9px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 218.45px; transform-origin: 407px 218.45px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 41.6px; 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 20.8px; text-align: left; transform-origin: 384px 20.8px; 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=\"\"\u003eDecimal integer, a base-10 number we normally use without fractional component, can be represented as \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://en.wikipedia.org/wiki/Binary_number\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003ebinary\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: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003e, a base-2 number composed either 0 or 1. The procedure to convert a decimal integer X to its binary equivalent is as follows:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003col style=\"block-size: 60px; 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: 391px 30px; transform-origin: 391px 30px; margin-top: 10px; margin-bottom: 20px; \"\u003e\u003cli style=\"block-size: 20px; 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: 363px 10px; text-align: left; transform-origin: 363px 10px; white-space: pre-wrap; 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; \"\u003e\u003cspan style=\"\"\u003eDivide X by 2. The remainder (either 0 or 1) is the first binary value.\u003c/span\u003e\u003c/span\u003e\u003c/li\u003e\u003cli style=\"block-size: 20px; 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: 363px 10px; text-align: left; transform-origin: 363px 10px; white-space: pre-wrap; 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; \"\u003e\u003cspan style=\"\"\u003eDivide the quotient of previous step by 2. The remainder is the next binary value.\u003c/span\u003e\u003c/span\u003e\u003c/li\u003e\u003cli style=\"block-size: 20px; 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: 363px 10px; text-align: left; transform-origin: 363px 10px; white-space: pre-wrap; 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; \"\u003e\u003cspan style=\"\"\u003eRepeat the process until the quotient cannot be divided anymore and so last binary is found.\u003c/span\u003e\u003c/span\u003e\u003c/li\u003e\u003c/ol\u003e\u003cdiv style=\"block-size: 22.1px; 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 11.05px; text-align: left; transform-origin: 384px 11.05px; 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=\"\"\u003eAs example, \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARsAAAAnCAYAAAA/4uxDAAAJqklEQVR4Xu2dd8gtRxmHn9gL9o5dDFFsiKCiotjRP+zGLooVe8PeEiti19i7JhoTOyoqIvbeUBFRULF37FgTnss7l7mb3XNmd+493zfnzEBIyE55z292fvvW+Y6it45AR6AjsAEEjtrAGn2JjkBHoCNAJ5v+EnQEOgIbQ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+u2hpX7I+GY3pDXPyaHte/mIdbIGNl4KE3g86Isba6hA9cK4zdHDU1uk7mId6GoWlkLZWlCfgufkSgPs2q8/hFV9VUtaSKWSKiJlDqhp8gmOabNHxnmF6Ti0hLTLjcjzRmqaZsqV1DGdE2E+5tXdQ8JZSzhsmbsEJ9SgqyVucV1t0HmpNno8tAvejDxd4xsvD5C0rBZPGkiXcpt8YY3D74e/08NGC2P9ztWctCcMcStY1YCs+lT8Ya4dS2ZUOaIlOTjpPmmyCYRirIPo1qriGjdF2fd71j1vJZsrH7/SCwgvuuq7FVtrXMyomfKQlJ/NYtNuPx6YGMd27DVjM3n2qTMLa7busxGpJKVkK4pOfCbxsjGUNajgGPDEWw/C/e8FU+N5Ys5Ww3eyEvH2BtHjZSPrfyWcN4f/73q2sk0XW5CrXJojh3kJWSTKozHtJ4aMjkSY9UQdcKJi05c98smQehrsbbJSvupqnivAHGs/1j2oUZqyrtj1WYPCVcOfsDSsXslc4vrtihzek0sJ1Ix+M/IBWyLQ99H4hAdrjk3YUYdLln7PB2BbULACgE/Yp7BM5QxLXEQ73dwpsgmRdDUsrbFQbzf96LLtzsIWEepKe8Fd8OrZybNqNbhmRv6lnCfEc7rfgNg67vf5d8LBPTJevuj+TaTgZ9d0mz8rYbrzQ3I82m8jjQVk47dzbsXm9fX7Ai0goCRSoM+5tt8NxNa/425a+bjHdB0to1skpaipuLFXVPlCv71BvsYlbG84fnxJ1F0kPbWEegIlCFgwMC/9eY1FwaC8nbFyPg3In2gnnGbyMakNKM0+mPMf3lT5AMZzs3vVTGxUNtS1U/GdZzh4C8XXs5etg29V0dguxEwamYejWQy1s7wt922iWy2e2v7r+sINI5AJ5vGN7CL3xFoBYFONq3sVJezI9A4Ap1sGt/ALn5HoBUEOtm0slNdzo5A4wh0sml8A7v4HYFWEDgdiAl0ZCqegPsAAAAASUVORK5CYII=\" width=\"141.5\" height=\"19.5\" style=\"width: 141.5px; height: 19.5px;\"\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 through process below:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 223.6px; 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 111.8px; text-align: left; transform-origin: 384px 111.8px; 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\u003cimg class=\"imageNode\" width=\"60\" height=\"218\" style=\"vertical-align: baseline;width: 60px;height: 218px\" src=\"https://upload.wikimedia.org/wikipedia/commons/d/d0/Decimal_to_Binary_Conversion.gif\" data-image-state=\"image-loaded\"\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 41.6px; 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 20.8px; text-align: left; transform-origin: 384px 20.8px; 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=\"\"\u003eGiven a decimal string input x, build a function dectobin(x) that returns its binary equivalent in character array. Unlike built-in dec2bin function, your function should also work for large integers up to thousands number of digits.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = dectobin(x)\r\n  y = x;\r\nend","test_suite":"clear\r\n%%\r\nbannedWords = {'regexp','regexpi','import','java'};\r\nassessFunctionAbsence(bannedWords,'Filename','dectobin.m')\r\n\r\n%%\r\nx = '0';\r\ny_correct = x;\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\nx = '1';\r\ny_correct = x;\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\nx = '13';\r\ny_correct = dec2bin(str2num(x));\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\nx = '1234';\r\ny_correct = dec2bin(str2num(x));\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\nx = '123456789';\r\ny_correct = dec2bin(str2num(x));\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\nx = num2str(randi([1e6 1e9])); % 7-10 digits\r\ny_correct = dec2bin(str2num(x));\r\nassert(isequal(dectobin(x),y_correct))\r\n \r\n%%\r\nx = num2str(int64(randi([1e14 1e15]))); % 15-16 digits\r\ny_correct = dec2bin(str2num(x));\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\n% 100 digits\r\nx = '9935889422099775700620749019825066687005320193436482650621467845674334663581207733950858713953594810';\r\ny_correct = '100100010101110101001011011110111011001010010010000001101010001111010001111000110111110100011000000010001001010111101101111101000101110000110110100100001101001010010001010000010011111111010100111111100110010011111001110111001111011111000010011101111100000000100000001011011000001010111001110001010101001101110011111011110110110111010';\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\n% 1,000 digits\r\nx = '3059201154261253530451690354977606310924322607284223918856338124374709270871880662494169428937121052075859797206813475095556104269276596500978875324047465920883111580522711413182514848655486194576723389296141674672149809829265420167820519225209898307641365760914568721866463844355172261421834003336488535238809007328873935253700111210006241805977393874531741494641320187019834745948717074377488851592337628009671305943507313220241345532153678625541382153876303729081245594666363375641541440039672508266173273547591929050186861649876277730738299377510850280883881669370053397327830542446255453962902873897458955875563317360197974644289445704776742967853660702740237720951325610419441880361333911947025395121778148262639261460523590232675016389707381618111484504793129877986986813532838182033892534760974140550358778239119177192242757139854881677013489678325929427533280319023842380171528893573940130880205407716783800858180602225696643483888830206964236483084265907918866516345819848257322544972900223';\r\ny_correct = '100101010000010000001101010010100110001010110110111010110011000100110001100101100011010101101110000011101111100011011101110100000001001001011110000111111011111011111000010010000010011011110011111010101100001111001111111100010001100110011101011011100101001001011100111000011000111100110110110100001000110101011010001110110111010010001111111101100110111110110100101010000110100010110101110011100111100011100000101001001011110010010000110011001011111101100001001110010001111011011100001101100111000011001000101100000110011101000010001011110101110111010001110111011111000010100000010010000001001010001010110101010111100101100111010110011101001000111001001101100110010111011001010011010100011100010100111010110111011111111101010111011000000010111010110100001010001000110010011011000110111011110011101010100101101100000101010000101001000000000010010110000110100111111000111110001011001111110010001011011100011110011001110001101110010010101100101110100110100101000110001010110011000010011110101111110100010100011001101010101101110100001010000100001011010110110000111011001000001101111110011111000100001100000011101010011011000010111110100111100111010101001001001111001011000100001110101110001001110110010010101001000111001010100101110000110111001110001110111100110110101011010000001110110011010011011101100100000101111100001010010100000000001111101001011111110001100001001110101101111101101110111100001000001111101111111100100010111000011111001110011101001001110111001001111011000110000101100101000101100001001101000110000011010001111001110000100001011110111011011111111110000000011110101111101001100101010101111111011010001100100100001110000010110110100101100111111100100011101000111010100001001111110010101101100101010101011100000101101001110000010001011010110101100000011010100111010001111100100001001101000010011100110000010111111010000110010100000110101010000000001010000011011011101001010111010100111100011100011101101111010010110111001000111001001010000111100001110111110110000000001100011100010111110100010000110111110111110000001010000011010001001000011100011011010110010000010101011100100010110101000111110111101111110101011001101001000011110010101011000000000010110010000110010011100101000101101001111011010010101100110011011110101111111001010000100011111000100000010000101110100110100000111111011111011111011010110100000100100010011001010111101110010011011001010000111011111011100101111000100000100101010110000110000000001000100110100000111101111000011111110010101011101101100110111001011110101110000010000101110010100101000101111100110011111111111001001011101010111001001100110010101011101000101011110100100001111001111101110101100011110100001010110101110100011110001101001101011010110011101101011111101001010010110101001011001011001101110010100001001100101110001101100110010010010011111010011111110110000100010101011101001110000010010010110001100011100100011010011011010111010110100110011101000000101010101100110101000111111010000110011010000001111001111101000010111010111101100100111100001010001010110010100001010010010110110100101000001001101010101101100111011111101000110100000100110111010100111101011100111001111110001101111001111010101111111100101000111010101101011110010010001110001111111011000001001001000101010001000111101001011011001010010011011001010110110000011000001100110010011111011110010011101111111';\r\nassert(isequal(dectobin(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":392030,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":5,"test_suite_updated_at":"2021-01-17T04:22:14.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2021-01-16T07:49:57.000Z","updated_at":"2025-11-19T01:41:17.000Z","published_at":"2021-01-16T08:14:40.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\u003eDecimal integer, a base-10 number we normally use without fractional component, can be represented as \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://en.wikipedia.org/wiki/Binary_number\\\"\u003e\u003cw:r\u003e\u003cw:t\u003ebinary\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, a base-2 number composed either 0 or 1. The procedure to convert a decimal integer X to its binary equivalent is as follows:\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\u003eDivide X by 2. The remainder (either 0 or 1) is the first binary value.\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\u003eDivide the quotient of previous step by 2. The remainder is the next binary value.\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\u003eRepeat the process until the quotient cannot be divided anymore and so last binary is found.\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\u003eAs example, \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"false\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003e357_{10} \\\\equiv 10010101101_2\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003cw:r\u003e\u003cw:t\u003e through process below:\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\u003cw:customXml w:element=\\\"image\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"height\\\" w:val=\\\"218\\\"/\u003e\u003cw:attr w:name=\\\"width\\\" w:val=\\\"60\\\"/\u003e\u003cw:attr w:name=\\\"verticalAlign\\\" w:val=\\\"baseline\\\"/\u003e\u003cw:attr w:name=\\\"altText\\\" w:val=\\\"\\\"/\u003e\u003cw:attr w:name=\\\"relationshipId\\\" w:val=\\\"rId1\\\"/\u003e\u003c/w:customXmlPr\u003e\u003c/w:customXml\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\u003eGiven a decimal string input x, build a function dectobin(x) that returns its binary equivalent in character array. Unlike built-in dec2bin function, your function should also work for large integers up to thousands number of digits.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/image\",\"target\":\"/media/image1.gif\",\"relationshipId\":\"rId1\"}]},{\"partUri\":\"/media/image1.gif\",\"contentType\":\"image/gif\",\"content\":\"https://upload.wikimedia.org/wikipedia/commons/d/d0/Decimal_to_Binary_Conversion.gif\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":44849,"title":"Given a base n, find the y values less or equal than 100(without 1), such that they will never produce a periodic number if we divide any whole number between some of them","description":"A periodic number depends on the base b where we are working. So, for example the number \r\n2/3 in decimal base is periodic(0.666666666) but if we are working in base 3, the same number can be expressed as 2/10, and the result is not periodic (0.2). \r\nBy this way, it is possible to enunciate:\r\n\r\n* In base 2 or 3, all numbers will produce periodics numbers unless the number is the base or power of the base\r\n* In decimal base, numbers as 2,5,8,40,50 for example will never produce periodics numbers. \r\n\r\nBy this way, you have to find when a number in any base can produce periodics numbers or not, and then find the values less or equal than 100 that in this base will never produce a periodic number.","description_html":"\u003cp\u003eA periodic number depends on the base b where we are working. So, for example the number \r\n2/3 in decimal base is periodic(0.666666666) but if we are working in base 3, the same number can be expressed as 2/10, and the result is not periodic (0.2). \r\nBy this way, it is possible to enunciate:\u003c/p\u003e\u003cul\u003e\u003cli\u003eIn base 2 or 3, all numbers will produce periodics numbers unless the number is the base or power of the base\u003c/li\u003e\u003cli\u003eIn decimal base, numbers as 2,5,8,40,50 for example will never produce periodics numbers.\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eBy this way, you have to find when a number in any base can produce periodics numbers or not, and then find the values less or equal than 100 that in this base will never produce a periodic number.\u003c/p\u003e","function_template":"function y = nperiodos(b)\r\ny=b;\r\nend","test_suite":"%%\r\nb = 2;\r\ny_correct = [2 4 8 16 32 64];\r\nassert(isequal(nperiodos(b),y_correct))\r\n%%\r\nb=3;\r\ny_correct = [3 9 27 81];\r\nassert(isequal(nperiodos(b),y_correct))\r\n%%\r\nb=60;\r\ny_correct = [2 3 4 5 6 8 9 10 12 15 16 18 20 24 25 27 30 32 36 40 45 48 50 54 60 64 72 75 80 81 90 96 100];\r\nassert(isequal(nperiodos(b),y_correct))\r\n%%\r\nb=50;\r\ny_correct = [2 4 5 8 10 16 20 25 32 40 50 64 80 100];\r\nassert(isequal(nperiodos(b),y_correct))\r\n%%\r\nb=10;\r\ny_correct = [2 4 5 8 10 16 20 25 32 40 50 64 80 100];\r\nassert(isequal(nperiodos(b),y_correct))\r\n%%\r\nb=29;\r\ny_correct = [29];\r\nassert(isequal(nperiodos(b),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":289312,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":11,"test_suite_updated_at":"2019-02-13T21:28:22.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2019-02-13T21:27:15.000Z","updated_at":"2019-02-16T21:35:00.000Z","published_at":"2019-02-13T21:28:22.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 periodic number depends on the base b where we are working. So, for example the number 2/3 in decimal base is periodic(0.666666666) but if we are working in base 3, the same number can be expressed as 2/10, and the result is not periodic (0.2). By this way, it is possible to enunciate:\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\u003eIn base 2 or 3, all numbers will produce periodics numbers unless the number is the base or power of the base\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\u003eIn decimal base, numbers as 2,5,8,40,50 for example will never produce periodics numbers.\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\u003eBy this way, you have to find when a number in any base can produce periodics numbers or not, and then find the values less or equal than 100 that in this base will never produce a periodic 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":52472,"title":"Vector to Decimal","description":"Given an integer vector ,  return its decimal representation  as a character array.\r\n% Examples\r\nv = 7\r\nx = '7'\r\n%\r\nv = [4 2]\r\nx = '42'\r\n%\r\nv = [0 7]\r\nx = '7'\r\n%\r\nv = [3 12]\r\nx = '42'","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: 294.048px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 406.989px 147.017px; transform-origin: 406.996px 147.024px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 44.0483px; 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 22.017px; text-align: left; transform-origin: 383.999px 22.0241px; 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=\"\"\u003eGiven an integer vector \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOgAAAAoCAYAAAD0QbbMAAAAAXNSR0IArs4c6QAACHpJREFUeF7tnXvs/9Ucxx/JopS5Jaq5baZWQmVExZjbEBnriiwKISK6uTOXIddhy61IyaVYE/qjWmXpstToYtNlKeW2GMpQe3COHe/f+/P+vM/7/fl8ev/6vs723X6/7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1V18L2vf5+Rx4BeMzzPLr3n4q5RwMkcy8t7WFEHSeq9d3IXdlv2UQVCKqMS2nKwsVtMC5DNB4sSyol8zeX16UEj/LxKQPQVcpzzLXOm9uyfOBVEc9y5rNm2PW59mTskY7V3Q9MoVGuse6t5s24u081yiC9nX1hi5sleM8rFZ9+Ir9sumKWOnTJyZpkzcnW6yDdXNMiFhi552p7k15mZ2L27cGPlGZUazFqrzHm1WosEp5auVfZH+VkN7MDR35hDHPM2zRrd0fyLXSOSb1FsB66uNTOahZfN8mn5vZZa/wVOhr/s3yVuM0W01MMmsT/Zsb3pNJVhMJbogENKmTie+muFn/TmWEs4oLxhyUPNbnW/VkXOz3G7+cLIcZRquQbKuUZxFrGjqHBNDLuTzF/eK/yJYr7vQyrcG+Jk1ugkjLeUkqJjFb3VUH0KpE19LfZlnkpsRcgcBKEAiCrgTmeEggMAyBIOgw3GJUILASBEqCWuXh+3j02WubiRYvaJf9doFauaJ/ILBeI1AStLzzrF1U82tZteOjfyAQCLQgEC5uHItAYMIIBEEnvDkhWiAQBI0zEAhMGIEg6IQ3J0QLBO4EDo9VR8kfkDwAAAAASUVORK5CYII=\" width=\"116\" height=\"20\" style=\"width: 116px; height: 20px;\"\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\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK0AAAAlCAYAAAAwTGn2AAAAAXNSR0IArs4c6QAACNpJREFUeF7tm3fMLkUVxn8XEaMIBhuoQY0hqFE0IAR7RTEkYkURRDAICNhRsUQslIBRQBAQ1NixYGLBggpEBYmUf6SqMZYoqNiDxqgQzS+cc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I1gNorenagNYsppfvlfQ1HFjeZJt8a0FbTKDp4B5SVyrydSc5+OOn/1kYectU+qK1Bj2XreTyfcMC8sPxPHbbKiUah7mCDo/HJsgr3lXGYs811e7m+kEjQ7F+mpKHjOE/nCePLoG8TLzmLZrQk3Qehp2LvDYFaRBFhHqE78gb0h5ll/zGwDNueRtHt95ZVTO3+kJ/q715c9rQWv/vMupJyoo7x+e6eHFLacSeD7Tx4bLZ42x2WqW1ZNSTV39l7jZZgYY6rOmBJIsvCV3UhwXj33Ak/bWjsBrAT861+LRvfaWQK5tEuM6mawJ2hTsK22ColpmtJ/FhBbNOhd0a2cS/UyNMrofQ23rA5AhoG1mghyjlAcyraxhhvDyia1W8yo5zgp27bpf0Px1lTEcF0nCrOAxap9Wuz7HbH7Ufd7T7OvhlplsbdtYt7zKOeTdTp0IbbT1cZ92nqB1PeuHbPFmcPvc8e0aN/1wGdnCV4bS31ROzCul/OhkW71fZUrN1dA+oO1a21w/Xw2gnWsBq+Bhi40nAscN0Jmzpp8Fmx+Ct74EreyurPLuqUeiGvNDpcIqCN2wKUygHRa3fEqNqAuiTBii62e9Pf1wx/e+qZrQo1817ccCtJ6s9S3I5lvxKnh6Au3wTdBV0PPURvJe6NjN6t7iz3se/v6UKV2Nq77T7rIit1hcujaBdum2fPEXPIF28fdw6VYwgXbptnzxFzyBdvH3cOlWMIF26bZ88Rc8gXbx93DpVvBfLuEURHMmVwwAAAAASUVORK5CYII=\" width=\"86.5\" height=\"18.5\" style=\"width: 86.5px; height: 18.5px;\"\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 return its decimal representation \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\"data:image/png;base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78Is0/rTtH3EMA9hVnKK6tggQLuVVjFModGCxRwF2CsrAUKuFd2acvECrgLBlbWAgXcK7u0ZWIF3AUDK2uBAu6VXdoysTsBKDYfTEiTeiQAAAAASUVORK5CYII=\" width=\"91.5\" height=\"22.5\" style=\"width: 91.5px; height: 22.5px;\"\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 as a character array.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 240px; 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 120px; transform-origin: 403.999px 120px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(2, 128, 9); border-block-start-color: rgb(2, 128, 9); border-bottom-color: rgb(2, 128, 9); border-inline-end-color: rgb(2, 128, 9); border-inline-start-color: rgb(2, 128, 9); border-left-color: rgb(2, 128, 9); border-right-color: rgb(2, 128, 9); border-top-color: rgb(2, 128, 9); caret-color: rgb(2, 128, 9); color: rgb(2, 128, 9); column-rule-color: rgb(2, 128, 9); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(2, 128, 9); text-decoration: none; text-decoration-color: rgb(2, 128, 9); \"\u003e% Examples\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ev = 7\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\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); text-decoration: none; text-decoration-color: rgb(170, 4, 249); \"\u003e'7'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(2, 128, 9); border-block-start-color: rgb(2, 128, 9); border-bottom-color: rgb(2, 128, 9); border-inline-end-color: rgb(2, 128, 9); border-inline-start-color: rgb(2, 128, 9); border-left-color: rgb(2, 128, 9); border-right-color: rgb(2, 128, 9); border-top-color: rgb(2, 128, 9); caret-color: rgb(2, 128, 9); color: rgb(2, 128, 9); column-rule-color: rgb(2, 128, 9); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(2, 128, 9); text-decoration: none; text-decoration-color: rgb(2, 128, 9); \"\u003e%\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ev = [4 2]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\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); text-decoration: none; text-decoration-color: rgb(170, 4, 249); \"\u003e'42'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(2, 128, 9); border-block-start-color: rgb(2, 128, 9); border-bottom-color: rgb(2, 128, 9); border-inline-end-color: rgb(2, 128, 9); border-inline-start-color: rgb(2, 128, 9); border-left-color: rgb(2, 128, 9); border-right-color: rgb(2, 128, 9); border-top-color: rgb(2, 128, 9); caret-color: rgb(2, 128, 9); color: rgb(2, 128, 9); column-rule-color: rgb(2, 128, 9); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(2, 128, 9); text-decoration: none; text-decoration-color: rgb(2, 128, 9); \"\u003e%\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ev = [0 7]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\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); text-decoration: none; text-decoration-color: rgb(170, 4, 249); \"\u003e'7'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(2, 128, 9); border-block-start-color: rgb(2, 128, 9); border-bottom-color: rgb(2, 128, 9); border-inline-end-color: rgb(2, 128, 9); border-inline-start-color: rgb(2, 128, 9); border-left-color: rgb(2, 128, 9); border-right-color: rgb(2, 128, 9); border-top-color: rgb(2, 128, 9); caret-color: rgb(2, 128, 9); color: rgb(2, 128, 9); column-rule-color: rgb(2, 128, 9); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(2, 128, 9); text-decoration: none; text-decoration-color: rgb(2, 128, 9); \"\u003e%\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ev = [3 12]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\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); text-decoration: none; text-decoration-color: rgb(170, 4, 249); \"\u003e'42'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function x = vector2dec(v)\r\n  x = ['' v + '0'];\r\nend","test_suite":"%% Example EASY 1\r\nv = 7;\r\nx_correct = '7';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% Example EASY 2\r\nv = [4 2];\r\nx_correct = '42';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% Example tricky 1\r\nv = [0 7];\r\nx_correct = '7';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% Example tricky 2\r\nv = [3 12];\r\nx_correct = '42';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% in Z test 1\r\nv = 0;\r\nx_correct = '0';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% in Z test 2\r\nv = -1;\r\nx_correct = '-1';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% in Z test 3\r\nv = [-4 -2];\r\nx_correct = '-42';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% in Z test 4\r\nv = [1 -5 -8];\r\nx_correct = '42';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% Medium number test 1\r\nv = '123456789' - '0';\r\nx_correct = '123456789';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% Medium number test 2\r\nv = randi(10, 1, 10) - 1;\r\nif v(1) == 0\r\n    v(1) = 1;\r\nend\r\nx_correct = v + '0';\r\nassert(isequal(vector2dec(v),x_correct))\r\nassert(isequal(vector2dec(-v), ['-' x_correct]))\r\n\r\n%% Big number test 1\r\nv = randi(10, 1, 10000) - 1;\r\nif v(1) == 0\r\n    v(1) = 1;\r\nend\r\nx_correct = v + '0';\r\nassert(isequal(vector2dec(v.'),x_correct))\r\n\r\n%% Big number test 2\r\nn = 10000;\r\nrng('shuffle');\r\nv_correct = randi(10, 1, n) - 1;\r\nif v_correct(1) == 0\r\n    v_correct(1) = 1;\r\nend\r\nx_correct = v_correct + '0';\r\nv = v_correct;\r\nfor ii = 1:3\r\n    dk = randperm(n - 4, fix(n/2));\r\n    dv = randi(10, 1, fix(n/2)) - 5;\r\n    dE = randi(4, 1, fix(n/2));\r\n    [~, loc] = unique(dk + dE);\r\n    dk = dk(loc);\r\n    dv = dv(loc);\r\n    dE = dE(loc);\r\n    v(dk) = v(dk) + dv;\r\n    v(dk + dE) = v(dk + dE) - dv.*(10.^dE);\r\nend\r\nrng('shuffle');\r\n\r\nassert(isequal(vector2dec(v),x_correct))\r\nassert(isequal(vector2dec(-v), ['-' x_correct]))\r\n\r\n%% Shame Test 1\r\nfileText = fileread('vector2dec.m');\r\nFORBIDDEN_ = {'eval', 'mlock', 'munlock', 'fileread'};\r\n% Filters very obvious cheating\r\nif contains(fileText, FORBIDDEN_)\r\n    for k = 1:10000\r\n        disp('SHAME')\r\n    end\r\n    assert(false);\r\nend\r\n\r\n%% Shame Test 2\r\nfileText = fileread('vector2dec.m');\r\nFORBIDDEN_ = {'!', '?@'};\r\n% Filters cheating, may trigger false positives\r\nassert(~contains(fileText, FORBIDDEN_), '! and ?@ are forbidden')","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":543257,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":5,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2021-08-10T17:20:12.000Z","updated_at":"2021-08-11T00:05:08.000Z","published_at":"2021-08-11T00:05:08.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 an integer vector \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"false\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003e\\\\underline{v} = [v_0, v_1,~...~, v_n]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003cw:r\u003e\u003cw:t\u003e, \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"false\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003en \\\\in{} \\\\mathbb{N}, v_k   \\\\in{} \\\\mathbb{Z}\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003cw:r\u003e\u003cw:t\u003e return its decimal representation \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"false\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003ex=\\\\sum{}v_k10^{n-k}\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003cw:r\u003e\u003cw:t\u003e as a 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[% Examples\\nv = 7\\nx = '7'\\n%\\nv = [4 2]\\nx = '42'\\n%\\nv = [0 7]\\nx = '7'\\n%\\nv = [3 12]\\nx = '42']]\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":713,"title":"Find the maximum number of decimal places in a set of numbers","description":"Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not count as significant. No significant digits will result in an answer of 0.\r\nFor example:\r\nx = [0.01 0.888 1.0 40.151 39.1244];\r\n\r\ny = 4;\r\nThe maximum number of significant decimal places from the input is 4 (39.1244).","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: 174.3px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 87.15px; transform-origin: 407px 87.15px; vertical-align: baseline; \"\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: 382px 8px; transform-origin: 382px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not count as significant. No significant digits will result in an answer of 0.\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: 41px 8px; transform-origin: 41px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eFor example:\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: 404px 30.65px; transform-origin: 404px 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: 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: 144px 8.5px; tab-size: 4; transform-origin: 144px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ex = [0.01 0.888 1.0 40.151 39.1244];\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: 0px 8.5px; tab-size: 4; transform-origin: 0px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e\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: 24px 8.5px; tab-size: 4; transform-origin: 24px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ey = 4;\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: 253px 8px; transform-origin: 253px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eThe maximum number of significant decimal places from the input is 4 (39.1244).\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = find_max_sigdec(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nfiletext = fileread('find_max_sigdec.m');\r\nillegal = contains(filetext, 'assignin') || contains(filetext, 'regexp ') || ...\r\n          contains(filetext, 'elseif'); \r\nassert(~illegal)\r\n\r\n%%\r\nx = [1.000 1.04 0.22 10.1;\r\n  2.05 2.33 4.1 1000.31;\r\n  5.00010 6.429 7.492 8.0];\r\ny_correct = 4;\r\nassert(isequal(find_max_sigdec(x),y_correct))\r\n\r\n%%\r\nN = randi(6,1);\r\nx1 = rand(1,100);\r\nfor k = 1:100\r\n  x(1,k) = round(x1(1,k)*10^N)/10^N;\r\nend\r\nassert(isequal(find_max_sigdec(x), N))\r\n\r\n%%\r\nN = randi(6,1);\r\na = rand(5,20);\r\nfor k = 1:20\r\nfor m = 1:5\r\nx(m,k) = round(a(m,k)*10^N)/10^N;\r\nend\r\nend\r\nassert(isequal(find_max_sigdec(x), N))\r\n\r\n%%\r\nx = 1;\r\nassert(isequal(find_max_sigdec(x), 0))","published":true,"deleted":false,"likes_count":82,"comments_count":21,"created_by":726,"edited_by":223089,"edited_at":"2023-01-04T18:03:44.000Z","deleted_by":null,"deleted_at":null,"solvers_count":3389,"test_suite_updated_at":"2023-01-04T18:03:44.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-05-23T22:21:12.000Z","updated_at":"2026-04-04T23:57:35.000Z","published_at":"2012-05-23T22:34:43.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\u003eGiven a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not count as significant. No significant digits will result in an answer of 0.\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=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[x = [0.01 0.888 1.0 40.151 39.1244];\\n\\ny = 4;]]\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\u003eThe maximum number of significant decimal places from the input is 4 (39.1244).\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":918,"title":"Find the repeating decimal pattern!","description":"Write a function that takes one double input value and returns only the repeating decimal, if any, as a string.  Only decimals for which *all* digits are part of the repeating pattern will be counted.  (See the 3rd example below.)  Inputs will be in the range [0 1].\r\n\r\nIf no repeating decimal is found, the function should return an empty string.  Of course the repeating decimal may break down in the last bit due to floating point arithmetic, but we will ignore that. \r\n\r\nExamples: \r\n\r\n  T = repeatingdec(7/11)  % Returns T = '63'\r\n  T = repeatingdec(1/3)   % Returns T = '3'\r\n  T = repeatingdec(5/6)    % Returns T = ''\r\n  T = repeatingdec(0)      % Returns T = '0'","description_html":"\u003cp\u003eWrite a function that takes one double input value and returns only the repeating decimal, if any, as a string.  Only decimals for which \u003cb\u003eall\u003c/b\u003e digits are part of the repeating pattern will be counted.  (See the 3rd example below.)  Inputs will be in the range [0 1].\u003c/p\u003e\u003cp\u003eIf no repeating decimal is found, the function should return an empty string.  Of course the repeating decimal may break down in the last bit due to floating point arithmetic, but we will ignore that.\u003c/p\u003e\u003cp\u003eExamples:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eT = repeatingdec(7/11)  % Returns T = '63'\r\nT = repeatingdec(1/3)   % Returns T = '3'\r\nT = repeatingdec(5/6)    % Returns T = ''\r\nT = repeatingdec(0)      % Returns T = '0'\r\n\u003c/pre\u003e","function_template":"function y = repeatingdec(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nassert(isequal(repeatingdec(1),'0'))\r\n%%\r\nassert(isequal(repeatingdec(3/7),'428571'))\r\n%%\r\nassert(isequal(repeatingdec(.3456345612323),''))\r\n%%\r\nassert(isequal(repeatingdec(1/pi),''))\r\n%%\r\nassert(isequal(repeatingdec(1/13),'076923'))\r\n%%\r\nassert(isequal(repeatingdec(2/33),'06'))\r\n%%\r\nassert(isequal(repeatingdec(.789789789789789789),'789'))\r\n%%\r\nassert(isequal(repeatingdec(.78978978938383838),''))\r\n%%\r\nassert(isequal(repeatingdec(1/exp(1)),''))\r\n%%\r\nassert(isequal(repeatingdec(.78787878787833333),''))\r\n%%\r\nassert(isequal(repeatingdec(.123451234512345),'12345'))\r\n%%\r\nassert(isequal(repeatingdec(1/100),''))\r\n%%\r\nassert(isequal(repeatingdec(1/62),''))\r\n%%\r\nassert(isequal(repeatingdec(1/16),''))\r\n%%\r\nassert(isequal(repeatingdec(1/91),'010989'))\r\n%%\r\nassert(isequal(repeatingdec(0),'0'))","published":true,"deleted":false,"likes_count":2,"comments_count":4,"created_by":459,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":14,"test_suite_updated_at":"2012-08-22T18:56:51.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-08-21T17:48:42.000Z","updated_at":"2012-08-22T19:02:18.000Z","published_at":"2012-08-21T18:29:36.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 takes one double input value and returns only the repeating decimal, if any, as a string. Only decimals for which\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\u003eall\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e digits are part of the repeating pattern will be counted. (See the 3rd example below.) Inputs will be in the range [0 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\u003eIf no repeating decimal is found, the function should return an empty string. Of course the repeating decimal may break down in the last bit due to floating point arithmetic, but we will ignore that.\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:\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[T = repeatingdec(7/11)  % Returns T = '63'\\nT = repeatingdec(1/3)   % Returns T = '3'\\nT = repeatingdec(5/6)    % Returns T = ''\\nT = repeatingdec(0)      % Returns T = '0']]\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\"}]}"}],"problem_search":{"errors":[],"problems":[{"id":43616,"title":"Opposite task convert string hexadecimal numbers array into array of decimal numbers .","description":"Opposite task convert string hexadecimal numbers array into array of decimal numbers .\r\n\r\nExample\r\n\r\nx=[ '208';\r\n'209';\r\n'20A';\r\n'20B';\r\n'20C';\r\n'20D';\r\n'20E';\r\n'20F';\r\n'210';\r\n'211';\r\n'212';\r\n'213';\r\n'214';\r\n'215';\r\n'216';\r\n'217';\r\n'218';\r\n'219';\r\n'21A';\r\n'21B';\r\n'21C'];\r\n\r\nresult=[520;\r\n   521;\r\n   522;\r\n   523;\r\n   524;\r\n   525;\r\n   526;\r\n   527;\r\n   528;\r\n   529;\r\n   530;\r\n   531;\r\n   532;\r\n   533;\r\n   534;\r\n   535;\r\n   536;\r\n   537;\r\n   538;\r\n   539;\r\n   540]","description_html":"\u003cp\u003eOpposite task convert string hexadecimal numbers array into array of decimal numbers .\u003c/p\u003e\u003cp\u003eExample\u003c/p\u003e\u003cp\u003ex=[ '208';\r\n'209';\r\n'20A';\r\n'20B';\r\n'20C';\r\n'20D';\r\n'20E';\r\n'20F';\r\n'210';\r\n'211';\r\n'212';\r\n'213';\r\n'214';\r\n'215';\r\n'216';\r\n'217';\r\n'218';\r\n'219';\r\n'21A';\r\n'21B';\r\n'21C'];\u003c/p\u003e\u003cp\u003eresult=[520;\r\n   521;\r\n   522;\r\n   523;\r\n   524;\r\n   525;\r\n   526;\r\n   527;\r\n   528;\r\n   529;\r\n   530;\r\n   531;\r\n   532;\r\n   533;\r\n   534;\r\n   535;\r\n   536;\r\n   537;\r\n   538;\r\n   539;\r\n   540]\u003c/p\u003e","function_template":"function y = HexToDec(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx=[ '208';\r\n'209';\r\n'20A';\r\n'20B';\r\n'20C';\r\n'20D';\r\n'20E';\r\n'20F';\r\n'210';\r\n'211';\r\n'212';\r\n'213';\r\n'214';\r\n'215';\r\n'216';\r\n'217';\r\n'218';\r\n'219';\r\n'21A';\r\n'21B';\r\n'21C'];\r\ny_correct =[520;\r\n   521;\r\n   522;\r\n   523;\r\n   524;\r\n   525;\r\n   526;\r\n   527;\r\n   528;\r\n   529;\r\n   530;\r\n   531;\r\n   532;\r\n   533;\r\n   534;\r\n   535;\r\n   536;\r\n   537;\r\n   538;\r\n   539;\r\n   540];\r\nassert(isequal(HexToDec(x),y_correct))\r\n%%\r\nx=['32';\r\n'33';\r\n'34';\r\n'35';\r\n'36';\r\n'37';\r\n'38';\r\n'39';\r\n'3A';\r\n'3B';\r\n'3C';\r\n'3D';\r\n'3E';\r\n'3F';\r\n'40';\r\n'41';\r\n'42';\r\n'43';\r\n'44';\r\n'45';\r\n'46' ];\r\ny_correct =[50;\r\n    51;\r\n    52;\r\n    53;\r\n    54;\r\n    55;\r\n    56;\r\n    57;\r\n    58;\r\n    59;\r\n    60;\r\n    61;\r\n    62;\r\n    63;\r\n    64;\r\n    65;\r\n    66;\r\n    67;\r\n    68;\r\n    69;\r\n    70];\r\nassert(isequal(HexToDec(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":90467,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":58,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-24T22:16:49.000Z","updated_at":"2026-02-24T14:28:01.000Z","published_at":"2016-10-24T22:16:48.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\u003eOpposite task convert string hexadecimal numbers array into array of decimal numbers .\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=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ex=[ '208'; '209'; '20A'; '20B'; '20C'; '20D'; '20E'; '20F'; '210'; '211'; '212'; '213'; '214'; '215'; '216'; '217'; '218'; '219'; '21A'; '21B'; '21C'];\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\u003eresult=[520; 521; 522; 523; 524; 525; 526; 527; 528; 529; 530; 531; 532; 533; 534; 535; 536; 537; 538; 539; 540]\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":43614,"title":"Convert binary numbers array into array of decimal numbers.","description":"Convert binary numbers array into array of decimal numbers.\r\nExample\r\nx=[ 11001000 ; 11001001 ; 11001010 ; 11001011 ; 11001100 ; 11001101 ; 11001110 ; 11001111 ; 11010000 ; 11010001 ; 11010010 ; 11010011 ; 11010100 ; 11010101 ; 11010110 ; 11010111 ; 11011000 ; 11011001 ; 11011010 ; 11011011 ; 11011100 ; 11011101 ; 11011110 ; 11011111 ; 11100000 ; 11100001 ; 11100010 ; 11100011 ; 11100100 ; 11100101 ; 11100110]\r\nres= [ 200 ; 201 ; 202 ; 203 ; 204 ; 205 ; 206 ; 207 ; 208 ; 209 ; 210 ; 211 ; 212 213 ; 214 ; 215 ; 216 ; 217 ; 218 ; 219 ; 220 ; 221 ; 222 ; 223 ; 224 ; 225 ; 226 ; 227 ; 228 ; 229 ; 230]","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: 195px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 97.5px; transform-origin: 407px 97.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: 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: 192px 8px; transform-origin: 192px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eConvert binary numbers array into array of decimal numbers.\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: 26.5px 8px; transform-origin: 26.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eExample\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 84px; 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 42px; text-align: left; transform-origin: 384px 42px; 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: 382px 8px; transform-origin: 382px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003ex=[ 11001000 ; 11001001 ; 11001010 ; 11001011 ; 11001100 ; 11001101 ; 11001110 ; 11001111 ; 11010000 ; 11010001 ; 11010010 ; 11010011 ; 11010100 ; 11010101 ; 11010110 ; 11010111 ; 11011000 ; 11011001 ; 11011010 ; 11011011 ; 11011100 ; 11011101 ; 11011110 ; 11011111 ; 11100000 ; 11100001 ; 11100010 ; 11100011 ; 11100100 ; 11100101 ; 11100110]\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: 375.5px 8px; transform-origin: 375.5px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eres= [ 200 ; 201 ; 202 ; 203 ; 204 ; 205 ; 206 ; 207 ; 208 ; 209 ; 210 ; 211 ; 212 213 ; 214 ; 215 ; 216 ; 217 ; 218 ; 219 ; 220 ; 221 ; 222 ; 223 ; 224 ; 225 ; 226 ; 227 ; 228 ; 229 ; 230]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = BinToDec(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nx=[ \r\n11001000 ;\r\n11001001 ; \r\n11001010 ;\r\n11001011 ;\r\n11001100 ;\r\n11001101 ;\r\n11001110 ;\r\n11001111 ;\r\n11010000 ;\r\n11010001 ;\r\n11010010 ;\r\n11010011 ;\r\n11010100 ;\r\n11010101 ;\r\n11010110 ;\r\n11010111 ; \r\n11011000 ; \r\n11011001 ;\r\n11011010 ; \r\n11011011 ;\r\n11011100 ;\r\n11011101 ; \r\n11011110 ;\r\n11011111 ;\r\n11100000 ; \r\n11100001 ;\r\n11100010 ;\r\n11100011 ;\r\n11100100 ;\r\n11100101 ;\r\n11100110 ];\r\ny_correct =[ 200 ; 201 ; 202 ; 203 ; 204 ; 205 ; 206 ; 207 ; 208 ; 209 ; 210 ; 211 ; 212 ; 213 ; 214 ; 215 ; 216 ; 217 ; 218 ; 219 ; 220 ; 221 ; 222 ; 223 ; 224 ; 225 ; 226 ; 227 ; 228 ; 229 ; 230];\r\nassert(isequal(BinToDec(x),y_correct))\r\n%%\r\nx= [ \r\n101000000;\r\n101000001;\r\n101000010;\r\n101000011;\r\n101000100;\r\n101000101;\r\n101000110;\r\n101000111;\r\n101001000;\r\n101001001;\r\n101001010;\r\n101001011;\r\n101001100;\r\n101001101;\r\n101001110;\r\n101001111;\r\n101010000;\r\n101010001;\r\n101010010;\r\n101010011;\r\n101010100 ];\r\ny_correct =[ 320  ; 321  ; 322  ; 323  ; 324  ; 325  ; 326 ;  327  ; 328  ; 329  ; 330 ;  331 ;  332  ; 333  ; 334  ; 335  ; 336 ;  337 ;  338  ; 339  ; 340 ];\r\nassert(isequal(BinToDec(x),y_correct))","published":true,"deleted":false,"likes_count":4,"comments_count":1,"created_by":90467,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":170,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2016-10-24T21:26:58.000Z","updated_at":"2026-03-31T17:53:25.000Z","published_at":"2016-10-24T21:27:38.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\u003eConvert binary numbers array into array of decimal numbers.\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=\\\"text\\\"/\u003e\u003cw:jc w:val=\\\"left\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003ex=[ 11001000 ; 11001001 ; 11001010 ; 11001011 ; 11001100 ; 11001101 ; 11001110 ; 11001111 ; 11010000 ; 11010001 ; 11010010 ; 11010011 ; 11010100 ; 11010101 ; 11010110 ; 11010111 ; 11011000 ; 11011001 ; 11011010 ; 11011011 ; 11011100 ; 11011101 ; 11011110 ; 11011111 ; 11100000 ; 11100001 ; 11100010 ; 11100011 ; 11100100 ; 11100101 ; 11100110]\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\u003eres= [ 200 ; 201 ; 202 ; 203 ; 204 ; 205 ; 206 ; 207 ; 208 ; 209 ; 210 ; 211 ; 212 213 ; 214 ; 215 ; 216 ; 217 ; 218 ; 219 ; 220 ; 221 ; 222 ; 223 ; 224 ; 225 ; 226 ; 227 ; 228 ; 229 ; 230]\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":51183,"title":"Convert Hexadecimal Number to Decimal Number ","description":null,"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: 71px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 35.5px; transform-origin: 407px 35.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: 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: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003eConvert a hexadecimal number to a decimal number. Many of the numbers may be quite large. For example:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 40px; 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 20px; transform-origin: 404px 20px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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 10px; transform-origin: 404px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ehex=\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); \"\u003e'abcdef123456'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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 10px; transform-origin: 404px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003edec=\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); \"\u003e'188900967593046'\u003c/span\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e;\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function dec = largeHex2Dec(hex)\r\n  dec=hex;\r\nend","test_suite":"hex = 'abcdef123456';\r\ndec = '188900967593046';\r\nassert(isequal(largeHex2Dec(hex),dec))\r\n%%\r\nhex = '28e5321a3c127ea08fc57936f425bbfca0dd6281e8891f1f10b11baf01d4760c1de24ef319ad6b9dbdce86151fbbb04ba58fbdb5b11fee7359c125345cea1ef63ee186828a7b47bd29db6cfab5a600cdcc8dcff4aad888f7a2067defe8418b54854b9de9b317d0e3c2116e64';\r\ndec = '19649415749491085206627366764766682339186060773175592005017406732162069940570812718672911072459473339631753760908472233361057010121771263930042548420005029695049836288215675977362162293898681803195433758785899821148280934514919175363909669996537081246545702500';\r\nassert(isequal(largeHex2Dec(hex),dec))\r\n%%\r\nhex = 'a88b7577b7ffafdfd20f97a0354e6d05d8b69067c6a504a359129cab0d025ae79b568b692f7a9af34212b7cfce8ceb9d7d41ca8827dc9b4eeb1fd2b10f957d0f2294705db51a40b3160f0e76890a40f7ec1d047376f48702aa24937ff42a25e011ff90dc4516917524d9349b651245034bb82b80c976d22e283a225941ec5cb0a57b91099093257323a0d25bce553e79b539a69d3c9ceaa0504c8107608547140c0a51fa73976f6826337977cfa97ea834dade8cbce5486d6a43a227e427dd55c4835067fc770aec16beec208fbabf290458af1870b334100';\r\ndec = '159377783497406650620936853949095675800424929828804108462028737356170766325451253700530421269011058052486240368792312180806435775798324493450802278223192513053275509232742372133179806995629441008826048555610875744842684348358939467357617195748986492910142247931534593233571621535107729675354384912302500871727146992807507490553409387898122869591393717224960098894686760100874340893204763856118394460434399416988997064285253350982455331171922758254086817245016257162649191471642897311445662643211238473827387232496100000000';\r\nassert(isequal(largeHex2Dec(hex),dec))\r\n%%\r\nhex = '06ef75625e7680cab0b7a38da5012c4a5618ec11efa57632bb6278f51664742f05cba06c2e0d28e5573f640925f5b72bbcba457005c8ced0137b93fcdb515fd0b209005359c0e7f60043a87d20dabce39e6d241594ba1a9f1356703fc7ae9177125d734f921b3a61f944e4ce6314bf8329ff67805383513236932e0fc5b22b35e11b29901a13d136bf620815a671aec9f85b8b1cb85da87febb9b645fcd9d30234bd3dc9df8be52748b6f438493b74a0b96a135d3964b1fe5143eb50602598b688450bec63cf6361617d72bcbac52a90af8d396c5976e5df135f8b75412ccca8abfbb5d03dc75ff0eecf4a2062db4c2320f9782ede0fd7e2c4f493addf2c3e684d01a2910112315ce02cbf134a907055f9eacaacd294fe8ba6af02f4485f6ebda9e5c8130732da2af2a63e9613084a2229a9b52b733c59e199cec8247fe7d7eb649f93811c2320a5a36a3edfbee7f69c4e0c09e315c18763c09afefd1d323297d903cafa14a53bd793e6d4e2a7361d4697117d09ec36f0b7a4c355778b9910423166dda101db35c0d0f2e436728ebcc05d85e63d32aebe82fae5f7da28f33c9e513b7eec2a46c0e5e9f64edffd8f681000';\r\ndec = '1587579867034139231140897150796379280137339337440136043551952230078281037917941634250773118081803707009033292547333115641615336414134882636356078191266227009963924882585382550207351632830211200054163457041256629718378613177190486935475784503197624196734222959421478715707421323150785857543200283643879517789215759886743614268365470744037266091945661742945363586829975261454588828237776031592284425461562614972788036530599620589676549514533552578849280999960050275202965289108502147663994031416894604066421790743763173911992418160771216242042661007595139600125199907505075009284228397070319438157477072013686862904936696343402805258434635295552263055570728064064923715097632983799823169081415315840658807099235354085987413262271864518139507752079193283698794794046541908427143195724502865199215413075452800878150143212143755404974946432673386769216863693716136518925442168249822988620050961160003829242978788311362646688805432244792276857868896580890354788927576651701085311899918388970260634277278661700844619838009714739782200625000000000000';\r\nassert(isequal(largeHex2Dec(hex),dec))\r\n%%\r\nhex = '30197cffecff72c20db0b503bbee23615187f9515d761798dd9bcca2c8ede0a4775b2d410066c7efd529c0cd5e58e6b718b5e2932370fe6a63e8966aaeafc42e1ba14cf6c6630664b82e7cb07b1cbe8124d4f582be9146badd41508eb70a8c173d44e2ff1f52e3df14ed703f570ae131b91e45d681d0fe2cfaecfcc72296cfc23f20a957dbaeb390cfad219c732bca3433d10d4dd3f7894d5f20b294fe085d058a44ec488d3dc0aa1934f2f347a29e3f62c6831c734de98cda86e330ef7610a78017c06409a639a6e6bef1d0cfcad08df88fa5ceec9e2f0223a76d4520ecbaa9ddfa1e0dd383ed544886cdc3027b3caccb1593c2c6aee85625a6470fd102029b73bbc33cbc8ad33f58695ae6ee65cc8765d698cac15c790cea214a5272ecdaed9a3475b39a27af487d5e27f46bad83e846cb11649401dc176883ac36c7a10cece5d9bf0cd475c2ed5a447eefb914760ade0e0dd5ba7062d80cb2bc3205fdcb401760148f19709b4a27f1900108003608a84f6f97d705156d3e9977f214945e694bbc6e5325c6a7242e39fcdf970e1cf029464aa710ce9b9705f88c7cbbb0eeb44a069315f291d076757d033a24de0d619ffc61b3d60dff7ac5d8c310b07b3f0dc386a776da3dfbc1f99cb4228367c4497d38528ee44ed14d671ef2b6e79fd64da32e8bca99f1e19981eb05b686c0b52b9549f9bebb7bf077a709398b40e07dc0104af7d5a31296e146626f4d4d1e9884559e87a2a0ee36244f5243e57bf4e81e37e6852161b16eace45656e1cfd311fa37df6a85f447f7ca4c7cd7b2ef0ff82790d1a68fe4f887102a4a8ab66f686c3c3b6b3c8276bb504b3d67706d58d881ad6f69f1ca943027b91f24abf6bd6a800a5e308e78f05368d1cf2924548f27f424a997a16627323c47180a5c5bc862b0d589af8b29fdd65d6289cb1bf2712762c162a36061d7d00f53cf7116d3b4b68d142152d93f0d19247682b39d5175fc60d0ac18daa1cbef27f9484ef4ad80feb543d84db2af039f0ff174d975e06cdf3a21a597c94ed8152ec9f6dbdb65e343c4d3396cb3364e1691cc29f3623e1d3cb6266defc3c259fb3a971d69b61355dd823f90c7cb5991fbe742f0bde5e1774769c625fcae39591935952efbd38e4bfadda20c624bf71ccee20703970c8987e323ee03eaed0f6a54b8047f9fde317ff04b42b4b7b451bfca283d25cfe50c2d010000000';\r\ndec = '40326557347394163217111376015150098000966347418450254753852255431184442696781596783308147573810998374358974796909642971595270925120777006068595784805928280421044650449012519391659172726678410846803663986724760691849701235729323900631257065929326542597148030184301655710653497183002511446769080016945623039546047520009834311615328057203455928254462227346230847134180669717706461843267823103748819819416530847735727245499296276701046426250792810898314221168430705372251520183027771866333206108071677091215090053332637884621172357713531543378625990222337118339802548319832564870599200691132968571843037047534593882485705972059711167605612284759845760630614693151250588566178920993740333034140575520682401004870247393930623536193603657051329652614548437767730927085224200312880149672127222157839300978072432197895941579985433103512595080261712716640931750756712381675331694367848965106421248416297508801747725688595588347854852895782055017858092737578147350252134171901597655190366699532999984036527177134351395076379737985236153168812155200494747662639113361303579032789722027532074959893094739186682680590009792006629588783735871885917331278175219289324024852366160289403850688833475567702025613200815610360419090762769533670176014141663626017682868634869662223370183141040684607611336522480549652475765712598549626989493809204840529555970082428743728094128423110671596606694373540292907711798617760430783889916368415238071654186255798764693159120207510363991119602430057581062291420035181510825002467892137812172061168587163623842053085544665712241358640224236395625480144233846315315478538982950606459441103406589718519926191663609338221040373308957184617847305625175641634395798549951617121397436472313640547291346100707602139489870823314027300949550793244790513274098002031285822556833314787519261216054317720396611704491319502321124108436026972281533686675004845855948610460035178835520364885742354758893012443948356722954611553069499234370926246202870006136291977416939134100472402507711559333070638456853961876747749275029252328176533943149785084006250000000000000000000000000000';\r\nassert(isequal(largeHex2Dec(hex),dec));\r\n%%\r\nhex = '090991699fe5025ea68386bad1deb8581ffa3bf3f834580f1f4b32c85af3df9463646f06999a09aa9bea47ad3f245363a56386b2fb3fabf6eade142ca9ca8fa0c269fb77c035e9b6bf99cf9438684fde6256d385eb863a7af01030fd6991389d7ee98580668764dc2f0a9e98de641856671ce4c698913ac2df5d447b4a5321c8ec5720a0dd31b9997dc53f7031ee076b5d32c66f41e0d7939b243fad700cb5fa98fb677c371802215ffcbdb209ab07b03e3656e2eda7116f132b022b03637a4644e7444af13fe82a97c1c9b339db0ff9366967834566b4d71a3362abcb22cc2e0f83da5934ae72ba55cf9a56e7d4a594aadab149ed9c4c73956fa8560ae3f0d6d0e4db4efb5cbe98ad439eeaf898c2b420370be012d5571e0465dec3ad05e1d1ba097209eef33d25b91d534dd07f2c702c9ae76f35f77e67b8820c9badca6ede1ba476a3809a5d3ab74555fb50ffed94dc1bbc9e7a49938f9e4f8a2cf6fb46db492891abf8cf83b7aa3d28291818df3cd2719707fcb764699598726145ab45e9428bb3b460dde2d3f79d833dc5698f0ecad601808cd5d5ea28e123456ad70faa7c9f1e77d67f0cdce500de4736c2c91178d52130793e06bce3b705c9c22b9ea23ebf437b7df78fa1bd7b98a492de50e821314db6b649b1daebe13becb114631975257d5602d69b66112d80f06db61a16ca22823dda7d55174258ddeedc521cee56dfd5d69c32e14eac06c8bb246cda249d7870e6a64b5e80ce73b20703c852707a4637c6dbb95e478f0d906fb1647d5e42d24875028d5665e4cc40f0ee9bb61828f5ec207497af713281521063a4b8258eda5ba707c364a4a819bf968a8e355f941f7c030ba5f2f96a1813accc5b1fd27a8e32c8df49853545ce12d876fb9dd0da3d5928807003100e2ab7dc501a83cbeba94c6404697194ab12b72f492b667c95299a2af0864ad1494214cd9a52ebe5f6d5825024e11b2afeb31ee2afbfe60e08dc353c74fb0b1cc0c79ff95a9633bd0023d5267551f24ce1d91841de594907d9b36f339f7a902cc2688f652eb1040128294bc1bf1c86af195dc284ff33ff22e11b4abe84e4e3488bc3ae4b10a5b773bc4cae9be41f2a982d5ffe889d7b16612054f21de6e7364ca5c3949379560742b86df7ee496444f4f2e61bbc8198bf7f19e7f9e54138d41eebff1910d20d6f0eba0b7b5c0574b490b96ed83277802dcb3607918e820e3b5279e67c8d8eeb7cf9f82a2f1509d9882902da6052be31b84959e5d1b2462682c1cdea1fe717ed6742a3557221d9133d5eac4537a356e01a70a137e21836132abb27e9a794082f02c816e5924f83c2b9ad67dfb166373c4e516e86c68552c7b60fb1b9a3d439943647427dbfd3d31d520c390782768d988c293bd1fbf4d491602ff0b1787a8aeb6a4ad36a25792c0d85bed64a74cb6eb65550fe2f2dab0a276c36baa94710129c5023ea9439eefb022697b3816b80dc658b5531ec873455080ffb2028d2f29b8308fb63fcbebece316f87ea8c8458e9ed110a857c9c33e30a6105cfdf7e0cd5559a1d813b3caf13d1a8b0289af18bbd209663846ae95ce49f32657abfe28e32402486876a6a4f26cefc88f528edbf87272b977d128e1927a881be083fc4e1fffed40905ca266289edfc129bf14e0cb32bf60dc550d89c9f1dad96cc05c5a0bc0f49a2b049fb8ea1654f3fe63426ee736af8a46f3e7af35214ad9a8a1bd7bebe1ae1d4db62415bc9d9360ce34bc3a56a88d842d41cf4dad69b1b64352666626c29c7a51ae9c3892c0bb5c9edb109e1962d655688a1eb3ff570bc79529744640eff44deb479ff8adb22c8e58026a933e066484c43d06fb3472c3c9efe1ee435d281fb4fd0eb14e39a16376377c7e73c423ad6b955bd21e1afef3f9ec2019bf7af568196c81f6c13d8108c422e34887b4b09db36341132164ff287d71b0a2eb629db61a7a36186654661ac6f92cd5e85dfdf49578fc75144302ca38a0e264cd78dbc739979a0dbc1e975830a069f4efe4d96d2715788ab53a9ab3fa6d82132e8a4a5cb78f46401cf1ee2bff6a79ff5a2ad370deb0e3d92a2b2a48bfb909cae6f04f61119620e7d5ebf107a9c550f10d0a7fc00570f23a0548b218886c316338e8074e08fc1c410006b614ae717264a532d922833d57eceea48e3eabf5f45477259d123eb274a02a0bb4b2a3628866397b89a1ab4fd3c68d7ddbb396271f878bc4b70f9f3f48155dc8168bcc6ea9906d22cf64df88893918c53c5dd92fdf8543284cf1d9ffdd818f344bab7d9a3b967d47d206f8466dcdf7564f5c69c853f0f8920dc29ab427fac6d80c293be075d437e1618fc9decd7b7e7a7e8c9685bc0eba78c400fef2699ff00386b504ea639fddc3ea4b68ec54da11e3438fc1e8c0fc1656e1cdeb5873d3a7b7e1bdab60a015a0100000000000000';\r\ndec = '1626231227492670169566995197763785125443147752523122252469793416017438324709920214366652433832671519897926208268070711104172302851473182071988591107221844891510261441349970513129664190862017438704040679504731448152072158374717937474190823762010980438221099081632079257584777829568431409109315377747672968305489432904243476720401155812335575812137177933508359490873592319975624593706626887314950307632105181312779229263245169322062571112838888290824485403710175134073367676122565677870527321363415291974448644188635998863992627717321274938478635318749328087995793646281666648143195378425709654762364665696059381291354264719184996352432532590068639037676975770687924625559016644699713637732512974654689423385544930223305304471623473944889634732693197510170240913909431677762941322525094394182578696278417690143086082716709665995281849855704168044923185531650783247065014584337995380236756468836122756628434346100012371160666662905638497030156236694612517552114777391974978081127279767707113211164023048278168755844145773441816068052387220418966839715769487968177305604841258003589480208646576608171825400933411866551079061196011346203890155320423915330831063993693274121945501362400093713326746347267043912997183450455315149261604871856867602687276064681526941541500781832057853153920465680130937144438905000007249767925364346647163454021715550330567248480843044962576181536708552187858756202445612461930423699264394920663965320358817967482000039729589939755618999302125845042591108959577730758109934151940142706804341384062675858853475771177755434367734642633569388036604973875160124805787957206878913511871123339382332980776778169743174036714595595764046187624569169927473252070647847074609478900354720402605986181690127939662442882826087558996085734197117722139543650564379977917659444686763260646602872723718016158318480781798361674309018502642774654565729950328933472158788731324865659939808824974434196465159883789720668349576977821357375653681949844285109599211587300919321510329079052349778530176881711866809205135265846732808110751782062242226641011037073792604565046563186384374747661167035527442600374706068106788317374515878555108762739044736110739575141320762160529685185843861879040214833038001055358726727578380262296248127344396683354656192042851501332742495856866644853597578685231478999258120477082261389797968596589662490275334971285946948514211213129700793878865800734719897768184884124042977491993714819942598991716690747902473899778681216122320945324329996210493090309249961383581248721394174625951146998454562159650519330167338702251825568201272472036954415326451255114334526099617883055186038247409885799852372649689612428548402407431058387938746221841015469710816018342684632806862715802605243477259535256173471907628655903832246157485534068162948782007423353879689832158667441384735892508295856639828894393775852084089914448181220825199925908653244929508135845337268897506607454006791826774310941263904618705149822479716230582402849860105066715041403886737561284893965525613398190035276946135610893536101294975947271433078861947924474505308972015197343998763754229451810035388282615853946371337628479622493014481838431288567690461219314159716277866978959981937715609116586140458397271122071096398405767572539093685430927767907331387528047851261771858406138190712222117847383210333666240482971579676748911274659632847166977024490256094269991448294955818146446960136373520638277917334778338335752340909825734765636886838933071167643235321270227570439744984796586034011261528139420873629080365654843879910912870391173086415003756191422774050855355635045981602416102962407833593860661477914303297072554240914981166963828065912164507311891756331336533734477839492726601390562382338525772820577349577713538609861909607737681136487522911298839635491390648831956978931342432636822308599782126945806974128270483025034343017182516125168034875403846285334939909020726956574263935115571637968864873907121889147699800476674673429992641900515714100377961115968315843640691246288123101138113959464028912662181704169268676836519025027331235707285582079623359040441031835228310086854669678259369550039062500000000000000000000000000000000000000000000000000000000';\r\nassert(isequal(largeHex2Dec(hex),dec));","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":145982,"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":"2021-03-24T16:05:59.000Z","updated_at":"2025-06-09T08:30:54.000Z","published_at":"2021-03-24T16:07: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\u003eConvert a hexadecimal number to a decimal number. Many of the numbers may be quite large. For 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[hex='abcdef123456';\\ndec='188900967593046';]]\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":511,"title":"Converting Decimal to Binary","description":"Given a decimal number that may include a fractional component, convert it into binary representation. The numbers you are given will always be cleanly representable using positive and negative powers of 2.\r\n\r\nAs with \u003chttp://www.mathworks.com/help/techdoc/ref/dec2bin.html dec2bin\u003e, return your result in a string.\r\n\r\nExamples:\r\n\r\n Input  d = 2.5\r\n Output b is '10.1'\r\n\r\n Input  d = 34.125\r\n Output b is '100010.001'\r\n \r\n","description_html":"\u003cp\u003eGiven a decimal number that may include a fractional component, convert it into binary representation. The numbers you are given will always be cleanly representable using positive and negative powers of 2.\u003c/p\u003e\u003cp\u003eAs with \u003ca href=\"http://www.mathworks.com/help/techdoc/ref/dec2bin.html\"\u003edec2bin\u003c/a\u003e, return your result in a string.\u003c/p\u003e\u003cp\u003eExamples:\u003c/p\u003e\u003cpre\u003e Input  d = 2.5\r\n Output b is '10.1'\u003c/pre\u003e\u003cpre\u003e Input  d = 34.125\r\n Output b is '100010.001'\u003c/pre\u003e","function_template":"function b = dec2bin_fractions(d)\r\n  b = 0;\r\nend","test_suite":"%%\r\nd = 1;\r\nb = '1';\r\nassert(isequal(dec2bin_fractions(d),b))\r\n\r\n%%\r\nd = 2.5;\r\nb = '10.1';\r\nassert(isequal(dec2bin_fractions(d),b))\r\n\r\n%%\r\nd = 34.125; \r\nb = '100010.001';\r\nassert(isequal(dec2bin_fractions(d),b))\r\n\r\n%%\r\nd = 452.8125;\r\nb = '111000100.1101';\r\nassert(isequal(dec2bin_fractions(d),b))","published":true,"deleted":false,"likes_count":0,"comments_count":2,"created_by":2591,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":76,"test_suite_updated_at":"2012-03-20T18:00:02.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-03-20T14:21:56.000Z","updated_at":"2026-04-03T03:07:57.000Z","published_at":"2012-03-21T21:01:35.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 decimal number that may include a fractional component, convert it into binary representation. The numbers you are given will always be cleanly representable using positive and negative powers of 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\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eAs with\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/techdoc/ref/dec2bin.html\\\"\u003e\u003cw:r\u003e\u003cw:t\u003edec2bin\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, return your result in a 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:t\u003eExamples:\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  d = 2.5\\n Output b is '10.1'\\n\\n Input  d = 34.125\\n Output b is '100010.001']]\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":49835,"title":"Decimal to Binary conversion for Large Integers","description":null,"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: 436.9px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 218.45px; transform-origin: 407px 218.45px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 41.6px; 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 20.8px; text-align: left; transform-origin: 384px 20.8px; 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=\"\"\u003eDecimal integer, a base-10 number we normally use without fractional component, can be represented as \u003c/span\u003e\u003c/span\u003e\u003ca target='_blank' href = \"https://en.wikipedia.org/wiki/Binary_number\"\u003e\u003cspan style=\"\"\u003e\u003cspan style=\"\"\u003ebinary\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: 0px 0px; transform-origin: 0px 0px; \"\u003e\u003cspan style=\"\"\u003e, a base-2 number composed either 0 or 1. The procedure to convert a decimal integer X to its binary equivalent is as follows:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003col style=\"block-size: 60px; 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: 391px 30px; transform-origin: 391px 30px; margin-top: 10px; margin-bottom: 20px; \"\u003e\u003cli style=\"block-size: 20px; 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: 363px 10px; text-align: left; transform-origin: 363px 10px; white-space: pre-wrap; 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; \"\u003e\u003cspan style=\"\"\u003eDivide X by 2. The remainder (either 0 or 1) is the first binary value.\u003c/span\u003e\u003c/span\u003e\u003c/li\u003e\u003cli style=\"block-size: 20px; 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: 363px 10px; text-align: left; transform-origin: 363px 10px; white-space: pre-wrap; 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; \"\u003e\u003cspan style=\"\"\u003eDivide the quotient of previous step by 2. The remainder is the next binary value.\u003c/span\u003e\u003c/span\u003e\u003c/li\u003e\u003cli style=\"block-size: 20px; 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: 363px 10px; text-align: left; transform-origin: 363px 10px; white-space: pre-wrap; 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; \"\u003e\u003cspan style=\"\"\u003eRepeat the process until the quotient cannot be divided anymore and so last binary is found.\u003c/span\u003e\u003c/span\u003e\u003c/li\u003e\u003c/ol\u003e\u003cdiv style=\"block-size: 22.1px; 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 11.05px; text-align: left; transform-origin: 384px 11.05px; 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=\"\"\u003eAs example, \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\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8XXs5etg29V0dguxEwamYejWQy1s7wt922iWy2e2v7r+sINI5AJ5vGN7CL3xFoBYFONq3sVJezI9A4Ap1sGt/ALn5HoBUEOtm0slNdzo5A4wh0sml8A7v4HYFWEDgdiAl0ZCqegPsAAAAASUVORK5CYII=\" width=\"141.5\" height=\"19.5\" style=\"width: 141.5px; height: 19.5px;\"\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 through process below:\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 223.6px; 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 111.8px; text-align: left; transform-origin: 384px 111.8px; 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\u003cimg class=\"imageNode\" width=\"60\" height=\"218\" style=\"vertical-align: baseline;width: 60px;height: 218px\" src=\"https://upload.wikimedia.org/wikipedia/commons/d/d0/Decimal_to_Binary_Conversion.gif\" data-image-state=\"image-loaded\"\u003e\u003c/div\u003e\u003cdiv style=\"block-size: 41.6px; 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 20.8px; text-align: left; transform-origin: 384px 20.8px; 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=\"\"\u003eGiven a decimal string input x, build a function dectobin(x) that returns its binary equivalent in character array. Unlike built-in dec2bin function, your function should also work for large integers up to thousands number of digits.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = dectobin(x)\r\n  y = x;\r\nend","test_suite":"clear\r\n%%\r\nbannedWords = {'regexp','regexpi','import','java'};\r\nassessFunctionAbsence(bannedWords,'Filename','dectobin.m')\r\n\r\n%%\r\nx = '0';\r\ny_correct = x;\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\nx = '1';\r\ny_correct = x;\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\nx = '13';\r\ny_correct = dec2bin(str2num(x));\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\nx = '1234';\r\ny_correct = dec2bin(str2num(x));\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\nx = '123456789';\r\ny_correct = dec2bin(str2num(x));\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\nx = num2str(randi([1e6 1e9])); % 7-10 digits\r\ny_correct = dec2bin(str2num(x));\r\nassert(isequal(dectobin(x),y_correct))\r\n \r\n%%\r\nx = num2str(int64(randi([1e14 1e15]))); % 15-16 digits\r\ny_correct = dec2bin(str2num(x));\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\n% 100 digits\r\nx = '9935889422099775700620749019825066687005320193436482650621467845674334663581207733950858713953594810';\r\ny_correct = '100100010101110101001011011110111011001010010010000001101010001111010001111000110111110100011000000010001001010111101101111101000101110000110110100100001101001010010001010000010011111111010100111111100110010011111001110111001111011111000010011101111100000000100000001011011000001010111001110001010101001101110011111011110110110111010';\r\nassert(isequal(dectobin(x),y_correct))\r\n\r\n%%\r\n% 1,000 digits\r\nx = '3059201154261253530451690354977606310924322607284223918856338124374709270871880662494169428937121052075859797206813475095556104269276596500978875324047465920883111580522711413182514848655486194576723389296141674672149809829265420167820519225209898307641365760914568721866463844355172261421834003336488535238809007328873935253700111210006241805977393874531741494641320187019834745948717074377488851592337628009671305943507313220241345532153678625541382153876303729081245594666363375641541440039672508266173273547591929050186861649876277730738299377510850280883881669370053397327830542446255453962902873897458955875563317360197974644289445704776742967853660702740237720951325610419441880361333911947025395121778148262639261460523590232675016389707381618111484504793129877986986813532838182033892534760974140550358778239119177192242757139854881677013489678325929427533280319023842380171528893573940130880205407716783800858180602225696643483888830206964236483084265907918866516345819848257322544972900223';\r\ny_correct = '100101010000010000001101010010100110001010110110111010110011000100110001100101100011010101101110000011101111100011011101110100000001001001011110000111111011111011111000010010000010011011110011111010101100001111001111111100010001100110011101011011100101001001011100111000011000111100110110110100001000110101011010001110110111010010001111111101100110111110110100101010000110100010110101110011100111100011100000101001001011110010010000110011001011111101100001001110010001111011011100001101100111000011001000101100000110011101000010001011110101110111010001110111011111000010100000010010000001001010001010110101010111100101100111010110011101001000111001001101100110010111011001010011010100011100010100111010110111011111111101010111011000000010111010110100001010001000110010011011000110111011110011101010100101101100000101010000101001000000000010010110000110100111111000111110001011001111110010001011011100011110011001110001101110010010101100101110100110100101000110001010110011000010011110101111110100010100011001101010101101110100001010000100001011010110110000111011001000001101111110011111000100001100000011101010011011000010111110100111100111010101001001001111001011000100001110101110001001110110010010101001000111001010100101110000110111001110001110111100110110101011010000001110110011010011011101100100000101111100001010010100000000001111101001011111110001100001001110101101111101101110111100001000001111101111111100100010111000011111001110011101001001110111001001111011000110000101100101000101100001001101000110000011010001111001110000100001011110111011011111111110000000011110101111101001100101010101111111011010001100100100001110000010110110100101100111111100100011101000111010100001001111110010101101100101010101011100000101101001110000010001011010110101100000011010100111010001111100100001001101000010011100110000010111111010000110010100000110101010000000001010000011011011101001010111010100111100011100011101101111010010110111001000111001001010000111100001110111110110000000001100011100010111110100010000110111110111110000001010000011010001001000011100011011010110010000010101011100100010110101000111110111101111110101011001101001000011110010101011000000000010110010000110010011100101000101101001111011010010101100110011011110101111111001010000100011111000100000010000101110100110100000111111011111011111011010110100000100100010011001010111101110010011011001010000111011111011100101111000100000100101010110000110000000001000100110100000111101111000011111110010101011101101100110111001011110101110000010000101110010100101000101111100110011111111111001001011101010111001001100110010101011101000101011110100100001111001111101110101100011110100001010110101110100011110001101001101011010110011101101011111101001010010110101001011001011001101110010100001001100101110001101100110010010010011111010011111110110000100010101011101001110000010010010110001100011100100011010011011010111010110100110011101000000101010101100110101000111111010000110011010000001111001111101000010111010111101100100111100001010001010110010100001010010010110110100101000001001101010101101100111011111101000110100000100110111010100111101011100111001111110001101111001111010101111111100101000111010101101011110010010001110001111111011000001001001000101010001000111101001011011001010010011011001010110110000011000001100110010011111011110010011101111111';\r\nassert(isequal(dectobin(x),y_correct))\r\n","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":392030,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":5,"test_suite_updated_at":"2021-01-17T04:22:14.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2021-01-16T07:49:57.000Z","updated_at":"2025-11-19T01:41:17.000Z","published_at":"2021-01-16T08:14:40.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\u003eDecimal integer, a base-10 number we normally use without fractional component, can be represented as \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://en.wikipedia.org/wiki/Binary_number\\\"\u003e\u003cw:r\u003e\u003cw:t\u003ebinary\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e, a base-2 number composed either 0 or 1. The procedure to convert a decimal integer X to its binary equivalent is as follows:\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\u003eDivide X by 2. The remainder (either 0 or 1) is the first binary value.\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\u003eDivide the quotient of previous step by 2. The remainder is the next binary value.\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\u003eRepeat the process until the quotient cannot be divided anymore and so last binary is found.\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\u003eAs example, \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"false\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003e357_{10} \\\\equiv 10010101101_2\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003cw:r\u003e\u003cw:t\u003e through process below:\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\u003cw:customXml w:element=\\\"image\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"height\\\" w:val=\\\"218\\\"/\u003e\u003cw:attr w:name=\\\"width\\\" w:val=\\\"60\\\"/\u003e\u003cw:attr w:name=\\\"verticalAlign\\\" w:val=\\\"baseline\\\"/\u003e\u003cw:attr w:name=\\\"altText\\\" w:val=\\\"\\\"/\u003e\u003cw:attr w:name=\\\"relationshipId\\\" w:val=\\\"rId1\\\"/\u003e\u003c/w:customXmlPr\u003e\u003c/w:customXml\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\u003eGiven a decimal string input x, build a function dectobin(x) that returns its binary equivalent in character array. Unlike built-in dec2bin function, your function should also work for large integers up to thousands number of digits.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\",\"relationship\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/image\",\"target\":\"/media/image1.gif\",\"relationshipId\":\"rId1\"}]},{\"partUri\":\"/media/image1.gif\",\"contentType\":\"image/gif\",\"content\":\"https://upload.wikimedia.org/wikipedia/commons/d/d0/Decimal_to_Binary_Conversion.gif\",\"relationship\":null}],\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"target\":\"/matlab/document.xml\",\"relationshipId\":\"rId1\"}]}"},{"id":44849,"title":"Given a base n, find the y values less or equal than 100(without 1), such that they will never produce a periodic number if we divide any whole number between some of them","description":"A periodic number depends on the base b where we are working. So, for example the number \r\n2/3 in decimal base is periodic(0.666666666) but if we are working in base 3, the same number can be expressed as 2/10, and the result is not periodic (0.2). \r\nBy this way, it is possible to enunciate:\r\n\r\n* In base 2 or 3, all numbers will produce periodics numbers unless the number is the base or power of the base\r\n* In decimal base, numbers as 2,5,8,40,50 for example will never produce periodics numbers. \r\n\r\nBy this way, you have to find when a number in any base can produce periodics numbers or not, and then find the values less or equal than 100 that in this base will never produce a periodic number.","description_html":"\u003cp\u003eA periodic number depends on the base b where we are working. So, for example the number \r\n2/3 in decimal base is periodic(0.666666666) but if we are working in base 3, the same number can be expressed as 2/10, and the result is not periodic (0.2). \r\nBy this way, it is possible to enunciate:\u003c/p\u003e\u003cul\u003e\u003cli\u003eIn base 2 or 3, all numbers will produce periodics numbers unless the number is the base or power of the base\u003c/li\u003e\u003cli\u003eIn decimal base, numbers as 2,5,8,40,50 for example will never produce periodics numbers.\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eBy this way, you have to find when a number in any base can produce periodics numbers or not, and then find the values less or equal than 100 that in this base will never produce a periodic number.\u003c/p\u003e","function_template":"function y = nperiodos(b)\r\ny=b;\r\nend","test_suite":"%%\r\nb = 2;\r\ny_correct = [2 4 8 16 32 64];\r\nassert(isequal(nperiodos(b),y_correct))\r\n%%\r\nb=3;\r\ny_correct = [3 9 27 81];\r\nassert(isequal(nperiodos(b),y_correct))\r\n%%\r\nb=60;\r\ny_correct = [2 3 4 5 6 8 9 10 12 15 16 18 20 24 25 27 30 32 36 40 45 48 50 54 60 64 72 75 80 81 90 96 100];\r\nassert(isequal(nperiodos(b),y_correct))\r\n%%\r\nb=50;\r\ny_correct = [2 4 5 8 10 16 20 25 32 40 50 64 80 100];\r\nassert(isequal(nperiodos(b),y_correct))\r\n%%\r\nb=10;\r\ny_correct = [2 4 5 8 10 16 20 25 32 40 50 64 80 100];\r\nassert(isequal(nperiodos(b),y_correct))\r\n%%\r\nb=29;\r\ny_correct = [29];\r\nassert(isequal(nperiodos(b),y_correct))\r\n","published":true,"deleted":false,"likes_count":1,"comments_count":0,"created_by":289312,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":11,"test_suite_updated_at":"2019-02-13T21:28:22.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2019-02-13T21:27:15.000Z","updated_at":"2019-02-16T21:35:00.000Z","published_at":"2019-02-13T21:28:22.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 periodic number depends on the base b where we are working. So, for example the number 2/3 in decimal base is periodic(0.666666666) but if we are working in base 3, the same number can be expressed as 2/10, and the result is not periodic (0.2). By this way, it is possible to enunciate:\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\u003eIn base 2 or 3, all numbers will produce periodics numbers unless the number is the base or power of the base\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\u003eIn decimal base, numbers as 2,5,8,40,50 for example will never produce periodics numbers.\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\u003eBy this way, you have to find when a number in any base can produce periodics numbers or not, and then find the values less or equal than 100 that in this base will never produce a periodic 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":52472,"title":"Vector to Decimal","description":"Given an integer vector ,  return its decimal representation  as a character array.\r\n% Examples\r\nv = 7\r\nx = '7'\r\n%\r\nv = [4 2]\r\nx = '42'\r\n%\r\nv = [0 7]\r\nx = '7'\r\n%\r\nv = [3 12]\r\nx = '42'","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: 294.048px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 406.989px 147.017px; transform-origin: 406.996px 147.024px; vertical-align: baseline; \"\u003e\u003cdiv style=\"block-size: 44.0483px; 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 22.017px; text-align: left; transform-origin: 383.999px 22.0241px; 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=\"\"\u003eGiven an integer vector \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-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4K1yXA1BPUhe/ms1u+pt82W2B3FekkiLpbvjptvKhM88HExGmdb3Omedd6d2DJ5nQYfK0yWv67ReOV9FlPiZeJGExmT+vlnH2jV2HkazPtfI+Lxnpg41ikhZrRSaV2+bs/bukUkkz46utBl3yaoiKivASllHEbSvqzcUvFWOqyFoX7nyXXHzmiVnAL0/MxZpVvHsnty7fGXS93m1/fomiVYlT638i+5vHGi1V18L2vf5+Rx4BeMzzPLr3n4q5RwMkcy8t7WFEHSeq9d3IXdlv2UQVCKqMS2nKwsVtMC5DNB4sSyol8zeX16UEj/LxKQPQVcpzzLXOm9uyfOBVEc9y5rNm2PW59mTskY7V3Q9MoVGuse6t5s24u081yiC9nX1hi5sleM8rFZ9+Ir9sumKWOnTJyZpkzcnW6yDdXNMiFhi552p7k15mZ2L27cGPlGZUazFqrzHm1WosEp5auVfZH+VkN7MDR35hDHPM2zRrd0fyLXSOSb1FsB66uNTOahZfN8mn5vZZa/wVOhr/s3yVuM0W01MMmsT/Zsb3pNJVhMJbogENKmTie+muFn/TmWEs4oLxhyUPNbnW/VkXOz3G7+cLIcZRquQbKuUZxFrGjqHBNDLuTzF/eK/yJYr7vQyrcG+Jk1ugkjLeUkqJjFb3VUH0KpE19LfZlnkpsRcgcBKEAiCrgTmeEggMAyBIOgw3GJUILASBEqCWuXh+3j02WubiRYvaJf9doFauaJ/ILBeI1AStLzzrF1U82tZteOjfyAQCLQgEC5uHItAYMIIBEEnvDkhWiAQBI0zEAhMGIEg6IQ3J0QLBO4EDo9VR8kfkDwAAAAASUVORK5CYII=\" width=\"116\" height=\"20\" style=\"width: 116px; height: 20px;\"\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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iNmkzekzuOFbtG6KlveWcm1lMDdt6TNs1sTamzVRyeRyz6RxkK12FtGwEuWx5bdfL4ud53iwgvHqWlXvl44O61YDWgU3RBlJWFUBpguudNkFrkWRl/29AF6W2lfJKG9EDHE+nLGqbVX3KKe9mqIW1wjz69L6G9lzXtcqck/tslX5qeMC9U3Lt4hr9jKcnnV43vLiwt+w2eN+boC0Lpbb0nSyhp+bXI1gNorenagNYsppfvlfQ1HFjeZJt8a0FbTKDp4B5SVyrydSc5+OOn/1kYectU+qK1Bj2XreTyfcMC8sPxPHbbKiUah7mCDo/HJsgr3lXGYs811e7m+kEjQ7F+mpKHjOE/nCePLoG8TLzmLZrQk3Qehp2LvDYFaRBFhHqE78gb0h5ll/zGwDNueRtHt95ZVTO3+kJ/q715c9rQWv/vMupJyoo7x+e6eHFLacSeD7Tx4bLZ42x2WqW1ZNSTV39l7jZZgYY6rOmBJIsvCV3UhwXj33Ak/bWjsBrAT861+LRvfaWQK5tEuM6mawJ2hTsK22ColpmtJ/FhBbNOhd0a2cS/UyNMrofQ23rA5AhoG1mghyjlAcyraxhhvDyia1W8yo5zgp27bpf0Px1lTEcF0nCrOAxap9Wuz7HbH7Ufd7T7OvhlplsbdtYt7zKOeTdTp0IbbT1cZ92nqB1PeuHbPFmcPvc8e0aN/1wGdnCV4bS31ROzCul/OhkW71fZUrN1dA+oO1a21w/Xw2gnWsBq+Bhi40nAscN0Jmzpp8Fmx+Ct74EreyurPLuqUeiGvNDpcIqCN2wKUygHRa3fEqNqAuiTBii62e9Pf1wx/e+qZrQo1817ccCtJ6s9S3I5lvxKnh6Au3wTdBV0PPURvJe6NjN6t7iz3se/v6UKV2Nq77T7rIit1hcujaBdum2fPEXPIF28fdw6VYwgXbptnzxFzyBdvH3cOlWMIF26bZ88Rc8gXbx93DpVvBfLuEURHMmVwwAAAAASUVORK5CYII=\" width=\"86.5\" height=\"18.5\" style=\"width: 86.5px; height: 18.5px;\"\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 return its decimal representation \u003c/span\u003e\u003c/span\u003e\u003cspan style=\"vertical-align:-6px\"\u003e\u003cimg src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALcAAAAtCAYAAADsk/q6AAAAAXNSR0IArs4c6QAACZpJREFUeF7tnGnMLEUVhh/UuCuKCKhs/jBCZFNwV0QiihoBCYhsggoiuKAS94AbqEAUXEFEQRRconEhrP5gUwMEiIpGZElUEBcQNW5xJw85RZpOz0z1TPfcmemq5Obem6+7uurUW6fe855T31qUViywohZYa0XnVaZVLEABdwHBylqggHtll7ZMrIC7YGBlLVDAvbJLWyZWwF0wsGwWeDDwMGAL4NHAV4G/NU1iCOB+GnAh8JCeV/G1wGd6/kbpHgT3s4DPA18D3g78c6jgfijwCeAVwM+Ag4HrWqLkXsCm4TGeCDwXeGZtw3wTeDXwx5Z9l8fbW2B74BLgIOBzo14fgud27psDpwFPBT4NvG3UUdbCzg8CNPLhwAuA3wC7AVe26KM8Op0FDgGOCId1+dDB7SbeGzg5vO2bgI8D/5/Otvd4637AnsDRwBnA+4D/dtBv6aLZAg8ATgAeFafw74cObud/nwDeu4BfAgfE0dYFiNw8UpU3A68JL95Fv131sTHwBuAa4MsZnbphXwTsCtwcQHKObt7LgP9V+rg38PQ4xfz7V8C7gRcC7wTuC+wLXJ3x3ZxHNgHOAi4GjgVeDGwUvFuqcm1yLkOhJclo60fQ56KdE5zttzkWzXhGW8oBfwF8N+P5eTwiqA8LD7cOsB9w5oQPCx49o6B8XTgCX3kGcCpgbPHBBlpnTPMF4EDAb90IrBfvjOXGLQ2xUwgEaS5SzldFXOXGursNDdxO3EDQBXYRPxn8+x8tDTzqcRdz/+i3MYLv6DuTulEqE1AGwhuG1/adSeB+Z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OI6v2/WRdIXdqMoVRtlIQ26zeSqiIVMYsouOXd6vNewXpM0MMcKjTrWJbm/aGAOwWQ3v3rIrVujYf1HWbrpAsmV+SmSnNd/QqDKohSgsWA0Bvo8m+TavJfebDgNkZaCi48r90xBHCnij/lPn+33DQXKgSvSpL0QzVBRaTeRmnDXaylqfHqLXI3q5vKhI/f9SRaePWiC0O06WMI4DaAVI0w8dBnK78Is0/rTtH3EMA9hVnKK6tggQLuVVjFModGCxRwF2CsrAUKuFd2acvECrgLBlbWAgXcK7u0ZWIF3AUDK2uBAu6VXdoysTsBKDYfTEiTeiQAAAAASUVORK5CYII=\" width=\"91.5\" height=\"22.5\" style=\"width: 91.5px; height: 22.5px;\"\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 as a character array.\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgb(247, 247, 247); block-size: 240px; 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 120px; transform-origin: 403.999px 120px; margin-left: 3px; margin-top: 10px; margin-bottom: 10px; margin-right: 3px; \"\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(2, 128, 9); border-block-start-color: rgb(2, 128, 9); border-bottom-color: rgb(2, 128, 9); border-inline-end-color: rgb(2, 128, 9); border-inline-start-color: rgb(2, 128, 9); border-left-color: rgb(2, 128, 9); border-right-color: rgb(2, 128, 9); border-top-color: rgb(2, 128, 9); caret-color: rgb(2, 128, 9); color: rgb(2, 128, 9); column-rule-color: rgb(2, 128, 9); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(2, 128, 9); text-decoration: none; text-decoration-color: rgb(2, 128, 9); \"\u003e% Examples\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ev = 7\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\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); text-decoration: none; text-decoration-color: rgb(170, 4, 249); \"\u003e'7'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(2, 128, 9); border-block-start-color: rgb(2, 128, 9); border-bottom-color: rgb(2, 128, 9); border-inline-end-color: rgb(2, 128, 9); border-inline-start-color: rgb(2, 128, 9); border-left-color: rgb(2, 128, 9); border-right-color: rgb(2, 128, 9); border-top-color: rgb(2, 128, 9); caret-color: rgb(2, 128, 9); color: rgb(2, 128, 9); column-rule-color: rgb(2, 128, 9); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(2, 128, 9); text-decoration: none; text-decoration-color: rgb(2, 128, 9); \"\u003e%\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ev = [4 2]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\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); text-decoration: none; text-decoration-color: rgb(170, 4, 249); \"\u003e'42'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(2, 128, 9); border-block-start-color: rgb(2, 128, 9); border-bottom-color: rgb(2, 128, 9); border-inline-end-color: rgb(2, 128, 9); border-inline-start-color: rgb(2, 128, 9); border-left-color: rgb(2, 128, 9); border-right-color: rgb(2, 128, 9); border-top-color: rgb(2, 128, 9); caret-color: rgb(2, 128, 9); color: rgb(2, 128, 9); column-rule-color: rgb(2, 128, 9); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(2, 128, 9); text-decoration: none; text-decoration-color: rgb(2, 128, 9); \"\u003e%\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ev = [0 7]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\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); text-decoration: none; text-decoration-color: rgb(170, 4, 249); \"\u003e'7'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"border-block-end-color: rgb(2, 128, 9); border-block-start-color: rgb(2, 128, 9); border-bottom-color: rgb(2, 128, 9); border-inline-end-color: rgb(2, 128, 9); border-inline-start-color: rgb(2, 128, 9); border-left-color: rgb(2, 128, 9); border-right-color: rgb(2, 128, 9); border-top-color: rgb(2, 128, 9); caret-color: rgb(2, 128, 9); color: rgb(2, 128, 9); column-rule-color: rgb(2, 128, 9); margin-inline-end: 0px; margin-right: 0px; outline-color: rgb(2, 128, 9); text-decoration: none; text-decoration-color: rgb(2, 128, 9); \"\u003e%\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ev = [3 12]\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003cdiv style=\"background-color: rgba(0, 0, 0, 0); block-size: 20px; 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.994318px; border-inline-start-color: rgb(233, 233, 233); border-inline-start-style: solid; border-inline-start-width: 0.994318px; border-left-color: rgb(233, 233, 233); border-left-style: solid; border-left-width: 0.994318px; border-right-color: rgb(233, 233, 233); border-right-style: solid; border-right-width: 0.994318px; 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 10px; transform-origin: 403.999px 10px; 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: 0px 0px; tab-size: 4; transform-origin: 0px 0px; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\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); text-decoration: none; text-decoration-color: rgb(170, 4, 249); \"\u003e'42'\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function x = vector2dec(v)\r\n  x = ['' v + '0'];\r\nend","test_suite":"%% Example EASY 1\r\nv = 7;\r\nx_correct = '7';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% Example EASY 2\r\nv = [4 2];\r\nx_correct = '42';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% Example tricky 1\r\nv = [0 7];\r\nx_correct = '7';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% Example tricky 2\r\nv = [3 12];\r\nx_correct = '42';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% in Z test 1\r\nv = 0;\r\nx_correct = '0';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% in Z test 2\r\nv = -1;\r\nx_correct = '-1';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% in Z test 3\r\nv = [-4 -2];\r\nx_correct = '-42';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% in Z test 4\r\nv = [1 -5 -8];\r\nx_correct = '42';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% Medium number test 1\r\nv = '123456789' - '0';\r\nx_correct = '123456789';\r\nassert(isequal(vector2dec(v),x_correct))\r\n\r\n%% Medium number test 2\r\nv = randi(10, 1, 10) - 1;\r\nif v(1) == 0\r\n    v(1) = 1;\r\nend\r\nx_correct = v + '0';\r\nassert(isequal(vector2dec(v),x_correct))\r\nassert(isequal(vector2dec(-v), ['-' x_correct]))\r\n\r\n%% Big number test 1\r\nv = randi(10, 1, 10000) - 1;\r\nif v(1) == 0\r\n    v(1) = 1;\r\nend\r\nx_correct = v + '0';\r\nassert(isequal(vector2dec(v.'),x_correct))\r\n\r\n%% Big number test 2\r\nn = 10000;\r\nrng('shuffle');\r\nv_correct = randi(10, 1, n) - 1;\r\nif v_correct(1) == 0\r\n    v_correct(1) = 1;\r\nend\r\nx_correct = v_correct + '0';\r\nv = v_correct;\r\nfor ii = 1:3\r\n    dk = randperm(n - 4, fix(n/2));\r\n    dv = randi(10, 1, fix(n/2)) - 5;\r\n    dE = randi(4, 1, fix(n/2));\r\n    [~, loc] = unique(dk + dE);\r\n    dk = dk(loc);\r\n    dv = dv(loc);\r\n    dE = dE(loc);\r\n    v(dk) = v(dk) + dv;\r\n    v(dk + dE) = v(dk + dE) - dv.*(10.^dE);\r\nend\r\nrng('shuffle');\r\n\r\nassert(isequal(vector2dec(v),x_correct))\r\nassert(isequal(vector2dec(-v), ['-' x_correct]))\r\n\r\n%% Shame Test 1\r\nfileText = fileread('vector2dec.m');\r\nFORBIDDEN_ = {'eval', 'mlock', 'munlock', 'fileread'};\r\n% Filters very obvious cheating\r\nif contains(fileText, FORBIDDEN_)\r\n    for k = 1:10000\r\n        disp('SHAME')\r\n    end\r\n    assert(false);\r\nend\r\n\r\n%% Shame Test 2\r\nfileText = fileread('vector2dec.m');\r\nFORBIDDEN_ = {'!', '?@'};\r\n% Filters cheating, may trigger false positives\r\nassert(~contains(fileText, FORBIDDEN_), '! and ?@ are forbidden')","published":true,"deleted":false,"likes_count":0,"comments_count":0,"created_by":543257,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":5,"test_suite_updated_at":null,"rescore_all_solutions":false,"group_id":1,"created_at":"2021-08-10T17:20:12.000Z","updated_at":"2021-08-11T00:05:08.000Z","published_at":"2021-08-11T00:05:08.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 an integer vector \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"false\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003e\\\\underline{v} = [v_0, v_1,~...~, v_n]\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003cw:r\u003e\u003cw:t\u003e, \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"false\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003en \\\\in{} \\\\mathbb{N}, v_k   \\\\in{} \\\\mathbb{Z}\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003cw:r\u003e\u003cw:t\u003e return its decimal representation \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:customXml w:element=\\\"equation\\\"\u003e\u003cw:customXmlPr\u003e\u003cw:attr w:name=\\\"displayStyle\\\" w:val=\\\"false\\\"/\u003e\u003c/w:customXmlPr\u003e\u003cw:r\u003e\u003cw:t\u003ex=\\\\sum{}v_k10^{n-k}\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:customXml\u003e\u003cw:r\u003e\u003cw:t\u003e as a 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[% Examples\\nv = 7\\nx = '7'\\n%\\nv = [4 2]\\nx = '42'\\n%\\nv = [0 7]\\nx = '7'\\n%\\nv = [3 12]\\nx = '42']]\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":713,"title":"Find the maximum number of decimal places in a set of numbers","description":"Given a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not count as significant. No significant digits will result in an answer of 0.\r\nFor example:\r\nx = [0.01 0.888 1.0 40.151 39.1244];\r\n\r\ny = 4;\r\nThe maximum number of significant decimal places from the input is 4 (39.1244).","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: 174.3px; display: block; min-width: 0px; padding-block-start: 0px; padding-top: 0px; perspective-origin: 407px 87.15px; transform-origin: 407px 87.15px; vertical-align: baseline; \"\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: 382px 8px; transform-origin: 382px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eGiven a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not count as significant. No significant digits will result in an answer of 0.\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: 41px 8px; transform-origin: 41px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eFor example:\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: 404px 30.65px; transform-origin: 404px 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: 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: 144px 8.5px; tab-size: 4; transform-origin: 144px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ex = [0.01 0.888 1.0 40.151 39.1244];\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: 0px 8.5px; tab-size: 4; transform-origin: 0px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003e\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: 24px 8.5px; tab-size: 4; transform-origin: 24px 8.5px; unicode-bidi: normal; white-space: pre; margin-right: 45px; \"\u003e\u003cspan style=\"margin-inline-end: 0px; margin-right: 0px; \"\u003ey = 4;\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: 253px 8px; transform-origin: 253px 8px; unicode-bidi: normal; \"\u003e\u003cspan style=\"\"\u003eThe maximum number of significant decimal places from the input is 4 (39.1244).\u003c/span\u003e\u003c/span\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e","function_template":"function y = find_max_sigdec(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nfiletext = fileread('find_max_sigdec.m');\r\nillegal = contains(filetext, 'assignin') || contains(filetext, 'regexp ') || ...\r\n          contains(filetext, 'elseif'); \r\nassert(~illegal)\r\n\r\n%%\r\nx = [1.000 1.04 0.22 10.1;\r\n  2.05 2.33 4.1 1000.31;\r\n  5.00010 6.429 7.492 8.0];\r\ny_correct = 4;\r\nassert(isequal(find_max_sigdec(x),y_correct))\r\n\r\n%%\r\nN = randi(6,1);\r\nx1 = rand(1,100);\r\nfor k = 1:100\r\n  x(1,k) = round(x1(1,k)*10^N)/10^N;\r\nend\r\nassert(isequal(find_max_sigdec(x), N))\r\n\r\n%%\r\nN = randi(6,1);\r\na = rand(5,20);\r\nfor k = 1:20\r\nfor m = 1:5\r\nx(m,k) = round(a(m,k)*10^N)/10^N;\r\nend\r\nend\r\nassert(isequal(find_max_sigdec(x), N))\r\n\r\n%%\r\nx = 1;\r\nassert(isequal(find_max_sigdec(x), 0))","published":true,"deleted":false,"likes_count":82,"comments_count":21,"created_by":726,"edited_by":223089,"edited_at":"2023-01-04T18:03:44.000Z","deleted_by":null,"deleted_at":null,"solvers_count":3389,"test_suite_updated_at":"2023-01-04T18:03:44.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-05-23T22:21:12.000Z","updated_at":"2026-04-04T23:57:35.000Z","published_at":"2012-05-23T22:34:43.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\u003eGiven a vector or matrix of values, calculate the maximum number of decimal places within the input. Trailing zeros do not count as significant. No significant digits will result in an answer of 0.\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=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[x = [0.01 0.888 1.0 40.151 39.1244];\\n\\ny = 4;]]\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\u003eThe maximum number of significant decimal places from the input is 4 (39.1244).\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":918,"title":"Find the repeating decimal pattern!","description":"Write a function that takes one double input value and returns only the repeating decimal, if any, as a string.  Only decimals for which *all* digits are part of the repeating pattern will be counted.  (See the 3rd example below.)  Inputs will be in the range [0 1].\r\n\r\nIf no repeating decimal is found, the function should return an empty string.  Of course the repeating decimal may break down in the last bit due to floating point arithmetic, but we will ignore that. \r\n\r\nExamples: \r\n\r\n  T = repeatingdec(7/11)  % Returns T = '63'\r\n  T = repeatingdec(1/3)   % Returns T = '3'\r\n  T = repeatingdec(5/6)    % Returns T = ''\r\n  T = repeatingdec(0)      % Returns T = '0'","description_html":"\u003cp\u003eWrite a function that takes one double input value and returns only the repeating decimal, if any, as a string.  Only decimals for which \u003cb\u003eall\u003c/b\u003e digits are part of the repeating pattern will be counted.  (See the 3rd example below.)  Inputs will be in the range [0 1].\u003c/p\u003e\u003cp\u003eIf no repeating decimal is found, the function should return an empty string.  Of course the repeating decimal may break down in the last bit due to floating point arithmetic, but we will ignore that.\u003c/p\u003e\u003cp\u003eExamples:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003eT = repeatingdec(7/11)  % Returns T = '63'\r\nT = repeatingdec(1/3)   % Returns T = '3'\r\nT = repeatingdec(5/6)    % Returns T = ''\r\nT = repeatingdec(0)      % Returns T = '0'\r\n\u003c/pre\u003e","function_template":"function y = repeatingdec(x)\r\n  y = x;\r\nend","test_suite":"%%\r\nassert(isequal(repeatingdec(1),'0'))\r\n%%\r\nassert(isequal(repeatingdec(3/7),'428571'))\r\n%%\r\nassert(isequal(repeatingdec(.3456345612323),''))\r\n%%\r\nassert(isequal(repeatingdec(1/pi),''))\r\n%%\r\nassert(isequal(repeatingdec(1/13),'076923'))\r\n%%\r\nassert(isequal(repeatingdec(2/33),'06'))\r\n%%\r\nassert(isequal(repeatingdec(.789789789789789789),'789'))\r\n%%\r\nassert(isequal(repeatingdec(.78978978938383838),''))\r\n%%\r\nassert(isequal(repeatingdec(1/exp(1)),''))\r\n%%\r\nassert(isequal(repeatingdec(.78787878787833333),''))\r\n%%\r\nassert(isequal(repeatingdec(.123451234512345),'12345'))\r\n%%\r\nassert(isequal(repeatingdec(1/100),''))\r\n%%\r\nassert(isequal(repeatingdec(1/62),''))\r\n%%\r\nassert(isequal(repeatingdec(1/16),''))\r\n%%\r\nassert(isequal(repeatingdec(1/91),'010989'))\r\n%%\r\nassert(isequal(repeatingdec(0),'0'))","published":true,"deleted":false,"likes_count":2,"comments_count":4,"created_by":459,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":14,"test_suite_updated_at":"2012-08-22T18:56:51.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2012-08-21T17:48:42.000Z","updated_at":"2012-08-22T19:02:18.000Z","published_at":"2012-08-21T18:29:36.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 takes one double input value and returns only the repeating decimal, if any, as a string. Only decimals for which\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\u003eall\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e digits are part of the repeating pattern will be counted. (See the 3rd example below.) Inputs will be in the range [0 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\u003eIf no repeating decimal is found, the function should return an empty string. Of course the repeating decimal may break down in the last bit due to floating point arithmetic, but we will ignore that.\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:\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[T = repeatingdec(7/11)  % Returns T = '63'\\nT = repeatingdec(1/3)   % Returns T = '3'\\nT = repeatingdec(5/6)    % Returns T = ''\\nT = repeatingdec(0)      % Returns T = '0']]\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\"}]}"}],"term":"tag:\"decimal\"","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:\"decimal\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"decimal\"","","\"","decimal","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f73613fa6e8\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f73613fa648\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f73613f9c48\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f73613faa08\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f73613fa968\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f73613fa828\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f73613fa788\u003e":"tag:\"decimal\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f73613fa788\u003e":"tag:\"decimal\""},"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":"search","password":"J3bGPZzQ7asjJcCk","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:\"decimal\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"decimal\"","","\"","decimal","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f73613fa6e8\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f73613fa648\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f73613f9c48\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f73613faa08\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f73613fa968\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f73613fa828\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f73613fa788\u003e":"tag:\"decimal\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f73613fa788\u003e":"tag:\"decimal\""},"queried_facets":{}},"options":{"fields":["id","difficulty_rating"]},"join":" "},"results":[{"id":43616,"difficulty_rating":"easy"},{"id":43614,"difficulty_rating":"easy"},{"id":51183,"difficulty_rating":"easy-medium"},{"id":511,"difficulty_rating":"easy-medium"},{"id":49835,"difficulty_rating":"easy-medium"},{"id":44849,"difficulty_rating":"easy-medium"},{"id":52472,"difficulty_rating":"medium"},{"id":713,"difficulty_rating":"medium-hard"},{"id":918,"difficulty_rating":"medium-hard"}]}}