{"ScriptPreparationCode":null,"TestCases":[{"Name":"Push/Pop","Code":"const n = 10000;\r\nconst stack = [];\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n stack.push(i);\r\n}\r\nwhile (stack.length \u003E 0) {\r\n let x = stack.pop();\r\n}","IsDeferred":false},{"Name":"ES6 Spread","Code":"const n = 10000;\r\nlet stack = [];\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n stack = [...stack, i];\r\n}\r\nlet x;\r\nwhile (stack.length \u003E 0) {\r\n [x, ...stack] = stack;\r\n}","IsDeferred":false},{"Name":"Shift/Unshift","Code":"const n = 10000;\r\nconst queue = [];\r\nfor (let i = 0; i \u003C n; i\u002B\u002B) {\r\n queue.unshift(i);\r\n}\r\nwhile (queue.length \u003E 0) {\r\n let x = queue.shift();\r\n}","IsDeferred":false}]}