problemscpp
A collection of my answers to algorithm problems in c++.
| 函数
leetcode::projection_area_of_3d_shapes 命名空间参考

  1. Projection Area of 3D Shapes
更多...

class  Solution
 

函数

 TEST (projection_area_of_3d_shapes, case1)
 
 TEST (projection_area_of_3d_shapes, case2)
 
 TEST (projection_area_of_3d_shapes, case3)
 

详细描述

  1. Projection Area of 3D Shapes

函数说明

◆ TEST() [1/3]

leetcode::projection_area_of_3d_shapes::TEST ( projection_area_of_3d_shapes  ,
case1   
)

在文件 leetcode_test.cpp2844 行定义.

2844 {
2845 vector<vector<int>> grid = {{1, 2}, {3, 4}};
2846 ASSERT_EQ(17, Solution::projectionArea(grid));
2847 }

引用了 leetcode::projection_area_of_3d_shapes::Solution::projectionArea().

◆ TEST() [2/3]

leetcode::projection_area_of_3d_shapes::TEST ( projection_area_of_3d_shapes  ,
case2   
)

在文件 leetcode_test.cpp2849 行定义.

2849 {
2850 vector<vector<int>> grid = {{2}};
2851 ASSERT_EQ(5, Solution::projectionArea(grid));
2852 }

引用了 leetcode::projection_area_of_3d_shapes::Solution::projectionArea().

◆ TEST() [3/3]

leetcode::projection_area_of_3d_shapes::TEST ( projection_area_of_3d_shapes  ,
case3   
)

在文件 leetcode_test.cpp2854 行定义.

2854 {
2855 vector<vector<int>> grid = {{1, 0}, {0, 2}};
2856 ASSERT_EQ(8, Solution::projectionArea(grid));
2857 }

引用了 leetcode::projection_area_of_3d_shapes::Solution::projectionArea().