MATLAB Answers

Strange "correct" solution to Cody Problem 58. Tic Tac Toe FTW

1 view (last 30 days)
Shlomo Geva
Shlomo Geva on 20 Nov 2020
Answered: Dyuman Joshi on 26 May 2021
I see this solution on the Cody solutions list. Solution 1949216
I am puzzled as to how this could possibly be rated as correct (size 48)
(BTW - I am pretty sure I saw this, or similar, before.)
function ans = fileread(varargin)
' ';
b=3; end
  1 Comment
Shlomo Geva
Shlomo Geva on 20 Nov 2020
And how does this solution, size 8, appear as a correct solution on Cody?
function ans = fileread(varargin)

Sign in to comment.

Accepted Answer

Dyuman Joshi
Dyuman Joshi on 26 May 2021
There are some users who do not attempt to solve a problem, but have instead have found a hack the solver to create a so called "best" solution. Ignore these.
Cody admins and mods are trying to make sure that such cheats are no longer allowed and the ones that are already been implemented are no longer valid. You can check and see the solution you mentioned in your question and see that it is no longer an accepted or a valid answer.
See related posts -
A very common hack, which is now not usable
Using regexp
A general discussion (includes comments from Cody and MATLAB Central advisors)

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by