Amazon new grad role 2022
Anonymous User
5799

I was not able to get O(n) solution for it. please help me with approach to solution

image
Example:-
array- [2,3,2,1]
image

constraints:-
1<=n<= 8*10^5
1<= power[i]<= 10^5

Comments (14)