• + 0 comments

    Interesting solution.

    For anyone finding it a bit dificult to understand

    # This is the current HourGlass
    cur =   arr[i-1][j-1] + arr[i-1][j] + arr[i-1][j+1] 
    cur +=        0          +  arr[i][j]   +       0 
    cur +=  arr[i+1][j-1] + arr[i+1][j] + arr[i+1][j+1]