This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Coding game challenge | |
// https://ide.codingame.com/21913565?id=6961426c38c52b3832ea4526f1e3554103a33c0 | |
function solve(clawPos, boxes, boxInClaw) { | |
// Write your code here | |
// To debug: console.error('Debug messages...'); | |
// #1 Get all available boxes | |
let sumOfBoxes = 0; | |
let numOfStacks = boxes.length; |