{"ScriptPreparationCode":"var str = \u0022\u0022;\r\nvar i;\r\nvar sArr = [];\r\n\r\nfunction encodePush(str) {\r\n if (!str || !str.length) {\r\n return \u0027\u0027;\r\n }\r\n\r\n var strLength = str.length;\r\n var result = [];\r\n var i = 0;\r\n\r\n while (i \u003C strLength) {\r\n var charInfo = charIndex[str.charCodeAt(i)];\r\n if (charInfo) {\r\n var alpha = charInfo[str.charCodeAt(i \u002B 1)];\r\n if (alpha) {\r\n i\u002B\u002B;\r\n }\r\n else {\r\n alpha = charInfo[\u0027\u0027];\r\n }\r\n if (alpha) {\r\n result.push(\u0022\u0026\u0022\u002Balpha\u002B\u0022;\u0022);\r\n i\u002B\u002B;\r\n continue;\r\n }\r\n }\r\n result.push(str.charAt(i));\r\n i\u002B\u002B;\r\n }\r\n\r\n return result.join(\u0027\u0027);\r\n}\r\n\r\nfunction encodePlus(str) {\r\n if (!str || !str.length) {\r\n return \u0027\u0027;\r\n }\r\n\r\n var strLength = str.length;\r\n var result = \u0027\u0027;\r\n var i = 0;\r\n\r\n while (i \u003C strLength) {\r\n var charInfo = charIndex[str.charCodeAt(i)];\r\n if (charInfo) {\r\n var alpha = charInfo[str.charCodeAt(i \u002B 1)];\r\n if (alpha) {\r\n i\u002B\u002B;\r\n }\r\n else {\r\n alpha = charInfo[\u0027\u0027];\r\n }\r\n if (alpha) {\r\n result \u002B= \u0022\u0026\u0022\u002Balpha\u002B\u0022;\u0022;\r\n i\u002B\u002B;\r\n continue;\r\n }\r\n }\r\n result \u002B= str.charAt(i);\r\n i\u002B\u002B;\r\n }\r\n\r\n return result;\r\n}","TestCases":[{"Name":"String concatentation","Code":"str = encodePlus(\u0027ga8f6c54agdsuhgdasuyidgaiuhdga\u003C\u003E dasdas \u0026ga8f6c54agdsuhgdasuyidgaiuhdga\u003C\u003E dasdas \u0026ga8f6c54agdsuhgdasuyidgaiuhdga\u003C\u003E dasdas \u0026ga8f6c54agdsuhgdasuyidgaiuhdga\u003C\u003E dasdas \u0026ga8f6c54agdsuhgdasuyidgaiuhdga\u003C\u003E dasdas \u0026ga8f6c54agdsuhgdasuyidgaiuhdga\u003C\u003E dasdas \u0026\u0027 \u002B Date.now())","IsDeferred":false},{"Name":"Array join (w/ push)","Code":"str = encodePush(\u0027ga8f6c54agdsuhgdasuyidgaiuhdga\u003C\u003E dasdas \u0026ga8f6c54agdsuhgdasuyidgaiuhdga\u003C\u003E dasdas \u0026ga8f6c54agdsuhgdasuyidgaiuhdga\u003C\u003E dasdas \u0026ga8f6c54agdsuhgdasuyidgaiuhdga\u003C\u003E dasdas \u0026ga8f6c54agdsuhgdasuyidgaiuhdga\u003C\u003E dasdas \u0026ga8f6c54agdsuhgdasuyidgaiuhdga\u003C\u003E dasdas \u0026\u0027 \u002B Date.now())","IsDeferred":false}]}