Example #1
0
int main()
{
    Ball def;
    def.print();

    Ball blue("blue");
    blue.print();

    Ball twenty(20.0);
    twenty.print();

    Ball blueTwenty("blue", 20.0);
    blueTwenty.print();

    return 0;
}
    void RunTests()
    {
        TreeNode root(3);
        TreeNode nine(9);
        TreeNode twenty(20);
        TreeNode fifteen(15);
        TreeNode seven(7);

        root.left = &nine;
        root.right = &twenty;
        twenty.left = &fifteen;
        twenty.right = &seven;

        Solution s;
        vector<vector<int>> output = s.levelOrder(&root);

        Solution s2;
        vector<vector<int>> output2 = s2.levelOrder(nullptr);
    }