Professional Documents
Culture Documents
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CharlieTheDog
{
class Program
{
}
loc.x = 0;
loc.y = 0;
return loc;
}
}
return count;
}
visited[currentLoc.x,currentLoc.y] = 1;
if (grid[currentLoc.x][currentLoc.y] == 'F')
{
remainingFood -= 1;
}
currentSteps += 1;
visited[currentLoc.x,currentLoc.y] = 0; // revert
return currentCost;
}
SearchingChallenge(arr);
}
}
}