I have a list of list, in different length, and my algorithm runs on every element in the sub lists.
What should be my time complexity?
I don't know if it's okay to write O(n * m), as n length of parent list and m is the average length of t E sub lists, or maybe O(n) as n is the number of total elements.
Please explain what the meaning of the symbols (for example n is the length of the parent list).