Category
The number to calculate the triangular number for
The nth triangular number for the provided value
Math
Category
Calculate the nth triangular number for a provided bigint
.
Time complexity: O(1)
Space complexity: O(1)
The number to calculate the triangular number for
The nth triangular number for the provided value
Math
Calculate the nth triangular number for a provided
number
.Time complexity: O(1)
Space complexity: O(1)