Can anybody clarify the input format?


  • 0
    L

    Hi,

    I am confused with the input format for this problem. The description suggests that the input is provided as triplets; however, the actual function signature takes as an input the 2D array. Are the roofs defined? For instance for the example input for the first three buildings (blue, red, green) in Figure A: [2,10], [9,10], [3, 15], [7, 15], [5, 12], [12, 12]?

    Thanks


  • 0
    L

    Ok, I think I got it.

    So this is the vector of triplets, i.e., vector of size 3. So vector<vector<int>> contains as in the description { {2, 9, 10}, {3, 7, 15}, {5, 12, 12}}. Ok, probably too much coding for today. Anyway.


Log in to reply
 

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