How is the answer option C?

I executed the program after the quiz in the IDE and it gave me a very long value with max_size() function which seemed to be the available space in memory and not equal to 10^1. Please clear my doubt.

@rahul.maheshmaheshwari
since we are using the operation (x % 10) < (y % 10)
and set can only take non duplicate values
anything mod 10 would give answer b/w 0-9 so permissible answers would give a get of max 10

ok i got it. Thanks a lot.

1 Like

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.