TwoSum
1 post1 contributor
+ FollowBe the first to follow this
Write about itArticles about TwoSum

TwoSum Example in C#: Print and Count Pairs with Given Sum
Given an array of integers and target number ‘target sum' then print all pairs and their count in the array whose sum is equal to ‘target sum’. Examples : Input : arr[] = {3, 5, 7, 1, 5, 9}, target = 10 Output : (3,7) (5,5) (1, 9) Count: 3
