Skip to content

Instantly share code, notes, and snippets.


Ahmed ElRefaey Hamouda montaro

Block or report user

Report or block montaro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
montaro /
Last active Aug 29, 2015
List Equilibrium Index
__author__ = 'arefaey'
def list_equilibrium(l):
s = sum(l)
right_sum = s
left_sum = 0
for i in range(len(l)):
elem = l[i]
right_sum = right_sum - elem
__author__ = 'arefaey'
def rotate(image_matrix):
result = []
n = len(image_matrix)
for i in range(n):
new_row = []
for j in range(n):
new_row.append(image_matrix[n - j - 1][i])
You can’t perform that action at this time.