Given a list L(unsorted)find all the sublist items of which add to given number S | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Given a list L(unsorted)find all the sublist items of which add to given number S

For example L=[1,2,3,4] S=6, output should be like [1,2,3][2,4]

29th Feb 2020, 5:15 AM
Abhidarsh Arun
Abhidarsh Arun - avatar
0 Answers