Skip to content

Instantly share code, notes, and snippets.

View zbkruturaj's full-sized avatar

Ruturaj Zadbuke zbkruturaj

  • San Francisco, California, United States
View GitHub Profile
@zbkruturaj
zbkruturaj / A_Terse_Guide_To_Decorators.ipynb
Created April 12, 2018 19:21
A Terse Guide To Decorators in Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import collections
class Solution:
def bestRotation(self, A):
"""
:type A: List[int]
:rtype: int
"""
if len(A) < 2:
return 0
l = collections.defaultdict(lambda:0)