Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript loop

int j = 0;
        for(int i = 0; i < n; ++i) {
            while(j < n && arr[i] < arr[j]) {
                j++;
            }
        }
Source by www.interviewbit.com #
 
PREVIOUS NEXT
Tagged: #javascript #loop
ADD COMMENT
Topic
Name
7+8 =