How clean your code should be in a coding interview?

Often I see in the dscuss section that people post their solutions which do not follow clean coding practices. Now someone told me that coding interviews are not like competitive programming & you are supposed to make the code somewhat readable.

But what I don't get is, if I try to follow all clean coding practices (smart, srp etc) then I would simply run out of time and again it's not advisable to write code that no one understands, so how am I suppsed to do it?

Would appreciate some help.

Comments (1)