“Find the Number which contains all the 10 dtigis from 0 – 9 and divisible by all the positive integers from 1 to 16.options6827340519321079864512749536809087654321″in the answer list there is only one even number,that is the answer of janardanan sir.to confuse : give full even numbers in the answer list.
This is of course a rioiuuldcs question. The right answer is your first response: the most simple and readable answer. It’s easy to write and easy to read. If it *must* be optimized then there is so much more to consider a profiler, inlining the function, etc.If this is a question in an interview, it either means the interviewer is cleverly trying to figure out if the candidate is a premature optimizer, or it means the interviewer values clever code and the candidate should consider that a con to working there.