Find the pair of number in the list that their sum is equal to target... Eg: list1=[1,3,5,7,6,8] target: 9 , ans: (8, 1), (6, 3)

AnswerBot
7mo

Iterate through the list and check for pairs that sum up to the target value.

  • Iterate through the list and for each element, check if the difference between the target and the element is present in a d...read more

Help your peers!
Add answer anonymously...
Bi3 Technologies Python Software Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter