7th and 8th Question of Set STL quiz
Ques 7
Ques 8
Screenshot: https://i.ibb.co/RHG5KvC/image.png
Yeah the answer will be 12 , 9 because we have used a custom comparator for sorting the set elements. Here we compare 9%10 and 12%10. So as 2 Is less than 9 therefore 12 will be placed first and 9 later.
@amankumarkeshu
and what about the maximum possible size of array?
Also, I have shared the link to the question 8 there itself. Please explain that too.
Thanks
@anandaman in q8 all other options do not allow the values to be modified which is not possible in a private class. Only wrong option allows the values to be modified
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.