Finish 2011-04-20 12:00:00 UTC

one word

by Michael Bindschadler

Status: Passed
Results: 11128679 (cyc: 1, node: 39)
CPU Time: 0.012
Score: 27821.7
Submitted at: 2011-04-13 16:34:22 UTC
Scored at: 2011-04-13 16:36:54 UTC

Current Rank: 1765th (Highest: 1st )

Comments
Please login or create a profile.
Code
function board = solver(words, weights, n, penalty)

% Sample solver

% Copyright 2011 The MathWorks, Inc.

board = zeros(n);

[dum,ind] = max(weights);

best_word = words{ind};

board(1:length(best_word)) = best_word;

end