Or login with:
| std::vector<int>catalan_triangle_row( | int | n | |
| bool | first = true | ) |
#include <codecogs/maths/combinatorics/sequences/catalan_triangle_row.h> #include <iostream> int main() { std::vector<int> row = Maths::Combinatorics::Sequences::catalan_triangle_row(6); std::cout << "Length of row: " << row.size() << std::endl; for (int i = 0; i < row.size(); i++) std::cout << row[i] << " "; std::cout << std::endl; return 0; }
Length of row: 7 1 6 20 48 90 132 132
| first | Default value = true |
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
You must login to leave a messge