This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Uses Node class like below | |
/*Node(int val) { | |
Node next; | |
int val = val; | |
}*/ | |
public HashMap<Integer,Node<Integer>> adjList(Pair pairArr) { | |
if (pairArr.length == 0) { | |
return null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pretends Node is like this: | |
/* Node { | |
int data; | |
List<Integer> neighbors; | |
} | |
*/ | |
public Node bfs(Node head, int findInt) { | |
Node result = new Node(-1); // null node basically | |
if (head == null) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Download from https://www.openssl.org/source/ | |
Open terminal | |
Move to directory holding OpenSSL files | |
Type "open INSTALL" | |
Type "./config" | |
Type "make" | |
Type "make test" | |
Type "make install" |
OlderNewer