I implemented an algorithm which takes a matrix of R rows and C columns as input.
I say that the worst case time complexity of the algorithm is
O(C√C * R^3) or O(C^1.5 * R^3)
Now someone asks me that can't it be denoted as simply O(R^3) for worst case.
I would say that since there are 2 inputs(not one) and sometimes C can be large and sometimes R can be large, so we cannot reduce it to simply O(R^3) and both C and R should be taken into account.
Is my answer correct? If not, why?