BVP-ISTE / HacktoberFest2021

This repository accepts PR's made as a part of the ongoing HacktoberFest 2021
https://www.bvp-iste.tech/
3 stars 2 forks source link

Updated_pair_sum #383

Closed prajna-spec closed 2 years ago

prajna-spec commented 2 years ago

The time complexity is much lesser now. It is O(n). This is a very optimised approach

The function returns the count of the number of pairs where their sum is equal to the given target C++/Tasks/pair_sum_in_array.cpp #382 this is the issue number