News

History History executable file · 25 lines (21 loc) · 852 Bytes main cpp-dsa-essentials / ...
So, effectively you are iterating array 2 times in worst case. So, time = O (2*n) */ } } return l; } }; //Approach-2 (Using map data strcture and two pointer technique) //Time : O (n) /* Instead of ...
They are not the same, and hence you have a type mismatch.<BR><BR>You probably have heard that pointers and arrays are equivalent, which is an oversimplification.