Question: Q 5 : Given a list arr which contains only positive integers. Can you divide the list into 2 sub lists so that sum of
Q: Given a list arr which contains only positive integers. Can you divide the list into sub lists so that sum of
each sub list is same? The returned value from your code should be either "True" ie Yes as you can divide it or
"False" ie No as you can't divide it
For example, if arr is you should return True as you can divide arr into sub lists and
For example, if arr is you should return False.
Hint: You may need the following codes: import numpy as np Totl npsumarr where the function npsum
calculates the sum of all the elements in arr. Please use python code to solve this question
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
