Closed ghost closed 5 years ago
Generally we traverse the array when we have to find the sum at two different indexes in an array this increases the time complexity but in this example we have reduced the complexity by using hashmap.
Generally we traverse the array when we have to find the sum at two different indexes in an array this increases the time complexity but in this example we have reduced the complexity by using hashmap.