Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
system-design-primer
Commits
924570e4
Commit
924570e4
authored
Jul 19, 2018
by
cclauss
Committed by
Donne Martin
Jul 18, 2018
Browse files
Add newlines - PEP8 style (#173)
parent
17530912
Changes
3
Hide whitespace changes
Inline
Side-by-side
solutions/object_oriented_design/hash_table/hash_map.py
View file @
924570e4
...
@@ -35,4 +35,4 @@ class HashTable(object):
...
@@ -35,4 +35,4 @@ class HashTable(object):
if
item
.
key
==
key
:
if
item
.
key
==
key
:
del
self
.
table
[
hash_index
][
index
]
del
self
.
table
[
hash_index
][
index
]
return
return
raise
KeyError
(
'Key not found'
)
raise
KeyError
(
'Key not found'
)
\ No newline at end of file
solutions/system_design/query_cache/query_cache_snippets.py
View file @
924570e4
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
class
QueryApi
(
object
):
class
QueryApi
(
object
):
def
__init__
(
self
,
memory_cache
,
reverse_index_cluster
):
def
__init__
(
self
,
memory_cache
,
reverse_index_cluster
):
...
...
solutions/system_design/web_crawler/web_crawler_snippets.py
View file @
924570e4
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
class
PagesDataStore
(
object
):
class
PagesDataStore
(
object
):
def
__init__
(
self
,
db
):
def
__init__
(
self
,
db
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment