{"ScriptPreparationCode":"var nums = [\r\n [123, 64, 27],\r\n [1, 64, 48],\r\n [15, 4, 49],\r\n [51, 64, 48],\r\n [112, 23, 12],\r\n [38, 27]\r\n]","TestCases":[{"Name":"lodash","Code":"_(nums).flatten().groupBy(x=\u003Ex).sortBy(x=\u003Ex.length).map(_.head).reverse().value()","IsDeferred":false},{"Name":"raw","Code":"var ids = {};\r\nnums.map((stems) =\u003E\r\n stems.forEach((statementId) =\u003E {\r\n typeof ids[statementId] === \u0022undefined\u0022\r\n ? (ids[statementId] = 1)\r\n : ids[statementId]\u002B\u002B;\r\n })\r\n )\r\n\r\nObject.entries(ids)\r\n .sort((a, b) =\u003E a[1] \u002B b[1])\r\n .map(x =\u003E x[0])\r\n ","IsDeferred":false}]}