Day 2 - Next Greater Element I
Hola,
The basic naive approach is solving this problem in O(n^2) time complexity, where for every element in array 1 we iterate through every element in array 2 and as soon as we find match then we look for greater element to it's right in array 2 if...
shivaprasadgurram.hashnode.dev1 min read