Multiplication Tables
Last updated
Was this helpful?
Last updated
Was this helpful?
Create an empty array of input *row size and iterate(which means it will iterate *row times)
Create an empty array of the input *column size and iterate(which means it will iterate *column times)
while iterate return
(process-1 index (row index) + 1) * (process-1-1 index (column index) + 1) (the reason why +1 because index start from 0)
return process-1
Time complexcity = O(n^2)