{{ message }}

Instantly share code, notes, and snippets.

# Daniel Diekmeierdanieldiekmeier

Created Jun 7, 2017
View concatenated_integers.py
 # so definiert man eine Funktion def permutations(numbers): # wenn die Liste nur eine Zahl enthält, # können wir sie direkt zurückgeben if len(numbers) == 1: return [numbers] # die leere Liste hier benutzen wir # um die Ergebnisse zwischenzuspeichern result = []
Created Mar 3, 2017
Cody's Jams: https://www.acmicpc.net/problem/12034
View codys_jams.py
 prices = [9, 9, 12, 12, 12, 15, 16, 20] new_prices = [] # The lowest price has to be a reduces price # Then calculate the original price from that # remove both from the prices list and do it again def solve (prices, new_prices): if len(prices) == 0: return new_prices
Created Oct 21, 2016
View rolling-average.py
 import itertools import math items = [10, 3, 4, 10] steps = 10 def make(a, b): print(a, b) result = []
Created Jul 16, 2016
View transitivity.js
 'use strict' var tags = { 'a': ['b', 'c', 'd'], 'b': ['c', 'd'], 'c': ['d'], 'd': [], 'e': [], 'f': ['a'] }
Created Jul 16, 2016
View tarjan.js
 'use strict' const tags = { '1': ['2'], '2': ['1', '5'], '3': ['4'], '4': ['3', '5'], '5': ['6'], '6': ['7'], '7': ['8'],
Created Jan 23, 2016
View threesteep.html
 Animation
Created Jul 7, 2015

# .vimrc

`set columns=80 set encoding=utf-8`

# im Terminal

defaults write com.googlecode.iterm2 HotkeyTermAnimationDuration -float 0.00001

Last active Aug 29, 2015
Wörter, die auf -al enden