Skip to content

Instantly share code, notes, and snippets.

View bbekier's full-sized avatar

Bartosz Bekier bbekier

  • Poland
View GitHub Profile
@bbekier
bbekier / colors.xml
Created July 13, 2016 10:32
Material Design Color Palette Colors.xml Resource file for Android
<?xml version="1.0" encoding="utf-8"?>
<!--
Google Material Design Color Palette for Android http://www.google.com/design/spec/style/color.html#color-ui-color-palette
Spreadsheet used to create this reosurce - http://bit.ly/mdcolor_spreadsheet
Link to this colors.xml resource file - http://bit.ly/mdcolorsxml
Harshad Kale
https://github.com/kalehv
harshad.kale@gmail.com
def solution(A):
import math
N = len(A)
fib_maxarg = int(math.sqrt(N)) + 10
def fib(n):
""" Compute nth Fibonacci number """
if not hasattr(fib, 'mem'):
fib.mem = [0]*fib_maxarg