package
Version:
v0.0.0-...-36687a4
Opens a new window with list of versions in this module.
Published: Oct 28, 2020
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
FindCelebrity returns the ID of the celebrity.
Runs in O(N) time and O(1) space.
Knowing represents a personId knowing another personId.
Return true of first person knows the second person.
NOTE: This is not bidirectional.
Knows is a O(1) method that answers if 'a' "knows" 'b'.
This does not imply that 'b' "knows" 'a'.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.