Conept behind out of iit

at time strap 3.43
here sir do size of arr/size of int
i didnt understand the concept behind it

You can fin the length of an int array using sizeof(array)/sizeof(int)
sizeof(array) will be the total size of array meaning total size of all the elements present in it.
size(int) can be considered as the size of one element of the array.
Clearly, by math…you you divide the first by second…you will get the number of elements.

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.

i didnot understand how he comparator function is woring even we did in lb -coins -1