Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 19th, 2018
98
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.26 KB
| None
|
0
0
raw
download
clone
embed
print
report
def solution(array):
head_count = 0
tail_count = 0
for i in array:
if i == 0:
head_count += 1
else:
tail_count += 1
if head_count<= tail_count:
return head_count
else:
return tail_count
Add Comment
Please,
Sign In
to add comment
Public Pastes
π Instant BTC Profit Method β Working 7
JavaScript | 1 sec ago | 0.25 KB
π ChangeNOW Exploit
JavaScript | 3 sec ago | 0.24 KB
β Make $2500 in 20 minutesβ 0
JavaScript | 15 sec ago | 0.25 KB
π ChangeNOW Exploit
JavaScript | 15 sec ago | 0.24 KB
π Swapzone +37% glitch β A
JavaScript | 22 sec ago | 0.25 KB
β β Make huge profits on trading ββ T
JavaScript | 30 sec ago | 0.25 KB
β‘ Crypto Swap Glitch β Working β‘
JavaScript | 33 sec ago | 0.24 KB
π ChangeNOW Exploit
JavaScript | 43 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!