{"ScriptPreparationCode":"var count = 120000;\r\nvar list = new Array(count).fill(100);","TestCases":[{"Name":"slice","Code":"if (list.length \u003E count - 1) {\r\n list=list.slice(0, count - 1)\r\n list.push(count \u002B 1)\r\n} else {\r\n list = [...list, count \u002B 1];\r\n}\r\n\r\n","IsDeferred":false},{"Name":"splice","Code":"list = [...list, count \u002B 1]\r\n\r\nif (list.length \u003E count) {\r\n list.splice(0, list.length - count);\r\n}","IsDeferred":false},{"Name":"shift-while","Code":"list = [...list, count \u002B 1]\r\n\r\nwhile (list.length \u003E count) {\r\n list.shift();\r\n}","IsDeferred":false}]}