aboutsummaryrefslogtreecommitdiff
path: root/challenge-262/eric-cheung/python/ch-1.py
blob: c0148e39ce0353cbe151d95913a629a06b4e936d (plain)
1
2
3
4
5
6
7
8
9
## arrInt = [-3, 1, 2, -1, 3, -2, 4]  ## Example 1
## arrInt = [-1, -2, -3, 1]  ## Example 2
arrInt = [1, 2]  ## Example 3

arrPos = [nElem for nElem in arrInt if nElem > 0]
arrNeg = [nElem for nElem in arrInt if nElem < 0]

print (max(len(arrPos), len(arrNeg)))