India’s Best Job Seekers and Training Platform Forums Java Problems set Given an array of n elements return true…

  • Given an array of n elements return true…

  • Akash 

    Administrator
    at

    Given an array of n elements return true if 3 of the sum of 3 elements is equal to a constant c

    Example array a[6,2,3,4] constant c = 9

    if a[1] + [2] + [3] == c return true

    The size of the array is n

    If any set of 3 elements is equal to the constant c, then return false

Log in to reply.

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

New Report

Close