Hello, Mohammad Abir Hassan Sarker. Are you perhaps still developing this Problem? There is one vital improvement that you will need to make, which is to ensure that you include several (at least four) tests within your Test Suite, each for a different set of inputs. One assertion is not sufficiently rigorous, as demonstrated in Solution 1489700. You can find some more thoughts on these matters at Problem 44521. Regards, DIV.
agree with D.V.
Thanks, yeah, it's just like you said, I was developing the problem, but things came up & couldn't make it better, sorry for that.
3892 Solvers
2240 Solvers
1882 Solvers
Convert a vector into a number
503 Solvers
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!