Help Ramu - something missing

What’s missing here?

How to import function “min”!!?

hello @omkarvp99

u r not reading any input

u dont have to explicitly import it , it is predefined in c++

1 Like

Oh I missed that part.

Should I use array to store multi input.(for 3 & 4th input line mention in problem description)?

…

yeah u can use array if u want,
solution is possible without array as well

1 Like

What other technique/ style to take multi-input?

…

It depend on question, if we need data for later use in our algorithm then it is required to use array otherwise not
for example , if i say u are given n numbers , tell me their sum then clearly there is no need to store all n numbers, u can read n numbers one by one and add its value to ur sum variable.
so for such type of problem u can avoid array if u want.

on the other hand if i say , find two numbers from n numbers such that their their sum is X. then for such case u need to store all N data
and therefore without array u cant do it.

1 Like

@aman212yadav,

Now whats missing here…!!

check now->

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.