Please check code for Sum it up problem

hello @sahilkhan2312000131

a) dont convert subset to int as it will exceed the range of all primitive data type so use vector only.
b) use set of vector in place of set of string .

I made the changes that you suggested and got the right answer. I have some doubts:

  1. When I make a set of vector, on what criteria does the set sorts the vectors?
    2)What did you mean by dont convert subset to int as it will exceed the range of all primitive data type so use vector only.

first element , if it is same then 2nd element so on…

consider this subset
[100 ,100 ,100…] 15 times.

now when u will convert this in int it will be
(100)^15 -> 10^30 , we dont have any datatype that can store this.

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.