Deepak and his journey


My ans is coming right for multiple test case in ide but not in course Question’s ide. Its showing correct ans for 1st test case but rest shows 0.

Hello @coolio.boy385

The variable “ans” should be of the type “long long int”
Also when multiplying mini*(lit[i]) typecast any one to (long long int)

Here is the modified code