Reference Solution in 'Create Problem'

58 visualizaciones (últimos 30 días)
Luisa
Luisa el 29 de Nov. de 2025 a las 15:08
Respondida: Dyuman Joshi el 3 de Dic. de 2025 a las 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.

Respuesta aceptada

Dyuman Joshi
Dyuman Joshi el 3 de Dic. de 2025 a las 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.

Más respuestas (0)

Categorías

Más información sobre Testing Frameworks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by