### Task
 King Arthur and his knights are having a New Years party. Last year Lancelot was jealous of Arthur, because Arthur had a date and Lancelot did not, and they started a duel.

 To prevent this from happening again, Arthur wants to make sure that there are at least as many women as men at this year's party. He gave you a list of integers of all the party goers. 
 
 Arthur needs you to return true if he needs to invite more women or false if he is all set.

### Input/Output


 - `[input]` integer array `L` (`$a` in PHP)

  An array (guaranteed non-associative in PHP) representing the genders of the attendees, where `-1` represents `women` and `1` represents `men`.
  
  `2 <= L.length <= 50`
  

- `[output]` a boolean value

  `true` if Arthur need to invite more women, `false` otherwise.

Difficulty: EASY
Starter code: def invite_more_women(arr):
	

Solutions:
def invite_more_women(arr):
	return sum(arr) > 0


def invite_more_women(arr):
	return arr.count(1) > arr.count(-1)


def invite_more_women(arr):
	x = arr.count(-1)
	y = arr.count(1)
	if x >= y:
		return 0
	else:
		return 1


def invite_more_women(arr):
	a = sum(arr)
	if a <= 0:
		return False
	else:
		return True


def invite_more_women(arr):
	x = arr.count(-1)
	y = arr.count(1)
	return x < y


invite_more_women = lambda a: sum(a) > 0


def invite_more_women(arr):
	freq = {}
	for item in arr:
		if item in freq:
			freq[item] += 1
		else:
			freq[item] = 1
	print(freq)
	if 1 not in freq:
		return False
	if -1 not in freq:
		return True
	if freq[1] == freq[-1]:
		return False
	if freq[1] > freq[-1]:
		return True
	else:
		return False


from typing import List

def invite_more_women(a: List[int]) -> bool:
	return sum(a) > 0


def invite_more_women(arr):
	(a, b) = (0, 0)
	for i in arr:
		if i == 1:
			a = a + 1
		if i == -1:
			b = b + 1
	if a == b or a < b:
		c = False
	else:
		c = True
	return c


invite_more_women = lambda arr: sum(arr) > 0


invite_more_women = lambda x: sum(x) > 0


def invite_more_women(arr):
	countW = 0
	countM = 0
	for i in arr:
		if i == -1:
			countW += 1
		else:
			countM += 1
	return countW < countM


def invite_more_women(arr):
	count_women = 0
	count_men = 0
	for element in arr:
		if element == 1:
			count_men += 1
		else:
			count_women += 1
	if count_women < count_men:
		return True
	else:
		return False


def invite_more_women(arr):
	men = 0
	women = 0
	for x in arr:
		if x == 1:
			men = men + 1
		else:
			women = women + 1
	if men > women:
		return True
	else:
		return False


from collections import Counter

def invite_more_women(arr):
	c = Counter(arr)
	return c[1] > c[-1]


def invite_more_women(A):
	return sum(A) > 0


def invite_more_women(arr):
	if arr == []:
		return False
	m = 0
	w = 0
	for el in arr:
		if el == 1:
			m += 1
		elif el == -1:
			w += 1
	if w < m:
		return True
	elif w >= m:
		return False


from typing import List

def invite_more_women(arr: List[int]) -> bool:
	return sum(arr) > 0


def invite_more_women(arr):
	if arr == []:
		return False
	else:
		count1 = 0
		count2 = 0
		for eachnumber in arr:
			if eachnumber == 1:
				count1 = count1 + 1
			elif eachnumber == -1:
				count2 = count2 + abs(eachnumber)
		if count2 > count1 or count2 == count1:
			return False
		else:
			return True


def invite_more_women(arr):
	l = len(arr)
	sl = ''.join((x for x in str(arr)))
	l_1 = sl.count('-1')
	if l_1 < l - l_1:
		return True
	else:
		return False


def invite_more_women(arr):
	count_men = 0
	for k in arr:
		if k == 1:
			count_men += 1
	if count_men > len(arr) // 2:
		return True
	else:
		return False


def invite_more_women(arr):
	nm = len([x for x in arr if x == 1])
	nw = len([x for x in arr if x == -1])
	if nw < nm:
		return True
	else:
		return False


def invite_more_women(arr):
	men = arr.count(1)
	women = arr.count(-1)
	if men <= women:
		return False
	return True


def invite_more_women(arr):
	w = 0
	m = 0
	for i in arr:
		if i == 1:
			m = m + 1
		else:
			w = w + 1
	if w < m:
		return True
	else:
		return False


invite_more_women = lambda lst: sum(lst) > 0


def invite_more_women(arr):
	a = []
	b = []
	for i in arr:
		if i < 0:
			b.append(i)
		else:
			a.append(i)
	if len(b) < len(a):
		return True
	else:
		return False


def invite_more_women(arr):
	men = 0
	women = 0
	for elem in arr:
		if elem == -1:
			women += 1
		elif elem == 1:
			men += 1
	return men > women


def invite_more_women(arr):
	i = []
	n = []
	for number in arr:
		if number < 0:
			n.append(number)
		else:
			i.append(number)
	if len(i) > len(n):
		return True
	else:
		return False


def invite_more_women(arr):
	x = arr.count(-1)
	n = arr.count(1)
	if x < n:
		return True
	return False


def invite_more_women(arr):
	return sum(arr) > 0 if arr else False


import functools

def invite_more_women(arr):
	if len(arr) > 0:
		return True if functools.reduce(lambda a, b: a + b, arr) > 0 else False
	else:
		return False


def invite_more_women(arr):
	count_women = 0
	count_men = 0
	for x in arr:
		if x == -1:
			count_women += 1
		elif x == 1:
			count_men += 1
	if count_men > count_women:
		return True
	else:
		return False


def invite_more_women(arr):
	pass
	return 1 if sum(arr) > 0 else False


def invite_more_women(arr):
	w = arr.count(1)
	m = arr.count(-1)
	if w > m:
		return True
	else:
		return False


def invite_more_women(arr):
	return False if not arr or sum(arr) <= 0 else True


def invite_more_women(arr):
	return len([x for x in arr if x == 1]) > len([x for x in arr if x == -1])


def invite_more_women(arr):
	return abs(sum(filter(lambda x: x < 0, arr))) < sum(filter(lambda x: x > 0, arr))


def invite_more_women(arr):
	w = arr.count(-1)
	m = arr.count(1)
	return w < m


def invite_more_women(arr):
	countMen = 0
	countWomen = 0
	for i in arr:
		if i == 1:
			countMen = countMen + 1
		elif i == -1:
			countWomen = countWomen + 1
	if countWomen < countMen:
		return True
	elif countWomen >= countMen:
		return False


def invite_more_women(arr):
	if len(arr) > 2 and len(arr) < 50:
		invitors = str(arr)
		a = invitors.count('1')
		n = invitors.count('-1')
		if a > n:
			return True
		else:
			return False
	else:
		return False


def invite_more_women(arr):
	balance = sum(arr)
	if balance > 0:
		return True
	else:
		return False


from collections import Counter

def invite_more_women(arr):
	if arr == []:
		return False
	else:
		r = Counter(arr)
		if r[-1] >= r[1]:
			return False
		else:
			return True


def invite_more_women(arr):
	x = sum((i for i in arr))
	if 2 <= len(arr) <= 50:
		if x > 0:
			return True
		else:
			return False
	else:
		return False


import numpy as np

def invite_more_women(arr):
	return np.sum(arr) > 0


def invite_more_women(arr):
	cw = 0
	cm = 0
	for i in range(0, len(arr)):
		if arr[i] > 0:
			cw = cw + 1
		else:
			cm = cm + 1
	if cm < cw:
		return True
	else:
		return False


def invite_more_women(arr):
	if arr.count(int('-1')) < arr.count(int('1')):
		return True
	else:
		return False


def invite_more_women(arr):
	all_women = all((i == -1 for i in arr))
	return not all_women and arr.count(-1) != arr.count(1)


def invite_more_women(arr):
	return sum(arr) > 0 and len(arr) > 0


def invite_more_women(arr):
	x = 0
	y = 0
	for l in arr:
		if l == -1:
			x = x + 1
		elif l == 1:
			y = y + 1
	if x < y:
		return True
	else:
		return False


def invite_more_women(arr):
	count_of_men = 0
	count_of_women = 0
	for item in arr:
		if item == 1:
			count_of_men += 1
		else:
			count_of_women += 1
	if count_of_men <= count_of_women:
		return False
	else:
		return True


def invite_more_women(arr):
	women = 0
	men = 0
	for person in arr:
		if person == -1:
			women += 1
		if person == 1:
			men += 1
	return men > women


def invite_more_women(arr):
	if arr.count(1) <= arr.count(-1):
		return False
	return True


def invite_more_women(arr):
	guys = 0
	gals = 0
	for n in arr:
		if n == 1:
			guys += 1
		if n == -1:
			gals += 1
	if gals > guys or gals == guys:
		return False
	else:
		return True


def invite_more_women(arr):
	men = len([i for i in arr if i > 0])
	women = len([i for i in arr if i < 0])
	return True if men > women else False


def invite_more_women(arr=0):
	lst1 = [i for i in arr if i < 0]
	lst2 = [i for i in arr if i > 0]
	return len(lst1) < len(lst2)


def invite_more_women(a):
	if a.count(1) > a.count(-1):
		return True
	else:
		return False


def invite_more_women(arr):
	if 2 <= len(arr) <= 50:
		if arr.count(-1) < arr.count(1):
			return True
		else:
			return False
	else:
		return False


def invite_more_women(arr):
	if len([i for i in arr if i != 1]) < len([i for i in arr if i != -1]):
		return True
	else:
		return False


def invite_more_women(arr):
	count_woman = arr.count(1)
	count_man = arr.count(-1)
	return True if count_woman - count_man >= 1 else False


(M, W) = (1, -1)

def invite_more_women(arr):
	return arr.count(W) < arr.count(M)


def invite_more_women(arr):
	men = 0
	women = 0
	for i in range(len(arr)):
		if arr[i] == 1:
			men += 1
		elif arr[i] == -1:
			women += 1
	if men > women:
		return True
	else:
		return False


def invite_more_women(arr):
	x = 0
	for i in range(0, len(arr)):
		x += arr[i]
	return x > 0


def invite_more_women(arr):
	intWeman = 0
	intMon = 0
	for i in arr:
		if i == 1:
			intMon += 1
		else:
			intWeman += 1
	if intWeman < intMon:
		return True
	else:
		return False


def invite_more_women(arr):
	if arr.count(1) == arr.count(-1) or arr.count(-1) == len(arr):
		return False
	return True


def invite_more_women(arr):
	N = len(arr)
	(w, m) = (0, 0)
	for i in range(N):
		if arr[i] == -1:
			w += 1
		elif arr[i] == 1:
			m += 1
	if m > w:
		return True
	else:
		return False


def invite_more_women(arr):
	return sum((inv for inv in arr)) > 0


def invite_more_women(arr):
	akjhd = 0
	for element in arr:
		akjhd += element
	if akjhd > 0:
		return True
	elif akjhd <= 0:
		return False


def invite_more_women(arr):
	contador_hombres = 0
	contador_mujeres = 0
	for elemento in arr:
		if elemento == -1:
			contador_mujeres = contador_mujeres + 1
		if elemento == 1:
			contador_hombres = contador_hombres + 1
	if arr == []:
		return False
	elif contador_hombres <= contador_mujeres:
		return False
	else:
		return True


def invite_more_women(arr):
	sumInput = sum(arr)
	if sumInput < 0:
		return False
	elif sumInput == 0:
		return False
	else:
		return True


def invite_more_women(arr):
	women = 0
	for i in arr:
		if i == -1:
			women = women + 1
	if len(arr) % 2 == 0:
		if women >= len(arr) // 2:
			return False
		else:
			return True
	elif women > len(arr) // 2:
		return False
	else:
		return True


def invite_more_women(arr):
	x = len(arr)
	i = 0
	a = 0
	if x == 2:
		if arr[0] == 1:
			if arr[1] == -1:
				return False
	while i < x:
		a = a + arr[i]
		break
	if a > 0:
		return True
	elif a < 0:
		return False
	else:
		return False


def invite_more_women(arr):
	int = sum(arr)
	if int > 0:
		return True
	else:
		return False


def invite_more_women(arr):
	women = []
	men = []
	for i in arr:
		if i == 1:
			men.append(i)
		else:
			women.append(i)
	if len(men) > len(women):
		return True
	else:
		return False


def invite_more_women(arr):
	i = 0
	for item in arr:
		i += item
	if i > 0:
		return True
	else:
		return False


def invite_more_women(arr):
	add_vec = 0
	for i in range(0, len(arr)):
		add_vec += arr[i]
	if add_vec <= 0:
		return False
	else:
		return True


def invite_more_women(arr):
	count = 0
	for a in arr:
		count += a
	if count > 0:
		return True
	else:
		return False


invite_more_women = lambda lst: lst.count(-1) < lst.count(1)


def invite_more_women(arr):
	if len(arr) in range(2, 51):
		count = 0
		for i in arr:
			count += i
		if count > 0:
			return True
		else:
			return False
	else:
		return False


def invite_more_women(arr):
	return len([a for a in arr if a == 1]) > len([a for a in arr if a == -1])


def invite_more_women(arr):
	if sum(arr) >= 1:
		return sum(arr) >= 1
	else:
		return bool({})


def invite_more_women(attendees):
	men = 0
	women = 0
	for sex in attendees:
		if sex == -1:
			women += 1
		else:
			men += 1
	if men > women:
		return True
	else:
		return False


def invite_more_women(arr):
	women = arr.count(-1)
	man = arr.count(1)
	if man > women:
		return True
	else:
		return False