Apps
Introduction¶
each problem has a solution directly and other defines only the approach in function.
Book
¶
An instance of book in a Library
Source code in algorithms/apps/library.py
Library
¶
A Library that stores the books, authors and genre
Source code in algorithms/apps/library.py
add_book(book)
¶
Adds a Book to the Library :type book: Book
Source code in algorithms/apps/library.py
books_by_author(author)
¶
Display books of specific author :type author: str
Source code in algorithms/apps/library.py
display_by_author()
¶
display_genre()
¶
recently_read_book(book)
¶
MyHashMap
¶
Bases: object
Source code in algorithms/apps/hashmap.py
get(key)
¶
:type key: int :rtype: int
put(key, value)
¶
:type key: int :type value: int :rtype: None
Source code in algorithms/apps/hashmap.py
remove(key)
¶
:type key: int :rtype: None