Age | Commit message (Collapse) | Author |
|
|
|
topological sorting.
|
|
ArrayList, in dfs and explore methods, which helped! I also used IntStream and boxed method to do clever post order array sorting.
|
|
in first and then start from scratch.
|
|
may need to convert the recursive DFS to iterative DFS. Check in now so I can get the code from the computer upstairs.
|
|
Consistency of CS Curriculum. For the clock variable to assign pre-visit and post-visit values, I used a trick of defining the clock as int[1], so its mutable and I can increment it. I don't know if that's a best practice, but for now I'm happy that the program is good. Fun stuff!
|
|
cases properly initially: when v and w are connected, they should be in each other's ArrayList. Once that's fixed, it was easy.
|
|
tried to start with Python but found it difficult to get started.
|