Skip to main content
deleted 4 characters in body
Source Link
Emigna
  • 53.2k
  • 5
  • 44
  • 164

05AB1E, 6 bytes

Œ2ùOIåæ2ùOIå 

Try it online!Try it online!

Explanation

Œæ # get all sublistspowerset of first input 2ù # keep only those of size 2 O # sum each Iå # check if 2nd input is in the list of sums 

05AB1E, 6 bytes

Œ2ùOIå 

Try it online!

Explanation

Œ # get all sublists of first input 2ù # keep only those of size 2 O # sum each Iå # check if 2nd input is in the list of sums 

05AB1E, 6 bytes

æ2ùOIå 

Try it online!

Explanation

æ # get powerset of first input 2ù # keep only those of size 2 O # sum each Iå # check if 2nd input is in the list of sums 
Source Link
Emigna
  • 53.2k
  • 5
  • 44
  • 164

05AB1E, 6 bytes

Œ2ùOIå 

Try it online!

Explanation

Œ # get all sublists of first input 2ù # keep only those of size 2 O # sum each Iå # check if 2nd input is in the list of sums