Could you please expalin that if freq >= 2 , the cal nc2 …
Divisilble subarray
If have the two elements which is same then we are going to calculate the nc2 ?
@Vikaspal the index of the frequency array corresponds to which element’s is being referred to. So index = 3 represents frequency of 3.
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.