Tagged: 

  • Sum of Array

     Akash  updated 9 months, 3 weeks ago 1 Member · 1 Post
  • Akash 

    Administrator
    at

    Given an unsorted array of integers, find a pair with given sum in it.

    For example,

    Input:

    arr = [8, 7, 2, 5, 3, 1]

    sum = 10

    Output:

    Pair found at index 0 and 2 (8 + 2)

    or

    Pair found at index 1 and 4 (7 + 3)

Log in to reply.

Original Post
0 of 0 posts June 2018
Now
KodNest Training New Batch is starting on 21st September 2020. Attend one week free demo classes.Register Now

New Report

Close