Tibra interview question

Number pyramid (similar to binary tree) find largest sum - use triangular numbers

Interview Answer

Anonymous

2 Sept 2024

Triangular number to index, then loop bottom-up saving the max sum of each subtree