Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
{ | |
"manifest_version": 2, | |
"name": "Hacker News styles", | |
"version": "0.1", | |
"content_scripts": [{ | |
"matches": ["https://news.ycombinator.com/*"], | |
"css": ["style.css"] | |
}] | |
} |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.ComponentModel.Composition; | |
using System.Deployment.Application; | |
using System.Globalization; | |
using System.Linq; | |
using System.Reactive.Linq; | |
using System.Timers; | |
using System.Windows; |
(function () { | |
var c = !0, | |
d = !1; | |
try { | |
window.google || (window.google = {}); | |
google.doodle || (google.doodle = {}); | |
var f = google.doodle, | |
h, j, k, l, m, n, o = 0, | |
p = 23, | |
q, r, s, u, v, w, x, y = 142, |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!