This commit is contained in:
Mahdi Dibaiee
2015-07-26 14:07:07 +04:30
parent ca572e392e
commit 10fd1038fc
17 changed files with 423 additions and 232 deletions

View File

@ -1,5 +1,5 @@
<head>
<title>Colors Trie</title>
<title>Data Trie</title>
</head>
<body>

View File

@ -1,13 +1,13 @@
let data = new Trie();
let json = {
"color": ["red", "rebecca", "blue", "cyan", "pink", "purple",
"teal", "black", "white", "orange", "yellow", "green"],
"color": ["Red", "Rebecca", "Blue", "Cyan", "Pink", "Purple",
"Teal", "Black", "White", "Orange", "Yellow", "Green"],
"name": ["Jack", "James", "Alex", "Adam", "Mahdi", "Josh", "Scott",
"Pat", "Vincent", "Daniel", "Patrick", "Tim"],
"app": ["Atom", "Sublime", "Firefox", "Chrome", "Safari", "Mail",
"Blender", "Sketch", "Slack", "Finder", "Nightly", "Aurora",
"f.lux", "LookUp", "WunderList", "Instagram", "Toggl"]
"f.lux", "LookUp", "WunderList", "Instagram", "Toggl", "Mailbox"]
};
for (let category in json) {

View File

@ -1,9 +1,9 @@
{
"color": ["red", "rebecca", "blue", "cyan", "pink", "purple",
"teal", "black", "white", "orange", "yellow", "green"],
"color": ["Red", "Rebecca", "Blue", "Cyan", "Pink", "Purple",
"Teal", "Black", "White", "Orange", "Yellow", "Green"],
"name": ["Jack", "James", "Alex", "Adam", "Mahdi", "Josh", "Scott",
"Pat", "Vincent", "Daniel", "Patrick", "Tim"],
"app": ["Atom", "Sublime", "Firefox", "Chrome", "Safari", "Mail",
"Blender", "Sketch", "Slack", "Finder", "Nightly", "Aurora",
"f.lux", "LookUp", "WunderList", "Instagram", "Toggl"]
"f.lux", "LookUp", "WunderList", "Instagram", "Toggl", "Mailbox"]
}