Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
##Explanation:
à æ_x ¥V
à // Unique permutations of the first input (array)
æ // Return the first item where:
_x // The sum
¥V // equals the second input
Outputs undefined if no solution is available.Try it online!
##Explanation:
à æ_x ¥V
à // Unique permutations of the first input (array)
æ // Return the first item where:
_x // The sum
¥V // equals the second input
##Explanation:
à æ_x ¥V
à // Unique permutations of the first input (array)
æ // Return the first item where:
_x // The sum
¥V // equals the second input
##Explanation:
à æ_x ¥V
à // Unique permutations of the first input (array)
æ // Return the first item where:
_x // The sum
¥V // equals the second input
##Explanation:
à æ_x ¥V
à // Unique permutations of the first input (array)
æ // Return the first item where:
_x // The sum
¥V // equals the second input