I am trying to use DeleteCase
function but I don't know how to implement it in the way I need.
I have a list of sublists of numbers, for example:
{{1,1,1,1},{1,1,1,2},{4,2,5,1},{5,3,2,4}}
and I want to do is to delete all the sublists that contains an element greater than $4$.
The result would be like this:
{{1,1,1,1},{1,1,1,2}}
I am also avoiding loops or recursion.
Condition
andMax
. $\endgroup$