Reference Solution in 'Create Problem'

52 views (last 30 days)
Luisa
Luisa on 29 Nov 2025 at 15:08
Answered: Dyuman Joshi on 3 Dec 2025 at 15:00
In 'Create Problem' page, there is the section 'Reference Solution', which refers to 'Optionally enter a solution to check against the tests in your test suite'.
Is it visible somewhere for everyone?
I have assumed that it is hiden because I do not see it anywhere. So I have used it just to check the tests, and have written the code without any care.
If it is visible, is it possible to hide it or should I update the problem for cleaning it?
Thank you in advance.

Accepted Answer

Dyuman Joshi
Dyuman Joshi on 3 Dec 2025 at 15:00
"Is it visible somewhere for everyone?"
No, the reference solution is hidden for everyone who is trying/attempting to solve the problem.
However, moderators and admins (and ofcourse the problem creators) can see the reference solutions while editing the problem as they have editing rights to questions.
"So I have used it just to check the tests, and have written the code without any care."
You need not worry about that.

More Answers (0)

Categories

Find more on Testing Frameworks in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!