A node in recursion tree can split into x children if the node has value x. Assuming x is largest value, we can assume that each element in array has x value.
So each node in recursion tree has x children and depth of tree is n.
Hence O(x^n)
Type your question above this line.
Course: https://www.educative.io/collection/5668639101419520/5633779737559040
Lesson: https://www.educative.io/collection/page/5668639101419520/5633779737559040/5685057352105984
emphasized text