Samarth Sadgurudev Shri Ramlal Ji Siyag

His Spiritual Mission for Divine Transformation of Humanity

Sum of four elements equals X2 (View By 541 People)


Given an array of integers, find all combination of four elements in the array whose sum is equal to a given value X. For example, if the given array is {10, 2, 3, 4, 5, 9, 7, 8} and X = 23, then your function should print �3 5 7 8? (3 + 5 + 7 + 8 = 23). Note: Numbers should not be overlapping. eg(3,5,7,4) will generate 3+5=8 and 5+7=12 , for sum equals 20, 5 is overlapping.

Jai Gurudev


Posted On : 10-Jun-2015 By chitraksh      Replies (2)
News & Events

AVSK has organized a Mega Event in Delhi

AVSK has organized a mega event at ramleela maidan , in which thousands of disciples of sadgurudev shri ramlal ji siyag was gathered, and celebrated world yoga day.

 

Jai Kalki

test news

test new text desc

ertdrg srofosd fojsofj osjd

chitraksh marriage on 04-02-2015 with nidhi gupta





Telecasts