Week 1 - C
Problem Set 1
Divide and Conquer
Procedure Main
Prompt the user for the pyramid's height
For each row from 1 to height
Call PrintRow for the current row
End For
End Procedure
Procedure PrintRow(rowNumber, height)
Print (height - rowNumber) spaces
Print (rowNumber + 1) bricks
End ProcedureUseful Snippets
Take-aways
Useful Snippets
Take-aways:
Before the problem
Things to notice in the problem statement
Divide and Conquer
Useful snippets
Take-aways
Before the problem
Things to notice in the problem statement
Divide and Conquer
Useful Snippets
Take-aways
Last updated