get all indexes of value nil in array

I have an array of N elements and this array contains either 0, 1 or nil. I want to get all indexes at which nil is present or sort the array so that all nil comes first. I am looking for an efficient way because the array size can be very large. H...
more »

2017-09-16 06:09 (1) Answers