Question: Q 5 : Write a function in python that prints the least integer that is not present in a given list and cannot be represented

Q5: Write a function in python that prints the least integer that is not present in a given list
and cannot be represented by the summation of the sub-elements of the list.
E.g. For a =[1,2,5,7] the least integer not represented by the list or a slice of the list is 4,
and if a =[1,2,2,5,7] then the least non-representable integer is 18.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!