My fawed and potentially very slow to solution to 'Trapping Rain Water' passed!!!!


  • 0
    Q

    The validation needs another test. Values are continiously decreasing except a small spike close to end:

    int size = 50000;
    int[] list = new int[size];
    for (int i = 0; i<size;i++) {
    	list[size-i-1] = i;
    }
    list[size-1]=100;

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.