Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 21st, 2018
76
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
def equi ( A ):
sum_before = 0
sum_after = sum(A)
for i in xrange(len(A)):
sum_after -= A[i]
if(sum_before == sum_after):
return i
sum_before += A[i]
return -1
Add Comment
Please,
Sign In
to add comment
Public Pastes
!!!!!
Email | 24 min ago | 0.15 KB
Receiver 3.0.7
Lua | 45 min ago | 0.95 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
python count to one hundred in strings
Python | 2 hours ago | 0.77 KB
Pseudo-multiple inheritance
JavaScript | 3 hours ago | 0.60 KB
Untitled
JavaScript | 4 hours ago | 2.56 KB
2024-04-17_stats.json
JSON | 5 hours ago | 4.10 KB
2024-04-17_stats.json
JSON | 5 hours ago | 4.10 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!